/* ============================================================
   NAIJAFOODSTUFF — Redesigned Stylesheet
   Concept: Bold Naija — forest green header, fire orange accent
   Stack: Vanilla CSS, Outfit font, CSS custom properties
   ============================================================ */

:root {
  /* Brand greens */
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #dcfce7;
  --green-50: #f0fdf4;

  /* Forest — header, footer, dark sections */
  --forest: #2e7d32;
  --forest-90: #388e3c;
  --forest-light: rgba(255,255,255,0.08);

  /* Fire orange — key accent */
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-50: #fff7ed;

  /* Warm body background */
  --warm-bg: #f8f7f4;
  --warm-100: #eeece8;
  --warm-200: #dddad4;

  /* Zinc — UI utility */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;

  /* Semantic */
  --amber: #fbbf24;
  --amber-dark: #f59e0b;
  --red: #ef4444;
  --white: #ffffff;

  /* Shape */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);

  /* Typography */
  --font: Verdana, Geneva, Tahoma, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Layout */
  --header-h: 68px;
  --cat-nav-h: 52px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--zinc-800);
  background: var(--warm-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input { font-family: var(--font); }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.btn-ghost {
  background: transparent;
  color: var(--zinc-700);
  border: 2px solid var(--zinc-200);
}
.btn-ghost:hover { border-color: var(--zinc-400); background: var(--zinc-100); }

.btn-white {
  background: var(--white);
  color: var(--forest);
  border: 2px solid var(--white);
  font-weight: 800;
}
.btn-white:hover { background: var(--green-50); }

.btn-green {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ============================================================
   HEADER — Deep forest green
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.logo-text {
  font-size: 23px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-text-accent { color: var(--orange); }
@media (max-width: 480px) {
  .logo-text { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .logo-mark svg { width: 18px; height: 18px; }
}

.header-search {
  position: relative;
  max-width: 480px;
  width: 100%;
}
.header-search input {
  width: 100%;
  padding: 10px 44px 10px 18px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  font-size: 14px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}
.header-search input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }

.search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  padding: 0;
}
.search-btn:hover { color: var(--white); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--zinc-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--warm-bg); }
.search-result-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 14px; font-weight: 600; color: var(--zinc-800); }
.search-result-price { font-size: 13px; color: var(--orange); font-weight: 700; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-link:hover { color: var(--white); background: var(--forest-light); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366 !important;
  color: #fff !important;
  border-radius: 30px;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(37,211,102,0.35);
}
.nav-phone:hover {
  background: #1fbd5c !important;
  color: #fff !important;
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--white);
  border-radius: 30px;
  transition: background 0.15s, transform 0.15s;
  font-weight: 700;
  gap: 6px;
  font-size: 14px;
}
.cart-btn:hover { background: var(--orange-dark); transform: scale(1.03); }
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--amber);
  color: var(--zinc-900);
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--forest);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  background: var(--forest-90);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-nav { padding: 8px 0 16px; }
.mobile-nav a {
  display: block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:hover { color: var(--white); background: var(--forest-light); }

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--warm-200);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.category-links::-webkit-scrollbar { display: none; }

.cat-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zinc-600);
  border-radius: 30px;
  white-space: nowrap;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.cat-link:hover { color: var(--forest); background: var(--green-50); border-color: var(--green-light); }
