/* Even Food Mart · storefront styles.
   Visual language: an editorial market in the logo's colours. Warm paper and cream
   surfaces, the logo's deep green for structure, terracotta for the main actions, the
   logo's gold and soft leaf greens as small accents. Fraunces (serif) for headings with italic terracotta accent words, Inter
   for everything you read and tap. Arch-framed photography, hairline rules, softly
   rounded controls, generous space. Mobile first. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
/* Fraunces by the Fraunces Project Authors, SIL Open Font License 1.1 (fonts/Fraunces-OFL.txt). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-italic.woff2') format('woff2');
}

:root {
  /* brand: forest is the logo's green (#024F26 = forest-800), gold is the logo's leaf (#CA9018 = gold-500).
     White text never goes on gold (2.8:1); gold surfaces take forest-950 text. */
  --forest-950: #01261a;
  --forest-900: #02331f;
  --forest-850: #024124;
  --forest-800: #024f26;
  --forest-700: #11623a;
  --leaf-700: #1c6b3c;
  --leaf-600: #2a7f49;
  --leaf-200: #c6dec8;
  --leaf-100: #dfeedd;
  --leaf-50: #eff6ec;
  --terra-800: #7e3619;
  --terra-700: #923f1f;
  --terra-600: #a84e2a;
  --terra-500: #c2663f;
  --terra-200: #e9c3ae;
  --terra-100: #f7e3d7;
  --terra-50: #fbf1ea;
  --gold-500: #ca9018;
  --gold-400: #e2ae43;
  --gold-200: #f0d9a0;
  --gold-100: #f8edcf;
  --paper: #faf6ee;
  --cream: #f3ecde;
  --cream-2: #eae0cb;
  --white: #ffffff;
  --ink: #2b2118;
  --ink-2: #54453a;
  --ink-3: #6b5d51;
  --line: #e6dcc9;
  --line-2: #cfc1a8;
  --red: #b42318;
  --red-bg: #fdecea;
  --ok: #1f6b3a;
  --ok-bg: #e4f0e3;
  --warn: #8a5300;
  --warn-bg: #fcf1d9;
  --on-dark: #ece7d6;
  --on-dark-2: #cfcbb5;
  /* type */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  /* shape + motion */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --arch: 999px 999px var(--r-lg) var(--r-lg);
  /* elevation, tinted with the logo's green: rest (hairline cards), raised (summaries, pop-overs), lifted (a card
     under the pointer) */
  --shadow-1: 0 1px 2px rgba(1, 38, 26, .04), 0 4px 12px -6px rgba(1, 38, 26, .08);
  --shadow-2: 0 18px 40px -18px rgba(1, 38, 26, .26), 0 4px 12px rgba(1, 38, 26, .06);
  --shadow-lift: 0 28px 46px -24px rgba(1, 38, 26, .4), 0 10px 20px -12px rgba(1, 38, 26, .16);
  /* the gilt edge: a card that leads somewhere turns its hairline gold under the pointer or keyboard focus, rises
     3px and eases its photo in; cards that only inform stay still */
  --gilt: var(--gold-500);
  --card-dur: 320ms;
  --photo-dur: 700ms;
  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1500px;
  --tabbar-h: 0px;
  /* names used by the staff area (admin.css) */
  --g-950: var(--forest-950);
  --g-900: var(--forest-900);
  --g-850: var(--forest-850);
  --g-800: var(--forest-800);
  --g-700: var(--forest-700);
  --g-600: var(--leaf-600);
  --g-100: var(--leaf-100);
  --g-50: var(--leaf-50);
  --y-500: var(--gold-500);
  --y-600: #a8750e;
  --y-300: var(--gold-200);
  --y-100: var(--gold-100);
  --y-ink: #694700;
  --green-950: var(--g-950);
  --green-900: var(--g-900);
  --green-800: var(--g-800);
  --green-700: var(--g-700);
  --green-600: var(--g-600);
  --green-100: var(--g-100);
  --green-50: var(--g-50);
  --ivory: var(--paper);
  --ivory-2: var(--cream);
  --amber-500: var(--y-500);
  --amber-600: var(--y-600);
  --amber-100: var(--y-100);
  --amber-ink: var(--y-ink);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --shadow: var(--shadow-2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-800); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra-700); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--forest-900); }
h1, h2 { font-family: var(--serif); font-weight: 520; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 .75em; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, var(--leaf-600)); outline-offset: 2px; }
.hdr, .ftr, .toast, .auth-alt { --focus: var(--gold-400); }
main:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--forest-800); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
@media (min-width: 1200px) { .wrap { padding: 0 32px; } }
.text-bad { color: var(--red); }
.text-ok { color: var(--ok); }
.breakall { word-break: break-all; }
/* "*word*" accents: italic terracotta inside serif headings, gold on dark bars */
.hl { font-style: italic; color: var(--terra-600); }
h1 .hl, h2 .hl { font-weight: 460; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--sans); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; color: var(--terra-700);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--gold-400); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-weight: 620; font-size: .95rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; background: var(--white); color: var(--ink); text-align: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 140ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
/* the arrow travels a little on hover; no filled circle */
.btn-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-ico { transform: translateX(3px); }
/* primary action (class names kept from the first design: yellow = main, green = dark); both are the logo's green,
   the main action lifted by a soft shadow */
.btn-yellow, .btn-add { background: var(--forest-800); color: var(--white); box-shadow: 0 10px 22px -12px rgba(1, 38, 26, .55); }
.btn-yellow:hover, .btn-add:hover { background: var(--forest-900); color: var(--white); box-shadow: 0 14px 26px -12px rgba(1, 38, 26, .65); }
.btn-green, .btn-primary { background: var(--forest-800); color: var(--white); }
.btn-green:hover, .btn-primary:hover { background: var(--forest-900); color: var(--white); }
/* Buy Now under Add to Cart: the same green, outlined, so the two read as first and second choice */
.btn-buy { background: var(--white); color: var(--forest-800); border: 2px solid var(--forest-800); }
.btn-buy:hover { background: var(--forest-800); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.btn-outline, .btn-ghost { background: transparent; color: var(--forest-800); border-color: var(--line-2); }
.btn-outline:hover, .btn-ghost:hover { background: var(--forest-800); color: var(--white); border-color: var(--forest-800); }
.btn-link { background: transparent; color: var(--forest-800); padding: 0 6px; min-height: 36px; text-decoration: underline; font-weight: 600; border: 0; }
.btn-link:hover { color: var(--terra-700); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #8f1c13; color: var(--white); }
.btn-lg { min-height: 54px; font-size: 1rem; padding: 0 28px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 10px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn[aria-busy='true'] { cursor: progress; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold-500); color: var(--forest-950); font-size: .75rem; font-weight: 750; }

/* square-rounded icon controls (class names kept from the first design) */
.circle-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--white); color: var(--forest-900); cursor: pointer; text-decoration: none; font-size: 1.5rem; line-height: 1;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.circle-btn:hover { border-color: var(--forest-800); color: var(--forest-900); background: var(--leaf-50); }
.circle-btn-dark { border-color: var(--line-2); color: var(--forest-900); }
.circle-btn-dark:hover { background: var(--leaf-50); border-color: var(--forest-800); color: var(--forest-950); }
.circle-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--forest-800); background: var(--white);
}
.circle-ico.sm { width: 30px; height: 30px; border-radius: 9px; }
.circle-ico.yellow { background: var(--gold-500); border-color: var(--gold-500); color: var(--forest-950); }

/* language selector: a small segmented control */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); flex: none; }
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 11px;
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-opt:hover { background: var(--cream); color: var(--forest-900); }
.lang-opt[aria-current='true'] { background: var(--forest-800); color: var(--white); }
.lang-drawer { border-color: var(--line-2); }

/* ------------------------------------------------------------------ header */
/* A deep green bar with the logo, delivery or pickup, a wide rounded search, language, account and cart, and a
   compact department row below it on every screen. */

