/* Load the admin-selected storefront colour palette; defaults preserve GreenBasket Classic. */
@import url('/api/storefront-theme.css.php');

/* ============================================================
   GreenBasket – Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2e7d32;
  --green-light:  #4caf50;
  --green-dark:   #1b5e20;
  --green-pale:   #e8f5e9;
  --orange:       #f57c00;
  --orange-light: #ff9800;
  --red:          #e53935;
  --text:         #212121;
  --text-muted:   #757575;
  --border:       #e0e0e0;
  --white:        #ffffff;
  --bg-light:     #f9fbe7;
  --shadow:       0 2px 8px rgba(0,0,0,.10);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-sm:    6px;
  --transition:   .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fafafa;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 28px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.view-all { color: var(--green); font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--green); padding-bottom: 1px; }
.view-all:hover { color: var(--green-dark); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-sale  { background: var(--red);    color: #fff; }
.badge-new   { background: var(--orange); color: #fff; }
.badge-hot   { background: #7b1fa2;       color: #fff; }
.badge-org   { background: var(--green);  color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e65100; }
.btn-sm { padding: 6px 14px; font-size: .80rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--green-dark);
  color: #c8e6c9;
  font-size: .78rem;
  padding: 6px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #c8e6c9; }
.top-bar a:hover { color: #fff; }
.top-bar-links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main { padding: 12px 0; }
.header-main .container { display: flex; align-items: center; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.logo-text { line-height: 1.2; }
.logo-text strong { font-size: 1.2rem; color: var(--green-dark); display: block; }
.logo-text span { font-size: .7rem; color: var(--text-muted); }

.location-selector {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: .82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.location-selector:hover { border-color: var(--green); }
.location-selector .city { font-weight: 700; color: var(--text); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: visible;
  position: relative;
  isolation: auto;
}
.search-bar:focus-within {
  z-index: 1500;
}
.search-bar select {
  border-radius: calc(var(--radius-sm) - 2px) 0 0 calc(var(--radius-sm) - 2px);
}
.search-bar > button {
  border-radius: 0 calc(var(--radius-sm) - 2px) calc(var(--radius-sm) - 2px) 0;
}
.search-wrapper {
  position: relative;
  z-index: 1501;
  min-width: 0;
}
.search-wrapper:focus-within {
  z-index: 1502;
}
.search-dropdown.gb-search-panel {
  z-index: 10000 !important;
}
.search-bar select {
  border: none;
  border-right: 1px solid var(--border);
  padding: 0 10px;
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
  outline: none;
  font-size: .82rem;
  cursor: pointer;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 0 14px;
  outline: none;
  font-size: .92rem;
}
.search-bar button {
  background: var(--green);
  color: #fff;
  padding: 0 18px;
  font-size: 1rem;
  transition: var(--transition);
}
.search-bar button:hover { background: var(--green-dark); }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: .68rem; color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.header-btn:hover { background: var(--green-pale); color: var(--green-dark); }
.header-btn .icon { font-size: 1.3rem; }
.header-btn .label { white-space: nowrap; }
.cart-count {
  position: absolute; top: 2px; right: 6px;
  background: var(--red); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Nav ---------- */