.cat-link.active {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
  font-weight: 700;
}
.cat-icon { font-size: 16px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 52%, #43a047 100%);
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,214,0,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(27,94,32,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #ffd600;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,214,0,0.3);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,214,0,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(255,214,0,0.1); }
}
.hero-h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.11;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero-accent { color: var(--orange); }
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 430px;
  margin-bottom: 30px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.hero-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.18s;
}
.hero-wa-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--forest);
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stars {
  color: #ffd600;
  font-size: 14px;
  font-weight: 600;
}
.hero-stars span {
  color: #ffffff;
  margin-left: 4px;
}
.hero-proof-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.hero-proof > span {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}
.hero-proof strong { color: var(--white); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-category-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.hero-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
.hero-category-card.featured {
  background: #fff7ed;
  border: 1.5px solid var(--orange);
}
.hero-category-card.featured .hero-cat-price {
  color: var(--orange);
  font-weight: 700;
}
.hero-cat-icon { font-size: 26px; margin-bottom: 8px; }
.hero-cat-name { font-size: 12px; font-weight: 700; color: var(--zinc-800); margin-bottom: 4px; line-height: 1.3; }
.hero-cat-price { font-size: 11px; color: var(--green-dark); font-weight: 600; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-h1 { font-size: 32px; }
  .hero-right { order: -1; }
  .hero-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hero-section { padding: 36px 0 40px; }
  .hero-h1 { font-size: 26px; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-wa-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   TRUST STRIP — 4-column feature bar
   ============================================================ */
.trust-strip {
  background: var(--white);
  border-bottom: 2px solid var(--orange);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid var(--warm-200);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.trust-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--zinc-900);
  line-height: 1.2;
}
.trust-text span {
  font-size: 12px;
  color: var(--zinc-500);
}

/* ============================================================
   PRICE TICKER
   ============================================================ */
.price-ticker {
  background: var(--zinc-900);
  color: var(--white);
  display: flex;
  align-items: center;
  height: 40px;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  font-family: var(--mono);
  border-right: 1px solid rgba(255,255,255,0.12);
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker 32s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 12.5px;
  font-family: var(--mono);
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.ticker-up { color: #4ade80; }
.ticker-down { color: #f87171; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { padding: 48px 0 72px; }

.promo-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
  color: var(--white);
}
.promo-left { display: flex; flex-direction: column; gap: 4px; }
.promo-left strong { font-size: 17px; font-weight: 800; }
.promo-left span { font-size: 14px; opacity: 0.88; }
.promo-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.promo-price { font-size: 24px; font-weight: 800; font-family: var(--mono); }

/* ============================================================
   PRODUCT SECTIONS
   ============================================================ */
.product-section {
  margin-bottom: 64px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--warm-100);
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--orange);
}

.section-title-wrap { flex: 1; }

.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--zinc-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-title.centered { text-align: center; }
.section-sub {
  font-size: 14px;
  color: var(--zinc-500);
  margin-top: 5px;
  font-weight: 400;
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
  border: 1.5px solid var(--orange);
  padding: 6px 14px;
  border-radius: 30px;
  transition: all 0.15s;
}
.view-all-link:hover { background: var(--orange); color: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

/* ============================================================
   PRODUCT CARD — redesigned
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-100);
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--warm-200);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--warm-bg);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--forest);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.product-badge.sale { background: var(--orange); }
.product-badge.new { background: var(--amber); color: var(--zinc-900); }

.product-info { padding: 14px 16px 14px; }
.product-vendor {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.product-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--zinc-800);
  line-height: 1.3;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-size: 16px;
  font-weight: 900;
  color: var(--zinc-900);
  font-family: var(--mono);
  letter-spacing: -0.02em;
}
.product-price-old {
  display: block;
  font-size: 11.5px;
  color: var(--zinc-400);
  text-decoration: line-through;
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1;
  margin-top: 2px;
}
.add-to-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(12,53,33,0.25);
}
.add-to-cart-btn:hover { background: var(--orange); transform: scale(1.12); }
.add-to-cart-btn:active { transform: scale(0.92); }

/* Wishlist button on product card */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.15s;
  z-index: 2;
}
.wishlist-btn:hover { background: #fff; transform: scale(1.14); }
.wishlist-btn:active { transform: scale(0.88); }
.wishlist-btn svg { transition: fill 0.18s, stroke 0.18s; }
.wishlist-btn.active svg { fill: #ef4444; stroke: #ef4444; }

/* Stock badge (low stock) */
.stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

/* Free delivery progress bar in cart */
.free-delivery-bar {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--green-50);
  border: 1.5px solid var(--green-light);
  border-radius: 10px;
  font-size: 12.5px;
}
.free-delivery-bar .bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--zinc-700);
  font-weight: 600;
}
.free-delivery-bar .bar-label .bar-amount { color: var(--green-dark); font-weight: 800; }
.free-delivery-bar progress {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}
.free-delivery-bar progress::-webkit-progress-bar { background: var(--warm-200); border-radius: 3px; }
.free-delivery-bar progress::-webkit-progress-value { background: var(--green); border-radius: 3px; transition: width 0.4s ease; }
.free-delivery-bar progress::-moz-progress-bar { background: var(--green); border-radius: 3px; }
.free-delivery-bar.unlocked {
  background: #f0fdf4;
  border-color: var(--green);
  color: var(--green-dark);
  font-weight: 700;
  text-align: center;
  padding: 10px;
}

/* Reviews section in product modal */
.modal-reviews {
  margin-top: 24px;
  border-top: 1.5px solid var(--warm-200);
  padding-top: 20px;
}
.modal-reviews-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--zinc-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avg-badge {
  background: var(--amber);
  color: var(--zinc-900);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 20px;
}
.review-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.review-item {
  background: var(--warm-bg);
  border-radius: 10px;
  padding: 12px 14px;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.review-author { font-size: 13px; font-weight: 700; color: var(--zinc-800); }
.review-date { font-size: 11px; color: var(--zinc-400); }
.review-stars { color: #fbbf24; font-size: 13px; margin-bottom: 4px; }
.review-comment { font-size: 13px; color: var(--zinc-600); line-height: 1.5; }
.review-form { margin-top: 8px; }
.review-form h4 { font-size: 13.5px; font-weight: 700; color: var(--zinc-700); margin-bottom: 10px; }
.review-star-pick {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.review-star-pick button {
  font-size: 22px;
  color: var(--zinc-200);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.12s, transform 0.1s;
}
.review-star-pick button.active,
.review-star-pick button:hover { color: #fbbf24; transform: scale(1.2); }
.review-comment-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--zinc-200);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font);
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 10px;
}
.review-comment-input:focus { border-color: var(--green); }
.review-submit-btn {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.review-submit-btn:hover { background: var(--green); }
.review-empty { font-size: 13px; color: var(--zinc-400); text-align: center; padding: 16px 0; }
.review-login-prompt { font-size: 13px; color: var(--zinc-500); }
.review-login-prompt a { color: var(--green); text-decoration: underline; cursor: pointer; }

/* Skeleton */
.product-skeleton {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--warm-100);
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton-img { aspect-ratio: 4/3; background: var(--warm-100); }
.skeleton-info { padding: 14px 16px; }
.skeleton-line {
  height: 12px;
  background: var(--warm-200);
  border-radius: 6px;
  margin-bottom: 9px;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.med { width: 78%; }

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ============================================================
   HOW IT WORKS — redesigned with connector line
   ============================================================ */
.how-section {
  padding: 80px 0;
  background: var(--forest);
  color: var(--white);
}
.how-section .section-title {
  color: var(--white);
  margin-bottom: 56px;
  font-size: 32px;
}
.how-section .section-title.centered::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(25% / 2 + 20px);
  right: calc(25% / 2 + 20px);
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}

.step-card {
  padding: 0 24px 0;
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(234,88,12,0.45);
}
.step-icon {
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--white);
}
.step-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ============================================================
   TESTIMONIALS — dark forest bg, big quote marks
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--warm-bg);
}
.testimonials-section .section-title {
  margin-bottom: 48px;
  font-size: 32px;
}
.testimonials-section .section-title.centered::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 32px 28px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-100);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 96px;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.12;
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-card p {
  font-size: 15px;
  color: var(--zinc-700);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-100);
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--warm-200);
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--zinc-900);
}
.testimonial-author span { font-size: 12px; color: var(--zinc-500); }

