/* Mobile header: logo and cart beside each other */
.nav-header-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.7rem;
}

@media (max-width: 900px) {
  .nav-header-mobile {
    margin-bottom: 0.2rem;
  }
}

@media (max-width: 600px) {
  .nav-header-mobile {
    padding: 0.2rem 0.1rem 0.2rem 0.1rem;
    gap: 0.3rem;
  }
}
/* Hide excess products in main grid */
.product-list .product:nth-child(n + 9) {
  display: none;
}
/* Featured Products Section */
.featured-products {
  max-width: 1400px;
  margin: 0 auto 2.5rem auto;
  padding: 0 2rem;
}
.featured-products h2 {
  font-family: "Outfit", sans-serif;
  color: #27ae60;
  text-align: center;
  margin-bottom: 2.2rem;
  font-size: 2.4rem;
  font-weight: 700;
}
.featured-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
}
.featured-product {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(39, 174, 96, 0.1);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.1s ease;
}
.featured-product img {
  width: 160px;
  height: 160px;

  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  background: #f8f9fa;
}
.featured-product .price-row {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 1.2rem;
  padding: 0.3rem 1.2rem 0.3rem 1rem;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
}
.featured-product h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0.5rem 0 0.7rem 0;
  color: #2c3e50;
}
.featured-product p {
  font-size: 1.08rem;
  color: #666;
  margin-bottom: 1.2rem;
  text-align: center;
}
.featured-product .cart-btn {
  font-size: 1.08rem;
  padding: 0.7rem 2.2rem;
  border-width: 2.5px;
}
.featured-product:hover {
  box-shadow: 0 6px 28px rgba(39, 174, 96, 0.14);
}
html {
  scroll-behavior: auto;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f8faf5;
  color: #2c3e50;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.97);
  color: #27ae60;
  padding: 0.7rem 4vw;
  height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(39, 174, 96, 0.08);
  border-bottom: 2px solid #e1e8e3;
  font-family: "Outfit", sans-serif;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #27ae60;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px #b6e38844;
}
.nav-search-group {
  display: flex;
  align-items: center;
  background: #f8faf5;
  border-radius: 25px;
  border: 2px solid #27ae60;
  overflow: hidden;
  width: 320px;
  margin: 0 2vw 0 0.7rem;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.04);
}

@media (max-width: 600px) {
  .nav-search-group {
    width: 100%;
    margin: 0.2rem 0 0.4rem 0.5rem;
  }
}
.nav-search {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  outline: none;
  color: #222;
}
.nav-search:focus {
  background: #fff;
}
.search-btn {
  background: none;
  border: none;
  color: #27ae60;
  font-size: 1.3rem;
  padding: 0 1.1rem;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #e1e8e3;
}
.nav-cart {
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  background: #27ae60;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.13);
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
}

/* Universal Cart Link Styles */
.cart-link {
  background: #27ae60;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  text-decoration: none;
}

.cart-link:hover {
  background: #229954;
  transform: translateY(-1px);
}

.cart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-cart:hover {
  background: #219150;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.18);
}
#cartCount {
  font-weight: 600;
  background: #fff;
  color: #27ae60;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
      135deg,
      rgba(46, 204, 113, 0.95),
      rgba(39, 174, 96, 0.95)
    ),
    url("https://images.unsplash.com/photo-1495107334309-fcf20504a5ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 3.5rem 0.7rem 2rem 0.7rem;
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 40vh;
    padding: 2.2rem 0.2rem 1rem 0.2rem;
  }
  .hero-content {
    max-width: 99vw;
    width: 100%;
    padding: 0 0.1rem;
  }
  .hero-content h1 {
    font-size: 1.3rem !important;
    line-height: 1.18;
  }
  .hero-content p {
    font-size: 0.92rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem !important;
  }
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-family: "Outfit", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
/* Featured Products - smaller for mobile */
.featured-products {
  max-width: 900px;
  margin: 0 auto 1.2rem auto;
  padding: 0 1rem;
}
.featured-products h2 {
  font-family: "Outfit", sans-serif;
  color: #27ae60;
  text-align: center;
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.featured-list {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.featured-product {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.08);
  padding: 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 170px;
  min-width: 120px;
  transition: none;
}
.featured-product img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  background: #f8f9fa;
}
.featured-product .price-row {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1rem;
  padding: 0.2rem 0.7rem 0.2rem 0.6rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.08);
}
.featured-product h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.3rem 0 0.5rem 0;
  color: #2c3e50;
}
.featured-product p {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 0.7rem;
  text-align: center;
}
.featured-product .cart-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-width: 2px;
  min-height: 44px;
  min-width: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(39, 174, 96, 0.3);
  cursor: pointer;
}
  padding: 0.8rem 0.7rem 0.7rem 0.7rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e1e8e3;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.2rem;
  position: relative;
  overflow: hidden;
}
.product-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  margin-bottom: 0.5rem;
}
.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
  background: #f8f9fa;
  display: block;
}
.price-row {
  position: absolute;
  top: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0.1rem 0.5rem 0.1rem 0.4rem;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.07);
  font-size: 0.92rem;
}
.price {
  color: #27ae60;
  font-weight: 700;
  font-size: 1rem;
}
.old-price {
  color: #b0b0b0;
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 0.15rem;
}
.discount-badge {
  background: #f9d923;
  color: #222;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.15rem;
}

.product-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.product h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
}

.product p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Remove transform and hover for product cards */
.product:hover {
  border-color: #27ae60;
}
/* Pagination buttons */
.page-btn {
  border: 1.5px solid #218c4a;
  background: #fff;
  color: #218c4a;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
.page-btn.active, .page-btn:active, .page-btn.selected {
  background: #218c4a;
  color: #fff;
}
.cart-btn {
  display: inline-block;
  background: transparent;
  color: #27ae60;
  border: 2px solid #27ae60;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: "Poppins", sans-serif;
  align-self: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-btn:hover {
  background: #27ae60;
  color: #fff;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}

.mpesa-btn {
  display: inline-block;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  width: 100%;
}

.mpesa-btn:hover {
  background: #2ecc71;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
}
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background: none;
}
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
@media (max-width: 1100px) {
  .product h3 {
    margin: 0.2rem 0 0.2rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
  }
  .product p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  @media (max-width: 900px) {
    .navbar {
      flex-direction: column;
      align-items: stretch;
      height: auto;
      padding: 1rem 2vw;
    }
    .nav-search-group {
      width: 100%;
      margin: 1rem 0 0.5rem 0;
    }
  }
}

/* Responsive Cart Styles */
@media (max-width: 768px) {
  .cart-link {
    padding: 0.4rem 0.8rem;
    gap: 0.3rem;
  }
  
  .cart-icon {
    width: 18px;
    height: 18px;
  }
  
  #cartCount {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
}