.hdr-main { background: var(--forest-800); color: var(--white); }
/* phones: menu, logo, account and cart, then the search */
.hdr-row {
  display: grid; align-items: center; gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: 'menu brand acct cart' 'search search search search';
  padding-top: 10px; padding-bottom: 12px;
}
.hdr-menu { grid-area: menu; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: var(--white); }
.hdr-menu:hover { background: rgba(255, 255, 255, .16); border-color: var(--white); color: var(--white); }
/* the logo (cream on green here, its own colours in the menu drawer); its width follows its height */
.brand { grid-area: brand; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 0; text-decoration: none; border-radius: 6px; }
.brand img { display: block; width: auto; height: 52px; }
@media (max-width: 767px) { .hdr .brand img { height: 46px; } }
@media (max-width: 389px) { .hdr .brand img { height: 42px; } }
/* the narrowest phones: the bottom bar has Account, so the top row keeps the menu, logo and cart */
@media (max-width: 359px) { .hdr-row .hdr-acct { display: none; } .hdr-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'menu brand cart' 'search search search'; } }
.ff-btn { display: none; }
.search {
  --focus: var(--leaf-600); grid-area: search; position: relative; display: flex; align-items: center; gap: 4px; height: 52px; padding: 4px;
  background: var(--white); border: 2px solid transparent; border-radius: 999px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search:hover { border-color: var(--gold-200); }
.search:focus-within { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(226, 174, 67, .35); }
.search-dept { display: none; position: relative; flex: none; height: 100%; }
.search-dept select {
  appearance: none; height: 100%; border: 0; background: var(--cream); color: var(--ink);
  font: inherit; font-size: .84rem; font-weight: 600; padding: 0 32px 0 16px; border-radius: 999px; max-width: 190px; cursor: pointer;
}
.search-dept svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }
.search-field { flex: 1; min-width: 0; position: relative; display: flex; height: 100%; }
.search-field input { width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 0 14px; color: var(--ink); border-radius: 999px; }
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: #81725f; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--forest-800); color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur) var(--ease);
}
.search-btn:hover { background: var(--forest-950); }
.search.is-loading .search-btn svg { display: none; }
.search.is-loading .search-btn::after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.suggest {
  position: absolute; left: -6px; right: -54px; top: calc(100% + 12px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line);
  max-height: min(70vh, 460px); overflow-y: auto;
}
.suggest li { margin: 0; }
.suggest a, .suggest .sugg-msg { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.suggest a[aria-selected='true'], .suggest a:hover { background: var(--cream); }
.suggest img, .suggest .sugg-ph { width: 52px; height: 39px; object-fit: cover; border-radius: 8px; flex: none; background: var(--cream-2); }
.suggest .sugg-name { font-weight: 650; display: block; }
.suggest .sugg-meta { font-size: .85rem; color: var(--ink-3); }
.suggest .sugg-meta strong { color: var(--ink); }
.suggest .sugg-msg { display: block; font-size: .9rem; color: var(--ink-2); }
.suggest .sugg-all { font-weight: 650; color: var(--terra-700); }
/* on the green bar: language, account and cart in light outline */
.lang-main { display: none; grid-area: lang; }
.hdr .lang { background: transparent; border-color: rgba(255, 255, 255, .3); }
.hdr .lang-opt { color: var(--on-dark); }
.hdr .lang-opt:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.hdr .lang-opt[aria-current='true'] { background: var(--gold-400); color: var(--forest-950); }
.hdr-acct { grid-area: acct; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); text-decoration: none; border-radius: 999px; }
.hdr-acct:hover { color: var(--white); }
.hdr-acct .circle-ico {
  width: 44px; height: 44px; border-radius: 50%; background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--white);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hdr-acct:hover .circle-ico, .hdr-acct[aria-current='page'] .circle-ico { border-color: var(--gold-400); background: rgba(255, 255, 255, .08); }
.hdr-acct-text { display: none; flex-direction: column; min-width: 0; line-height: 1.2; }
.hdr-acct-text small { font-size: .74rem; color: var(--on-dark-2); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-acct-text strong { font-size: .88rem; font-weight: 650; white-space: nowrap; }
.hdr-cart { grid-area: cart; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--white); text-decoration: none; border-radius: 999px; }
.hdr-cart:hover { color: var(--white); }
.hdr-cart-label { display: none; font-weight: 700; }
.hdr-cart-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hdr-cart:hover .hdr-cart-icon { border-color: var(--gold-400); background: rgba(255, 255, 255, .08); }
.cart-count {
  position: absolute; top: -5px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--gold-400); color: var(--forest-950); font-size: .7rem; font-weight: 750; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--forest-800); font-variant-numeric: tabular-nums;
}
.cart-count.bump { animation: bump .35s ease-out; }
@keyframes bump { 50% { transform: scale(1.25); } }

/* phones and tablets: delivery or pickup (and on phones the language) in a darker strip under the search */
.hdr-strip { background: var(--forest-900); color: var(--on-dark); }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.ff-bar {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--on-dark-2);
  font: inherit; font-size: .875rem; cursor: pointer; text-align: left; min-width: 0;
}
.ff-bar svg { color: var(--gold-400); flex: none; }
.ff-bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-bar strong { color: var(--white); font-weight: 650; }
.ff-bar:hover strong { text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 4px; }