/* ============================================================
   LOYALTY BANNER — bold with pattern
   ============================================================ */
.loyalty-section {
  padding: 72px 0;
  background: var(--zinc-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.loyalty-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 14px);
  pointer-events: none;
}
.loyalty-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange);
}
.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.loyalty-content h2 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.loyalty-content h2 em {
  font-style: normal;
  color: var(--amber);
}
.loyalty-content p {
  font-size: 15px;
  opacity: 0.75;
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.loyalty-stats {
  display: flex;
  gap: 36px;
  flex-shrink: 0;
}
.loyalty-stat { text-align: center; }
.loyalty-num {
  display: block;
  font-size: 34px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--amber);
  line-height: 1;
  letter-spacing: -0.02em;
}
.loyalty-label {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 5px;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 22px;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
}
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-links h4 {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom strong { color: rgba(255,255,255,0.7); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 48px rgba(0,0,0,0.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--warm-100);
  background: var(--forest);
  color: var(--white);
}
.cart-header h3 { font-size: 17px; font-weight: 800; }
.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s;
}
.cart-close:hover { background: var(--forest-light); color: var(--white); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; background: var(--warm-bg); }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  text-align: center;
}
.cart-empty p { color: var(--zinc-500); font-size: 15px; }

.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--warm-100);
  border-radius: var(--radius-sm);
}
.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
}
.cart-item-name { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--zinc-800); }
.cart-item-price { font-size: 14px; font-weight: 800; color: var(--orange); font-family: var(--mono); }
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--warm-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm-bg);
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--zinc-600);
  transition: background 0.1s;
}
.qty-btn:hover { background: var(--warm-200); }
.qty-num { font-size: 13.5px; font-weight: 700; min-width: 22px; text-align: center; font-family: var(--mono); }
.remove-item {
  font-size: 11px;
  color: var(--zinc-400);
  font-weight: 600;
  cursor: pointer;
}
.remove-item:hover { color: var(--red); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--warm-100);
  background: var(--white);
}
.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.coupon-row input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  color: var(--zinc-700);
  background: var(--warm-bg);
}
.coupon-row input:focus { border-color: var(--green); }
.coupon-row button {
  padding: 9px 18px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  transition: background 0.15s;
}
.coupon-row button:hover { background: var(--forest-90); }