.main-nav { background: var(--green); }
.main-nav .container { display: flex; align-items: center; }
.nav-list { display: flex; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 16px;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-list > li:hover > a,
.nav-list > li.active > a { background: rgba(0,0,0,.18); }

.nav-list > li { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 999;
  border-top: 3px solid var(--green);
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 18px;
  font-size: .84rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.dropdown a:hover { background: var(--green-pale); color: var(--green-dark); }
.dropdown a:last-child { border-bottom: none; }

.mega-dropdown {
  min-width: 600px;
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 20px;
  border-top: 3px solid var(--green);
}
.nav-list > li:hover .mega-dropdown { display: flex; gap: 30px; }
.mega-col h4 { font-size: .78rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.mega-col a { padding: 5px 0; font-size: .82rem; border: none; }

.nav-promo {
  margin-left: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 8px;
  font-size: .78rem; color: #c8e6c9;
}
.nav-promo strong { color: #fff; }

/* ---------- Hero / Banner ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slider { display: flex; }
.hero-slide {
  min-width: 100%;
  min-height: 460px;
  display: flex; align-items: center;
  padding: 40px 0;
  position: relative;
}
.hero-slide-1 { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #4caf50 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #e65100 0%, #f57c00 60%, #ff9800 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%); }

.hero-content { position: relative; z-index: 2; color: #fff; max-width: 520px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero-title span { color: #ffeb3b; }
.hero-subtitle { font-size: 1.05rem; opacity: .88; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .btn { padding: 12px 28px; font-size: .95rem; }
.hero-actions .btn-white { background: #fff; color: var(--green-dark); }
.hero-actions .btn-white:hover { background: #f1f8e9; }
.hero-actions .btn-outline-white { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.hero-actions .btn-outline-white:hover { background: rgba(255,255,255,.15); }

.hero-image {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex; align-items: center; justify-content: center;
}
.hero-image-inner {
  width: 380px; height: 380px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10rem;
}

.hero-dots {
  display: flex; gap: 8px; justify-content: center;
  padding: 8px 0; background: #fff;
}
.hero-dot {
  width: 24px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.45); border: none; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: #fff; width: 36px; }

.hero-badges {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.35);
  padding: 10px 0;
}
.hero-badges .container {
  display: flex; gap: 16px 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badge-item {
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: .82rem;
  white-space: nowrap;
}
.hero-badge-item .icon { font-size: 1.1rem; flex-shrink: 0; }

/* ---------- Category Chips ---------- */
.category-strip { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); }
.category-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.category-chips::-webkit-scrollbar { height: 3px; }
.category-chips::-webkit-scrollbar-track { background: #f0f0f0; }
.category-chips::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

/* Scrollable chips carousel with arrow buttons */
.chips-scroll-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}
/* Arrows — absolutely positioned on left/right */
.chips-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  user-select: none;
  flex-shrink: 0;
}
.chips-arrow:hover  { background: var(--green); color: #fff; }
.chips-arrow:active { opacity: .7; }
.chips-arrow-left  { left: 0; }
.chips-arrow-right { right: 0; }
/* Viewport: padded so chips aren't hidden behind arrows */
.chips-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 40px;
}
.chips-viewport::-webkit-scrollbar { display: none; }
/* Track: inline-flex keeps chips in one row on all browsers */
.chips-track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
}


/* Mobile category dropdown */
.cat-dropdown-wrap { position: relative; }
.cat-dropdown-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 12px;
  font-size: .95rem; font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.cat-drop-chevron { font-size: 1rem; transition: transform .2s; color: var(--green); }
.cat-dropdown-btn.open .cat-drop-chevron { transform: rotate(180deg); }
.cat-dropdown-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff;
  border: 1.5px solid var(--green-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}
.cat-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  font-size: .9rem; font-weight: 500;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid #f3f3f3;
  transition: background .15s;
}
.cat-drop-item:last-child { border-bottom: none; }
.cat-drop-item:hover, .cat-drop-item.active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 600;
}
.cat-drop-item .drop-icon { font-size: 1.2rem; width: 28px; text-align: center; }

@media (max-width: 768px) {
  .cat-dropdown-wrap { margin: 0 -4px; }
  .cat-dropdown-btn {
    padding: 16px 20px;
    font-size: 1.08rem;
    border-radius: 14px;
    border-width: 2.5px;
  }
  .cat-drop-chevron { font-size: 1.2rem; }
  .cat-dropdown-list {
    border-radius: 14px;
    max-height: 370px;
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
  }
  .cat-drop-item {
    padding: 15px 20px;
    font-size: 1rem;
    gap: 14px;
  }
  .cat-drop-item .drop-icon { font-size: 1.45rem; width: 32px; }
}


/* ── Subcategory desktop chip slider ── */
.subcat-mobile-only { display: none; }   /* dropdown hidden on desktop */
.subcat-slider-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.subcat-viewport {
  overflow: hidden;
  flex: 1;
}
.subcat-track {
  display: flex;
  gap: 10px;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
  padding: 4px 2px;
}
.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid var(--green-light);
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--green-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.subcat-chip:hover { background: var(--green-pale); border-color: var(--green); }
.subcat-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,.25);
}
.subcat-chip .sc-icon { font-size: 1.2rem; }
.subcat-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--green-light);
  background: #fff;
  color: var(--green-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  margin: 0 6px;
}
.subcat-arrow:hover { background: var(--green); border-color: var(--green); color: #fff; }
.subcat-arrow:disabled { opacity: .35; cursor: default; }

/* On mobile: hide desktop slider, show dropdown */
@media (max-width: 768px) {
  .subcat-slider-wrap { display: none; }
  .subcat-mobile-only { display: block; }
}

.cat-chip {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green-dark);
}
.cat-chip .chip-icon { font-size: 1.1rem; }