/* department row: small photo chips; swipes on phones, scrolls with arrows on tablets, equal slots on wide screens */
.hdr-tabs { --focus: var(--leaf-600); position: relative; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.tabs-wrap { position: relative; }
.tabs-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px; }
.tabs-list::-webkit-scrollbar { display: none; }
.tabs-list > li { flex: none; min-width: 0; }
.tabs-wrap.can-right .tabs-list { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.tabs-wrap.can-left .tabs-list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.tabs-wrap.can-left.can-right .tabs-list { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.tabs-scroll {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--forest-900); cursor: pointer;
  box-shadow: var(--shadow-1); transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tabs-scroll:hover { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.tabs-scroll.prev { left: 16px; }
.tabs-scroll.next { right: 16px; }
@media (min-width: 768px) {
  .tabs-scroll.prev { left: 24px; } .tabs-scroll.next { right: 24px; }
  .tabs-wrap.can-left .tabs-scroll.prev, .tabs-wrap.can-right .tabs-scroll.next { display: inline-flex; }
}
@media (pointer: coarse) { .tabs-scroll { width: 44px; height: 44px; } }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 4px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tab-thumb {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  background: var(--cream-2); color: var(--forest-800); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tab-thumb-all { background: var(--gold-400); color: var(--forest-950); }
.tab:hover, .tab.is-previewed { background: var(--cream); color: var(--forest-900); }
.tab:hover .tab-thumb, .tab.is-previewed .tab-thumb { transform: scale(1.06); }
.tab[aria-current='page'] { background: var(--forest-800); color: var(--white); }
.tab[aria-current='page'] .tab-thumb { box-shadow: 0 0 0 2px var(--gold-400); }
.tab-all { font-weight: 700; }
@media (pointer: coarse) { .tab { min-height: 44px; } }
@media (min-width: 1280px) {
  .tabs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: auto; justify-content: space-between; gap: 4px; overflow: visible; }
  .tabs-rail > li { display: flex; }
  .tabs-rail .tab { width: 100%; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 14px; white-space: normal; line-height: 1.18; font-size: .8rem; }
  .tabs-rail .tab-all { padding-right: 16px; font-size: .84rem; }
  .tabs-rail .tab-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tabs-rail ~ .tabs-scroll { display: none !important; }
  .tabs-wrap .tabs-rail { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* department preview panel (desktop hover) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -24px rgba(1, 38, 26, .3); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.mega-inner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; padding-top: 22px; padding-bottom: 24px; color: var(--ink); }
.mega-inner[data-kind='all'] { grid-template-columns: minmax(0, 1fr); }
.mega-feature { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 240px; border-radius: var(--r-lg); overflow: hidden; color: var(--white); text-decoration: none; }
.mega-feature:hover { color: var(--white); }
.mega-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 400ms var(--ease); }
.mega-feature:hover .mega-feature-img { transform: scale(1.04); }
.mega-feature-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 38, 26, .05) 0%, rgba(1, 38, 26, .55) 45%, rgba(1, 38, 26, .92) 100%); }
.mega-feature-text { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.mega-feature-text small { align-self: flex-start; background: var(--gold-500); color: var(--forest-950); padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.mega-feature-text strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 520; letter-spacing: -0.01em; line-height: 1.12; }
.mega-feature-text > span:not(.btn) { font-size: .88rem; color: rgba(255, 255, 255, .9); }
.mega-feature-text .btn { align-self: flex-start; margin-top: 6px; }
.mega-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mega-prod { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.mega-prod .frame { border-radius: 10px; }
.mega-prod:hover { border-color: var(--gilt); transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.mega-prod:hover .frame img { transform: scale(1.04); }
.mega-prod strong { font-size: .92rem; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-prod .price-amt { font-size: 1rem; }
.mega-avail { font-size: .78rem; font-weight: 650; }
.mega-all-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.mega-title { margin: 0; font-size: 1.5rem; }
.mega-depts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mega-dept { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.mega-dept .frame { margin-bottom: 6px; aspect-ratio: 4 / 5; border-radius: var(--arch); }
.mega-dept:hover .frame img { transform: scale(1.04); }
.mega-dept strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 540; line-height: 1.25; color: var(--forest-900); }
.mega-dept small { color: var(--ink-3); }
.mega-skel { grid-column: 1 / -1; display: grid; grid-template-columns: 300px repeat(4, minmax(0, 1fr)); gap: 14px; }
.mega-skel span { display: block; height: 220px; border-radius: var(--r-lg); background: var(--cream); animation: skel 1.1s ease-in-out infinite alternate; }
@keyframes skel { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 1023px) { .mega { display: none; } }

/* tablets: menu, logo, search, account and cart on one row; delivery or pickup and the language in the strip */
@media (min-width: 768px) {
  .hdr-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: 'menu brand search acct cart';
    gap: 12px; padding-top: 12px; padding-bottom: 12px;
  }
}
/* wide screens: delivery or pickup moves into the bar; the cart is the yellow-green accent */
@media (min-width: 1024px) {
  .hdr-menu { display: none; }
  .hdr-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; grid-template-areas: 'brand ff search lang acct cart'; gap: 16px; }
  .lang-main { display: inline-flex; }
  .hdr-strip { display: none; }
  .ff-btn {
    grid-area: ff; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 3px 16px 3px 3px; border: 0; border-radius: 999px;
    background: rgba(0, 0, 0, .2); color: var(--white); font: inherit; cursor: pointer; text-align: left; transition: background-color var(--dur) var(--ease);
  }
  .ff-btn:hover { background: rgba(0, 0, 0, .32); }
  .ff-btn .circle-ico { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold-400); color: var(--forest-950); }
  .ff-btn-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .ff-btn small { font-size: .72rem; color: var(--on-dark-2); }
  .ff-btn strong { font-size: .86rem; font-weight: 650; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search { height: 50px; }
  .search-btn { width: 42px; height: 42px; }
  .hdr-cart { min-height: 50px; padding: 3px; background: var(--gold-400); color: var(--forest-950); transition: background-color var(--dur) var(--ease); }
  .hdr-cart:hover { background: var(--gold-200); color: var(--forest-950); }
  .hdr-cart-icon { width: 44px; height: 44px; border: 0; background: rgba(1, 38, 26, .1); color: var(--forest-950); }
  .hdr-cart:hover .hdr-cart-icon { background: rgba(1, 38, 26, .16); }
  .hdr-cart .cart-count { background: var(--forest-950); color: var(--white); border-color: var(--gold-400); }
}
@media (pointer: coarse) { .search { height: 52px; } .search-btn { width: 44px; height: 44px; } }
@media (min-width: 1280px) { .search-dept { display: block; } .search-dept select { max-width: 150px; } }
@media (min-width: 1440px) { .search-dept select { max-width: 190px; } }
@media (min-width: 1240px) {
  .hdr-acct-text { display: flex; }
  .hdr-cart { padding-left: 18px; }
  .hdr-cart-label { display: inline; }
}

/* ------------------------------------------------------------------ mobile tab bar, drawer, dialog, toast */
/* phones: a floating dock in the logo's green; the page you are on sits in a gold pill */
.tabbar {
  --focus: var(--gold-400);
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 6px;
  background: rgba(2, 51, 31, .92); border: 1px solid rgba(255, 255, 255, .09); border-radius: 26px;
  box-shadow: 0 20px 36px -16px rgba(1, 38, 26, .6), 0 4px 12px rgba(1, 38, 26, .2);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 4px 2px;
  border-radius: 20px; color: rgba(236, 231, 214, .72); font-size: .7rem; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: color var(--dur) var(--ease);
}
.tab-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 30px; border-radius: 999px;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 160ms var(--ease);
}
.tabbar a:hover { color: var(--white); }
.tabbar a:hover .tab-ico { background: rgba(255, 255, 255, .08); }
.tabbar a:active .tab-ico { transform: scale(.94); }
.tabbar a[aria-current='page'] { color: var(--white); font-weight: 700; }
.tabbar a[aria-current='page'] .tab-ico { background: var(--gold-400); color: var(--forest-950); }
/* the cart count: a white badge cut out of the dock, readable on the gold pill too */
.tab-cart .cart-count { top: -6px; right: 5px; background: var(--white); color: var(--forest-950); border-color: var(--forest-900); }
/* room for the dock: on phones the footer's dark base runs on behind it, so nothing is hidden and no cream strip shows */
body { --tabbar-h: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 767px) { body { padding-bottom: 0; } .ftr-base .ftr-base-row { padding-bottom: calc(20px + var(--tabbar-h)); } }
@media (min-width: 768px) { .tabbar { display: none; } body { --tabbar-h: 0px; } }

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(1, 38, 26, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(90vw, 380px); background: var(--paper); overflow-y: auto; box-shadow: var(--shadow-2); animation: drawer-in 240ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.drawer-head .brand img { height: 44px; }
.drawer-body { padding: 18px 14px 28px; }
.drawer-top { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.drawer-top .btn { flex: 1; }
.drawer-title { font-family: var(--sans); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; color: var(--terra-700); margin: 0 4px 10px; }
.drawer-depts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.drawer-depts a {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: var(--r-md); background: var(--white);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 64px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.drawer-depts a:hover { border-color: var(--gilt); background: var(--white); box-shadow: var(--shadow-1); color: var(--ink); }
.drawer-thumb { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--cream); color: var(--forest-800); display: inline-flex; align-items: center; justify-content: center; }
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-dept-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.drawer-dept-text strong { font-family: var(--serif); font-weight: 540; font-size: 1.05rem; color: var(--forest-900); }
.drawer-dept-text small { color: var(--ink-3); }
.drawer-depts .circle-ico { color: var(--forest-800); }
.drawer-links { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
.drawer-links a { display: flex; align-items: center; min-height: 46px; padding: 0 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer-links a:hover { color: var(--terra-700); text-decoration: underline; }

.dlg { border: 0; border-radius: var(--r-xl); padding: 0; width: min(92vw, 470px); box-shadow: 0 30px 70px rgba(1, 38, 26, .35); color: var(--ink); background: var(--paper); }
.dlg::backdrop { background: rgba(1, 38, 26, .45); }
.dlg-body { padding: 20px 22px 22px; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dlg-head h2 { font-size: 1.35rem; margin-top: 8px; }
.dlg-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px); z-index: 90;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(92vw, 520px); padding: 12px 12px 12px 18px; border-radius: var(--r-lg);
  background: var(--forest-900); color: var(--white); box-shadow: var(--shadow-2); font-size: .95rem; animation: toast-in 220ms var(--ease);
}
@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }
.toast a { flex: none; color: var(--forest-950); background: var(--gold-500); font-weight: 700; white-space: nowrap; text-decoration: none; padding: 10px 16px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.toast a:hover { background: var(--gold-400); color: var(--forest-950); }
.toast span { line-height: 1.35; }
.toast.is-error { background: var(--red); }
.toast.is-error a { color: var(--red); background: var(--white); }

/* ------------------------------------------------------------------ hero banner + photo cards */
/* Colour schemes shared by the hero slides and the photo cards (--hs-*). Light schemes use the green button,
   dark ones their own light accent. */
.hs-market {
  --hs-bg: #efe2c9; --hs-glow: rgba(255, 255, 255, .5); --hs-ink: var(--forest-900); --hs-text: var(--ink-2); --hs-accent: var(--terra-700); --hs-eyebrow: var(--terra-700);
  --hs-media: var(--cream-2); --hs-btn: var(--forest-800); --hs-btn-hover: var(--forest-950); --hs-btn-ink: var(--white);
}
/* spices: cinnamon bark and saffron */
.hs-spice {
  --hs-bg: #3a1d10; --hs-glow: rgba(194, 102, 63, .45); --hs-ink: #fbefe2; --hs-text: #ead6c3; --hs-accent: #f0b356; --hs-eyebrow: #f0b356;
  --hs-media: rgba(255, 255, 255, .08); --hs-btn: #f0b356; --hs-btn-hover: #f5c77f; --hs-btn-ink: #2b1508; --focus: #f0b356;
}
/* nuts and seeds: roasted honey */
.hs-honey {
  --hs-bg: #f5e6c8; --hs-glow: rgba(226, 178, 96, .45); --hs-ink: #3f2510; --hs-text: #5e4630; --hs-accent: #9a5a14; --hs-eyebrow: #8a4b10;
  --hs-media: #ead2a4; --hs-btn: var(--forest-800); --hs-btn-hover: var(--forest-950); --hs-btn-ink: var(--white);
}
/* rice, grains and pulses: a dry-season field */
.hs-field {
  --hs-bg: #edf0d8; --hs-glow: rgba(202, 144, 24, .25); --hs-ink: var(--forest-900); --hs-text: #4a4b2e; --hs-accent: var(--leaf-700); --hs-eyebrow: #4f600e;
  --hs-media: #dfe4bd; --hs-btn: var(--forest-800); --hs-btn-hover: var(--forest-950); --hs-btn-ink: var(--white);
}
/* fresh vegetables and fruit: deep leaf green */
.hs-garden {
  --hs-bg: #063a20; --hs-glow: rgba(42, 127, 73, .5); --hs-ink: #f1f6ee; --hs-text: #cfe0d0; --hs-accent: var(--gold-400); --hs-eyebrow: var(--gold-400);
  --hs-media: rgba(255, 255, 255, .08); --hs-btn: var(--gold-500); --hs-btn-hover: var(--gold-400); --hs-btn-ink: var(--forest-950); --focus: var(--gold-400);
}
/* cooking pastes: turmeric */
.hs-turmeric {
  --hs-bg: #f6e5b0; --hs-glow: rgba(238, 186, 64, .45); --hs-ink: #3a2905; --hs-text: #594418; --hs-accent: #a1480f; --hs-eyebrow: #8f400d;
  --hs-media: #ecd48c; --hs-btn: var(--forest-800); --hs-btn-hover: var(--forest-950); --hs-btn-ink: var(--white);
}
/* eggs and more: clay and eggshell */
.hs-clay {
  --hs-bg: #f1dccd; --hs-glow: rgba(214, 140, 104, .3); --hs-ink: #3a1f14; --hs-text: #5a3f33; --hs-accent: #9c4426; --hs-eyebrow: #8b3a1f;
  --hs-media: #e8c9b5; --hs-btn: var(--forest-800); --hs-btn-hover: var(--forest-950); --hs-btn-ink: var(--white);
}

.home-top { padding-top: 16px; }
/* a contained banner: words on the left, a framed photo on the right (on top on phones) */
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--cream-2); }
/* every slide sits in the same grid cell, so the banner keeps one height and nothing below moves */
.hero-slides { display: grid; touch-action: pan-y; }
.hero-slide {
  grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; min-width: 0; visibility: hidden; opacity: 0;
  color: var(--hs-text); background: radial-gradient(40rem 24rem at 0% 0%, var(--hs-glow), transparent 70%), var(--hs-bg);
}
.hero-slide.is-active { z-index: 2; visibility: visible; opacity: 1; transition: opacity .6s var(--ease); }
.hero-slide.is-leaving { z-index: 1; visibility: visible; opacity: 1; }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 18px 20px 22px; }
.hero-slide .eyebrow { color: var(--hs-eyebrow); margin-bottom: 10px; }
.hero-title { font-family: var(--serif); font-size: clamp(1.9rem, 7.6vw, 2.5rem); font-weight: 560; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--hs-ink); }
.hero-l1, .hero-l2 { display: block; }
.hero-l2 { font-style: italic; font-weight: 440; color: var(--hs-accent); }
.hero-body { display: none; font-size: 1.02rem; color: var(--hs-text); max-width: 42ch; margin: 0 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; }
.hero-slide .btn-yellow { background: var(--hs-btn); color: var(--hs-btn-ink); box-shadow: none; }
.hero-slide .btn-yellow:hover { background: var(--hs-btn-hover); color: var(--hs-btn-ink); box-shadow: 0 10px 22px -14px rgba(1, 38, 26, .7); }
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--hs-ink); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero-link:hover { color: var(--hs-ink); text-decoration-thickness: 2px; }
.hero-media { position: relative; display: block; order: -1; margin: 10px 10px 0; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--hs-media); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media.fit-contain { background: var(--white); }
.hero-media.fit-contain img { object-fit: contain; padding: 6%; }
.hs-market .hero-media img { object-position: center 60%; animation: hero-settle 1.6s var(--ease) both; }
@keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
/* live offers pill above the welcome headline */
.hero-offer {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 14px; padding: 7px 14px 7px 11px; min-height: 44px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--terra-200); color: var(--ink); text-decoration: none; font-size: .84rem; line-height: 1.3;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero-offer:hover { border-color: var(--terra-600); color: var(--ink); box-shadow: var(--shadow-2); }
.hero-offer strong { color: var(--terra-700); font-weight: 700; }
.hero-offer time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hero-offer svg { color: var(--terra-600); flex: none; transition: transform var(--dur) var(--ease); }
.hero-offer:hover svg { transform: translateX(3px); }
.hero-offer-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--terra-600); animation: offer-pulse 2s ease-out infinite; }
@keyframes offer-pulse { 0% { box-shadow: 0 0 0 0 rgba(168, 78, 42, .45); } 70% { box-shadow: 0 0 0 10px rgba(168, 78, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 78, 42, 0); } }
.hero-offer.is-ended .hero-offer-dot { animation: none; background: var(--ink-3); }
@media (max-width: 419px) { .hero-offer svg { display: none; } }