.cart-totals { margin-bottom: 16px; }
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--zinc-600);
}
.discount-amt { color: var(--green); font-weight: 700; }
.total-final {
  font-size: 18px;
  font-weight: 900;
  color: var(--zinc-900);
  border-top: 1.5px solid var(--warm-200);
  padding-top: 12px;
  margin-top: 6px;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--zinc-400);
  margin-top: 12px;
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(960px, calc(100vw - 32px));
  max-height: 92vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  z-index: 301;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
.product-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-700);
  z-index: 10;
  border: 1.5px solid var(--zinc-200);
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.modal-close:hover { background: var(--zinc-100); }

.modal-content { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }

.modal-img-pane {
  background: var(--warm-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
}
.modal-img {
  width: 100%;
  flex: 1;
  min-height: 300px;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  display: block;
}
.modal-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}
.modal-thumb.active, .modal-thumb:hover { border-color: var(--orange); }

.modal-body {
  padding: 28px 28px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-vendor {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.modal-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--zinc-900);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.modal-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  font-family: var(--mono);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.modal-price span {
  font-size: 16px;
  color: var(--zinc-400);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 10px;
}

.modal-options-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--zinc-500);
  margin-bottom: 9px;
}
.modal-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.modal-opt-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--warm-200);
  border-radius: 8px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zinc-700);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.modal-opt-btn:hover, .modal-opt-btn.active {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-50);
}

.modal-qty-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--zinc-500);
  margin-bottom: 9px;
}
.modal-qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.modal-qty-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--warm-200);
  border-radius: 9px;
  overflow: hidden;
  background: var(--warm-bg);
}
.modal-qty-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--zinc-600);
  transition: background 0.1s;
}
.modal-qty-btn:hover { background: var(--warm-200); }
.modal-qty-num { width: 48px; text-align: center; font-size: 16px; font-weight: 800; font-family: var(--mono); }

.modal-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.modal-add-btn:hover { background: var(--orange-dark); }
.modal-add-btn:active { transform: scale(0.99); }

.modal-trust { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.modal-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--zinc-600); }
.modal-trust-item::before { content: '✓'; color: var(--green); font-weight: 900; font-size: 14px; }

.modal-desc {
  font-size: 14px;
  color: var(--zinc-600);
  line-height: 1.7;
  border-top: 1px solid var(--warm-100);
  padding-top: 16px;
  margin-top: 4px;
}

