/*====================OVERALL===================*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*====================NAVBAR====================*/
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 8em;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.carticon {
  margin-left: 2em;
  position: relative;
}

.carticon::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: rgb(240, 183, 108);
  color: black;
  padding: 0.2em 0.5em;
  border-radius: 50%;
  font-size: 12px;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* ========== Responsive Styles ========== */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #fff;
    margin-top: 1em;
    padding: 1em 0;
    border-top: 1px solid #ddd;
  }

  .menu.show {
    display: flex;
  }

  .menu li {
    margin:  0;
  }

  .carticon {
    margin-left: 0;
  }

  .menu-icon {
    display: block;
  }
}


/*======================SECTION 1 (HERO SECTION)=============================*/
.introduction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* allows stacking on small screens */
  margin: 2em;
  gap: 2em;
}

.intro-content {
  flex: 1;
  min-width: 280px;
}

.intro-content h1 {
  font-size: 3em;
  line-height: 1.2;
}

.intro-content button {
  margin-top: 2em;
  padding: 1em 3em;
  background-color: rgb(240, 183, 108);
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
}

.intro-content button:hover {
  background-color: rgb(243, 210, 168);
}

.introduction img {
  flex: 1;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/*=============== Responsive Breakpoints ===============*/
@media (max-width: 1024px) {
  .intro-content h1 {
    font-size: 2.5em;
  }

  .intro-content button {
    padding: 0.9em 2.5em;
  }
}

@media (max-width: 768px) {
  .introduction {
    flex-direction: column; /* stack vertically */
    text-align: center;
  }

  .intro-content h1 {
    font-size: 2em;
  }

  .introduction img {
    margin-top: 0.2em;
  }
}

@media (max-width: 480px) {
  .intro-content h1 {
    font-size: 1.6em;
  }

  .intro-content button {
    padding: 0.8em 2em;
    width: 50%;
  }
}



/*====================SECTION 2(PRODUCTS)====================*/
.products {
    padding: 2em 1em;
    margin-top: 1em;
}

/* Intro products: title + navigation buttons */
.intro-products {
    display: flex;
    flex-direction: column; /* stack on mobile */
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 2em;
    text-align: center;
}

.products-button {
    display: flex;
    gap: 1em;
}

.products-button button {
    padding: 1em 1.2em;
    border-radius: 30px;
    border: none;
    background-color: rgb(240, 183, 108);
    color: black;
    cursor: pointer;
    font-size: 1em;
}

.products-button button:hover {
    background-color: rgb(243, 210, 168);
}

/* Products grid */
.products-content {
    display: flex;
    flex-wrap: wrap; /* allow items to wrap on smaller screens */
    justify-content: center;
    gap: 2em;
}

.content-products {
    flex: 1 1 250px; /* responsive width: grow/shrink, min 250px */
    max-width: 300px;
    text-align: center;
    box-shadow: 1px 1px 5px rgb(164, 146, 122);
    margin: 1em;
    border-radius: 20px;
    background-color: #fff;
    padding: 1em;
    transition: transform 0.3s;
}

.content-products:hover {
    transform: translateY(-5px);
}

.content-products img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.content-products button {
    background-color: rgb(240, 183, 108);
    border: none;
    padding: 0.8em 2em;
    margin: 1em 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.content-products button:hover {
    background-color: rgb(243, 210, 168);
}

.content-products data {
    color: rgb(240, 183, 108);
    font-weight: bold;
    display: block;
    margin-top: 0.5em;
}

.content-products del {
    color: #999;
    display: block;
    margin-top: 0.2em;
}

/*====================MEDIA QUERIES====================*/
@media screen and (min-width: 768px) {
    .intro-products {
        flex-direction: row;
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .products-button button {
        padding: 0.8em 1em;
        font-size: 0.9em;
    }

    .content-products {
        flex: 1 1 100%; /* full width on very small screens */
        margin: 0.5em 0;
    }
}


/*=====================================SECTION 3(BANNER SECTTION)=============================*/
.banner {
    background-image: url(/Assets/images/banner-3.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 35em;
    margin: 4em; /* shorthand for left/right/top/bottom */
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Banner text */
.banner-content h2 {
    font-size: 6em;
    color: rgb(240, 183, 108);
    margin: 0;
    padding: 0 1em; /* small padding for mobile screens */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .banner {
        min-height: 30em;
        margin: 3em;
    }
    .banner-content h2 {
        font-size: 4.5em;
    }
}

@media (max-width: 900px) {
    .banner {
        min-height: 25em;
        margin: 2em;
    }
    .banner-content h2 {
        font-size: 3.5em;
    }
}

@media (max-width: 600px) {
    .banner {
        min-height: 20em;
        margin: 1em;
        border-radius: 20px;
    }
    .banner-content h2 {
        font-size: 2.5em;
        padding-top: 1em;
    }
}

@media (max-width: 400px) {
    .banner {
        min-height: 15em;
        margin: 0.5em;
        border-radius: 15px;
    }
    .banner-content h2 {
        font-size: 2em;
        padding-top: 0.5em;
    }
}



/*=================================SECTION 4(GALLERY SECTION)====================================*/
/* Gallery Section */
.Gallery{
    padding: 2em;
}

/* Intro header */
.intro-Gallery{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.Gallery-button{
    display: flex;
    gap: 1em;
}
.Gallery-button button{
    padding: 1.2em;
    border-radius: 30px;
    border: none;
    background-color: rgb(240, 183, 108);
    color: black;
    cursor: pointer;
}
.Gallery-button button:hover{
    background-color: rgb(243, 210, 168);
}

/* Outer wrapper */
.Gallery-content {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Sliding track */
.Gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Each slide */
.content-Gallery {
    flex: 0 0 33.333%; /* default 3 per row */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em;
}
.content-Gallery img{
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 10px rgb(164, 146, 122);
    border-radius: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-Gallery {
        flex: 0 0 50%; /* 2 per row */
    }
}

@media (max-width: 600px) {
    .content-Gallery {
        flex: 0 0 100%; /* 1 per row */
    }
    .intro-Gallery{
        flex-direction: column;
        gap: 1em;
    }
}



/*=====================================SECTION 6 (ABOUT SECTION)==============================*/
.About {
    padding: 2em;
}

.intro-About {
    text-align: center;
}

.intro-About h2 {
    font-size: 2em;
}

.intro-About p {
    margin-top: 1em;
    font-size: 1em;
    line-height: 1.6;
}

/* Flex container for image + content */
.About-content {
    display: flex;
    flex-wrap: wrap; /* allow stacking on small screens */
    margin-top: 2em;
    justify-content: center;
    align-items: center;
    gap: 2em; /* spacing between image and content */
}

.About-content img {
    max-width: 100%;
    height: auto;
    flex: 1 1 300px; /* responsive width */
}

.content-About {
    flex: 1 1 300px; /* responsive width */
    margin: 0 1em;
}

.content-About h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.content-About p {
    font-size: 1.2em;
    line-height: 1.6;
}

/*==================== MEDIA QUERIES ====================*/
@media (max-width: 1024px) {
    .intro-About h2 {
        font-size: 1.8em;
    }

    .content-About h3 {
        font-size: 1.3em;
    }

    .content-About p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .About-content {
        flex-direction: column;
        text-align: center;
    }

    .content-About {
        margin: 1em 0;
    }

    .intro-About h2 {
        font-size: 1.6em;
    }

    .intro-About p {
        font-size: 0.95em;
    }

    .content-About h3 {
        font-size: 1.2em;
    }

    .content-About p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .intro-About h2 {
        font-size: 1.4em;
    }

    .intro-About p {
        font-size: 0.9em;
    }

    .content-About h3 {
        font-size: 1.1em;
    }

    .content-About p {
        font-size: 0.95em;
    }
}

/*=====================================FOOTER SECTION=================================*/
.footer {
    text-align: center;
    background-color: rgb(240, 183, 108);
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* allow items to wrap on smaller screens */
    padding: 2em 4em;
    justify-content: center;
    gap: 8em; /* reduce gap for better mobile fit */
}

.content-footer {
    flex: 1 1 200px; /* allow each column to shrink/grow with a minimum width */
    margin-bottom: 2em;
}

.content-footer h4 {
    margin-bottom: 1em;
    font-size: 1.2em;
}

.content-footer p,
.content-footer ul li a {
    text-decoration: none;
    color: white;
    font-size: 0.95em;
}

.content-footer ul {
    padding: 0;
}

.content-footer ul li {
    list-style: none;
    margin-bottom: 0.5em;
}

/* Footer bottom */
.footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 1em 0;
}

.footer p {
    margin: 0.5em 0;
    font-size: 0.9em;
}

/*================= RESPONSIVE MEDIA QUERIES =================*/
@media screen and (max-width: 1024px) {
    .footer-content {
        gap: 4em;
        padding: 2em;
    }
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2em;
        padding: 1.5em;
    }

    .content-footer {
        text-align: center;
    }

    .content-footer h4 {
        font-size: 1.1em;
    }

    .content-footer p,
    .content-footer ul li a {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .footer-content {
        padding: 1em;
        gap: 1.5em;
    }

    .content-footer h4 {
        font-size: 1em;
    }

    .content-footer p,
    .content-footer ul li a {
        font-size: 0.85em;
    }
}


/*==================================cart section========================*/
.cart-container{
  max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.cart-item { 
      display: flex;
      justify-content: space-between; 
      margin: 10px 0;
      padding: 10px;
      border-bottom: 1px solid #ccc; 
}
.cart-item-details {
        flex: 1;
        min-width: 150px;
}
.cart-item button{
    background: rgb(240, 183, 108);
    border: none;
    padding: 0.25em 1em;
    border-radius: 10px;
    color: black;
}
.cart-item img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      margin-right: 15px; 
}
.cart-total{
      font-size: 20px;
      margin-top: 20px;
      text-align: right;
      font-weight: bold;
}
.submitBtn{
      padding: 1em 8em; 
      background: rgb(240, 183, 108);
      color: black;
      border: none;
      cursor: pointer;
      margin-top: 20px;
      border-radius: 10px;
      margin: auto;
      display: block;
    
}


.cart-container h1{
  margin-bottom: 20px;
  text-align: center;
  color: black;
  
}
.cartItems{
    display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

/*===========================================payment section=======================================*/

#paymentPage{
  background: white;
  padding: 2.5rem;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin-top: 100px;
  width: 100%;
}

#paymentPage h2{
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.payment-content label{
  font-size: 1.2rem;
  font-weight: 500;
}
.payment-content input{
  padding: 10px;
  display: block;
  width: 80%;
  margin: 10px 0;
  
}
.payBtn{
    text-align: center;
    padding: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    background-color: #00c79c;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
.payBtn:hover {
    background-color: #009e7c;
    transform: translateY(-2px);
}
.divider{
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem 0;
  position: relative;
}
.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}
  
.divider::before {
    left: 0;
}
  
.divider::after {
    right: 0;
}
.courtesy-content{
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}
.paystackBtn{
    background-color: rgb(79, 171, 247);
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.safaricomBtn{
    background-color: #9ef1b2;
    padding: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#proceedDeliveryBtn{
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
    color: white;
}
#deliveryForm{
  margin: auto;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(7, 7, 7, 0.05);
  padding: 1.5rem;
  background: white;
  margin-top: 50px;
}
#deliverySection h2{
  text-align: center;
  margin-bottom: -2em;
  font-size: 2rem;
}
#deliveryForm label{
   font-size: 1.2rem;
   font-weight: 500;
  
}
#deliveryForm input{
  padding: 5px;
  display: block;
  width: 80%;
  margin: 10px 0;
}
#deliveryForm button{
      text-align: center;
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgb(240, 183, 108);
    border: none;
    border-radius: 8px;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: auto;
    display: block;
    margin-bottom: 1rem;
    gap: 10px;
}
/*============================ORDER FORM=========================*/
#orderForm{
  display: none;
  text-align: center;
    max-width: 800px;
  margin-top: 80px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  
}
#orderForm h3{
  font-size: 3em;
  color: rgb(89, 194, 236);
}
#orderForm input{
  padding: 0.2em 5em;
}
#orderForm input, #orderForm textarea {
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
}
#orderForm button {
    padding: 1em 2em;
    background: linear-gradient(to right, #c471f5, #fa71cd);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    margin-top: 40px;
}
#orderForm button:hover {
     background-color: rgb(39, 229, 39);
    color: white;
    cursor: pointer;
}
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #28a745;
  color: white;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
