/* ============================================================
   NAV DHENU — E-Commerce Design System
   Brand: Forest Green #1a6b30 · Gold #f5a800 · Cream #fffbf0
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --green-dark: #0d4a20;
  --green-mid: #1a6b30;
  --green-light: #d4f0a0;
  --gold: #f5a800;
  --orange: #e65c00;
  --orange-light: #f5a800;
  --cream: #fffbf0;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.14);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
}

/* ── Typography ── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ── Top bar ── */
.topbar {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding: 7px 0;
  letter-spacing: 0.01em;
}
.topbar a {
  color: rgba(255, 255, 255, 0.85);
}
.topbar a:hover {
  color: var(--gold);
}

/* ── Main Navbar ── */
.main-navbar {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.navbar-brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.navbar-brand-text span {
  color: var(--gold);
}
.nav-link {
  font-weight: 500;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.9rem;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-mid) !important;
  background: rgba(26, 107, 48, 0.06);
}

/* Cart badge */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff !important;
  border-radius: 50px;
  padding: 7px 18px !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}
.cart-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.cart-badge {
  background: #fff;
  color: var(--orange);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wishlist-btn {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}
.wishlist-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.1);
}

/* ══ MEGA MENU — full redesign ══ */
.products-dropdown {
  display: inline-flex;
  align-items: center;
}

/* Invisible bridge so cursor can move from button to megamenu without hover break */
.products-dropdown::after {
  content: '';
  display: block;
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 12px;  /* covers any sub-pixel gap */
}


.megamenu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14);
  z-index: 1020;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s;
  pointer-events: none;
}
/* Position megamenu just below the sticky navbar */
.main-navbar:has(.products-dropdown:hover) {
  z-index: 1040;
}
/* Keep Products nav-link highlighted while megamenu is open */
.products-dropdown:hover .megamenu-trigger {
  color: var(--green-mid) !important;
  background: rgba(26, 107, 48, 0.06);
}
.products-dropdown:hover .megamenu-wrapper,
.megamenu-wrapper:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
/* Rotate chevron on hover */
.products-dropdown:hover .mm-chevron {
  transform: rotate(180deg);
}

/* ── Offer strip at top of megamenu ── */
.mm-offer-strip {
  background: linear-gradient(
    90deg,
    var(--green-dark) 0%,
    var(--green-mid) 100%
  );
}
.mm-offer-strip .container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 40px;
}
.mm-offer-badge {
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── Column headings ── */
.mm-col-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-view-all-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0;
  text-transform: none;
}
.mm-view-all-link:hover {
  color: var(--green-dark);
}