@media (max-width: 680px) {
  .modal-content { grid-template-columns: 1fr; }
  .modal-img-pane { padding: 16px; max-height: 240px; }
  .modal-img { min-height: 180px; max-height: 180px; }
  .modal-body { padding: 18px 18px 20px; }
  .product-modal { width: calc(100vw - 16px); max-height: 95vh; border-radius: 14px; }
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%) scale(0.96);
  width: 420px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 301;
  padding: 40px 36px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.auth-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.auth-tabs {
  display: flex;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--zinc-500);
  transition: all 0.15s;
  font-family: var(--font);
}
.auth-tab.active { background: var(--forest); color: var(--white); }
.auth-form h3 { font-size: 22px; font-weight: 900; margin-bottom: 24px; color: var(--zinc-900); letter-spacing: -0.02em; }
.auth-form.hidden { display: none; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--zinc-700); }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--zinc-800);
  outline: none;
  background: var(--warm-bg);
  transition: border-color 0.15s, background 0.15s;
}
.form-group input:focus { border-color: var(--green); background: var(--white); }
.auth-switch { font-size: 13px; color: var(--zinc-500); margin-top: 16px; text-align: center; }
.auth-switch a { color: var(--orange); font-weight: 700; }

/* ── Social Auth ─────────────────────────────────────── */
.social-auth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--warm-200);
  background: var(--white);
  color: var(--zinc-800);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.social-btn:hover { border-color: var(--zinc-400); background: var(--warm-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.social-btn svg { flex-shrink: 0; }
.social-btn-google:hover { border-color: #4285F4; }
.social-btn-microsoft:hover { border-color: #00A4EF; }
.social-btn-yahoo:hover { border-color: #6001D2; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--zinc-400);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--warm-200); }

/* ── Price History Chart ─────────────────────────────── */
.price-history-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px solid var(--warm-100);
}
.price-history-section h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-500);
  margin-bottom: 12px;
}
.price-chart-wrap {
  position: relative;
  height: 140px;
}
.price-chart-empty {
  font-size: 13px;
  color: var(--zinc-400);
  text-align: center;
  padding: 28px 0;
}

/* ============================================================
   NAIJABOT
   ============================================================ */
.naijabot-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  left: auto;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.naijabot-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(12,53,33,0.45);
  transition: all 0.2s;
  position: relative;
}
.naijabot-trigger:hover { transform: scale(1.1); background: var(--forest-90); }
.bot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.naijabot-chat {
  width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--warm-200);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 500px;
}
.naijabot-chat.open { display: flex; }

.bot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--forest);
  color: var(--white);
}
.bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  border: 2px solid var(--orange);
}
.bot-header strong { font-size: 14px; display: block; }
.bot-status { font-size: 11px; opacity: 0.75; }
.bot-header div { flex: 1; }
.bot-close { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.bot-close:hover { color: var(--white); }

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--warm-bg);
}
.bot-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bot-message.bot {
  background: var(--white);
  color: var(--zinc-800);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--warm-200);
}
.bot-message.user {
  background: var(--forest);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-quick-replies {
  display: flex;
  gap: 6px;
  padding: 6px 14px 10px;
  flex-wrap: wrap;
  background: var(--warm-bg);
}
.bot-quick-replies button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--warm-200);
  border-radius: 20px;
  color: var(--zinc-700);
  background: var(--white);
  font-family: var(--font);
  transition: all 0.15s;
}
.bot-quick-replies button:hover { border-color: var(--orange); color: var(--orange); }

.bot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--warm-200);
  background: var(--white);
}
.bot-input-row input {
  flex: 1;
  padding: 8px 14px;
  border: 1.5px solid var(--warm-200);
  border-radius: 20px;
  font-size: 13.5px;
  outline: none;
  font-family: var(--font);
  background: var(--warm-bg);
}
.bot-input-row input:focus { border-color: var(--green); }
.bot-input-row button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.bot-input-row button:hover { background: var(--orange-dark); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--zinc-900);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { background: var(--green-dark); }
.toast.error { background: var(--red); }
.toast.fade-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  left: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Floating buttons must never block the cart drawer or checkout modal */
body.panel-open .wa-float,
body.panel-open .naijabot-container {
  display: none;
}
.wa-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float-btn:active { transform: scale(0.96); }