#toast.show {
  visibility: visible;
  opacity: 1;
}




/*======================================animations=======================================*/
/* Scroll Animation Base */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* When in view */
.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Base hidden state */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* Fade Up */
.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left */
.animate-left {
    transform: translateX(-50px);
}
.animate-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right */
.animate-right {
    transform: translateX(50px);
}
.animate-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom In */
.animate-zoom {
    transform: scale(0.85);
}
.animate-zoom.show {
    opacity: 1;
    transform: scale(1);
}
/* Animation delay effect */
.scroll-delay {
    transition-delay: var(--delay, 0s);
}
/* Button pop animation */
.scroll-animate .btn-animate {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s ease-out;
}

.scroll-animate.show .btn-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s; /* Slight delay after card appears */
}

/*==========================================popup style==============================*/
/* Overlay background */
#customAlert {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Alert box */
#customAlert .alert-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 300px;
  animation: fadeIn 0.3s ease-in-out;
}

#customAlert .alert-box h4 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

#customAlert .alert-box button {
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #007BFF;
  color: #fff;
  cursor: pointer;
}

#customAlert .alert-box button:hover {
  background: #0056b3;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


/*=============================RESPONSIVE DESIGN============================*/

@media (max-width: 1024px){
    nav ul li{
        margin-left: 4em;
    }
    
}