/* ── Col 1: Categories ── */
.mm-col-cats {
  padding-right: 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.mm-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
  cursor: pointer;
  overflow: hidden;
}
.mm-cat-item:hover {
  transform: translateX(3px);
}
.mm-cat-item:hover {
  background: #f0fdf4;
  color: var(--green-mid);
}
.mm-cat-item:hover .mm-cat-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.mm-cat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.mm-cat-text {
  flex: 1;
  min-width: 0;
}
.mm-cat-name {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-cat-count {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.mm-cat-arrow {
  font-size: 0.65rem;
  color: var(--green-mid);
  opacity: 0;
  transition:
    opacity 0.15s,
    transform 0.15s;
}

/* ── Col 2: Featured products grid ── */
.mm-col-featured {
  padding: 0 20px;
  border-right: 1px solid var(--border);
}
.mm-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mm-product-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  border: 1.5px solid transparent;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.mm-product-card:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.mm-product-thumb {
  position: relative;
  height: 100px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mm-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.mm-product-card:hover .mm-product-thumb img {
  transform: scale(1.06);
}
.mm-product-emoji {
  font-size: 2.2rem;
}
.mm-product-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50px;
}
.mm-product-badge.a2 {
  background: var(--gold);
  color: #1f2937;
}
.mm-product-badge.new {
  background: #3b82f6;
  color: #fff;
}
.mm-product-info {
  padding: 7px 8px 9px;
}
.mm-product-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.mm-product-price > :first-child {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
}
.mm-product-mrp {
  font-size: 0.68rem;
  color: #9ca3af;
  text-decoration: line-through;
}
.mm-product-save {
  font-size: 0.62rem;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 50px;
}

/* ── Col 3: Deals & Quick picks ── */
.mm-col-deals {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mm-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mm-pill-a2 {
  background: #f0fdf4;
  color: var(--green-mid);
  border-color: var(--green-light);
}
.mm-pill-a2:hover {
  background: var(--green-mid);
  color: #fff;
}
.mm-pill-new {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.mm-pill-new:hover {
  background: #1d4ed8;
  color: #fff;
}
.mm-pill-hot {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.mm-pill-hot:hover {
  background: #c2410c;
  color: #fff;
}

.mm-side-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 14px;
}
.mm-side-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.mm-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mm-side-list li:last-child .mm-side-item {
  border-bottom: none;
}
.mm-side-item:hover {
  color: var(--green-mid);
}
.mm-side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
}
.mm-side-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-side-price {
  font-weight: 700;
  color: var(--green-mid);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.mm-promo-card {
  background: linear-gradient(
    135deg,
    var(--green-dark) 0%,
    var(--green-mid) 60%,
    #2e7d32 100%
  );
  border-radius: 14px;
  padding: 16px 18px;
  color: #fff;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.mm-promo-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.mm-promo-emoji {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.mm-promo-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.mm-promo-text {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 12px;
  line-height: 1.5;
}
.mm-promo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mm-promo-btn {
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.mm-promo-btn:hover {
  opacity: 0.88;
  color: var(--green-dark);
}
.mm-promo-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 6px 0;
  align-self: center;
}
.mm-promo-link:hover {
  color: var(--gold);
}

/* ══ CATEGORY QUICK-STRIP ══ */
.cat-quick-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.cat-strip-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 7px 0;
  scrollbar-width: none;
}
.cat-strip-scroll::-webkit-scrollbar {
  display: none;
}
.cat-strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: var(--transition);
  flex-shrink: 0;
}
.cat-strip-pill:hover {
  background: #f0fdf4;
  color: var(--green-mid);
  border-color: var(--green-light);
}
.cat-strip-pill.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  font-weight: 600;
}
.cat-strip-pill.a2-pill {
  border-color: var(--green-light);
  color: var(--green-mid);
}
.cat-strip-pill.a2-pill:hover,
.cat-strip-pill.a2-pill.active {
  background: var(--green-mid);
  color: #fff;
  border-color: var(--green-mid);
}
.cat-strip-pill.new-pill {
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.cat-strip-pill.new-pill:hover {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

/* ── Buttons ── */
.btn-primary-nd {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(230, 92, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-nd:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 92, 0, 0.38);
  color: #fff;
}
.btn-green-nd {
  background: linear-gradient(135deg, var(--green-mid), #2a8a42);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(26, 107, 48, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-green-nd:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}
.btn-outline-nd {
  background: transparent;
  border: 2px solid var(--green-mid);
  border-radius: 50px;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 22px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-nd:hover {
  background: var(--green-mid);
  color: #fff;
}

/* ── Product Card ── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(26, 107, 48, 0.12);
}
.product-img-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  background: #f8f8f0;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img.primary {
  opacity: 0;
}
.product-card:hover .product-img-wrap img.secondary {
  opacity: 1;
}
.product-img-wrap img.secondary {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}
.badge-a2 {
  background: var(--gold);
  color: #1f2937;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.badge-bestseller {
  background: var(--green-mid);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}
.badge-new {
  background: #3b82f6;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}
.badge-off {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
}
.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
  z-index: 2;
  border: none;
}
.wishlist-icon:hover {
  color: #ef4444;
  background: #fff;
}
.product-info {
  padding: 14px 16px 16px;
}
.product-category {
  font-size: 0.7rem;
  color: var(--green-mid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.stars {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.review-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.price-sale {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
}
.price-mrp {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-save {
  font-size: 0.72rem;
  color: #16a34a;
  font-weight: 600;
}
.add-cart-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--green-mid);
  font-size: 0.8rem;
  transition: background var(--transition);
}
.qty-btn:hover {
  background: var(--green-light);
}
.qty-num {
  width: 26px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-add-cart:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Category card ── */
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--green-light);
}
.cat-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  transition: transform var(--transition);
}
.cat-card:hover .cat-icon {
  transform: scale(1.15);
}
.cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Hero/Banner Slider ── */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  display: none;
  position: relative;
  min-height: 460px;
  background: linear-gradient(
    135deg,
    var(--green-dark) 0%,
    var(--green-mid) 50%,
    #2a8a42 100%
  );
}
.hero-slide.active {
  display: block;
}
.hero-slide .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  color: #fff;
}
.slide-content h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}
.slide-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 480px;
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 50px;
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}
.slider-arrow.prev {
  left: 20px;
}
.slider-arrow.next {
  right: 20px;
}