/* ---------- Section Wrapper ---------- */
.section { padding: 50px 0; }
.section-alt { background: var(--green-pale); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: #a5d6a7; }

/* ---------- Product Card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.product-card-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
  opacity: 0; transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; }
.product-card-actions button {
  width: 32px; height: 32px;
  background: #fff; border-radius: 50%;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition);
}
.product-card-actions button:hover { background: var(--green); color: #fff; }

.product-img {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5;
  font-size: 5rem;
  overflow: hidden;
}
.product-img img { height: 100%; width: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }

.product-body { padding: 14px; }
.product-brand { font-size: .70rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: .92rem; font-weight: 600; margin: 3px 0 6px; color: var(--text); line-height: 1.35; }
.product-weight { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: #ffc107; font-size: .8rem; letter-spacing: 1px; }
.rating-count { font-size: .72rem; color: var(--text-muted); }

.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--green-dark); }
.price-original { font-size: .82rem; text-decoration: line-through; color: var(--text-muted); }
.price-save { font-size: .72rem; color: var(--red); font-weight: 600; }

.product-add {
  width: 100%;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-weight: 600;
  font-size: .82rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition);
}
.product-add:hover { background: var(--green-dark); }

.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 32px; height: 32px;
  background: var(--green); color: #fff;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--green-dark); }
.qty-val {
  flex: 1; text-align: center;
  font-weight: 700; font-size: .88rem;
  padding: 0 8px;
  min-width: 32px;
}

/* ---------- Flash Sale ---------- */
.flash-sale-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.flash-title { font-size: 1.55rem; font-weight: 800; color: var(--red); }
.flash-icon { font-size: 1.8rem; }
.countdown {
  display: flex; gap: 8px; margin-left: auto;
}
.count-block {
  background: var(--red); color: #fff;
  width: 54px; border-radius: var(--radius-sm);
  text-align: center; padding: 6px 4px;
}
.count-num { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.count-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }

/* ---------- Category Cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2.4rem; margin-bottom: 8px; }
.cat-name { font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cat-count { font-size: .72rem; color: var(--text-muted); }

/* Homepage category cards: compact, accessible multi-select */
#homeCategoryGrid .category-card {
  position: relative;
  padding: 14px 10px 12px;
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
#homeCategoryGrid .category-card .cat-icon {
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 5px 0 7px;
}
#homeCategoryGrid .category-card .cat-name {
  font-size: .82rem;
  line-height: 1.3;
  padding: 0 4px;
}
#homeCategoryGrid .category-card .cat-count { font-size: .68rem; }
#homeCategoryGrid .category-card .home-category-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
#homeCategoryGrid .category-card.is-selected {
  border: 2px solid var(--green);
  background: var(--green-pale);
  box-shadow: 0 2px 10px rgba(26,107,60,.12);
}
#homeCategoryGrid .category-card:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  #homeCategoryGrid .category-card { min-height: 116px; padding: 12px 6px 10px; }
  #homeCategoryGrid .category-card .cat-icon { font-size: 1.55rem; }
  #homeCategoryGrid .category-card .cat-name { font-size: .75rem; }
}

