*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
/* NAV STRUCTURE */
/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: #333;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 3em;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #e63946;
}

/* ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.nav-actions input {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-size: 1em;
}

.carticon {
  position: relative;
  cursor: pointer;
}

.carticon::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 0.75em;
  padding: 1px 2px;
  border-radius: 50%;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .desktop-actions {
    display: none; /* Hide desktop actions */
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 1.2em;
    padding: 1.2em;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-actions.mobile-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 1em;
  }

  .nav-actions input {
    flex: 1;
    display: none;
  }
}


/*========================section 1=======================*/
.introduction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4em 2em;
  flex-wrap: wrap;
  gap: 2em;
}

.intro-content {
  flex: 1;
  min-width: 300px;
}

.intro-content h1 {
  font-size: 3.5em;
  margin-bottom: 0.5em;
}

.intro-content p {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 500px;
}

.intro-content button {
  padding: 1em 3em;
  margin-top: 1.5em;
  background-color: red;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.intro-content button:hover {
  background-color: darkred;
}

.intro-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intro-image img {
  max-width: 100%;
  height: auto;
}

/* 🔹 Tablet (<= 992px) */
@media (max-width: 992px) {
  .introduction {
    flex-direction: column;
    text-align: center;
    padding: 3em 1.5em;
  }

  .intro-content h1 {
    font-size: 2.8em;
  }

  .intro-content p {
    font-size: 1em;
    margin: 0 auto;
  }

  .intro-content button {
    padding: 0.9em 2.5em;
    font-size: 0.95em;
  }
}

/* 🔹 Mobile (<= 600px) */
@media (max-width: 600px) {
  .intro-content h1 {
    font-size: 2em;
  }

  .intro-content p {
    font-size: 0.95em;
  }

  .intro-content button {
    padding: 0.8em 2em;
    font-size: 0.9em;
  }
}




/*=============================section 2(products section)====================*/

.products {
  padding: 4em 2em;
}

.intro-products {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  flex-wrap: wrap; /* allows button to move below title on small screens */
  gap: 1em;
}

.intro-products h3 {
  font-size: 1.8em;
}

.intro-products button {
  padding: 0.8em 2em;
  background-color: red;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.intro-products button:hover {
  background-color: darkred;
}

.products-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
}

.content-products {
  position: relative; /* for badge positioning */
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 10px;
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-products:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content-products img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1em;
  border-radius: 8px;
}

.content-products button {
  margin-top: 1em;
  padding: 0.8em 2em;
  background-color: red;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.content-products button:hover {
  background-color: darkred;
}

/* --- Sale Badge --- */
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  color: white;
  font-size: 0.9em;
  font-weight: bold;
  padding: 0.3em 0.8em;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .intro-products h3 {
    font-size: 1.5em;
  }

  .intro-products button {
    padding: 0.6em 1.5em;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .products {
    padding: 2em 1em;
  }

  .intro-products {
    flex-direction: column;
    text-align: center;
  }

  .intro-products h3 {
    font-size: 1.3em;
  }

  .intro-products button {
    width: 100%;
    padding: 0.7em;
  }

  .sale-badge {
    font-size: 0.8em;
    padding: 0.2em 0.6em;
  }
}


/*====================================section 3(banner)=============================*/
.banner{
    background-image: url(bouquet-3.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 35em;
    margin-left: 4em;
    margin-right: 4em;
    border-radius: 30px;
    padding: 15em;
}
.banner-content h2{
       text-align: center;
       color: red;
       font-size: 4em;
}

.banner {
  background-image: url(bouquet-3.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 35em;
  margin: 2em auto;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em;
  position: relative;
  overflow: hidden;
}

/* Add a soft overlay for readability */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  border-radius: inherit;
}

.banner-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.banner-content h2 {
  color: #fff;
  font-size: 3em;
  font-weight: bold;
  line-height: 1.2;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .banner {
    min-height: 25em;
    padding: 2em;
  }

  .banner-content h2 {
    font-size: 2.2em;
  }
}

@media (max-width: 600px) {
  .banner {
    min-height: 20em;
    margin: 1em;
    border-radius: 15px;
    padding: 1.5em;
  }

  .banner-content h2 {
    font-size: 1.6em;
  }
}



/*=============================section 4(gallery)======================*/
.Gallery {
  padding: 4em 2em;
}

.intro-Gallery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
  gap: 1em;
}

.intro-Gallery h3 {
  font-size: 1.8rem;
}

.intro-Gallery button {
  padding: 0.8em 2em;
  background-color: red;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.intro-Gallery button:hover {
  background-color: darkred;
}

.Gallery-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
}

.content-Gallery {
  padding: 1em;
  box-shadow: 1px 1px 5px rgb(192, 190, 190);
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(to bottom, rgb(192, 191, 191), rgb(243, 242, 242));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-Gallery:hover {
  transform: translateY(-5px);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
}

.content-Gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .intro-Gallery {
    flex-direction: column;
    text-align: center;
  }

  .intro-Gallery h3 {
    font-size: 1.5rem;
  }

  .intro-Gallery button {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .Gallery {
    padding: 2em 1em;
  }

  .intro-Gallery h3 {
    font-size: 1.3rem;
  }

  .Gallery-content {
    grid-template-columns: 1fr;
  }
}







.description {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4em;
    gap: 2em;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.description img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    flex: 1 1 350px; /* responsive resizing */
}

.description-content {
    flex: 1 1 400px;
    margin-left: 1em;
}

.description-content h3 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: red;
    line-height: 1.2;
}

.description-content p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Mobile styles */
@media (max-width: 768px) {
    .description {
        flex-direction: column;
        padding: 2em;
        text-align: center;
    }

    .description-content {
        margin-left: 0;
        margin-top: 1.5em;
    }

    .description-content h3 {
        font-size: 2em;
    }

    .description-content p {
        font-size: 1em;
    }
}


.banner2 {
    background-image: url(flower-18.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 35em;
    margin: 2em;
    border-radius: 30px;
    padding: 5em 2em; /* reduced for flexibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner2-content h2 {
    color: red;
    font-size: clamp(1.8rem, 5vw, 4em); /* responsive font size */
    margin-bottom: 1.5em;
}

.banner2-content button {
    padding: 0.8em 2.5em;
    background-color: red;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin: 0 auto;
    display: inline-block;
}

.banner2-content button:hover {
    background-color: darkred;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .banner2 {
        padding: 3em 1.5em;
        margin: 1em;
        min-height: 20em;
    }

    .banner2-content h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .banner2-content button {
        padding: 0.7em 2em;
        font-size: 0.9rem;
    }
}




.description2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding: 4em;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.description2 img {
  border-radius: 20px;
  max-width: 100%; /* keeps image inside container */
  height: auto;
}

.description2-content {
  flex: 1;
  min-width: 280px;
}

.description2-content h3 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: red;
}

.description2-content p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .description2 {
    flex-direction: column; /* stack image and text */
    text-align: center;
    padding: 2em;
  }

  .description2-content {
    margin-left: 0;
  }

  .description2-content h3 {
    font-size: 2em;
  }

  .description2-content p {
    font-size: 1em;
  }
}


/*==================================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: red;
    border: none;
    padding: 0.25em 1em;
    border-radius: 10px;
    color: white;
}
.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: red;
      color: #fff;
      border: none;
      cursor: pointer;
      margin-top: 20px;
      border-radius: 10px;
      margin: auto;
      display: block;
    
}


.cart-container h1{
  margin-bottom: 20px;
  text-align: center;
  color: red;
  
}
.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;
}
/*============================ORDER FORM=========================*/
#deliverySection{
  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;
  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: red;
    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;
}


.footer {
  text-align: center;
  background-color: white;
  padding: 2em 1em;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* allow items to wrap on small screens */
  gap: 2em; /* spacing between sections */
  padding: 2em 1em;
}

.content-footer {
  flex: 1 1 200px; /* flexible size, min 200px */
  min-width: 180px;
}

.content-footer h4 {
  margin-bottom: 0.8em;
  font-size: 1.2em;
  color: red;
}

.content-footer p,
.content-footer ul li a {
  color: black;
  font-size: 0.95em;
}

.content-footer ul {
  padding: 0;
}

.content-footer ul li {
  list-style: none;
  margin: 0.3em 0;
}

.content-footer ul li a {
  text-decoration: none;
  transition: color 0.3s;
}

.content-footer ul li a:hover {
  color: red;
}

.footer p {
  margin-top: 1.5em;
  font-size: 0.9em;
  color: #555;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/*==========================================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: red;
  color: #fff;
  cursor: pointer;
}

#customAlert .alert-box button:hover {
  background: darkred;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}