/* ── USP Strip ── */
.usp-strip {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 14px 0;
  color: #fff;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 0;
}
.usp-item .usp-icon {
  font-size: 1.2rem;
}

/* ── Section Layouts ── */
.section {
  padding: 60px 0;
}
.section-alt {
  background: #f8fdf4;
}

/* ── Horizontal scroll carousel ── */
.product-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}
.product-carousel::-webkit-scrollbar {
  height: 4px;
}
.product-carousel::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 4px;
}
.product-carousel::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
.product-carousel .product-card {
  min-width: 220px;
  max-width: 220px;
  scroll-snap-align: start;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}
.footer-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  margin-bottom: 14px;
}
.footer-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.footer-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: translateY(-2px);
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 0;
  margin-top: 40px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.whatsapp-float .wa-tooltip {
  position: absolute;
  right: 68px;
  background: #25d366;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
}

/* ── Newsletter bar ── */
.newsletter-bar {
  background: linear-gradient(135deg, #1a3a2e, var(--green-mid));
  padding: 36px 0;
}

/* ── Breadcrumb ── */
.breadcrumb-nd {
  padding: 14px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb-nd a {
  color: var(--green-mid);
}
.breadcrumb-nd a:hover {
  color: var(--green-dark);
}

/* ── Product Detail ── */
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fdf4;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbnail-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.thumbnail-item {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #f8fdf4;
  transition: var(--transition);
  flex-shrink: 0;
}
.thumbnail-item.active,
.thumbnail-item:hover {
  border-color: var(--green-mid);
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.price-block-detail {
  background: #f8fdf4;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}
.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}
.detail-mrp {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin: 0 8px;
}
.detail-save {
  font-size: 0.85rem;
  background: #dcfce7;
  color: #16a34a;
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.nutri-table {
  width: 100%;
}
.nutri-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.nutri-table td:first-child {
  color: var(--text-muted);
}
.nutri-table td:last-child {
  font-weight: 600;
}

/* Star rating distribution */
.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.rating-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 50px;
  transition: width 0.5s ease;
}

/* ── Cart ── */
.cart-item {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 16px;
  align-items: center;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: #f8fdf4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.order-summary-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ── Step indicator ── */
.step-indicator {
  display: flex;
  align-items: center;
  margin: 24px 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.step-item::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.step-item:last-child::after {
  display: none;
}
.step-item.active::after,
.step-item.completed::after {
  background: var(--green-mid);
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.step-item.active .step-circle {
  background: var(--green-mid);
  color: #fff;
}
.step-item.completed .step-circle {
  background: var(--green-mid);
  color: #fff;
}
.step-label {
  font-size: 0.72rem;
  margin-top: 6px;
  color: var(--text-muted);
  font-weight: 500;
}
.step-item.active .step-label {
  color: var(--green-mid);
}

/* ── Order confirm ── */
.order-success-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--green-mid), #2a8a42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(26, 107, 48, 0.35);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes successPop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
.order-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}
.order-timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.timeline-step.done .timeline-dot {
  background: var(--green-mid);
  color: #fff;
}
.timeline-label {
  font-size: 0.7rem;
  text-align: center;
  color: var(--text-muted);
  max-width: 70px;
}
.timeline-step.done .timeline-label {
  color: var(--green-mid);
  font-weight: 600;
}

/* ── Profile sidebar ── */
.profile-sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.profile-sidebar .nav-link {
  border-radius: 0;
  padding: 14px 20px !important;
  font-size: 0.88rem;
  border-left: 3px solid transparent;
  color: var(--text) !important;
}
.profile-sidebar .nav-link:hover,
.profile-sidebar .nav-link.active {
  background: #f8fdf4;
  border-left-color: var(--green-mid);
  color: var(--green-mid) !important;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

/* ── Admin sidebar ── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 250px;
  background: var(--green-dark);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  transition: transform var(--transition);
}
.admin-sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar-logo img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
}
.admin-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-left: 10px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  cursor: pointer;
}
.admin-nav-link:hover,
.admin-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--gold);
}
.admin-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  padding: 16px 20px 6px;
}
.admin-main {
  margin-left: 250px;
  flex: 1;
  background: #f3f4f6;
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}
.admin-content {
  padding: 28px;
}
.kpi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--green-mid);
}
.kpi-card.gold {
  border-left-color: var(--gold);
}
.kpi-card.orange {
  border-left-color: var(--orange);
}
.kpi-card.blue {
  border-left-color: #3b82f6;
}
.kpi-card.red {
  border-left-color: #ef4444;
}
.kpi-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-dark);
  font-family: "Playfair Display", serif;
  line-height: 1;
  margin-bottom: 4px;
}
.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.admin-table {
  font-size: 0.87rem;
}
.admin-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
  padding: 12px 16px;
}
.admin-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* Order status badges */
.status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-block;
}
.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.status-confirmed {
  background: #dbeafe;
  color: #1e40af;
}
.status-processing {
  background: #e0e7ff;
  color: #3730a3;
}
.status-shipped {
  background: #cffafe;
  color: #155e75;
}
.status-out_for_delivery {
  background: #dcfce7;
  color: #166534;
}
.status-delivered {
  background: #d1fae5;
  color: #065f46;
}
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.status-returned {
  background: #f3f4f6;
  color: #6b7280;
}

/* ── About ── */
.process-step {
  text-align: center;
  position: relative;
}
.process-step::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 24px;
  font-size: 1.2rem;
  color: var(--gold);
}
.process-step:last-child::after {
  display: none;
}
.process-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--green-light), #b8f0b8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  border: 2px solid var(--green-mid);
}

/* ── Testimonials ── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border-top: 3px solid var(--gold);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}
.testimonial-body {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Forms ── */
.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26, 107, 48, 0.1);
  outline: none;
}
.form-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 5px;
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}
.empty-state h4 {
  color: var(--text);
  margin-bottom: 8px;
}