/* ---------- Banner Strip ---------- */
.banner-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 50px;
}
.promo-banner {
  border-radius: var(--radius);
  padding: 28px;
  min-height: 160px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.promo-banner-1 { background: linear-gradient(135deg, #1b5e20, #4caf50); color: #fff; }
.promo-banner-2 { background: linear-gradient(135deg, #e65100, #ff9800); color: #fff; }
.promo-banner h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.promo-banner p { font-size: .85rem; opacity: .85; margin-bottom: 14px; }
.promo-banner-emoji {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 5rem; opacity: .3;
}

/* ---------- Brand Row ---------- */
.brand-row {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 8px;
}
.brand-row::-webkit-scrollbar { height: 3px; }
.brand-row::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }

.brand-card {
  min-width: 120px;
  height: 70px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;          /* Prevents logos from touching card borders */
  overflow: hidden;      /* Prevents content from overflowing the 70px height */
}

/* Ensure images inside brand cards scale properly and stay visible */
.brand-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.brand-card:hover { border-color: var(--green); color: var(--green-dark); box-shadow: var(--shadow); }

/* ---------- How It Works ---------- */
.how-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  text-align: center;
}
.how-step { padding: 28px 16px; }
.step-icon {
  width: 72px; height: 72px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px;
  border: 3px solid var(--green-light);
}
.step-num { font-size: .72rem; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: .82rem; color: var(--text-muted); }

/* ---------- Testimonials ---------- */
.testimonials-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
}
.testimonial-card .stars { color: #ffeb3b; font-size: .9rem; margin-bottom: 10px; }
.testimonial-text { font-size: .9rem; opacity: .88; line-height: 1.6; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.author-name { font-weight: 700; font-size: .88rem; }
.author-location { font-size: .75rem; opacity: .6; }

/* ---------- App Download ---------- */
.app-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 40px;
  display: flex; align-items: center; gap: 40px;
}
.app-content { flex: 1; }
.app-content h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 10px; }
.app-content p { opacity: .85; margin-bottom: 24px; }
.app-badges { display: flex; gap: 12px; }
.app-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer; transition: var(--transition);
}
.app-badge:hover { background: rgba(255,255,255,.25); }
.app-badge .icon { font-size: 1.5rem; }
.app-badge-text { line-height: 1.2; }
.app-badge-text small { font-size: .65rem; opacity: .8; }
.app-badge-text strong { font-size: .92rem; display: block; }
.app-phone { font-size: 8rem; flex-shrink: 0; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: var(--green-pale);
  padding: 50px 0;
  text-align: center;
}
.newsletter-form {
  display: flex; max-width: 500px; margin: 20px auto 0;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1; border: none; padding: 12px 18px; outline: none; font-size: .92rem;
}
.newsletter-form button {
  background: var(--green); color: #fff;
  padding: 0 24px; font-weight: 700; font-size: .88rem;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--green-dark); }