.wa-float-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.32,0.72,0,1);
}
.wa-float-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.wa-float-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--zinc-900);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  font-family: var(--font);
}
.wa-float-option:hover { background: var(--green-50); transform: translateX(-3px); }
.wa-float-option svg { color: #25D366; flex-shrink: 0; }

/* ============================================================
   ANNOUNCEMENT BAR (legacy compat)
   ============================================================ */
.announcement-bar {
  background: var(--forest);
  color: var(--white);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--orange);
}
.announcement-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  gap: 40px;
}
.announce-item { white-space: nowrap; }
.announce-item strong { font-weight: 700; color: var(--amber); }

/* ============================================================
   HERO (legacy CSS — section removed from HTML but kept for
   JS-rendered pages that may reference these classes)
   ============================================================ */
.hero-dodo { padding: 64px 0; background: var(--warm-bg); }
.hero-dodo-inner { max-width: 720px; }
.hero-dodo-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-dodo-headline {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--zinc-900);
  margin-bottom: 20px;
}
.headline-accent { color: var(--orange); }
.hero-dodo-sub {
  font-size: 17px;
  color: var(--zinc-600);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-dodo-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-dodo-stats { display: flex; align-items: center; flex-wrap: wrap; }
.dodo-stat { display: flex; flex-direction: column; padding: 0 28px 0 0; }
.dodo-stat:first-child { padding-left: 0; }
.dodo-stat-num { font-size: 26px; font-weight: 900; color: var(--orange); line-height: 1; }
.dodo-stat-lbl { font-size: 12px; color: var(--zinc-500); font-weight: 500; margin-top: 3px; }
.dodo-stat-div { width: 1px; height: 36px; background: var(--warm-200); margin-right: 28px; }

/* Features strip (legacy compat) */
.features-strip { background: var(--white); border-bottom: 1px solid var(--warm-200); padding: 40px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 28px; border-right: 1px solid var(--warm-100); }
.feature-card:last-child { border-right: none; }
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--orange-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.feature-text strong { font-size: 14px; font-weight: 700; color: var(--zinc-900); }
.feature-text span { font-size: 13px; color: var(--zinc-500); line-height: 1.5; }

/* ============================================================
   DISCOUNT TYPE BUTTONS (admin panel)
   ============================================================ */
.discount-type-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zinc-600);
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}
.discount-type-btn.active, .discount-type-btn:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-50);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
  .header-nav { gap: 4px; }
  .nav-link:not(.nav-phone) { display: none; }
  .hamburger { display: flex; }
  .nav-phone { display: none; }

  .trust-strip-inner { grid-template-columns: 1fr 1fr; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .loyalty-grid { grid-template-columns: 1fr; gap: 32px; }
  .loyalty-stats { justify-content: space-between; }

  .promo-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .logo-text { font-size: 16px; }
}

/* ============================================================
   MOBILE OPTIMISATIONS
   ============================================================ */
.mobile-search-btn { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: 6px; }
.header-search-mobile { display: none; }