/* ── Password strength bar ── */
.strength-bar {
  height: 4px;
  border-radius: 50px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 50px;
  transition:
    width 0.3s,
    background 0.3s;
}

/* ── Price range slider ── */
input[type="range"] {
  accent-color: var(--green-mid);
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .megamenu-wrapper {
    position: fixed;
    top: auto;
  }
}
@media (max-width: 768px) {
  .hero-slide {
    min-height: 320px;
  }
  .slide-content {
    padding: 50px 0;
  }
  .product-carousel .product-card {
    min-width: 190px;
    max-width: 190px;
  }
  .usp-strip .usp-item {
    font-size: 0.75rem;
  }
}
@media (max-width: 576px) {
  .topbar .d-flex {
    flex-wrap: wrap;
    gap: 4px;
  }
  .cart-btn span.d-none-sm {
    display: none;
  }
  .section {
    padding: 40px 0;
  }
}

/* ── Utility ── */
.text-gold {
  color: var(--gold);
}
.text-green {
  color: var(--green-mid);
}
.text-dark-green {
  color: var(--green-dark);
}
.bg-cream {
  background: var(--cream);
}
.bg-green {
  background: var(--green-mid);
  color: #fff;
}
.border-gold {
  border-color: var(--gold) !important;
}
.fw-600 {
  font-weight: 600;
}
.rounded-nd {
  border-radius: var(--radius);
}
.shadow-nd {
  box-shadow: var(--card-shadow);
}