/* ---------- Footer ---------- */
.footer { background: #1a1a1a; color: #ccc; }
.footer-main { padding: 54px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr;
  gap: 30px;
}
.footer-brand .logo-icon { background: var(--green); }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: #888; }
.footer-desc { margin: 14px 0 18px; font-size: .85rem; line-height: 1.7; color: #aaa; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: var(--transition);
}
.social-btn:hover { background: var(--green); color: #fff; }

.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: 16px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .84rem; color: #aaa; transition: var(--transition); }
.footer-col a:hover { color: var(--green-light); }

.footer-contact li { display: flex; gap: 8px; font-size: .83rem; color: #aaa; margin-bottom: 10px; align-items: flex-start; }
.footer-contact .icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.footer-payment { margin-top: 16px; }
.footer-payment p { font-size: .75rem; color: #888; margin-bottom: 8px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-icon {
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .72rem; color: #ccc; font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #777; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #777; }
.footer-bottom-links a:hover { color: var(--green-light); }

/* ---------- Sidebar Cart Drawer ---------- */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; right: -400px; top: 0; bottom: 0;
  width: 380px;
  background: #fff;
  z-index: 2001;
  transition: right .3s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-header h3 { font-size: 1.05rem; font-weight: 700; }
.cart-close { font-size: 1.3rem; color: var(--text-muted); padding: 4px; }
.cart-close:hover { color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 60px; height: 60px;
  background: #f5f5f5; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
.cart-item-weight { font-size: .72rem; color: var(--text-muted); margin-bottom: 6px; }
.cart-item-price { font-size: .88rem; font-weight: 700; color: var(--green-dark); }
.cart-item-remove { color: var(--text-muted); font-size: .8rem; margin-top: 4px; }
.cart-item-remove:hover { color: var(--red); }

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: 8px; }
.cart-summary-row.total { font-weight: 700; font-size: 1rem; color: var(--green-dark); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.cart-coupon { display: flex; gap: 8px; margin: 12px 0; }
.cart-coupon input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; outline: none; }
.cart-coupon input:focus { border-color: var(--green); }
.cart-checkout-btn {
  width: 100%; background: var(--green); color: #fff;
  padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem;
  margin-top: 12px; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cart-checkout-btn:hover { background: var(--green-dark); }

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3000;
}
.toast {
  background: var(--green-dark); color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: .87rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight .3s ease;
  min-width: 220px;
}
.toast.error { background: var(--red); }
.toast.warning { background: var(--orange); }
@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---------- Delivery Banner ---------- */
.delivery-benefits {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  background: var(--green);
}
.benefit-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,.2);
  color: #fff;
}
.benefit-item:last-child { border-right: none; }
.benefit-icon { font-size: 1.8rem; flex-shrink: 0; }
.benefit-text strong { display: block; font-size: .88rem; font-weight: 700; }
.benefit-text span { font-size: .75rem; opacity: .8; }

/* ---------- Responsive ---------- */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  .footer-grid        { grid-template-columns: 1fr 1fr 1fr; }
  .how-steps          { grid-template-columns: repeat(2,1fr); }
  .testimonials-row   { grid-template-columns: 1fr 1fr; }
  .hero-title         { font-size: 2.1rem; }
  .hero-image-inner   { width: 300px; height: 300px; font-size: 7rem; }
  .product-grid       { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
}

/* Tablet – 768px */
@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 16px; }

  /* Section spacing */
  .section { padding: 36px 0; }

  /* Top bar — hide on mobile */
  .top-bar            { display: none; }

  /* Header — single compact row: [☰][logo][icons] + search below */
  .header-main        { padding: 0; }
  .header-main .container {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 0;
    padding: 8px 12px 0;
  }
  .mobile-menu-btn    { display: flex !important; order: 1; flex-shrink: 0; width: 36px; height: 36px; padding: 6px; margin-right: 6px; }
  .logo               { order: 2; flex: 1; min-width: 0; }
  .logo-text          { display: none; }
  /* Keep the delivery location picker accessible on mobile, above the search row. */
  .location-selector  { display: flex !important; order: 4; flex: 0 0 100%; width: 100%; margin: 6px 0 0; position: relative; white-space: normal; }
  .location-selector #cityDropdown { left: 0 !important; top: calc(100% + 5px) !important; width: 100% !important; max-width: calc(100vw - 24px); box-sizing: border-box; z-index: 1100; }
  .location-selector #cityAreaSearch { font-size: 16px !important; min-height: 42px; }
  .location-selector #cityDropdownList { max-height: min(45vh, 300px) !important; overflow-y: auto; overscroll-behavior: contain; }
  .header-actions     { order: 3; margin-left: auto; gap: 0; flex-wrap: nowrap; flex-shrink: 0; }
  .header-btn .label  { display: none !important; }
  .header-btn         { padding: 6px 8px; flex-direction: column; }
  .header-btn .icon   { font-size: 1.4rem; }
  .search-bar         { order: 5; flex: 0 0 100%; margin: 6px 0 8px; }
  .search-bar select  { display: none; }

  /* Nav — hidden on mobile, use sidebar drawer */
  .main-nav           { display: none; }
  .mega-dropdown      { flex-direction: column; min-width: 280px; }

  /* No bottom padding needed (tab bar removed) */
  body                { padding-bottom: 0; }

  /* Hero */
  .hero-slide         { min-height: 320px; padding: 32px 0; }
  .hero-title         { font-size: 1.85rem; }
  .hero-subtitle      { font-size: .92rem; }
  .hero-image         { display: none; }
  .hero-actions       { flex-wrap: wrap; gap: 8px; }
  .hero-actions .btn  { padding: 10px 20px; font-size: .88rem; }
  .hero-badges .container { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero-badge-item    { font-size: .75rem; }

  /* Sections */
  .section-title      { font-size: 1.3rem; }
  .section-header     { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }

  /* Delivery benefits */
  .delivery-benefits  { grid-template-columns: 1fr 1fr; }
  .benefit-item       { padding: 12px 14px; }

  /* Banner strip */
  .banner-strip       { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .promo-banner       { min-height: 130px; padding: 20px; }
  .promo-banner h3    { font-size: 1.1rem; }
  .promo-banner-emoji { font-size: 3.5rem; }

  /* Flash sale */
  .flash-sale-header  { flex-wrap: wrap; gap: 10px; }
  .countdown          { margin-left: 0; }
  .count-block        { width: 46px; }
  .count-num          { font-size: 1.1rem; }

  /* Category grid */
  .category-grid      { grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
  .category-card      { padding: 16px 10px; }
  .cat-icon           { font-size: 2rem; }

  /* Product grid */
  .product-grid       { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
  .product-img        { height: 140px; }
  .product-body       { padding: 10px; }
  .product-name       { font-size: .86rem; }

  /* How it works */
  .how-steps          { grid-template-columns: 1fr 1fr; gap: 14px; }
  .how-step           { padding: 20px 12px; }
  .step-icon          { width: 58px; height: 58px; font-size: 1.6rem; }

  /* Testimonials */
  .testimonials-row   { grid-template-columns: 1fr; }

  /* App section */
  .app-section        { flex-direction: column; text-align: center; padding: 36px 24px; gap: 24px; }
  .app-content h2     { font-size: 1.5rem; }
  .app-badges         { justify-content: center; }
  .app-phone          { font-size: 5rem; }

  /* Newsletter */
  .newsletter-form    { flex-direction: column; border: none; gap: 8px; }
  .newsletter-form input  { border: 2px solid var(--green); border-radius: var(--radius-sm); padding: 12px 16px; }
  .newsletter-form button { border-radius: var(--radius-sm); padding: 12px; }

  /* Footer */
  .footer-main        { padding: 40px 0 24px; }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand       { grid-column: 1 / -1; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  /* Cart drawer */
  .cart-drawer        { width: 100%; right: -100%; }
}

/* Mobile – 480px */
@media (max-width: 480px) {
  /* Container */
  .container          { padding: 0 12px; }

  /* Section */
  .section            { padding: 28px 0; }

  /* Header */
  .logo-text span     { display: none; }
  .logo-icon          { width: 38px; height: 38px; font-size: 1.2rem; }
  .logo-text strong   { font-size: 1.05rem; }
  .search-bar select  { display: none; }

  /* Nav — horizontal scroll, no wrap */
  .nav-list > li > a  { padding: 9px 10px; font-size: .76rem; }

  /* Hero */
  .hero-slide         { min-height: 260px; padding: 24px 0 48px; }
  .hero-title         { font-size: 1.5rem; }
  .hero-subtitle      { font-size: .84rem; margin-bottom: 18px; }
  .hero-tag           { font-size: .68rem; }
  .hero-actions       { gap: 8px; }
  .hero-actions .btn  { flex: 1; justify-content: center; padding: 10px 12px; font-size: .84rem; }
  .hero-badges        { display: none; }

  /* Delivery benefits */
  .delivery-benefits  { grid-template-columns: 1fr 1fr; }
  .benefit-item       { padding: 10px 10px; gap: 8px; }
  .benefit-icon       { font-size: 1.4rem; }
  .benefit-text strong { font-size: .78rem; }
  .benefit-text span  { font-size: .68rem; }

  /* Flash sale countdown */
  .flash-title        { font-size: 1.2rem; }
  .count-block        { width: 40px; }
  .count-num          { font-size: .95rem; }
  .count-label        { font-size: .55rem; }

  /* Category grid — 3 columns on mobile */
  .category-grid      { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-card      { padding: 12px 6px; }
  .cat-icon           { font-size: 1.7rem; margin-bottom: 5px; }
  .cat-name           { font-size: .75rem; }
  .cat-count          { font-size: .65rem; }

  /* Product grid — 2 columns */
  .product-grid       { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img        { height: 120px; font-size: 3.5rem; }
  .product-body       { padding: 8px; }
  .product-name       { font-size: .82rem; }
  .price-current      { font-size: .95rem; }
  .product-add        { padding: 7px; font-size: .76rem; }
  .product-card-actions { opacity: 1; }

  /* Banner strip */
  .promo-banner-emoji { display: none; }
  .promo-banner h3    { font-size: 1rem; }
  .promo-banner p     { font-size: .78rem; margin-bottom: 10px; }

  /* How it works — single column */
  .how-steps          { grid-template-columns: 1fr; gap: 0; }
  .how-step           { padding: 16px; border-bottom: 1px solid var(--border); }
  .how-step:last-child { border-bottom: none; }
  .step-icon          { width: 50px; height: 50px; font-size: 1.4rem; margin-bottom: 10px; }

  /* Section title */
  .section-title      { font-size: 1.15rem; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: 20px; }
  .footer-col li      { margin-bottom: 6px; }

  /* Toast — full width on mobile */
  .toast-container    { bottom: 16px; right: 12px; left: 12px; }
  .toast              { min-width: unset; width: 100%; }

  /* Cart drawer — slide from bottom on mobile */
  .cart-drawer        {
    width: 100%; right: 0;
    top: auto; bottom: -100%;
    height: 85vh;
    border-radius: 20px 20px 0 0;
    transition: bottom .3s ease;
  }
  .cart-drawer.open   { bottom: 0; right: 0; }
  .cart-drawer-overlay.open { opacity: 1; pointer-events: all; }
}

/* Very small — 360px */
@media (max-width: 360px) {
  .product-grid       { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .category-grid      { grid-template-columns: repeat(2,1fr); }
  .hero-title         { font-size: 1.3rem; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer; flex-shrink: 0;
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--green-pale); }
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition); transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
}
.mobile-nav-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 280px; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
  overflow-y: auto;
}
.mobile-nav-drawer.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav-drawer.open .mobile-nav-panel   { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--green-dark); color: #fff;
  flex-shrink: 0;
}
.mobile-nav-header .logo { color: #fff; }
.mobile-nav-header .logo-text strong { color: #fff; }
.mobile-nav-header .logo-text span { color: rgba(255,255,255,.7); }
.mobile-nav-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: rgba(255,255,255,.3); }

.mobile-nav-links { flex: 1; padding: 8px 0; }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: .95rem; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background: var(--green-pale); color: var(--green-dark);
}
.mobile-nav-links .nav-icon { font-size: 1.2rem; width: 28px; text-align: center; }

.mobile-nav-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  background: #fafafa;
}
.mobile-nav-footer a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: .88rem; color: var(--text-muted);
  font-weight: 600;
}
.mobile-nav-footer a:hover { color: var(--green); }


/* ---------- Mobile Nav Drawer (new IIFE-based) ---------- */
#mobileNavDrawer {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
}
#mobileNavDrawer.open { display: block; }
body.nav-open { overflow: hidden; }

#mobileNavOverlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  animation: mnFadeIn .25s ease;
}
@keyframes mnFadeIn { from { opacity:0 } to { opacity:1 } }

