/* =====================================================================
   VERDE MARKET — Premium Organic Grocery E-Commerce Template
   Plain HTML5 + CSS3 + vanilla JS. No frameworks. No external images.
   Every visual is a CSS gradient, inline SVG, or emoji — fully offline.
   ---------------------------------------------------------------------
   REBRAND TIP: edit the CSS variables in :root below. Swap --accent for
   your primary color and the whole site follows. Update --font-head /
   --font-body plus the Google Fonts <link> in each HTML file.
   ===================================================================== */

:root {
  /* --- Brand palette (edit these to rebrand) --- */
  --bg:      #ffffff;   /* page background                          */
  --ink:     #1f2d1a;   /* deep forest text / headings              */
  --accent:  #5fa052;   /* leaf green (primary)                     */
  --accent2: #e8b04b;   /* warm amber (secondary / highlights)      */
  --muted:   #6b7d63;   /* muted sage text                          */
  --surface: #f3f7ef;   /* soft green alt background                */
  --line:    #e3ece0;   /* borders / dividers                       */

  /* Derived shades */
  --accent-dark:  #4c8442;  /* darker green for hovers               */
  --accent-deep:  #2f4d28;  /* deepest green for dark sections       */
  --amber-dark:   #d29a32;
  --danger:       #c0392b;
  --star:         #e8b04b;

  /* --- Fonts --- */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 10px 30px rgba(47, 77, 40, .08);
  --shadow-lg: 0 24px 60px rgba(47, 77, 40, .15);
  --ease:      .35s cubic-bezier(.4, 0, .2, 1);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
}

/* ---------------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--muted);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 90px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 60px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(95, 160, 82, .12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(95, 160, 82, .35);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 30px rgba(95, 160, 82, .45); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-amber {
  background: var(--accent2);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(232, 176, 75, .4);
}
.btn-amber:hover { background: var(--amber-dark); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: #fff; color: var(--accent-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(47,77,40,.08); }
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(95, 160, 82, .4);
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .96rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface); color: var(--accent-dark); }
.nav-links a.active { color: var(--accent-dark); background: var(--surface); }

/* Header actions: search + cart */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(95,160,82,.12); }
.search svg { color: var(--muted); flex: 0 0 auto; }
.search input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  width: 170px;
  outline: none;
}
.search input::placeholder { color: var(--muted); }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(95,160,82,.35);
  transition: transform var(--ease), background var(--ease);
}
.cart-pill:hover { transform: translateY(-2px); background: var(--accent-dark); }
.cart-pill .cart-count {
  background: var(--accent2);
  color: var(--ink);
  font-size: .8rem;
  min-width: 22px; height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid; place-items: center;
  line-height: 1;
  transition: transform var(--ease);
}
.cart-count.is-bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(232,176,75,.22), transparent 60%),
    radial-gradient(720px 500px at -5% 110%, rgba(95,160,82,.16), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 86px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-meta div strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); display: block; line-height: 1; }
.hero-meta div span { font-size: .9rem; color: var(--muted); }