/* page load animation */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Toast / notification ── */
.toast-container-nd {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast-nd {
  background: var(--green-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation:
    slideInRight 0.3s ease,
    fadeOutRight 0.4s ease 2.6s forwards;
  max-width: 300px;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOutRight {
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

/* A2 infographic */
.a2-vs-a1 {
  background: linear-gradient(135deg, #f8fdf4, #ecfdf5);
  border-radius: var(--radius);
  padding: 32px;
}
.a2-col {
  text-align: center;
}
.a2-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* Certifications */
.cert-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: #fff;
  border: 2px solid var(--gold);
  box-shadow: var(--card-shadow);
}

/* ── Navbar scroll effect ── */
.main-navbar {
  transition: box-shadow 0.3s;
}
.main-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

/* ── Active nav underline ── */
.nav-link {
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green-mid);
  border-radius: 2px;
}

/* ── Wishlist count dot ── */
.wishlist-btn {
  position: relative;
}
.wl-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
}

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 2100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  width: min(660px, calc(100vw - 24px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: translateY(-18px);
  transition: transform 0.22s ease;
}
.search-overlay.open .search-box {
  transform: translateY(0);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 12px;
  background: #fff;
}
.search-input-wrap .si-icon {
  color: var(--green-mid);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: transparent;
}
.search-input-wrap input::placeholder {
  color: #b0b7c3;
}
.search-close-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 0.74rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  font-family: monospace;
}
.search-close-btn:hover {
  background: #e5e7eb;
}
.search-hr {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}
.search-quick-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
}
.search-quick-tag {
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: #f0fdf4;
  color: var(--green-mid);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.search-quick-tag:hover {
  background: var(--green-mid);
  color: #fff;
}
.search-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 8px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background 0.14s;
}
.search-result-item:hover {
  background: #f0fdf4;
}
.search-result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-result-price {
  font-size: 0.82rem;
  color: var(--green-mid);
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.search-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: #f8f9fa;
  border-top: 1px solid var(--border);
}
.search-footer-bar small {
  font-size: 0.7rem;
  color: #9ca3af;
}
.search-view-all-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-mid);
  text-decoration: none;
}
.search-view-all-link:hover {
  color: var(--green-dark);
}
.search-empty-state {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.search-empty-state .se-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}
.search-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}



/* ================================================================
   PRODUCT CARD  (pc-*)  —  Clean standard card
   Works in all browsers, no mask/clip tricks
   ================================================================ */

.pc {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8eaed;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pc:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.11);
}

/* Image zone */
.pc-img-link { display: block; text-decoration: none; flex-shrink: 0; }
.pc-img-wrap {
  position: relative;
  height: 180px;
  background: #f5f6f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.pc-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .32s ease;
}
.pc:hover .pc-img-wrap img { transform: scale(1.04); }
.pc-emoji { font-size: 3.5rem; line-height: 1; }

/* Badges — top-left of image */
.pc-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  z-index: 2;
}
.pc-badge {
  font-size: .54rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.pc-b-a2  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.pc-b-new { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pc-b-hot { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Info body */
.pc-body {
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #f0f1f3;
}
.pc-cat {
  font-size: .58rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.pc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 2px;
  text-decoration: none;
}
.pc-name:hover { color: #1a6b30; }
.pc-unit {
  font-size: .7rem;
  color: #9ca3af;
  margin-bottom: 8px;
  flex: 1;
}

/* Price — sits above action bar */
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.pc-price-now {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}
.pc-price-was {
  font-size: .7rem;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1;
}

/* ── Bottom action bar: [Disc pill] [QV] [WL]        [+] ── */
.pc-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f1f3;
  gap: 4px;
}
.pc-actions-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
}

/* Discount pill */
.pc-disc-pill {
  font-size: .6rem;
  font-weight: 800;
  color: #1a6b30;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
  letter-spacing: .03em;
  margin-right: auto;
}

/* Shared icon button base — no border, no box-shadow */
.pc-action-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform .16s ease, color .16s ease;
  flex-shrink: 0;
  padding: 0;
}

/* Quick View button */
.pc-qv-btn { color: #9ca3af; }
.pc-qv-btn:hover { color: #1a6b30; transform: scale(1.18); }

/* Wishlist button */
.pc-wl-btn { color: #d1d5db; }
.pc-wl-btn:hover { color: #ef4444; transform: scale(1.18); }
.pc-wl-btn.wishlisted { color: #ef4444; }
.pc-wl-btn.wishlisted .pc-heart-icon { fill: #ef4444; }

/* Add to cart button */
.pc-add-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6b30, #2e9e50);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(26,107,48,.32);
  transition: transform .18s ease, box-shadow .18s ease;
  flex-shrink: 0;
}
.pc-add-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 5px 16px rgba(26,107,48,.46);
}
.pc-add-btn:active { transform: scale(.93); }

@media (max-width: 575px) {
  .pc-img-wrap { height: 150px; }
  .pc-name { font-size: .82rem; }
  .pc-price-now { font-size: .9rem; }
  .pc-action-btn { width: 28px; height: 28px; min-width: 28px; font-size: 12px; }
  .pc-add-btn { width: 30px; height: 30px; min-width: 30px; font-size: 1.2rem; }
}



/* ── Button CSS spinner (no FA dependency) ── */
.btn-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .65s linear infinite;
  vertical-align: middle;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