#mobileNavPanel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 285px; max-width: 85vw;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,.18);
  animation: mnSlideIn .25s ease;
  overflow-y: auto;
}
@keyframes mnSlideIn { from { transform: translateX(-100%) } to { transform: translateX(0) } }

.mn-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--green-dark); color: #fff;
  flex-shrink: 0;
}
.mn-logo {
  display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
}
.mn-logo-icon { font-size: 1.5rem; }
.mn-logo strong { display: block; font-size: 1rem; }
.mn-logo small { display: block; font-size: .72rem; opacity: .8; }
#mobileNavClose {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: none; cursor: pointer;
}
#mobileNavClose:hover { background: rgba(255,255,255,.32); }

.mn-links { flex: 1; padding: 6px 0; }
.mn-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; font-size: .93rem; font-weight: 600;
  color: var(--text); border-bottom: 1px solid var(--border);
  text-decoration: none; transition: var(--transition);
}
.mn-links a:last-child { border-bottom: none; }
.mn-links a:hover { background: var(--green-pale); color: var(--green-dark); }
.mn-links a.mn-active { background: var(--green-pale); color: var(--green); }

.mn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 700; border-radius: 9px;
  margin-left: auto;
}

.mn-foot {
  padding: 10px 0; border-top: 1px solid var(--border);
  background: #fafafa; flex-shrink: 0;
}
.mn-foot a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: .87rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
}
.mn-foot a:hover { color: var(--green); background: var(--green-pale); }

/* ---------- Sticky Add to Cart Bar (Product Page) ---------- */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 2px solid var(--border);
  padding: 12px 0; z-index: 900;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
/* Move Scroll Arrows to the Left */
  #gbPageScrollControls {
    right: auto !important;
    left: 20px !important;
  }

  /* Move WhatsApp Button to the Left */
  #gbWaFloat {
    right: auto !important;
    left: 16px !important;
  }

  /* Mobile adjustment to keep them neatly aligned on small screens */
  @media (max-width: 600px) {
    #gbPageScrollControls {
      left: 14px !important;
      bottom: 68px !important;
    }
    #gbWaFloat {
      left: 14px !important;
      bottom: 16px !important;
    }
  }
  