/* controls: a small frosted-glass pill over the photo with pause, previous, one dot per slide and next;
   the dot of the slide on show stretches and fills while it shows */
.hero-nav {
  --focus: var(--white); position: absolute; z-index: 3; top: 16px; right: 16px; display: flex; align-items: center; gap: 1px; padding: 2px;
  border-radius: 999px; color: var(--white); border: 1px solid rgba(255, 255, 255, .42);
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .2)), rgba(1, 38, 26, .3);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .1), 0 10px 26px -12px rgba(0, 0, 0, .5);
}
.hero-ctl {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); transition: background-color var(--dur) var(--ease);
}
.hero-ctl svg { width: 15px; height: 15px; }
.hero-ctl:hover { background: rgba(255, 255, 255, .22); }
.hero-toggle .ico-play, .hero-toggle.is-paused .ico-pause { display: none; }
.hero-toggle.is-paused .ico-play { display: block; margin-left: 2px; }
.hero-dots { display: flex; align-items: center; padding: 0 1px; }
.hero-dot {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 28px; padding: 0;
  border: 0; border-radius: 999px; background: none; cursor: pointer; transition: width .3s var(--ease);
}
.hero-dot-bar { position: relative; display: block; width: 5px; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .35); transition: width .3s var(--ease), background-color var(--dur) var(--ease); }
.hero-dot:hover .hero-dot-bar { background: rgba(255, 255, 255, .85); }
.hero-dot[aria-current='true'] { width: 22px; }
.hero-dot[aria-current='true'] .hero-dot-bar { width: 16px; background: rgba(255, 255, 255, .35); }
.hero-dot-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--white); transform: scaleX(0); transform-origin: left center; }
.hero-dot[aria-current='true'] .hero-dot-fill { transform: none; }
.hero.is-playing .hero-dot[aria-current='true'] .hero-dot-fill { animation: hero-fill var(--hero-dur, 3s) linear both; }
.hero.is-playing.is-held .hero-dot[aria-current='true'] .hero-dot-fill { animation-play-state: paused; }
@keyframes hero-fill { from { transform: scaleX(0); } to { transform: none; } }
/* browsers without backdrop blur: a plain dark tint keeps the white icons readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hero-nav { background: rgba(1, 38, 26, .62); } }
/* touch screens: the buttons look the same but take a 44 px tap, and a swipe also works; the dots only show where you are */
@media (pointer: coarse) {
  .hero-nav { gap: 6px; padding: 3px 4px; }
  .hero-ctl { width: 32px; height: 32px; }
  .hero-ctl::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
  .hero-dots { pointer-events: none; }
  .hero-dot { height: 32px; }
}

/* motion once the slideshow has moved on from the first slide: the photo drifts, the words rise in */
@keyframes hero-drift { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(10px); } }
.hero.has-turned .hero-slide:is(.is-active, .is-leaving) .hero-media img { animation: hero-drift 3.5s cubic-bezier(.2, .6, .3, 1) both; }
.hero.has-turned .hero-slide.is-active .hero-copy > * { animation: hero-rise .6s var(--ease) both; }
.hero.has-turned .hero-slide.is-active .hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero.has-turned .hero-slide.is-active .hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero.has-turned .hero-slide.is-active .hero-copy > :nth-child(4) { animation-delay: .18s; }

@media (min-width: 768px) {
  .hero-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 300px; }
  .hero-copy { padding: 28px 24px 28px 32px; }
  .hero-media { order: 0; margin: 14px 14px 14px 0; aspect-ratio: auto; }
  .hero-title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
  .hero-nav { top: 24px; right: 24px; }
}
@media (min-width: 1024px) { .hero-body { display: block; } }
@media (min-width: 1200px) {
  .hero-slide { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: 360px; }
  .hero-copy { padding: 40px 32px 40px 52px; }
  .hero-media { margin: 18px 18px 18px 0; }
  .hero-nav { top: 30px; right: 30px; }
}

/* photo cards: one large on the left, a wide card over two small ones in the middle, one tall on the right.
   Each card is one link; its photo fills the side or the foot of the card. */
.promos { margin-top: 14px; }
.promo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.promo-cell { display: flex; min-width: 0; }
.promo {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); width: 100%; min-height: 150px;
  border-radius: var(--r-xl); overflow: hidden; background: var(--hs-bg); color: var(--hs-text); text-decoration: none;
  transition: transform var(--card-dur) var(--ease), box-shadow var(--card-dur) var(--ease);
}
/* the gilt edge is drawn above the photo */
.promo::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(1, 38, 26, .06); pointer-events: none; transition: box-shadow var(--card-dur) var(--ease); }
.promo:hover { color: var(--hs-text); }
.promo:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.promo:focus-visible::after { box-shadow: inset 0 0 0 1.5px var(--gilt); }
@media (hover: hover) {
  .promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .promo:hover::after { box-shadow: inset 0 0 0 1.5px var(--gilt); }
}
.promo:focus-visible { outline: 3px solid var(--leaf-600); outline-offset: 3px; }
.promo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 18px 14px 18px 20px; }
.promo-eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--hs-eyebrow); }
.promo-title { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 4.6vw, 1.45rem); font-weight: 560; line-height: 1.1; letter-spacing: -0.01em; color: var(--hs-ink); }
.promo-cta {
  display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: .9rem; font-weight: 700; color: var(--hs-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.promo-cta svg { flex: none; transition: transform var(--dur) var(--ease); }
.promo:hover .promo-cta svg { transform: translateX(3px); }
.promo-media { position: relative; overflow: hidden; background: var(--hs-media); }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--photo-dur) var(--ease); }
.promo-media.fit-contain { background: var(--white); }
.promo-media.fit-contain img { object-fit: contain; padding: 8%; }
.promo:hover .promo-media img, .promo:focus-visible .promo-media img { transform: scale(1.04); }
/* stacked cards: the words on top, the photo filling the rest */
.promo-a .promo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(190px, 1fr); }
.promo-a .promo-title { font-size: clamp(1.55rem, 6.4vw, 2rem); }
@media (min-width: 640px) {
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'a b' 'a e' 'c d'; gap: 16px; }
  .promo-a { grid-area: a; } .promo-b { grid-area: b; } .promo-c { grid-area: c; } .promo-d { grid-area: d; } .promo-e { grid-area: e; }
  .promo { min-height: 190px; }
  .promo-c .promo, .promo-d .promo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(120px, 1fr); }
  .promo-title { font-size: 1.35rem; }
}
@media (min-width: 1200px) {
  .promos { margin-top: 20px; }
  .promo-grid {
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 2.3fr) minmax(0, 2.3fr) minmax(0, 3fr);
    grid-template-rows: minmax(250px, auto) minmax(240px, auto); grid-template-areas: 'a b b e' 'a c d e'; gap: 20px;
  }
  .promo-e .promo { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(200px, 1fr); }
  .promo-text { padding: 24px 20px 22px 26px; }
  .promo-title { font-size: clamp(1.3rem, 1.6vw, 1.6rem); }
  .promo-a .promo-title, .promo-e .promo-title { font-size: clamp(1.6rem, 2.2vw, 2.25rem); }
  .promo-c .promo-title, .promo-d .promo-title { font-size: 1.22rem; }
}
/* if a department is missing, the cards that remain sit in an even grid */
.promo-grid.promo-grid-plain { grid-template-areas: none; grid-template-rows: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.promo-grid-plain .promo-cell { grid-area: auto; }

/* homepage sections: a compact heading row with its link on the right */
.home-sec { padding-top: 32px; }
@media (min-width: 900px) { .home-sec { padding-top: 48px; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 20px; margin-bottom: 16px; }
.sec-title { margin: 0; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.1; color: var(--forest-900); }
.sec-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--forest-800); font-weight: 700; font-size: .92rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap;
}
.sec-link:hover { color: var(--forest-950); text-decoration-thickness: 2px; }
.sec-link svg { flex: none; transition: transform var(--dur) var(--ease); }
.sec-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------ bands + section heads */
.band { padding-top: 44px; padding-bottom: 44px; }
.band-cream { background: var(--cream); }
.band-white { background: var(--paper); }
.band-tight-top { padding-top: 44px; }
.band:has(> .wrap > .crumbs:first-child) { padding-top: 4px; }
@media (min-width: 900px) { .band { padding-top: 72px; padding-bottom: 72px; } }
.section { padding-top: 36px; padding-bottom: 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.section-head .section-title { margin: 0; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.08; color: var(--forest-900); }

/* ------------------------------------------------------------------ frames (every image) */
.frame {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden;
  background: var(--cream); isolation: isolate;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--photo-dur) var(--ease); }
