/* ============================================================
   Syno Herbal – Main Stylesheet
   Mobile-First | Ayurvedic Theme | Dark Green + Gold + Black
   ============================================================ */

/* ─── CSS VARIABLES ──────────────────────────────────────────────────────────── */
:root {
  --green-dark:    #0f3d1f;
  --green-main:    #1a5c2b;
  --green-mid:     #2d7a42;
  --green-light:   #4caf6e;
  --green-pale:    #e8f5ec;
  --gold-dark:     #b8860b;
  --gold-main:     #c9a227;
  --gold-light:    #f0c040;
  --gold-pale:     #fef9e7;
  --black:         #0d0d0d;
  --gray-900:      #1a1a1a;
  --gray-800:      #2d2d2d;
  --gray-700:      #4a4a4a;
  --gray-600:      #6b6b6b;
  --gray-500:      #909090;
  --gray-400:      #b5b5b5;
  --gray-300:      #d4d4d4;
  --gray-200:      #e8e8e8;
  --gray-100:      #f5f5f5;
  --white:         #ffffff;
  --red:           #e53935;
  --orange:        #f57c00;
  --blue:          #1565c0;
  --font-primary:  'Inter', system-ui, sans-serif;
  --font-heading:  'Inter', system-ui, sans-serif;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-pill:   999px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.16);
  --shadow-gold:   0 4px 20px rgba(201,162,39,0.3);
  --trans-fast:    0.15s ease;
  --trans-mid:     0.25s ease;
  --trans-slow:    0.4s ease;
  --mobile-nav-h:  60px;
  --header-h:      130px;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%;
  scrollbar-gutter: auto;
}
body {
  font-family: var(--font-primary);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: var(--mobile-nav-h);
}
.site-wrapper, .main-content { width: 100%; max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--trans-fast); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(26,92,43,0.12);
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--green-dark); }

/* ─── CONTAINER ──────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0.7rem 1.5rem; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--trans-mid); white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-gold {
  background: var(--gold-main); color: var(--white);
  border-color: var(--gold-main);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-green {
  background: var(--green-main); color: var(--white);
  border-color: var(--green-main);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn-outline-gold {
  background: transparent; color: var(--gold-main);
  border-color: var(--gold-main);
}
.btn-outline-gold:hover { background: var(--gold-pale); }
.btn-outline-green {
  background: transparent; color: var(--green-main);
  border-color: var(--green-main);
}
.btn-outline-green:hover { background: var(--green-pale); }
.btn-sm  { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg  { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #20b858; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }

/* ─── BADGES / PILLS ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700;
  background: var(--red); color: #fff;
}
.badge-green   { background: var(--green-main); }
.badge-gold    { background: var(--gold-main); color: #fff; }
.badge-success { background: #2e7d32; color: #fff; }
.badge-warning { background: var(--orange); color: #fff; }
.badge-danger  { background: var(--red); color: #fff; }
.badge-info    { background: var(--blue); color: #fff; }
.badge-secondary { background: var(--gray-600); color: #fff; }
.badge-dark    { background: var(--gray-900); color: #fff; }
.badge-primary { background: #6a1b9a; color: #fff; }
.badge-pill { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 500; }

/* ─── CARD ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--trans-mid), transform var(--trans-mid);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ─── PRODUCT CARD ───────────────────────────────────────────────────────────── */
.product-card {
  position: relative; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--trans-mid);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.product-card-img {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--green-pale);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--trans-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--red); color: #fff;
  padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; line-height: 1.4;
}
.product-badge.badge-green { background: var(--green-main); }
.product-badge.badge-gold  { background: var(--gold-main); }

.product-card-wishlist {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
  border: none; transition: all var(--trans-fast);
  color: var(--gray-500);
}
.product-card-wishlist:hover,
.product-card-wishlist.active { color: var(--red); background: #fff; }
.product-card-wishlist.active svg { fill: var(--red); }

.product-card-body { padding: 10px 12px 12px; }
.product-card-category {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--green-mid); margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--font-heading); font-size: 0.95rem;
  font-weight: 600; color: var(--gray-900);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { display: flex; gap: 1px; }
.star { color: var(--gold-main); font-size: 0.8rem; }
.star.empty { color: var(--gray-300); }
.rating-count { font-size: 0.72rem; color: var(--gray-500); }

.product-card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); }
.price-original { font-size: 0.85rem; text-decoration: line-through; color: var(--gray-400); }
.price-discount { font-size: 0.75rem; font-weight: 700; color: var(--red); }