/* Hero produce visual — pure CSS, no image files */
.hero-visual { position: relative; min-height: 420px; }
.hero-basket {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #fff, var(--surface));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-basket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.produce-tile {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 2.6rem;
  box-shadow: inset 0 -10px 24px rgba(0,0,0,.06);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent2); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero-float {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.hero-float span { font-size: 1.7rem; }
.hero-float small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-float strong { font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.hero-float--1 { top: -18px; right: 18px; }
.hero-float--2 { bottom: -16px; left: -10px; }

/* ---------------------------------------------------------------------
   CATEGORY TILES
   --------------------------------------------------------------------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--cat, var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: block;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card .cat-emoji { font-size: 2.6rem; display: block; margin-bottom: 18px; }
.category-card h3 { color: var(--ink); margin-bottom: 4px; }
.category-card .cat-link { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--accent-dark); }
.category-card .cat-count { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   PRODUCT GRID + CARDS
   --------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.products--3 { grid-template-columns: repeat(3, 1fr); }
.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(95,160,82,.3); }
.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--grad, linear-gradient(135deg, #d4fc79, #96e6a1));
  display: grid; place-items: center;
  font-size: 3.4rem;
}
.product__media .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.badge--sale { background: var(--danger); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--organic { background: var(--accent); color: #fff; }
.product__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); font-weight: 700; font-family: var(--font-head); }
.product__name { font-size: 1.06rem; margin: 6px 0 6px; }
.product__name a { color: var(--ink); }
.product__name a:hover { color: var(--accent-dark); }
.product__rating { color: var(--star); font-size: .9rem; margin-bottom: 8px; letter-spacing: 1px; }
.product__rating span { color: var(--muted); font-size: .82rem; letter-spacing: 0; }
.product__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; margin-top: auto; }
.product__price .price { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.product__price .unit { font-size: .82rem; color: var(--muted); }
.product__price .price--old { font-size: .92rem; color: var(--muted); text-decoration: line-through; }
.btn-add {
  width: 100%;
  justify-content: center;
  background: var(--surface);
  color: var(--accent-dark);
  border: 1.5px solid var(--line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--ease), color var(--ease), transform var(--ease);
}
.btn-add:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   PROMO / DEAL BANNER
   --------------------------------------------------------------------- */
.promo {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(500px 360px at 90% 20%, rgba(232,176,75,.3), transparent 60%),
    linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  padding: 52px 48px;
  box-shadow: var(--shadow-lg);
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255,255,255,.88); max-width: 440px; }
.promo .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.promo__visual { position: relative; min-height: 200px; display: grid; place-items: center; }
.promo__circle {
  width: 170px; height: 170px;
  border-radius: 50%;
  background: var(--accent2);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 2.8rem;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.promo__circle small { font-size: .9rem; letter-spacing: .1em; }
.promo__emoji { position: absolute; font-size: 2.2rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); }
.promo__emoji--1 { top: 6%; left: 8%; }
.promo__emoji--2 { bottom: 8%; right: 12%; }
.promo__emoji--3 { top: 16%; right: 6%; }

/* ---------------------------------------------------------------------
   SEASONAL STRIP
   --------------------------------------------------------------------- */
.seasonal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--ease);
}
.season-chip:hover { transform: translateY(-4px); }
.season-chip .s-emoji { font-size: 2rem; }
.season-chip b { font-family: var(--font-head); color: var(--ink); display: block; }
.season-chip span { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   TRUST STRIP / FEATURES
   --------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-box .f-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--surface);
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--accent-dark);
}
.feature-box h3 { font-size: 1.02rem; margin-bottom: 2px; }
.feature-box p { font-size: .9rem; margin-bottom: 0; }