.frame.fit-contain { background: var(--white); }
.frame.fit-contain img { object-fit: contain; padding: 6%; }
.frame-lg { border-radius: var(--r-xl); }
/* products without a photo yet: one calm placeholder, never another product's photo */
.img-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(160deg, var(--leaf-50), var(--cream)); color: var(--ink-3); font-size: .78rem; font-weight: 650; letter-spacing: .02em; text-align: center; padding: 10px; }
.img-ph-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--forest-700); box-shadow: 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ department tiles: arch photos, names below */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1200px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .tiles-page { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.tile-frame { aspect-ratio: 4 / 5; border-radius: var(--arch); }
.tiles-page .tile-frame { aspect-ratio: 5 / 4; border-radius: var(--r-xl); }
.tile-shade { display: none; }
.tile-text { display: flex; flex-direction: column; gap: 2px; padding-right: 44px; }
.tile-text strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 540; line-height: 1.2; letter-spacing: -0.005em; color: var(--forest-900); }
.tile-text small { color: var(--ink-3); font-weight: 600; font-size: .8rem; letter-spacing: .02em; }
.tile-go {
  position: absolute; right: 0; bottom: 2px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--forest-800); background: var(--white);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tile:hover, .tile:focus-visible { color: var(--ink); }
.tile-frame, .mega-dept .frame { transition: transform var(--card-dur) var(--ease), box-shadow var(--card-dur) var(--ease); }
.tile-frame::after, .mega-dept .frame::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(1, 38, 26, .06); pointer-events: none; transition: box-shadow var(--card-dur) var(--ease); }
.tile:focus-visible .tile-frame { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile:focus-visible .tile-frame::after { box-shadow: inset 0 0 0 1.5px var(--gilt); }
@media (hover: hover) {
  .tile:hover .tile-frame, .mega-dept:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .tile:hover .tile-frame::after, .mega-dept:hover .frame::after { box-shadow: inset 0 0 0 1.5px var(--gilt); }
}
.tile:hover .frame img, .tile:focus-visible .frame img { transform: scale(1.04); }
.tile:hover .tile-go, .tile:focus-visible .tile-go { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); transform: translateX(2px); }
.tile:hover .tile-text strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--gilt); }
@media (min-width: 640px) { .tile-text strong { font-size: 1.15rem; } }