/* Make the search accessible on mobile via a toggle icon */
@media (max-width: 768px) {
  /* Header: show search icon button that expands */
  .header-inner { gap: 8px; }
  .site-header { position: sticky; top: 0; z-index: 200; }
  .mobile-search-btn { display: flex; align-items: center; justify-content: center; }

  /* Sticky cart button — easier tap target */
  .cart-btn { min-width: 44px; min-height: 44px; }

  /* Full-width mobile search bar (shown when toggled) */
  .header-search-mobile {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: var(--forest);
    z-index: 199;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .header-search-mobile.open { opacity: 1; transform: translateY(0); pointer-events: all; }
  .header-search-mobile input {
    flex: 1; padding: 10px 14px; border-radius: 8px 0 0 8px;
    border: none; font-size: 15px; outline: none;
  }
  .header-search-mobile button {
    padding: 10px 16px; background: var(--orange); color: #fff;
    border: none; border-radius: 0 8px 8px 0; cursor: pointer;
  }

  /* Product cards — tighter on mobile */
  .product-card { border-radius: 10px; }
  .product-img-wrap { height: 140px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-add-btn { padding: 9px; font-size: 12px; }

  /* Auth modal full-screen on tiny screens */
  .auth-modal { padding: 28px 20px; width: calc(100vw - 24px); }
  .auth-tabs { gap: 4px; }
  .auth-tab { font-size: 13px; padding: 8px 12px; }

  /* Product modal full screen */
  .product-modal { border-radius: 16px 16px 0 0; top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .product-modal.open { transform: none; }

  /* Cart panel */
  .cart-panel { width: 100vw; border-radius: 0; }

  /* Category nav scrollable */
  .category-links { gap: 8px; -webkit-overflow-scrolling: touch; }
  .cat-link { font-size: 13px; padding: 6px 14px; white-space: nowrap; }

  /* Trust strip single col on very small */
  .trust-strip-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .trust-item { padding: 12px 10px; }
  .trust-text strong { font-size: 12px; }
  .trust-text span { font-size: 11px; }

  /* Hero */
  .hero-title { font-size: clamp(26px, 8vw, 48px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-img-wrap { height: 120px; }
  .category-links { gap: 6px; }
  .auth-tab { font-size: 12px; padding: 7px 8px; }
}

/* Improve tap targets globally on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-link, .cat-link, .social-btn, .modal-opt-btn { min-height: 44px; }
  .product-add-btn { min-height: 40px; }
  input, select, textarea { font-size: 16px !important; } /* prevents iOS zoom */
}

/* Performance: use GPU layer for animated elements */
.cart-panel, .auth-modal, .product-modal, .mobile-menu {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Image lazy loading visual */
img[loading="lazy"] { background: var(--warm-100); }

/* ── Delivery Address Modal ─────────────────────────────── */
.delivery-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 480px;
  max-width: calc(100vw - 24px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.delivery-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.delivery-modal-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--forest);
}
.delivery-modal-hd h3 { font-size: 18px; font-weight: 800; margin: 0; }
.delivery-modal-sub { font-size: 14px; color: var(--zinc-500); margin-bottom: 20px; }

/* ── Page Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* Elements start invisible until JS kicks in */
.anim-ready {
  opacity: 0;
}
/* Once JS marks them visible */
.anim-ready.anim-in {
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-duration: 0.6s;
}
.anim-fade-up.anim-in    { animation-name: fadeUp; }
.anim-fade-in.anim-in    { animation-name: fadeIn; }
.anim-slide-left.anim-in { animation-name: slideInLeft; }
.anim-scale-in.anim-in   { animation-name: scaleIn; }

/* Stagger delays for grid children */
.anim-stagger > *:nth-child(1) { animation-delay: 0ms; }
.anim-stagger > *:nth-child(2) { animation-delay: 60ms; }
.anim-stagger > *:nth-child(3) { animation-delay: 120ms; }
.anim-stagger > *:nth-child(4) { animation-delay: 180ms; }
.anim-stagger > *:nth-child(5) { animation-delay: 240ms; }
.anim-stagger > *:nth-child(6) { animation-delay: 300ms; }
.anim-stagger > *:nth-child(7) { animation-delay: 360ms; }
.anim-stagger > *:nth-child(8) { animation-delay: 420ms; }

/* Hero fade-in runs immediately on load (no scroll trigger) */
.hero-anim {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-anim-delay-1 { animation-delay: 100ms; }
.hero-anim-delay-2 { animation-delay: 220ms; }
.hero-anim-delay-3 { animation-delay: 360ms; }

/* Ticker slides in smoothly */
@keyframes tickerReveal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .anim-ready, .anim-ready.anim-in, .hero-anim { animation: none !important; opacity: 1 !important; }
}

/* ── Logo badge (white-bg logo shown as a clean rounded emblem) ── */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  flex-shrink: 0;
}
.logo-badge .site-logo-img,
.logo-badge img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 8px;
}
/* If the SVG fallback loads (transparent, white artwork), drop the white chip */
.logo-badge.is-svg {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.logo-badge.is-svg img { border-radius: 0; }
.footer-logo-badge img { height: 42px; }
@media (max-width: 480px) {
  .logo-badge .site-logo-img,
  .logo-badge img { height: 36px; }
}
