/* === HEADER REFINEMENT (RESPONSIVE + HAMBURGER TOGGLE) === */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo .logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #0b6d3a;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 550px;
  margin: 0 16px;
}

.search-bar {
  flex: 1;
  padding: 9px 14px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.search-btn {
  padding: 9px 16px;
  background: #0b6d3a;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}
.search-btn:hover { background: #095832; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart {
  cursor: pointer;
  font-size: 1.3rem;
  position: relative;
}

.cart-icon {
  cursor: pointer;
  font-size: 1.2em;
}

.cart-count {
  background: #0b6d3a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  padding: 2px 6px;
  position: absolute;
  top: -8px;
  right: -12px;
}

/* === Hamburger Toggle === */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #0b6d3a;
  transition: transform 0.2s ease;
}
.menu-toggle:hover {
  transform: scale(1.1);
}
.menu-toggle.active {
  color: #054e27;
}

/* === Category Navigation === */
.category-nav {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
  flex-wrap: wrap;
  justify-content: center;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;

  /* hidden state */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.35s ease-in-out;
}

/* When toggled open */
.category-nav.visible {
  padding: 12px 16px;
  max-height: 300px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}

/* Smooth scroll on mobile */
.category-nav::-webkit-scrollbar {
  height: 6px;
}
.category-nav::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.category-nav::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.category-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #0b6d3a;
  color: #fff;
  border-color: #0b6d3a;
}

.category-btn.highlight {
  background: #f6f6f6;
  border-color: #ccc;
}

/* === Responsive Design === */
@media (max-width: 900px) {
  .header-top {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 10px;
  }

  .menu-toggle {
    font-size: 1.9rem;
  }

  .category-nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .category-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin-bottom: 8px;
  }
}

/* ==========================
   SCROLL BANNER
========================== */
.scroll-banner {
  background: #007b2b;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
  animation: scrollText 15s linear infinite;
}

@keyframes scrollText {
  from { background-position: 0 0; }
  to { background-position: -200px 0; }
}

/* ==========================
   PRODUCT GRID
========================== */
/* ==========================
   PRODUCT GRID
========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 1rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-info {
  padding: 0.6rem;
}

.product-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #222;
}

.price {
  color: #007b2b;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* === Quantity Input + Add Button === */
.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.qty-input {
  width: 55px;
  padding: 5px;
  font-size: 0.8rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.qty-input:focus {
  border-color: #007b2b;
}

.add-btn {
  padding: 6px 10px;
  background: #007b2b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
}

.add-btn:hover {
  background: #005f1f;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .product-card img {
    height: 130px;
  }
  .product-name {
    font-size: 0.85rem;
  }
  .qty-input {
    width: 48px;
    font-size: 0.75rem;
  }
  .add-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

/* ==========================
   AD / PROMO BANNER BLOCK
========================== */
.promo-banner {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #e9f9ef, #fff);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #007b2b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ==========================
   ABOUT & FOOTER
========================== */
.about-us {
  background: #fff;
  margin-top: 1rem;
  padding: 2rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about-text {
  flex: 1 1 300px;
}

.about-text h2 {
  color: #007b2b;
  margin-bottom: 10px;
}

.slideshow-container {
  flex: 1 1 300px;
  position: relative;
}

.slideshow-container img {
  width: 100%;
  border-radius: 12px;
}

.footer {
  background: #222;
  color: #ddd;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand, .footer-contact, .footer-map {
  flex: 1 1 250px;
}

.footer-logo {
  height: 50px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .product-card img {
    height: 120px;
  }
  .scroll-banner {
    font-size: 0.9rem;
  }
}


/* === CART SIDEBAR === */
.cart-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 360px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 10px rgba(0,0,0,0.15);
  transition: right 0.35s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}
.cart-sidebar.active { right: 0; }

/* Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: #f8f8f8;
}
.cart-header h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; color: #0b6d3a; margin: 0; }
.close-btn {
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: #333;
}

/* Items */
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.cart-item img {
  width: 55px; height: 55px;
  border-radius: 6px;
  object-fit: cover;
}
.cart-item-details {
  flex: 1;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
.cart-item-price {
  color: #0b6d3a;
  font-weight: 500;
  margin-top: 4px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-item-qty input {
  width: 45px;
  padding: 4px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Footer */
.cart-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.cart-total {
  font-size: 1rem;
  color: #0b6d3a;
  font-weight: 600;
  margin-bottom: 12px;
}
.place-order-btn,
.checkout-btn,
.clear-cart-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 50px;
  margin-top: 8px;
  font-weight: 600;
  cursor: pointer;
}
.place-order-btn {
  background: #0b6d3a;
  color: #fff;
}
.place-order-btn:hover { background: #095832; }
.checkout-btn {
  background: #f0f0f0;
}
.clear-cart-btn {
  background: #ffeaea;
  color: #a00;
}
.clear-cart-btn:hover { background: #ffcccc; }

.customer-details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.customer-details.hidden { display: none; }
.customer-details input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .cart-sidebar { width: 90%; }
}