/* ------------------------------------------------------------------ product cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* related products (up to six): rows of 2, 3 or 6, so one is never left on its own */
@media (min-width: 768px) and (max-width: 1199px) { .related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .related .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.grid > li { min-width: 0; display: flex; }
.card {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); container-type: inline-size; box-shadow: var(--shadow-1);
  transition: transform var(--card-dur) var(--ease), border-color var(--card-dur) var(--ease), box-shadow var(--card-dur) var(--ease);
}
.card-media { position: relative; display: block; text-decoration: none; }
.card-media .frame { border-radius: 10px; } /* the card's 18px less its 8px padding: corners stay concentric */
.card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 6px 4px; flex: 1; }
.card-title { font-family: var(--sans); font-size: .98rem; font-weight: 650; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-title a:hover { color: var(--forest-800); }
.card-title a:focus-visible { outline: none; }
.card-alt { margin: -2px 0 0; font-family: var(--serif); font-style: italic; font-size: .88rem; color: var(--ink-3); }
.card .add-form, .card > .card-body > .btn-add { position: relative; z-index: 1; margin-top: auto; padding-top: 8px; }
/* in cards: a solid green Add to Cart, so the action is always clear */
.card .btn-add { min-height: 44px; padding: 0 12px; gap: 7px; font-size: .9rem; border-radius: 999px; background: var(--forest-800); color: var(--white); border-color: var(--forest-800); box-shadow: none; }
.card .btn-add:hover, .card .btn-add:focus-visible { background: var(--forest-950); border-color: var(--forest-950); color: var(--white); box-shadow: none; }
.card .btn-add[disabled] { background: var(--cream-2); border-color: var(--cream-2); color: var(--ink-2); opacity: 1; }
.card:focus-within { border-color: var(--gilt); box-shadow: 0 0 0 3px rgba(202, 144, 24, .22), var(--shadow-lift); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: var(--gilt); box-shadow: var(--shadow-lift); }
  .card:hover .frame img { transform: scale(1.04); }
}
@container (max-width: 170px) { .card .btn-add svg { display: none; } .card .btn-add { font-size: .85rem; } }
.price { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price-amt { font-size: 1.12rem; font-weight: 720; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price-per { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; background: var(--cream); color: var(--ink-2); font-size: .76rem; font-weight: 650; }
.price-lg .price-amt { font-size: clamp(1.7rem, 4vw, 2.1rem); }
.price-lg .price-per { font-size: .88rem; padding: 2px 10px; }
.avail { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 2px 6px; margin: 0; font-size: .82rem; font-weight: 650; line-height: 1.35; }
.avail svg { margin-top: 1px; }
.avail-in_stock { color: var(--ok); }
.avail-low { color: var(--warn); }
.avail-out { color: var(--red); }
.avail-unconfirmed { color: var(--ink-3); }
.avail-note { grid-column: 2; font-weight: 400; color: var(--ink-3); }
/* single column with a side-by-side card on the narrowest phones */
@media (max-width: 359px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid .card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 10px; align-items: start; }
  .grid .card-body { padding: 2px 2px 2px 0; }
}

/* shelves (accessible horizontal collections) */
.shelf { padding: 18px 0 12px; }
.shelf + .shelf { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 12px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.shelf-head h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.05rem); min-width: 0; }
.shelf-head .btn, .section-head > .btn { flex: none; white-space: nowrap; }
.shelf-scroll { position: relative; }
.shelf-list { list-style: none; margin: 0 -4px; padding: 4px 4px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; scroll-padding: 4px; }
.shelf-list > li { scroll-snap-align: start; min-width: 0; display: flex; }
@media (max-width: 359px) { .shelf-list { grid-auto-columns: 72%; } }
@media (min-width: 768px) { .shelf-list { grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; } }
@media (min-width: 1200px) { .shelf-list { grid-auto-columns: calc((100% - 90px) / 6); } }
.shelf-nav {
  position: absolute; top: 28%; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white);
  color: var(--forest-900); box-shadow: var(--shadow-2); cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.shelf-nav:hover { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.shelf-nav.prev { left: -12px; }
.shelf-nav.next { right: -12px; }
@media (hover: hover) and (min-width: 900px) { .shelf-nav { display: inline-flex; } .shelf-nav[disabled] { opacity: 0; pointer-events: none; } }

/* ------------------------------------------------------------------ homepage: how ordering works, about */
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--forest-800); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.info { display: grid; gap: 16px; }
.info-how .sec-title { margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.steps h3 { margin: 2px 0 4px; font-size: 1rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.steps .step-n { width: 32px; height: 32px; color: var(--gold-400); font-weight: 750; }
.info-box { padding: 18px 20px 8px; border-radius: var(--r-lg); background: var(--leaf-50); border: 1px solid var(--leaf-100); }
.info-title { margin: 0 0 12px; font-size: 1rem; }
.info-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 9px; }
.info-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.info-list svg { flex: none; margin-top: 1px; color: var(--ok); }
.info-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
@media (min-width: 900px) {
  .info { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .steps li { flex-direction: column; height: 100%; }
}
.home-about { padding-bottom: 48px; }
.about-panel {
  --focus: var(--gold-400); display: grid; gap: 14px 36px; align-items: center; padding: 26px 22px;
  border-radius: var(--r-xl); background: var(--forest-900); color: var(--on-dark);
}
.about-panel .eyebrow { margin-bottom: 8px; }
.about-title { margin: 0; color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; }
.about-title .hl { color: var(--gold-400); }
.about-text { margin: 0; max-width: 62ch; color: var(--on-dark-2); }
.about-panel .btn { justify-self: start; }
@media (min-width: 900px) { .about-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; padding: 32px 40px; } }

/* ------------------------------------------------------------------ shared blocks */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 10px; padding: 16px 0 0; font-size: .82rem; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin: 0 7px 0 3px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--terra-700); text-decoration: underline; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid; margin: 0 0 14px; }
.notice > svg { flex: none; margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.notice-title { font-weight: 700; margin-bottom: 4px; }
.notice-info { background: var(--leaf-50); border-color: var(--leaf-100); color: var(--forest-950); }
.notice-ok { background: var(--ok-bg); border-color: var(--leaf-200); color: #2f3c08; }
.notice-warn { background: var(--warn-bg); border-color: #efd8a6; color: #4d3400; }
.notice-error { background: var(--red-bg); border-color: #f4c3bd; color: #7a1610; }
.placeholder { display: inline-block; padding: 0 8px; border: 1px dashed #c9a456; background: var(--gold-100); color: var(--y-ink); border-radius: 6px; font-size: .85em; }
.placeholder-block { padding: 12px 14px; border: 1px dashed #c9a456; background: var(--gold-100); color: var(--y-ink); border-radius: var(--r-md); }
.empty { text-align: center; padding: 48px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-1); }
.empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cream); color: var(--terra-600); margin-bottom: 14px; }
.empty .actions { justify-content: center; }
.page-narrow { max-width: 860px; padding-bottom: 48px; }
.prose { padding-bottom: 48px; }
.prose p, .prose li { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; display: flex; align-items: center; gap: 10px; font-size: 1.6rem; }
.prose h2 svg { color: var(--terra-600); flex: none; }
.lead { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--terra-700); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 4px; font-weight: 600; text-decoration: none; }
.link-list.compact a { padding: 7px 0; font-weight: 500; }
.link-list a[aria-current='page'] { font-weight: 700; color: var(--terra-700); }
.facts { margin: 0 0 14px; display: grid; gap: 10px; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.facts dt svg { color: var(--terra-600); flex: none; }
.facts dd { margin: 0; }
.card-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.card-box h2 { font-size: 1.3rem; }
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.pill-soft { background: var(--leaf-50); color: var(--forest-800); margin-left: 6px; }
.pill-payment-paid, .pill-fulfillment-completed { background: var(--ok-bg); color: var(--ok); border-color: var(--leaf-200); }
.pill-payment-unpaid, .pill-fulfillment-pending { background: var(--cream); color: var(--ink-2); border-color: var(--line-2); }
.pill-payment-pending, .pill-payment-pending_verification, .pill-payment-partially_paid { background: var(--warn-bg); color: var(--warn); border-color: #efd8a6; }
.pill-payment-failed, .pill-payment-cancelled, .pill-fulfillment-cancelled, .pill-fulfillment-expired { background: var(--red-bg); color: var(--red); border-color: #f4c3bd; }
.pill-payment-refunded { background: #efedea; color: #3e3a35; }
.pill-fulfillment-confirmed, .pill-fulfillment-ready, .pill-fulfillment-out_for_delivery { background: var(--leaf-50); color: var(--forest-800); border-color: var(--leaf-100); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 650; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot th { font-weight: 650; }
.table .sum-total th, .table .sum-total td { font-weight: 750; font-size: 1.05rem; border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 14px; }
.field label, .qty-label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea, .price-range input, .sort select, .stack-form input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--forest-700); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .price-range input:focus, .sort select:focus, .stack-form input:focus { outline: none; border-color: var(--forest-800); box-shadow: 0 0 0 4px rgba(2, 79, 38, .12); }
[aria-invalid='true'] { border-color: var(--red) !important; }
.field-error { color: var(--red); font-size: .875rem; margin: 6px 0 0; font-weight: 600; }
.hint { color: var(--ink-3); font-size: .85rem; margin: 5px 0 0; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .95rem; min-height: 36px; }
.opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest-800); flex: none; }
@media (pointer: coarse) { .opt { min-height: 44px; align-items: center; } }
.stack-form { max-width: 480px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }

/* ------------------------------------------------------------------ listing pages */
.page-head { background: var(--cream); padding-bottom: 26px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.listing { padding-top: 24px; padding-bottom: 44px; }
.listing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.listing-head h1 { margin: 0; }
.listing-head .count { margin: 0; color: var(--ink-3); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.listing-desc { color: var(--ink-2); margin: 10px 0 0; max-width: 64ch; font-size: 1.02rem; }
.listing-body { display: grid; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 650; margin-left: auto; }
.sort select { min-height: 44px; width: auto; max-width: 100%; padding: 6px 36px 6px 14px; font-size: .9rem; border-radius: 12px; }
@media (max-width: 479px) { .sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .sort { min-width: 0; flex: 1 1 auto; justify-content: flex-end; } .sort select { min-width: 0; } }
.busy-dot { display: none; width: 18px; height: 18px; border: 2px solid var(--forest-800); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.results.is-loading .busy-dot { display: inline-block; }
.results.is-loading .grid, .results.is-loading .chips { opacity: .45; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; min-height: 40px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); color: var(--forest-900); text-decoration: none; font-size: .875rem; font-weight: 600; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.chip span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--forest-900); font-size: 1rem; line-height: 1; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--forest-800); color: var(--forest-950); }
.chip:hover span { background: var(--forest-800); color: var(--white); }
.chip-clear { border-style: dashed; padding-right: 14px; color: var(--terra-700); }
@media (pointer: coarse) { .chip { min-height: 44px; } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; align-self: start; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters-head h2 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.filters-head .circle-ico { color: var(--terra-600); }
.filters-close { display: none; }
.filters fieldset { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.filters legend { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); float: left; width: 100%; margin-bottom: 8px; }
.filters legend + * { clear: both; }
.filters .opt { padding: 4px 0; font-size: .92rem; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; clear: both; }
.price-range label span { display: block; font-size: .8rem; color: var(--ink-3); margin-bottom: 4px; }
.price-range input { min-height: 44px; }
.filters-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.filters-backdrop { display: none; }
.filters-toggle { display: none; position: relative; }
.js .filters-toggle { display: inline-flex; }
.js .filters-actions .btn-yellow { display: none; }
@media (max-width: 1023px) {
  .js .filters {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 85; width: min(90vw, 380px); border-radius: 0 var(--r-xl) var(--r-xl) 0; border: 0;
    overflow-y: auto; padding: 0 16px 96px; transform: translateX(-104%); visibility: hidden;
    transition: transform 260ms var(--ease), visibility 0s linear 260ms; box-shadow: var(--shadow-2);
  }
  .js .filters[data-open] { transform: none; visibility: visible; transition: transform 260ms var(--ease); }
  .js .filters-head { position: sticky; top: 0; z-index: 1; background: var(--white); padding: 14px 0 10px; margin: 0 0 4px; }
  .js .filters-close { display: inline-flex; }
  .js .filters-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 84; background: rgba(1, 38, 26, .45); }
  .js .filters[data-open] .filters-actions { position: fixed; left: 0; bottom: 0; width: min(90vw, 380px); background: var(--white); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .js .filters[data-open] .filters-actions .btn { flex: 1; }
  .js .filters[data-open] .filters-actions .btn-yellow { display: inline-flex; }
}
@media (min-width: 1024px) {
  .listing-body { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .js .filters-toggle { display: none; }
  .filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .listing .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1320px) { .listing .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ product page */
.pdp { padding-bottom: 44px; }
.pdp-grid { display: grid; gap: 24px; }
.gallery { min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; }
.gallery-thumbs button { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--white); cursor: pointer; overflow: hidden; width: 72px; aspect-ratio: 4 / 3; transition: border-color var(--dur) var(--ease); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-pressed='true'] { border-color: var(--forest-800); box-shadow: 0 0 0 2px var(--terra-200); }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 4px; }
.pdp-alt { font-family: var(--serif); font-style: italic; color: var(--ink-3); font-size: 1.2rem; margin-bottom: 8px; }
.pdp-dept { font-size: .9rem; margin-bottom: 12px; }
.pdp-dept a { display: inline-flex; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); text-decoration: none; font-weight: 650; font-size: .82rem; color: var(--forest-800); transition: border-color var(--dur) var(--ease); }
.pdp-dept a:hover { border-color: var(--forest-800); color: var(--forest-900); }
.pdp-unit { color: var(--ink-2); font-size: .95rem; }
.pdp-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.pdp-section h2 { font-family: var(--sans); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; color: var(--terra-700); margin-bottom: 8px; }
.pdp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.pdp-names dt { font-size: .74rem; color: var(--ink-3); font-weight: 650; text-transform: uppercase; letter-spacing: .1em; }
.pdp-names dd { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 520; color: var(--forest-900); }
.allergens { color: var(--red); }
.buybox { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; align-self: start; display: grid; gap: 14px; box-shadow: var(--shadow-2); }
.buybox .price { margin: 0; }
.buybox .notice { margin: 0; }
.buy-form { display: grid; gap: 12px; }
.variants { display: grid; gap: 8px; margin: 0; }
.variant { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; min-height: 48px; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.variant:hover { border-color: var(--forest-700); }
.variant:has(input:checked) { border-color: var(--forest-800); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--forest-800); }
.variant input { accent-color: var(--forest-800); width: 18px; height: 18px; }
.variant span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; flex: 1; }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty-ctl input { width: 86px; min-height: 44px; text-align: center; font: inherit; font-size: 1rem; font-weight: 700; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); -moz-appearance: textfield; }
.qty-ctl input:focus { outline: none; border-color: var(--forest-800); box-shadow: 0 0 0 4px rgba(2, 79, 38, .12); }
.qty-ctl input::-webkit-outer-spin-button, .qty-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); color: var(--forest-900); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.qty-btn:hover { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.qty-btn:active { transform: scale(.94); }
.qty-unit { font-weight: 650; color: var(--ink-2); }
.line-preview { margin: 0; font-size: .95rem; color: var(--ink-2); }
.buybox-ff { border-top: 1px solid var(--line); padding-top: 14px; }
.buybox-ff h2 { font-family: var(--sans); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .14em; color: var(--terra-700); margin-bottom: 10px; }
.buybox-ff p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: .92rem; }
.buybox-ff .circle-ico { color: var(--forest-800); }
.wish-form .btn-link { display: inline-flex; align-items: center; gap: 6px; }
.wish-form .is-on { color: var(--red); }
.credit-line { font-size: .78rem; color: var(--ink-3); margin-top: 28px; }
@media (min-width: 768px) { .pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .buybox { grid-column: 2; } .gallery { grid-row: span 2; } }
@media (min-width: 1100px) {
  .pdp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(290px, 3fr); gap: 32px; }
  .gallery { grid-row: auto; }
  .buybox { grid-column: auto; position: sticky; top: 12px; }
}