.product-card-add {
  width: 100%; padding: 0.5rem; background: var(--green-main);
  color: #fff; border-radius: var(--radius-md); border: none;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all var(--trans-fast); display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-card-add:hover { background: var(--green-dark); }
.product-card-add.out-of-stock { background: var(--gray-400); cursor: not-allowed; }

/* ─── PCARD (universal product card) ─────────────────────────────────────────── */
.pcard { background: #fff; border-radius: 16px; border: 1px solid #f0f0f0; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.pcard:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); transform: translateY(-3px); }
.pcard-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f5f7f5; display: flex; align-items: center; justify-content: center; }
.pcard-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform 0.3s; }
.pcard:hover .pcard-img { transform: scale(1.05); }
.pcard-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #ff4747, #e03000); color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 3px 9px;
  border-radius: 20px; z-index: 1; letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(224,48,0,0.3);
}
.pcard-badge-flash { background: linear-gradient(135deg, #f97316, #ef4444); box-shadow: 0 2px 6px rgba(239,68,68,0.3); }
.pcard-badge-new  { background: linear-gradient(135deg, #1a5c2b, #2d8a48); box-shadow: 0 2px 6px rgba(26,92,43,0.3); }
.pcard-badge-sale { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 2px 6px rgba(245,158,11,0.3); }
.pcard-badge-hot  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.pcard-badge-prem { background: linear-gradient(135deg, #7c3d00, #c96a00); box-shadow: 0 2px 6px rgba(201,106,0,0.3); }
.pcard-wish { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: #9ca3af; z-index: 1; }
.pcard-wish:hover { background: #fff; color: #ef4444; transform: scale(1.1); }
.pcard-wish.active { color: #ef4444; }
.pcard-wish.active svg { fill: #ef4444; }
.pcard-body { padding: 12px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.pcard-cat { font-size: 0.7rem; color: #1a5c2b; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.pcard-name { font-size: 0.86rem; font-weight: 600; color: #1a2e1a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a { text-decoration: none; color: inherit; }
.pcard-stars { font-size: 0.72rem; color: #f59e0b; display: flex; align-items: center; gap: 4px; }
.pcard-stars small { color: #9ca3af; }
.pcard-price { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pp-cur { font-size: 0.95rem; font-weight: 800; color: #1a5c2b; }
.pp-old { font-size: 0.76rem; color: #9ca3af; text-decoration: line-through; }
.pcard-btn { margin-top: auto; padding: 9px 0; background: #1a5c2b; color: #fff; border: none; border-radius: 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; width: 100%; }
.pcard-btn:hover { background: #0f3d1f; }
.products-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.products-scroll { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ─── SECTION HEADER ─────────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--green-dark); position: relative;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--gold-main); border-radius: 2px; margin-top: 4px;
}
.section-link { font-size: 0.85rem; font-weight: 600; color: var(--green-main); }
.section-link:hover { color: var(--gold-main); }

/* ─── FLASH MESSAGE ──────────────────────────────────────────────────────────── */
.flash-message {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 9999; min-width: 280px; max-width: 90%;
  padding: 12px 16px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.flash-error   { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.flash-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }
.flash-warning { background: #fff8e1; color: #e65100; border-left: 4px solid #e65100; }
.flash-close { background: none; border: none; font-size: 1rem; cursor: pointer; opacity: 0.6; }
.flash-close:hover { opacity: 1; }
@keyframes slideDown { from { opacity:0; transform:translateX(-50%) translateY(-12px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ─── DESKTOP HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

/* ── Top Bar ── */
.header-topbar {
  background: linear-gradient(90deg, #061810 0%, #0d3318 40%, #1a5c2b 100%);
  color: rgba(255,255,255,0.88); font-size: 0.77rem; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-left  { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.topbar-right { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.topbar-center { flex: 1; overflow: hidden; }
.tb-marquee-wrap { overflow: hidden; width: 100%; }
.tb-marquee {
  display: flex; align-items: center; gap: 18px; white-space: nowrap;
  animation: tbMarquee 28s linear infinite;
}
.tb-marquee:hover { animation-play-state: paused; }
.tb-marquee span { font-size: 0.74rem; color: rgba(255,255,255,0.82); white-space: nowrap; }
.tb-msep { color: #c9a227 !important; font-size: 0.6rem !important; }
@keyframes tbMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tb-link {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.82); text-decoration: none; transition: color .2s;
  font-size: 0.75rem;
}
.tb-link:hover { color: #e8b83b; }
.tb-link-highlight { color: #e8b83b; font-weight: 600; }
.tb-sep { color: rgba(255,255,255,0.3); }
.tb-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  color: rgba(255,255,255,0.82); text-decoration: none;
  transition: all 0.18s; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.tb-icon-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.tb-icon-gold { color: #e8b83b; border-color: rgba(232,184,59,0.3); background: rgba(232,184,59,0.08); }
.tb-icon-gold:hover { background: rgba(232,184,59,0.2); }

/* ── Main Header ── */
.header-main { padding: 10px 0; background: #fff; position: relative; z-index: 30; overflow: visible; }
/* 3-column layout: logo | search (centered) | actions */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-mark { flex-shrink: 0; transition: transform .3s; }
.site-logo:hover .logo-mark { transform: rotate(-5deg) scale(1.05); }
.site-logo-img {  height: 55px; object-fit: contain; border-radius: 14px; display: block; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.15; }
.logo-brand { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; color: #1a2e1a; }
.logo-syno { color: #1a5c2b; }
.logo-tagline { font-size: 0.64rem; color: #9ca3af; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* ── Search Bar ── */
.header-search { position: relative; width: 100%; max-width: 760px; margin: 0 auto; z-index: 40; }
.search-form { position: relative; }
.search-wrap {
  display: flex; align-items: center; position: relative;
  background: #f8fdf8; border: 2px solid #c8e6c9; border-radius: 50px;
  transition: all .25s; overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,92,43,0.06);
}
.search-wrap:focus-within {
  border-color: #1a5c2b; background: #fff;
  box-shadow: 0 0 0 4px rgba(26,92,43,0.10), 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.search-icon-left {
  position: absolute; left: 16px; color: #1a5c2b; pointer-events: none; flex-shrink: 0;
  opacity: 0.6; transition: opacity 0.2s;
}
.search-wrap:focus-within .search-icon-left { opacity: 1; }
.search-input {
  flex: 1; padding: 11px 14px 11px 46px; border: none; background: transparent;
  font-size: 0.875rem; font-family: inherit; outline: none; color: #1a2e1a;
  min-width: 0;
}
.search-input::placeholder { color: #9cb8a4; }
.search-btn {
  flex-shrink: 0; padding: 0 22px; height: 44px;
  background: linear-gradient(135deg, #1a5c2b, #0f3d1f);
  color: #fff; border: none; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s; letter-spacing: 0.3px;
  border-radius: 0 50px 50px 0; display: flex; align-items: center; gap: 6px;
}
.search-btn:hover { background: linear-gradient(135deg, #0f3d1f, #071a0e); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.search-btn svg { display: none; }
@media (max-width: 900px) { .search-btn span { display: none; } .search-btn svg { display: block; } }
.search-clear-btn {
  background: #f0f0f0; border: none; cursor: pointer; color: #6b7280;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 6px;
  display: none; font-size: 0.75rem; line-height: 1; transition: all 0.2s;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.search-clear-btn:hover { background: #fecaca; color: #ef4444; }
.search-clear-btn.visible { display: flex; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 7000;
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15); padding: 8px 0;
  max-height: 440px; overflow-y: auto; display: none;
  border: 1px solid #f0f0f0;
}
.search-dropdown.open { display: block; animation: searchDdFade 0.18s ease; }
@keyframes searchDdFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.hdr-act {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative; padding: 6px 9px; border-radius: 14px;
  color: #4b5563; text-decoration: none; transition: all .2s;
  border: none; cursor: pointer; background: transparent; font-family: inherit;
}
.hdr-act:hover { background: #f0f8f2; color: #1a5c2b; }
.hdr-act-label { font-size: 0.63rem; font-weight: 600; color: inherit; letter-spacing: 0.2px; white-space: nowrap; }
.hdr-badge {
  position: absolute; top: 3px; right: 5px;
  background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(239,68,68,0.4);
}
/* Hide badge when empty */
.hdr-badge:empty { display: none; }
.hdr-act-cart { color: #1a5c2b; }
.hdr-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #1a5c2b, #2d8a48);
  color: #fff; font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.user-avatar-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.hdr-login-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  font-size: 0.83rem; font-weight: 600; color: #374151; text-decoration: none;
  transition: all .2s; background: #f8fafc;
}
.hdr-login-btn:hover { border-color: #1a5c2b; color: #1a5c2b; background: #f0f8f2; }
.hdr-signup-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 10px;
  background: linear-gradient(135deg, #1a5c2b, #0f3d1f);
  color: #fff; font-size: 0.83rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,92,43,0.28); transition: all .2s;
}
.hdr-signup-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(26,92,43,0.38); }

.header-user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 99999;
  background: #fff; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  min-width: 220px; padding: 6px 0; display: none; border: 1px solid #f0f0f0;
  /* ensure it renders above the sticky nav */
  transform: translateZ(0);
}
/* open via JS class (also keep hover for desktop) */
.header-user-menu:hover .user-dropdown,
.user-dropdown.open { display: block; animation: ddFadeIn .18s ease; }
@keyframes ddFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown-header {
  padding: 12px 16px 10px; border-bottom: 1px solid #f5f5f5;
}
.user-dropdown-header strong { display: block; font-size: 0.9rem; color: #1a2e1a; }
.user-dropdown-header small { color: #9ca3af; font-size: 0.78rem; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  font-size: 0.86rem; color: #374151; text-decoration: none; transition: background .15s;
}
.dropdown-item:hover { background: #f5f7f5; color: #1a5c2b; }
.dropdown-item.text-danger { color: #dc2626; }
.dropdown-divider { border-top: 1px solid #f5f5f5; margin: 4px 0; }

/* ─── NAV / MEGA MENU ────────────────────────────────────────────────────────── */
.site-nav {
  background: linear-gradient(90deg, #0a2e14 0%, #1a5c2b 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; /* anchor for mega menu */
  z-index: 10; /* keep below search dropdown and user dropdown */
}
.nav-inner { display: flex; align-items: center; justify-content: center; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto; }
.nav-item { position: relative; }
/* has-mega: mega menu positioned from nav (not nav-item) */
.has-mega { position: static; }
.nav-link {
  display: flex; align-items: center; gap: 5px; padding: 12px 15px;
  font-size: 0.87rem; font-weight: 600; color: rgba(255,255,255,0.9);
  text-decoration: none; transition: all .2s; white-space: nowrap;
  border-bottom: 2px solid transparent; letter-spacing: 0.2px;
}
.nav-link svg { width: 15px; height: 15px; opacity: .95; }
.nav-link:hover {
  color: #ffffff; background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.55);
}
.nav-link.active {
  color: #ffffff; font-weight: 700;
  border-bottom-color: #ffffff;
}
.nav-link-sale { color: rgba(255,255,255,0.9) !important; font-weight: 700; }
.nav-link-sale:hover { color: #fff !important; border-bottom-color: #fff !important; }

.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(96vw, 860px); background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06);
  display: none; z-index: 9999;
  overflow: visible;
  animation: megaFadeIn 0.18s ease;
}
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.has-mega:hover .mega-menu { display: block; }
.mega-inner-wrap { padding: 0; }
.mega-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 12px; border-bottom: 1px solid #f3f4f6;
  background: #f9fdf9;
}
.mega-title { font-size: 0.78rem; font-weight: 800; color: #1a2e1a; text-transform: uppercase; letter-spacing: 0.8px; }
.mega-see-all {
  font-size: 0.76rem; font-weight: 700; color: #1a5c2b; text-decoration: none;
  background: #e8f5e9; padding: 4px 12px; border-radius: 99px; transition: background 0.2s;
}
.mega-see-all:hover { background: #1a5c2b; color: #fff; }
.mega-inner { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 22px 18px; }
.mega-col { flex: 0 0 calc(20% - 5px); }
.mega-cat-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px; border-radius: 14px; text-align: center;
  font-size: 0.78rem; font-weight: 600; color: #374151;
  text-decoration: none; transition: all .2s; border: 1.5px solid transparent;
}
.mega-cat-link:hover { background: #f0f8f2; color: #1a5c2b; border-color: #c8e6c9; transform: translateY(-2px); }
.mega-cat-link img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.mega-cat-icon { font-size: 2rem; line-height: 1; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: all .2s; }

/* ─── MOBILE TOP BAR ─────────────────────────────────────────────────────────── */
.mobile-topbar {
  display: none; position: sticky; top: 0; z-index: 1000;
  background: #fff; padding: 8px 8px;
  align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 1px solid #eef2ef;
}
.mobile-back-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #f5f7f5; border: none; cursor: pointer;
  color: #374151; transition: background .15s;
}
.mobile-back-btn:hover { background: #e8ede9; }
.mobile-logo {
  font-family: var(--font-heading); font-size: 1.18rem; font-weight: 800;
  color: #1a2e1a; text-decoration: none; letter-spacing: -0.3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-logo img { width: 66px !important; height: 66px !important; border-radius: 12px !important; object-fit: contain !important; }
.mobile-topbar-actions { display: flex; align-items: center; gap: 6px; }
.mobile-search-btn, .mobile-cart-btn {
  position: relative; width: 36px; height: 36px;
  border-radius: 10px; background: #f5f7f5;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; color: #374151;
  transition: background 0.15s, color 0.15s;
}
.mobile-search-btn:hover, .mobile-cart-btn:hover { background: #e8f5e9; color: #1a5c2b; }
.cart-count-mobile { position: absolute; top: -2px; right: -2px; }

/* Mobile Search Overlay */
.mobile-search-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  padding: 16px; display: none;
}
.mobile-search-overlay.open { display: block; }
.mobile-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 50px;
  padding: 8px 8px 8px 16px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mobile-search-input {
  flex: 1; border: none; background: transparent;
  font-size: 0.95rem; padding: 0; font-family: inherit; outline: none; color: #1a2e1a;
}
.mobile-search-input::placeholder { color: #b0b8b0; }
.mobile-search-input:focus { box-shadow: none; border: none; }
.mobile-search-wrap button {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #1a5c2b, #0f3d1f); color: #fff;
  display: flex; align-items: center; justify-content: center; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,92,43,0.25); transition: transform 0.15s;
}
.mobile-search-wrap button:hover { transform: scale(1.08); }
.mobile-search-close {
  color: #fff; font-size: 1.1rem; background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-search-suggestions {
  background: #fff; border-radius: var(--radius-md); margin-top: 10px;
  box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto;
}

/* ─── MOBILE BOTTOM NAV ──────────────────────────────────────────────────────── */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav { display: none; }
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 0.65rem; font-weight: 500; color: var(--gray-500);
  transition: color var(--trans-fast); padding: 4px;
}
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--green-main); }
.bottom-nav-item.active svg { stroke: var(--green-main); }
.search-nav-item .search-fab {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-main); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold); margin-top: -16px;
  transition: transform var(--trans-fast);
}
.search-nav-item:hover .search-fab, .search-nav-item.active .search-fab { transform: scale(1.05); }
.search-nav-item .search-fab svg { stroke: #fff; }

/* ─── HERO SLIDER ────────────────────────────────────────────────────────────── */
.hero-slider { position: relative; overflow: hidden; border-radius: 0; margin-bottom: 0; }
.hero-slides { display: flex; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.hero-slide {
  flex: 0 0 100%; min-height: 200px; position: relative;
  background: var(--green-dark); overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; top: 0; left: 0;
}
.hero-content {
  position: relative; z-index: 1; padding: 24px 20px;
  background: linear-gradient(135deg, rgba(10,40,20,0.85) 0%, rgba(10,40,20,0.4) 100%);
  height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  display: inline-block; background: var(--gold-main); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: #fff; line-height: 1.25; margin-bottom: 10px;
}
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }
.hero-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--trans-fast);
  border: none;
}
.hero-dot.active { background: var(--gold-main); width: 18px; border-radius: var(--radius-pill); }

/* ─── CATEGORY CIRCLES ───────────────────────────────────────────────────────── */
.categories-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: transform var(--trans-fast);
}
.category-chip:hover { transform: scale(1.05); }
.category-chip-img {
  width: 70px; height: 70px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gray-200);
  background: var(--green-pale); transition: border-color var(--trans-fast);
  display: flex; align-items: center; justify-content: center;
}
.category-chip:hover .category-chip-img,
.category-chip.active .category-chip-img { border-color: var(--green-main); }
.category-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.category-chip-name { font-size: 0.72rem; font-weight: 500; color: var(--gray-700); text-align: center; max-width: 74px; }

/* ─── OFFER BADGES (product page) ───────────────────────────────────────────── */
.offer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.offer-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
  background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-light);
}
.offer-badge.gold { background: var(--gold-pale); color: var(--gold-dark); border-color: var(--gold-light); }

/* ─── FLASH SALE TIMER ───────────────────────────────────────────────────────── */
.flash-sale-banner {
  background: linear-gradient(135deg, var(--red) 0%, #c62828 100%);
  color: #fff; padding: 12px 16px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.flash-sale-label { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.flash-timer { display: flex; gap: 6px; }
.timer-block {
  background: rgba(0,0,0,0.3); border-radius: 6px;
  padding: 4px 8px; text-align: center; min-width: 38px;
}
.timer-num { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.timer-label { font-size: 0.6rem; opacity: 0.8; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer-newsletter {
  background: var(--green-dark); padding: 32px 0;
}
.newsletter-wrap {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.newsletter-text h3 { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 4px; }
.newsletter-text p  { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.newsletter-form { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff; border-radius: var(--radius-pill);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: var(--gold-main); background: rgba(255,255,255,0.15); }

.footer-main { background: var(--black); color: var(--gray-400); padding: 40px 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: #fff; display: block; margin-bottom: 8px; }
.footer-tagline { color: var(--gold-light); font-size: 0.85rem; margin-bottom: 8px; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 12px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.footer-badges .badge-pill { background: rgba(255,255,255,0.08); color: var(--gray-400); border: 1px solid rgba(255,255,255,0.1); font-size: 0.72rem; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans-fast);
}
.social-link:hover { background: var(--green-main); color: #fff; transform: translateY(-2px); }
.social-link.whatsapp-link:hover { background: #25d366; }

.footer-heading { color: var(--white); font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); transition: color var(--trans-fast); }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; }
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-main); }
.footer-contact-list a { color: var(--gray-400); }
.footer-contact-list a:hover { color: var(--gold-light); }

.footer-payment-icons { margin-top: 16px; }
.footer-payment-icons span { font-size: 0.78rem; color: var(--gray-500); display: block; margin-bottom: 6px; }
.payment-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-icons img { height: 22px; width: auto; filter: brightness(0.7) grayscale(0.3); transition: filter var(--trans-fast); }
.payment-icons img:hover { filter: brightness(1); }

.footer-bottom {
  background: var(--gray-900); padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--gray-600); }
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 80px; right: 16px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-wa 2s infinite;
  transition: transform var(--trans-fast);
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ─── CART SIDEBAR ───────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: none; opacity: 0; transition: opacity var(--trans-mid);
}
.cart-overlay.open { display: block; opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: -100%; bottom: 0; z-index: 2001;
  width: min(380px, 100%); background: #fff;
  box-shadow: var(--shadow-lg); transition: right var(--trans-slow);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  background: var(--green-dark); color: #fff;
}
.cart-drawer-header h3 { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; }
.cart-close-btn { color: rgba(255,255,255,0.7); font-size: 1.4rem; transition: color var(--trans-fast); }
.cart-close-btn:hover { color: #fff; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.cart-total-row.grand { font-weight: 700; font-size: 1.1rem; color: var(--green-dark); padding-top: 8px; border-top: 1px solid var(--gray-200); }

/* ─── CART ITEM ──────────────────────────────────────────────────────────────── */
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray-100); position: relative;
}
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; background: var(--green-pale); }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
.cart-item-variant { font-size: 0.76rem; color: var(--gray-500); margin-bottom: 6px; }
.cart-qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--gray-300); background: #fff;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--trans-fast);
}
.qty-btn:hover { border-color: var(--green-main); color: var(--green-main); }
.qty-val { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-weight: 700; color: var(--green-dark); font-size: 0.95rem; }
.cart-item-remove {
  position: absolute; top: 12px; right: 0;
  color: var(--gray-400); font-size: 0.8rem;
  cursor: pointer; transition: color var(--trans-fast);
}
.cart-item-remove:hover { color: var(--red); }

/* ─── SEARCH SUGGESTIONS ─────────────────────────────────────────────────────── */
.suggestion-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; transition: background var(--trans-fast); font-size: 0.88rem;
}
.suggestion-item:hover { background: var(--gray-100); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.suggestion-cat { font-size: 0.72rem; color: var(--gray-500); }
.suggestion-label { font-size: 0.78rem; color: var(--gray-500); padding: 6px 14px; background: var(--gray-100); }

/* ─── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-control { width: 100%; }
.form-text { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 4px; }

/* ─── AUTH PAGES ─────────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(135deg, var(--green-pale) 0%, var(--gold-pale) 100%);
}
.auth-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 32px 24px;
  width: 100%; max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-text { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.auth-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--gray-500); font-size: 0.88rem; margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--gray-400); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--gray-300); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--gray-600); }
.auth-footer a { color: var(--green-main); font-weight: 600; }

/* Step indicator for registration */
.step-indicator {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gray-300); display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--gray-400); transition: all var(--trans-mid);
}
.step-dot.active  { border-color: var(--green-main); background: var(--green-main); color: #fff; }
.step-dot.done    { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-main); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin-top: 13px; max-width: 40px; }
.step-line.done { background: var(--green-mid); }

/* OTP Input */
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.otp-input {
  width: 44px; height: 52px; text-align: center; font-size: 1.3rem; font-weight: 700;
  border: 2px solid var(--gray-300); border-radius: var(--radius-md);
  padding: 0; transition: border-color var(--trans-fast);
}
.otp-input:focus { border-color: var(--green-main); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────────── */
.breadcrumb { padding: 10px 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 0.82rem; }
.breadcrumb-item { display: flex; align-items: center; gap: 4px; color: var(--gray-500); }
.breadcrumb-item::after { content: '›'; color: var(--gray-300); }
.breadcrumb-item:last-child::after { display: none; }
.breadcrumb-item a { color: var(--green-main); }
.breadcrumb-item.active { color: var(--gray-700); }

/* ─── SECTION PADDING ────────────────────────────────────────────────────────── */
.section { padding: 28px 0; }
.section-sm { padding: 16px 0; }
.section-lg { padding: 48px 0; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.p-3 { padding: 16px; } .p-4 { padding: 24px; }
.text-center { text-align: center; } .text-right { text-align: right; }
.text-green { color: var(--green-main); } .text-gold { color: var(--gold-main); }
.text-danger { color: var(--red); } .text-muted { color: var(--gray-500); }
.fw-bold { font-weight: 700; } .fw-600 { font-weight: 600; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-2 { gap: 8px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }

/* ─── LOADING SPINNER ────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-main);
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOOLTIP ────────────────────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--gray-900); color: #fff; padding: 4px 8px;
  border-radius: var(--radius-sm); font-size: 0.72rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--trans-fast);
}
[data-tooltip]:hover::after { opacity: 1; }

/* ─── SKELETON LOADER ────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── PAGINATION ─────────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.page-btn {
  min-width: 36px; height: 36px; border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-300); background: #fff;
  font-size: 0.85rem; font-weight: 500; color: var(--gray-700);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--trans-fast);
}
.page-btn:hover, .page-btn.active { background: var(--green-main); color: #fff; border-color: var(--green-main); }

/* ─── RATING STARS ───────────────────────────────────────────────────────────── */
.star-input { display: flex; gap: 6px; flex-direction: row-reverse; }
.star-input input { display: none; }
.star-input label {
  font-size: 1.6rem; color: var(--gray-300); cursor: pointer;
  transition: color var(--trans-fast);
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold-main); }

/* ─── EMPTY STATE ────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 20px; }

/* ─── QUANTITY SELECTOR ──────────────────────────────────────────────────────── */
.qty-selector {
  display: inline-flex; align-items: center; gap: 0;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-pill); overflow: hidden;
}
.qty-selector .qty-btn { border: none; border-radius: 0; background: var(--gray-100); width: 36px; height: 36px; }
.qty-selector .qty-btn:hover { background: var(--green-pale); color: var(--green-main); }
.qty-selector .qty-val { width: 36px; text-align: center; font-weight: 600; border: none; padding: 0; background: transparent; }

/* ─── PWA INSTALL BANNER ──────────────────────────────────────────────────────── */
.pwa-install-banner {
  position: fixed; bottom: 70px; left: 16px; right: 16px; z-index: 800;
  background: var(--green-dark); color: #fff;
  border-radius: var(--radius-lg); padding: 14px 16px;
  display: none; gap: 12px; align-items: center; box-shadow: var(--shadow-lg);
}
.pwa-install-banner.show { display: flex; }
.pwa-install-info { flex: 1; }
.pwa-install-info strong { display: block; font-size: 0.9rem; }
.pwa-install-info small { opacity: 0.75; font-size: 0.78rem; }
.pwa-dismiss { color: rgba(255,255,255,0.6); font-size: 1.1rem; }

/* ─── SCROLL TO TOP ──────────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 80px; right: 16px; z-index: 700;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-main); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: all var(--trans-fast); border: none;
}
.scroll-top.show { display: flex; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ─── TABS ───────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); overflow-x: auto; scrollbar-width: none; }
.tab-btn {
  padding: 10px 16px; font-size: 0.88rem; font-weight: 500;
  color: var(--gray-500); border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap; cursor: pointer; transition: all var(--trans-fast);
}
.tab-btn.active { color: var(--green-main); border-bottom-color: var(--green-main); font-weight: 600; }
.tab-pane { display: none; padding: 16px 0; }
.tab-pane.active { display: block; }

/* ─── GRID UTILITIES ─────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ─── ALERTS ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 0.88rem;
  margin-bottom: 16px; border-left: 4px solid transparent;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.alert-danger  { background: #ffebee; color: #c62828; border-color: #c62828; }
.alert-info    { background: #e3f2fd; color: #1565c0; border-color: #1565c0; }
.alert-warning { background: #fff8e1; color: #e65100; border-color: #e65100; }

/* ─── PROGRESS BAR ───────────────────────────────────────────────────────────── */
.progress { background: var(--gray-200); border-radius: var(--radius-pill); height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: var(--radius-pill);
  background: var(--green-main); transition: width 0.6s ease;
}

/* ─── CHECKOUT STEPS ─────────────────────────────────────────────────────────── */
.checkout-steps { display: flex; gap: 0; margin-bottom: 24px; }
.checkout-step {
  flex: 1; text-align: center; position: relative; padding: 0 4px;
}
.checkout-step::after {
  content: ''; position: absolute; top: 14px; left: 50%; right: -50%;
  height: 2px; background: var(--gray-300); z-index: 0;
}
.checkout-step:last-child::after { display: none; }
.step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--gray-300); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--gray-400);
  position: relative; z-index: 1; margin: 0 auto 4px;
  transition: all var(--trans-mid);
}
.checkout-step.active .step-icon  { border-color: var(--green-main); background: var(--green-main); color: #fff; }
.checkout-step.done .step-icon    { border-color: var(--green-mid); background: var(--green-pale); color: var(--green-main); }
.checkout-step .step-name { font-size: 0.68rem; color: var(--gray-500); }
.checkout-step.active .step-name  { color: var(--green-main); font-weight: 600; }

/* ─── ORDER TRACKING ─────────────────────────────────────────────────────────── */
.order-timeline { position: relative; padding-left: 28px; }
.order-timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-dot {
  position: absolute; left: -28px; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--gray-300); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.6rem;
}
.timeline-item.done .timeline-dot { background: var(--green-main); border-color: var(--green-main); color: #fff; }
.timeline-item.active .timeline-dot { background: var(--gold-main); border-color: var(--gold-main); color: #fff; box-shadow: 0 0 0 4px rgba(201,162,39,0.2); }
.timeline-content h5 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.timeline-content p  { font-size: 0.8rem; color: var(--gray-500); }

/* ─── RESPONSIVE: TABLET ─────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-wrap { flex-direction: row; text-align: left; }
  .hero-slide { min-height: 280px; }
  .hero-title { font-size: 2rem; }
  .category-chip-img { width: 80px; height: 80px; }
}

/* ─── RESPONSIVE: DESKTOP ────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .site-header { display: block; }
  .mobile-topbar { display: none !important; }
  .mobile-bottom-nav { display: none !important; }
  .whatsapp-float { bottom: 24px; }
  .scroll-top { bottom: 80px; right: 24px; }
  .pwa-install-banner { bottom: 24px; max-width: 400px; }

  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }

  .hero-slide { min-height: 480px; }
  .hero-title { font-size: 2.8rem; }
  .hero-content { padding: 48px; max-width: 55%; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.7rem; }
}

/* ─── RESPONSIVE: MOBILE ONLY ────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .site-header { display: none; }
  .mobile-topbar { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .container { padding: 0 14px; }
  .main-content { padding-top: 0; }
}

/* ─── MOBILE APP FEEL IMPROVEMENTS ───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Smoother body */
  body { background: #f5f7f5; }

  /* Mobile topbar – app-like pill logo */
  .mobile-topbar {
    background: #fff; padding: 6px 8px;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: grid !important;
    grid-template-columns: 32px 1fr 74px;
    gap: 4px;
  }
  .mobile-back-btn { width: 32px; height: 32px; border-radius: 8px; }
  .mobile-topbar-actions { gap: 4px; justify-content: flex-end; }
  .mobile-search-btn, .mobile-cart-btn { width: 32px; height: 32px; border-radius: 8px; }
  .mobile-logo {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.15rem; font-weight: 700; color: #0f3d1f; letter-spacing: -0.3px;
    justify-self: center;
  }
  .mobile-logo .logo-syno { color: #1a5c2b; }
  .mobile-logo img { width: auto !important; height: 60px !important; }

  /* Section styling – app cards */
  .home-section, .section {
    background: #fff; border-radius: 20px;
    margin: 10px 10px 0; padding: 18px 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  }
  .why-section {
    background: #fff; border-radius: 20px;
    margin: 10px 10px 0; padding: 18px 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  }
  .testimonial-section {
    background: #fff; border-radius: 20px;
    margin: 10px 10px 0; padding: 18px 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  }
  .newsletter-section {
    background: transparent;
    margin: 10px 10px 0; padding: 18px 14px 80px;
    box-shadow: none;
  }

  /* Trust strip – horizontal pill row */
  .trust-strip {
    background: transparent; border: none;
    padding: 8px 0 0;
  }
  .trust-row {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 10px 6px;
    scrollbar-width: none; flex-wrap: nowrap;
  }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-item {
    flex: 0 0 auto; background: #fff; border-radius: 12px;
    padding: 9px 14px; min-width: unset;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #f0f0f0;
  }
  .trust-item strong { font-size: 0.78rem; }
  .trust-item small { font-size: 0.68rem; }
  .ti-icon { font-size: 1.1rem; }
  .trust-sep { display: none; }

  /* Product cards – rounder, app-like */
  .pcard { border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); border: none; }
  .pcard-body { padding: 10px; }
  .pcard-btn { border-radius: 10px; font-size: 0.8rem; padding: 8px 0; }
  .pp-cur { font-size: 0.95rem; }

  /* Section heading */
  .sec-head { margin-bottom: 14px; }
  .sec-title { font-size: 1rem; font-weight: 800; }
  .sec-link { font-size: 0.8rem; }

  /* Flash sale inside card */
  .flash-section { border-radius: 16px !important; margin: 0 !important; }

  /* Bottom nav – slightly taller, pill tabs */
  .mobile-bottom-nav {
    height: 64px; padding: 0 4px;
    background: #fff; border-top: 1px solid #f0f0f0;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.08);
    border-radius: 20px 20px 0 0;
  }
  .nav-item-mob {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px;
  }
  .nav-item-mob svg { transition: transform 0.15s; }
  .nav-item-mob.active svg { transform: scale(1.15); }
  .nav-label { font-size: 0.66rem; font-weight: 600; }
  .nav-item-mob.active .nav-label { color: #1a5c2b; }

  /* Remove unexpected blank space above footer on mobile pages */
  .main-content { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .site-footer { margin-top: 0 !important; }
  .section:last-child, .home-section:last-child { margin-bottom: 0 !important; padding-bottom: 14px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MEGA MENU IMPROVEMENTS
════════════════════════════════════════════════════════════════ */
.mega-inner { gap: 8px !important; padding: 18px 20px 20px !important; }
.mega-col { flex: 0 0 calc(16.66% - 8px) !important; }
@media(max-width:900px) { .mega-col { flex: 0 0 calc(20% - 8px) !important; } }

.mega-cat-link {
  padding: 10px 6px !important;
  background: #fafcfa;
  border: 1.5px solid #eaf4ea !important;
}
.mega-cat-link:hover {
  background: linear-gradient(135deg, #e8f5e9, #f0faf0) !important;
  border-color: #a5d6a7 !important;
}
.mega-cat-link img { width: 44px !important; height: 44px !important; border-radius: 10px !important; }
.mega-cat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH BACK BUTTON
════════════════════════════════════════════════════════════════ */
.auth-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #6b7280; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; margin-bottom: 20px;
  padding: 7px 14px; border-radius: 99px;
  border: 1.5px solid #e5e7eb; background: #fff;
  transition: all 0.18s; width: fit-content;
}
.auth-back-btn:hover {
  color: #1a5c2b; border-color: #c8e6c9; background: #f0faf0;
}

/* ═══════════════════════════════════════════════════════════════
   BLINKIT-STYLE MOBILE PRODUCT CARDS
════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Product grid – 2 columns, compact */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .pcard {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  }
  .pcard-img-wrap {
    position: relative;
    border-radius: 12px 12px 0 0 !important;
    background: #fafafa;
    padding: 10px 10px 0 !important;
    aspect-ratio: 1;
  }
  .pcard-img { border-radius: 8px !important; height: 100% !important; width: 100% !important; object-fit: contain !important; }
  .pcard-body { padding: 8px 10px 10px !important; }
  .pcard-name { font-size: 0.78rem !important; -webkit-line-clamp: 2; line-height: 1.3; margin-bottom: 6px !important; }
  .pcard-price-row { margin-bottom: 8px !important; }
  .pcard-price { font-size: 0.9rem !important; }
  .pcard-old   { font-size: 0.72rem !important; }
  /* Blinkit ADD button */
  .pcard-add-btn, .pcard-btn, .add-to-cart, button.add-to-cart {
    width: 100% !important; height: 36px !important;
    border-radius: 8px !important; font-size: 0.8rem !important;
    font-weight: 800 !important; letter-spacing: 0.3px;
    background: #fff !important;
    color: #0f3d1f !important;
    border: 1.5px solid #1a5c2b !important;
    transition: all 0.15s !important;
    padding: 0 !important;
  }
  .pcard-add-btn:hover, .pcard-btn:hover, .add-to-cart:hover {
    background: #1a5c2b !important; color: #fff !important;
  }
  /* When item is in cart – show quantity control */
  .pcard-qty-ctrl {
    display: flex; width: 100%; height: 36px; border-radius: 8px;
    border: 1.5px solid #1a5c2b; overflow: hidden; background: #fff;
  }
  .pcard-qty-ctrl button {
    flex: 0 0 36px; background: #f0faf0; border: none; cursor: pointer;
    font-size: 1.2rem; font-weight: 800; color: #1a5c2b;
    transition: background 0.15s;
  }
  .pcard-qty-ctrl button:hover { background: #1a5c2b; color: #fff; }
  .pcard-qty-ctrl span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; font-weight: 800; color: #1a2e1a; }
}

/* ═══════════════════════════════════════════════════════════════
   GENERAL MOBILE RESPONSIVENESS FIXES
════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .container { padding: 0 12px !important; }
  .section { padding: 20px 0 !important; }
  .section-sm { padding: 14px 0 !important; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.72rem; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .breadcrumb::-webkit-scrollbar { display: none; }

  /* Typography mobile scale */
  .section-title { font-size: 1.25rem !important; }

  /* Cart page */
  .cart-page-grid { grid-template-columns: 1fr !important; }

  /* Category page */
  .cat-page { flex-direction: column !important; gap: 0 !important; }
  .cat-sidebar { display: none; }
  .cat-main { width: 100% !important; }
  .cat-toolbar { flex-direction: row !important; gap: 8px !important; padding: 10px 0 !important; }
  .cat-product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }

  /* Product detail page */
  .prod-layout { flex-direction: column !important; }
  .prod-gallery { max-width: 100% !important; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .footer-brand-col { grid-column: 1 / -1; }

  /* Fix horizontal scroll */
  body { overflow-x: hidden; }
  img { max-width: 100%; }

  /* Fix modals / overlays */
  .modal-overlay { padding: 16px !important; }
  .modal-box { width: 100% !important; max-width: 100% !important; border-radius: 16px !important; }

  /* Search page */
  .search-grid { grid-template-columns: 1fr !important; }
}