/* ---------------------------------------------------------------------
   NEWSLETTER
   --------------------------------------------------------------------- */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(400px 300px at 0% 0%, rgba(95,160,82,.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px;
}
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { margin-bottom: 0; }
.newsletter__field { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter__field input {
  flex: 1; min-width: 220px;
  font-family: var(--font-body); font-size: 1rem;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.newsletter__field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(95,160,82,.12); }
.newsletter__field input.is-error { border-color: var(--danger); }
.newsletter__msg { margin: 12px 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.newsletter__msg.is-error { color: var(--danger); }
.newsletter__msg.is-success { color: var(--accent-dark); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(232,176,75,.28), transparent 60%),
    linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(700px 400px at 85% -20%, rgba(232,176,75,.2), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff);
  padding: 60px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin-bottom: 10px; }
.page-banner p { max-width: 620px; color: var(--muted); margin-bottom: 0; }
.breadcrumb { font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb span { margin: 0 6px; }

/* ---------------------------------------------------------------------
   SHOP — sidebar + grid + pagination
   --------------------------------------------------------------------- */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 38px; align-items: start; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.shop-toolbar .result-count { font-size: .92rem; color: var(--muted); }
.filter-toggle { display: none; }

.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.filter-list label { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--muted); padding: 5px 0; cursor: pointer; }
.filter-list input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-range { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.filter-range-vals { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.sidebar select, .toolbar-select {
  width: 100%;
  font-family: var(--font-body); font-size: .94rem; color: var(--ink);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  cursor: pointer;
}
.toolbar-select { width: auto; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--muted);
  background: #fff;
  transition: all var(--ease);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------------------------------------------------------------
   PRODUCT DETAIL (product.html)
   --------------------------------------------------------------------- */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--gallery, linear-gradient(135deg, #d4fc79, #96e6a1));
  display: grid; place-items: center;
  font-size: 7rem;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--thumb, var(--surface));
  display: grid; place-items: center;
  font-size: 2rem;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.gallery__thumb:hover { transform: translateY(-3px); }
.gallery__thumb.is-active { border-color: var(--accent); }

.pd-cat { font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); }
.pd-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 8px 0 10px; }
.pd-rating { color: var(--star); margin-bottom: 14px; letter-spacing: 1px; }
.pd-rating span { color: var(--muted); font-size: .88rem; letter-spacing: 0; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.pd-price .price { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); }
.pd-price .unit { color: var(--muted); font-size: .95rem; }
.pd-price .price--old { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }
.pd-desc { margin-bottom: 24px; }

.pd-option { margin-bottom: 20px; }
.pd-option__label { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 10px; }
.pd-option__value { color: var(--accent-dark); }
.size-row { display: flex; gap: 10px; flex-wrap: wrap; }
.size-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; transition: all var(--ease);
}
.size-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.size-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pd-buy-row { display: flex; gap: 14px; align-items: center; margin: 24px 0 18px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 44px; height: 46px; border: none; background: #fff; cursor: pointer;
  font-size: 1.3rem; color: var(--accent-dark); font-family: var(--font-head);
  transition: background var(--ease);
}
.qty button:hover { background: var(--surface); }
.qty input {
  width: 48px; height: 46px; border: none; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
  outline: none; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-buy-row .btn-add { width: auto; flex: 1; min-width: 150px; background: var(--accent); color: #fff; border-color: var(--accent); padding: 13px 22px; }
.pd-buy-row .btn-add:hover { background: var(--accent-dark); }
.btn-buy { flex: 1; min-width: 150px; justify-content: center; }

.pd-meta { border-top: 1px solid var(--line); padding-top: 18px; font-size: .9rem; color: var(--muted); }
.pd-meta div { margin-bottom: 6px; }
.pd-meta b { color: var(--ink); font-family: var(--font-head); }

/* Tabs */
.tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs__btn {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 12px 20px; border: none; background: none; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color var(--ease), border-color var(--ease);
}
.tabs__btn:hover { color: var(--accent-dark); }
.tabs__btn.is-active { color: var(--accent-dark); border-color: var(--accent); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }
.nutrition-table { width: 100%; border-collapse: collapse; max-width: 460px; }
.nutrition-table th, .nutrition-table td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.nutrition-table th { font-family: var(--font-head); color: var(--ink); }
.nutrition-table td { color: var(--muted); text-align: right; }

/* ---------------------------------------------------------------------
   ABOUT — stats, story
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: 24px;
  min-height: 380px;
  background: linear-gradient(150deg, var(--accent-deep), var(--accent));
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff; padding: 32px;
}
.split-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 80% 20%, rgba(232,176,75,.32), transparent 60%); }
.split-media .sm-inner { position: relative; z-index: 1; text-align: center; }
.split-media .sm-emoji { font-size: 3.2rem; margin-bottom: 8px; }
.split-media strong { font-family: var(--font-head); font-size: 1.4rem; display: block; }
.split-media p { color: rgba(255,255,255,.85); margin: 6px 0 0; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: grid; place-items: center; font-weight: 700;
  box-shadow: 0 6px 14px rgba(95,160,82,.35);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { margin-bottom: 0; font-size: .96rem; }

.stats-band { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff; }
.stats-band .section-head h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong {
  font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem);
  display: block; line-height: 1;
  background: linear-gradient(120deg, #fff, var(--accent2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { color: rgba(255,255,255,.82); font-size: .95rem; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(95,160,82,.25); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(95,160,82,.14), rgba(232,176,75,.2));
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(95,160,82,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: var(--danger); font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: #ecfdf0; border: 1px solid #a7dcae; color: var(--accent-dark); font-weight: 600; }
.form-status.show { display: block; }

.info-card { background: var(--surface); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .info-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); }
.info-row b { font-family: var(--font-head); color: var(--ink); display: block; }
.info-row span { font-size: .94rem; }
.map-placeholder {
  border-radius: var(--radius); min-height: 260px;
  background:
    linear-gradient(rgba(95,160,82,.06), rgba(95,160,82,.06)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 42px),
    var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--muted);
}
.map-placeholder .pin { font-size: 2.4rem; }
.map-placeholder b { font-family: var(--font-head); color: var(--ink); display: block; }

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer { background: var(--accent-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.footer-about p { font-size: .95rem; color: rgba(255,255,255,.72); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1rem; }
.social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------------
   TOAST
   --------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; z-index: 200;
  transition: opacity var(--ease), transform var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

/* Mobile drawer backdrop (shop filter) */
.backdrop { position: fixed; inset: 0; background: rgba(31,45,26,.4); opacity: 0; pointer-events: none; z-index: 90; transition: opacity var(--ease); }
.backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products, .categories, .features, .seasonal { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; }
  .search input { width: 130px; }
  .shop-layout { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; gap: 32px; }

  /* Shop sidebar becomes a slide-in drawer */
  .filter-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw;
    z-index: 95; border-radius: 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform var(--ease);
  }
  .sidebar.is-open { transform: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px; margin-left: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .header-actions .search { display: none; }
  .header-actions { gap: 8px; }

  .promo, .newsletter { grid-template-columns: 1fr; }
  .promo { padding: 40px 28px; }
  .newsletter { padding: 36px 26px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .products, .categories, .features, .seasonal, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .hero-meta { gap: 22px; }
}