/* ------------------------------------------------------------------ cart + checkout + order */
.cart-page, .checkout, .order-page, .account { padding-bottom: 48px; }
.cart-page h1, .checkout h1 { margin-top: 18px; }
.cart-grid, .co-grid, .order-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
  .co-grid { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }
  .order-grid { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
}
.cart-lines { list-style: none; margin: 0 0 10px; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding: 16px; border-bottom: 1px solid var(--line); transition: opacity var(--dur) var(--ease); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.has-issue { background: #fffaf0; }
.cart-line.is-removing { opacity: .4; }
.cart-line[aria-busy='true'] .cart-total { color: var(--ink-3); }
.cart-img { display: block; }
.cart-img .frame { border-radius: var(--r-sm); }
.cart-img .img-ph { font-size: 0; }
.cart-img .img-ph-ico { width: 34px; height: 34px; }
.cart-info h3 { margin: 0 0 2px; font-size: 1rem; }
.cart-info h3 a { color: var(--ink); text-decoration: none; }
.cart-info h3 a:hover { text-decoration: underline; }
.cart-unit { margin: 0 0 6px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cart-unit span { display: inline-flex; padding: 1px 8px; border-radius: 6px; background: var(--cream); color: var(--ink-2); font-size: .76rem; }
.line-issue { color: var(--red); font-size: .875rem; font-weight: 650; margin: 0 0 6px; }
.line-issue:empty { display: none; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.cart-actions .btn-link { min-height: 44px; }
.cart-qty-form { display: flex; align-items: center; gap: 8px; }
.js .js-hide { display: none; }
.cart-total { grid-column: 2; margin: 4px 0 0; font-weight: 720; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 120px minmax(0, 1fr) auto; } .cart-total { grid-column: 3; grid-row: 1; margin: 0; } }
@media (max-width: 639px) {
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: 'img name total' 'img unit unit' 'img issue issue' 'act act act'; gap: 2px 12px; align-items: start; }
  .cart-info { display: contents; }
  .cart-img { grid-area: img; }
  .cart-info h3 { grid-area: name; }
  .cart-unit { grid-area: unit; }
  .line-issue { grid-area: issue; }
  .cart-actions { grid-area: act; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .cart-total { grid-area: total; margin: 0; }
}
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-2); }
@media (min-width: 900px) { .summary { position: sticky; top: 12px; } }
.summary h2 { font-size: 1.4rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-total { font-size: 1.1rem; border-bottom: 0; }
.sum-lines { list-style: none; margin: 0 0 6px; padding: 0; font-size: .92rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.sum-lines small { color: var(--ink-3); display: block; }
.summary .btn-block { margin: 14px 0 10px; }
.wa-box { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.wa-box .btn { margin: 0 0 8px; }
.co-section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.co-section legend { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 540; font-size: 1.35rem; color: var(--forest-900); float: left; width: 100%; margin-bottom: 16px; }
.co-section legend + * { clear: both; }
.co-section .step-n { width: 32px; height: 32px; font-family: var(--sans); font-size: .88rem; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 14px; clear: both; }
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  cursor: pointer; background: var(--white); min-height: 52px; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.choice:hover { border-color: var(--forest-700); box-shadow: var(--shadow-1); }
.choice input { accent-color: var(--forest-800); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice span strong { display: inline-flex; align-items: center; gap: 8px; }
.choice small { color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--forest-800); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--forest-800); }
.choice-wide { margin-bottom: 10px; }
.choice-grid .choice > span { flex-direction: row; align-items: center; gap: 8px; }
.choice-grid .choice > span svg { color: var(--terra-600); flex: none; }
.choice-grid .choice { align-items: center; }
.pay-list { clear: both; }
.co-summary .sum-total strong { font-size: 1.25rem; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 18px 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); border-left: 4px solid var(--gilt); box-shadow: var(--shadow-1); }
.order-ref { font-family: var(--serif); font-weight: 520; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: .01em; margin: 0; font-variant-numeric: tabular-nums; }
.order-head .eyebrow { margin-bottom: 6px; }
.status-pair { display: flex; gap: 18px; margin: 0; flex-wrap: wrap; }
.status-pair dt { font-size: .74rem; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; }
.status-pair dd { margin: 0; }
.ref-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.ref-form .field { margin: 0; flex: 1 1 220px; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.timeline li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.timeline time { color: var(--ink-3); white-space: nowrap; }
.order-items td small { font-size: .82rem; }
.card-box .btn-block { margin-bottom: 8px; }

/* ------------------------------------------------------------------ account */
.auth-grid { display: grid; gap: 20px; padding: 24px 16px 48px; }
@media (min-width: 900px) { .auth-grid { grid-template-columns: 1.2fr 1fr; max-width: 980px; } }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; margin-top: 16px; box-shadow: var(--shadow-1); }
.auth-alt { background: var(--forest-900); border-color: var(--forest-900); color: var(--on-dark); }
.auth-alt h2 { color: var(--white); }
.auth-alt a:not(.btn) { color: var(--gold-400); }
.auth-alt .muted { color: var(--on-dark-2); }
.auth-alt .btn-green, .auth-alt .btn-primary { background: var(--gold-500); color: var(--forest-950); }
.auth-alt .btn-green:hover, .auth-alt .btn-primary:hover { background: var(--gold-400); color: var(--forest-950); }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 12px; }
.account-head h1 { margin: 0; }
.addr-list { list-style: none; margin: 0 0 10px; padding: 0; }
.addr-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.add-address summary { cursor: pointer; font-weight: 650; color: var(--forest-800); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

/* order history + management */
.btn-danger-outline { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-danger-outline:hover { background: var(--red-bg); color: var(--red); }
.dlg-actions-split { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.edit-order { margin-bottom: 10px; }
.edit-order summary { list-style: none; cursor: pointer; }
.edit-order summary::-webkit-details-marker { display: none; }
.edit-order[open] summary { margin-bottom: 12px; }
.order-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--forest-900); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chip-btn:hover { border-color: var(--forest-800); }
.chip-btn[aria-pressed='true'] { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--white); box-shadow: var(--shadow-1); }
.order-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; justify-content: space-between; }
.order-card-ref { font-weight: 750; font-size: 1.05rem; letter-spacing: .02em; }
.order-card-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.order-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ------------------------------------------------------------------ footer */
.ftr { margin-top: 0; }
.ftr-body { background: var(--forest-900); color: var(--on-dark-2); }
.ftr a { color: var(--on-dark); text-decoration: none; }
.ftr a:hover { color: var(--gold-400); text-decoration: underline; }
.ftr-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding-top: 44px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr-statement { margin: 0; font-family: var(--serif); font-weight: 480; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--white); max-width: 24ch; }
.ftr-statement .hl { color: var(--gold-400); }
.ftr-grid { display: grid; gap: 30px 20px; padding-top: 36px; padding-bottom: 36px; grid-template-columns: 1fr 1fr; }
.ftr-brand { grid-column: 1 / -1; }
@media (max-width: 359px) { .ftr-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .ftr-brand { grid-column: auto; } }
@media (min-width: 1024px) { .ftr-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.ftr h2 { font-family: var(--sans); color: var(--gold-400); font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { padding: 5px 0; font-size: .92rem; }
.brand-ftr img { height: 76px; }
.ftr-contact { margin-top: 16px !important; }
.ftr-contact li { display: flex; align-items: center; gap: 10px; }
.ftr-contact .circle-ico { color: var(--gold-400); background: transparent; border-color: rgba(255, 255, 255, .2); }
.ftr .placeholder { background: transparent; border-color: rgba(226, 174, 67, .55); color: var(--gold-200); }
.ftr-base { background: var(--forest-950); }
.ftr-base-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 16px; padding-bottom: 20px; font-size: .8rem; color: var(--on-dark-2); }
.ftr-base p { margin: 0; }

/* ------------------------------------------------------------------ motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .card:hover, .tile:hover, .tile:hover .tile-frame, .tile:focus-visible .tile-frame, .promo:hover, .promo:focus-visible, .mega-prod:hover, .mega-dept:hover .frame { transform: none !important; }
  .card:hover .frame img, .tile:hover .frame img, .tile:focus-visible .frame img, .promo:hover .promo-media img, .promo:focus-visible .promo-media img, .mega-prod:hover .frame img, .mega-dept:hover .frame img { transform: none !important; }
  .spin, .busy-dot, .search.is-loading .search-btn::after { animation-duration: 1.5s !important; animation-iteration-count: infinite !important; }
  /* the slideshow never plays on its own here; if the shopper presses play, the bar still times each slide */
  .hero.is-playing .hero-dot[aria-current='true'] .hero-dot-fill { animation-duration: var(--hero-dur, 3s) !important; }
}
@media print {
  .hdr, .ftr, .tabbar, .toast, .drawer, .hero-nav, .hero-slide:not(.is-active) { display: none !important; }
  body { background: #fff; padding: 0; }
}

.shop-paused { background: var(--gold-100); border-bottom: 1px solid var(--gold-200); color: var(--forest-950); font-weight: 650; font-size: .92rem; padding: 10px 0; text-align: center; }

/* ------------------------------------------------------------------ landing page: offers, departments, aisles */
/* special offers: a terracotta panel with its own shelf */
.offers { --focus: var(--gold-200); }
.offers-panel { position: relative; isolation: isolate; overflow: hidden; padding: 22px 16px 6px; border-radius: var(--r-xl); background: var(--terra-700); color: var(--white); }
.offers-panel::before { content: ''; position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -10rem; top: -16rem; border-radius: 50%; background: radial-gradient(circle, rgba(194, 102, 63, .55), transparent 70%); pointer-events: none; }
.offers .sec-title { color: var(--white); }
.offers .sec-title .hl { color: var(--gold-200); }
.offers .sec-link { color: var(--white); }
.offers .sec-link:hover { color: var(--gold-200); }
.offers-lead { color: rgba(255, 255, 255, .88); max-width: 56ch; margin: 8px 0 0; font-size: .95rem; }
.offers .shelf-list { grid-auto-columns: 64%; }
.offers .card { border-color: transparent; box-shadow: 0 18px 30px -20px rgba(43, 20, 8, .55); }
@media (hover: hover) { .offers .card:hover { border-color: var(--gilt); box-shadow: 0 28px 40px -20px rgba(43, 20, 8, .6); } }
@media (min-width: 560px) { .offers .shelf-list { grid-auto-columns: calc((100% - 28px) / 2.4); } }
@media (min-width: 900px) { .offers-panel { padding: 30px 30px 14px; } .offers .shelf-list { grid-auto-columns: calc((100% - 54px) / 4); } }
@media (min-width: 1200px) { .offers .shelf-list { grid-auto-columns: calc((100% - 90px) / 6); } }

/* offer marks on cards, the product page and the cart */
.offer-badge {
  position: absolute; top: 8px; left: 8px; z-index: 1; padding: 4px 9px; border-radius: 8px; background: var(--terra-600); color: var(--white);
  font-size: .74rem; font-weight: 750; letter-spacing: .02em; line-height: 1.2; box-shadow: 0 8px 16px -8px rgba(146, 63, 31, .8); pointer-events: none;
}
.gallery { position: relative; }
.offer-badge-lg { top: 14px; left: 14px; z-index: 3; padding: 7px 13px; font-size: .92rem; border-radius: 10px; }
.price-was { color: var(--ink-3); font-size: .84rem; font-weight: 500; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.price.is-offer .price-amt { color: var(--terra-700); }
.price-lg .price-was { font-size: 1.05rem; }
.offer-ends { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .8rem; font-weight: 650; color: var(--terra-700); font-variant-numeric: tabular-nums; }
.offer-ends svg { flex: none; }
.offer-ends.is-ended { color: var(--ink-3); }
.offer-ends-box { padding: 9px 12px; border-radius: 10px; background: var(--terra-50); font-size: .88rem; }
.offer-save { display: inline-flex; margin: 0 0 8px; padding: 3px 10px; border-radius: 6px; background: var(--terra-50); color: var(--terra-700); font-weight: 650; font-size: .88rem; }
.cart-unit .cart-offer { padding: 1px 8px; border-radius: 6px; background: var(--terra-50); color: var(--terra-700); font-size: .74rem; font-weight: 700; }
.cart-unit .price-was { font-size: .82rem; }

/* departments on the homepage: square photos with the name and count below; a swipe row on phones */
.tiles-home { gap: 18px 14px; }
.tiles-home .tile { gap: 10px; }
.tiles-home .tile-frame { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.tiles-home .tile-text { padding-right: 0; }
.tiles-home .tile-text strong { font-family: var(--sans); font-size: .95rem; font-weight: 650; letter-spacing: 0; }
.tiles-home .tile-go { display: none; }
@media (min-width: 1024px) { .tiles-home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 639px) {
  .tiles-home { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 38%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .tiles-home::-webkit-scrollbar { display: none; }
  .tiles-home > li { scroll-snap-align: start; }
}

/* aisles: department chips switch one shelf in place (native radios; every shelf shows without :has) */
.aisle-tabs { display: none; border: 0; min-width: 0; margin: 0 0 16px; padding: 0; }
.aisle-chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--white); color: var(--ink-2); font-weight: 650; font-size: .86rem; cursor: pointer; scroll-snap-align: start;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 140ms var(--ease);
}
.aisle-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.aisle-chip:hover { border-color: var(--forest-800); color: var(--forest-900); }
.aisle-chip:active { transform: scale(.98); }
.aisle-thumb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--cream-2); color: var(--forest-800); }
.aisle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aisle-name { white-space: nowrap; }
.aisle-title { font-family: var(--serif); font-weight: 540; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.01em; margin: 0; color: var(--forest-900); }
.aisles .shelf-head { align-items: center; margin-bottom: 12px; }
@supports selector(:has(*)) {
  .aisle-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
  .aisle-tabs::-webkit-scrollbar { display: none; }
  .aisle-chip:has(input:checked) { background: var(--forest-800); border-color: var(--forest-800); color: var(--white); }
  .aisle-chip:has(input:checked) .aisle-thumb { box-shadow: 0 0 0 2px var(--gold-400); }
  .aisle-chip:has(input:focus-visible) { outline: 3px solid var(--leaf-600); outline-offset: 2px; }
  .aisles .aisle-panel { display: none; border-top: 0; margin-top: 0; padding-top: 0; }
  .aisles:has([data-aisle="0"]:checked) [data-aisle-panel="0"], .aisles:has([data-aisle="1"]:checked) [data-aisle-panel="1"],
  .aisles:has([data-aisle="2"]:checked) [data-aisle-panel="2"], .aisles:has([data-aisle="3"]:checked) [data-aisle-panel="3"],
  .aisles:has([data-aisle="4"]:checked) [data-aisle-panel="4"], .aisles:has([data-aisle="5"]:checked) [data-aisle-panel="5"],
  .aisles:has([data-aisle="6"]:checked) [data-aisle-panel="6"], .aisles:has([data-aisle="7"]:checked) [data-aisle-panel="7"],
  .aisles:has([data-aisle="8"]:checked) [data-aisle-panel="8"], .aisles:has([data-aisle="9"]:checked) [data-aisle-panel="9"],
  .aisles:has([data-aisle="10"]:checked) [data-aisle-panel="10"], .aisles:has([data-aisle="11"]:checked) [data-aisle-panel="11"] {
    display: block; animation: aisle-in 360ms var(--ease) both;
  }
}
@keyframes aisle-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 768px) { @supports selector(:has(*)) { .aisle-tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 18px; padding: 2px 0 6px; } } }

/* sections ease in once, as they scroll into view (set up by app.js; off with reduced motion) */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .hero-offer-dot { animation: none !important; } }

/* staff product editor: the special offer block */
.adm-offer { border: 1px solid var(--terra-200); background: var(--terra-50); border-radius: var(--r-md); padding: 12px 14px 4px; margin: 6px 0 14px; }
.adm-offer legend { padding: 0 6px; color: var(--terra-700); }

/* special offers pop-up: a centred card on wide screens, a bottom sheet on phones */
.offer-pop { width: min(92vw, 460px); max-height: min(90vh, 720px); overflow: hidden auto; padding: 0; background: var(--paper); animation: pop-in 320ms var(--ease) both; }
.offer-pop::backdrop { background: rgba(1, 38, 26, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.offer-pop-head { --focus: var(--gold-200); position: relative; overflow: hidden; padding: 22px 22px 18px; background: var(--terra-700); color: var(--white); }
.offer-pop-head::after { content: ''; position: absolute; width: 16rem; height: 16rem; right: -6rem; top: -8rem; border-radius: 50%; background: radial-gradient(circle, rgba(194, 102, 63, .7), transparent 70%); pointer-events: none; }
.offer-pop-head > * { position: relative; z-index: 1; }
.offer-pop-head .eyebrow { margin-bottom: 8px; color: var(--gold-200); }
.offer-pop-head h2 { color: var(--white); font-size: 2rem; margin: 0 0 10px; }
.offer-pop-head h2 .hl { color: var(--gold-200); }
.offer-pop-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: var(--white); }
.offer-pop-x:hover { background: rgba(255, 255, 255, .22); border-color: var(--white); color: var(--white); }
.offer-pop-ends { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: var(--white); font-size: .84rem; }
.offer-pop-list { list-style: none; margin: 0; padding: 12px 14px 4px; display: grid; gap: 8px; }
.offer-pop-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.offer-pop-item:hover { border-color: var(--forest-700); color: var(--ink); transform: translateY(-1px); }
.offer-pop-thumb { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--cream); color: var(--forest-800); }
.offer-pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-pop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.offer-pop-text strong { font-weight: 650; line-height: 1.25; }
.offer-pop-text .price { margin: 0; }
.offer-pop-text .price-amt { font-size: 1rem; }
.offer-pop-badge { position: static; align-self: flex-start; flex: none; box-shadow: none; }
.offer-pop-more { margin: 6px 16px 0; font-size: .86rem; color: var(--ink-3); }
.offer-pop-actions { display: grid; gap: 8px; padding: 14px 14px 18px; }
@media (max-width: 639px) {
  .offer-pop { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: env(safe-area-inset-bottom); animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .offer-pop-head h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .offer-pop { animation: none !important; } }
