/* Green Crate Mart demo. Palette: leaf green, cream, kraft, tomato red. Type: Bricolage Grotesque + Instrument Sans.
   Signature: shelf-edge price tags, and a basket that prints like a shop's order slip. */
:root {
  --primary: #C8321E;      /* tomato: buttons, prices (white text on it passes AA) */
  --primary-2: #A92815;
  --leaf: #17472E;         /* deep green base */
  --leaf-2: #1F5B3B;
  --sprout: #9FD67C;       /* light green accent on dark green */
  --light: #FBF4E4;        /* cream page */
  --kraft: #F1E4C6;
  --paper: #FFFDF6;
  --ink: #18291E;
  --muted: #54604F;        /* secondary text on cream (AA) */
  --line: #E3D5B6;
  --on-dark: #F6F0DE;
  --on-dark-2: #C9D8C4;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-slip: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --r-lg: 26px; --r-md: 18px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(23,71,46,.07), 0 6px 16px -6px rgba(23,71,46,.16);
  --sh-2: 0 2px 6px rgba(23,71,46,.08), 0 22px 44px -16px rgba(23,71,46,.34);
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-hero: clamp(2.7rem, 1.5rem + 6vw, 5.8rem);
  --t-h2: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--light); color: var(--ink); font: 400 1rem/1.6 var(--f-text); overflow-x: hidden; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 750; line-height: 1; margin: 0; letter-spacing: -.03em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: 1.12rem; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--leaf); color: var(--light); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(200,50,30,.8), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn-ghost { background: rgba(246,240,222,.1); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(246,240,222,.5); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(246,240,222,.2); }
.btn-ghost-d { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline { background: transparent; color: var(--leaf); box-shadow: inset 0 0 0 1.5px var(--leaf); }
.btn-outline:hover { background: var(--leaf); color: var(--light); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-wide { width: 100%; }
.link { background: none; border: 0; color: var(--muted); font-weight: 600; min-height: 44px; cursor: pointer; padding: 0; text-decoration: underline; justify-self: center; }

/* Sticky header (after the hero) */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; transform: translateY(-110%); transition: transform .35s var(--ease); background: rgba(251,244,228,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(23,71,46,.1), 0 10px 30px -18px rgba(23,71,46,.45); }
.bar.show { transform: none; }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.bar-name { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--leaf); }
.bar-links { display: none; gap: 24px; }
.bar-links a, .hero-links a { text-decoration: none; font-weight: 600; }
.bar-links a:hover { color: var(--primary); }

/* Hero */
.hero { position: relative; min-height: 94svh; display: flex; flex-direction: column; background: var(--leaf); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 60% 20%, #3f7a3b, var(--leaf)); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform: scale(1.32); transform-origin: 50% 100%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,46,29,.7) 0%, rgba(14,46,29,.12) 14%, rgba(14,46,29,.72) 30%, rgba(18,58,37,.95) 46%, var(--leaf) 100%); }
/* The market clip sits over the poster photo and fades in once it plays */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.hero-video.on { opacity: 1; }
.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; margin-bottom: 150px; }
.hero-mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; max-width: 70%; }
.hero-mark > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-mark .ic { color: var(--sprout); }
.hero-links { display: none; gap: 26px; }
.hero-copy { margin-top: auto; padding: 32px 0 30px; }
.hero-place { display: inline-flex; align-items: center; gap: 8px; color: var(--sprout); font-weight: 600; margin-bottom: 16px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(10,36,22,.6); box-shadow: inset 0 0 0 1px rgba(159,214,124,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .92rem; }
.hero-place .ic { width: 18px; height: 18px; }
.hero h1 { font-size: var(--t-hero); font-weight: 800; letter-spacing: -.045em; line-height: .92; max-width: 11ch; text-wrap: balance; overflow-wrap: anywhere; font-variation-settings: 'opsz' 96; }
.hero-promise { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #E4EADC; max-width: 44ch; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 200px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; color: var(--on-dark-2); font-size: .9rem; line-height: 1.3; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { width: 18px; height: 18px; color: var(--sprout); }
.trust .rate { grid-column: 1 / -1; flex-basis: 100%; color: var(--on-dark-2); }
.trust .rate b { color: #fff; font-weight: 700; margin-left: 4px; }
.mini-stars { display: inline-flex; gap: 1px; color: #FFD94A; }
.mini-stars svg { width: 16px; height: 16px; fill: currentColor; }

/* The hanging price tag on the hero: one moment that says "grocer" */
.hero-tag { position: absolute; top: 74px; right: 16px; width: 132px; padding: 22px 14px 14px; background: var(--paper); color: var(--ink); border-radius: 14px 14px 14px 30px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); transform-origin: 50% -34px; animation: swing 2.6s var(--ease) .4s both; }
.hero-tag::before { content: ''; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--leaf); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.hero-tag::after { content: ''; position: absolute; bottom: 100%; left: 50%; width: 1.5px; height: 34px; background: rgba(246,240,222,.75); transform: translateY(14px); z-index: -1; }
.ht-top { font-size: .74rem; font-weight: 700; color: var(--primary); }
.ht-name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.ht-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ht-price strong { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; color: var(--primary); line-height: 1; }
.ht-price span { font-size: .8rem; color: var(--muted); }
.ht-was { font-size: .8rem; color: var(--muted); }
@keyframes swing { 0% { transform: rotate(-14deg); opacity: 0; } 30% { opacity: 1; } 55% { transform: rotate(7deg); } 78% { transform: rotate(-3deg); } 100% { transform: rotate(2deg); } }

/* Section scaffolding */
.sec { padding: clamp(64px, 9vw, 116px) 0; }
.head { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--leaf-2); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.eyebrow .ic { width: 18px; height: 18px; }
.eyebrow-light { color: var(--sprout); }
.fine { font-size: .9rem; color: var(--muted); }
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #CFE3B0, #79A85A 55%, #2F6B3F); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s var(--ease); }
img.ld { opacity: 0; }
.ph:has(img.ld) { background: linear-gradient(100deg, #CFE3B0 30%, #E4F0D2 50%, #CFE3B0 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Steppers */
.step { display: inline-flex; align-items: center; justify-content: space-between; background: var(--light); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.step button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, transform .15s; }
.step button:hover { background: var(--kraft); }
.step button:active { transform: scale(.9); }
.step button.plus { background: var(--leaf); color: var(--light); }
.step button.plus:hover { background: var(--leaf-2); }
.step button:disabled { opacity: .3; cursor: default; background: transparent; }
.step .qty { min-width: 30px; padding: 0 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .92rem; white-space: nowrap; }
.step.on { box-shadow: inset 0 0 0 1.5px var(--leaf); background: #EAF3E0; }

/* Weekly deals: a tomato-red band */
.deals { background: var(--primary); color: #fff; padding: clamp(48px, 7vw, 84px) 0; position: relative; overflow: clip; }
.deals::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 14px, transparent 14px 28px); pointer-events: none; }
.deals .wrap { position: relative; }
.deals-head { display: grid; gap: 12px; margin-bottom: 26px; }
.deals .eyebrow-light { color: #FFE3C4; }
.deals h2 { color: #fff; }
.deals-sub { color: #FFE9DC; max-width: 46ch; }
.deal-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 64%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
.deal-row::-webkit-scrollbar { display: none; }
.deal { scroll-snap-align: start; background: var(--paper); color: var(--ink); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 30px -18px rgba(60,10,0,.6); transition: transform .25s var(--ease); }
.deal:hover { transform: translateY(-3px); }
.deal:hover .ph img { transform: scale(1.04); }
.deal-ph { aspect-ratio: 4 / 3; }
.save { position: absolute; left: 10px; top: 10px; background: #FFD94A; color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 8px; }
.deal-body { padding: 16px; display: grid; gap: 8px; }
.deal-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.deal-price strong { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; color: var(--primary); line-height: 1; }
.unit { font-size: .85rem; color: var(--muted); }
.deal-price s { font-size: .85rem; color: var(--muted); margin-left: auto; }
.deal .step { margin-top: 4px; }

/* Shelf */
.shelf-sec { background-color: var(--kraft); background-image: linear-gradient(rgba(23,71,46,.05) 1px, transparent 1px); background-size: 100% 34px; }
.shelf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.shelf-main { min-width: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; margin: 0 -16px 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.tab .ic { color: var(--leaf-2); }
.tab:hover { box-shadow: inset 0 0 0 1.5px var(--leaf); transform: translateY(-1px); }
.tab { transition: background-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.tab:active { transform: scale(.96); }
.pt { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pt:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
::view-transition-old(root) { animation: vtOut .18s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .3s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
.tab[aria-selected="true"] { background: var(--leaf); color: var(--light); box-shadow: none; }
.tab[aria-selected="true"] .ic { color: var(--sprout); }
.cat-banner { border-radius: var(--r-lg); aspect-ratio: 16 / 8; margin-bottom: 16px; box-shadow: var(--sh-1); }
.cat-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,46,29,.85), rgba(14,46,29,0) 62%); }
.cat-banner.swap img { opacity: 0; transform: scale(1.03); }
.cat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.cat-video.on { opacity: 1; }
.cat-banner.swap .cat-video { opacity: 0; }
.cat-cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; color: var(--on-dark); display: grid; gap: 2px; }
.cat-cap strong { font-family: var(--f-display); font-weight: 750; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -.03em; line-height: 1.05; }
.cat-cap span { font-size: .95rem; color: #DCE7D5; }

/* Price tags: shelf-edge labels with a punched hole and a green rail */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.tags.fade { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pt { position: relative; background: var(--paper); border-radius: 6px 6px 16px 16px; padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-1); border-top: 6px solid var(--leaf); }
.pt::before { content: ''; position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--kraft); box-shadow: inset 0 1px 2px rgba(23,71,46,.35); }
.pt h3 { font-size: 1.05rem; padding-right: 14px; }
.pt-desc { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.pt-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin: auto 0 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pt-price strong { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; color: var(--primary); line-height: 1.05; }
.pt .step { width: 100%; }

/* The basket: an order slip with a torn edge */
.receipt { --paper-slip: #FFFEF9; filter: drop-shadow(0 18px 28px rgba(23,71,46,.25)); }
.rc-paper { position: relative; background: var(--paper-slip); padding: 26px 20px 26px; border-radius: 10px 10px 0 0; display: grid; gap: 16px; }
.rc-paper::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: linear-gradient(45deg, var(--paper-slip) 50%, transparent 50%) 0 0 / 18px 18px repeat-x, linear-gradient(-45deg, var(--paper-slip) 50%, transparent 50%) 0 0 / 18px 18px repeat-x; }
.rc-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--light); display: grid; place-items: center; cursor: pointer; }
.rc-head { text-align: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.rc-shop { font-family: var(--f-display); font-weight: 750; font-size: 1.2rem; color: var(--leaf); letter-spacing: -.02em; padding: 0 40px; overflow-wrap: anywhere; }
.rc-head h2 { font-family: var(--f-slip); font-weight: 600; font-size: .9rem; letter-spacing: 0; margin-top: 6px; color: var(--muted); }
.rc-date { font-family: var(--f-slip); font-size: .8rem; color: var(--muted); }
.rc-empty { font-family: var(--f-slip); font-size: .9rem; color: var(--muted); text-align: center; padding: 8px 0; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-family: var(--f-slip); font-size: .86rem; }
.rc-lines li { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); animation: fade .3s var(--ease); }
.rl-top { display: flex; align-items: baseline; gap: 8px; }
.rl-name { font-weight: 600; }
.rl-dots { flex: 1; min-width: 12px; border-bottom: 2px dotted #CDBF9F; transform: translateY(-4px); }
.rl-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8rem; }
.rl-bot .step { flex: none; }
.rl-bot .step button { width: 36px; height: 36px; }
.rc-sum { font-family: var(--f-slip); display: grid; gap: 4px; font-size: .9rem; }
.rc-sum p { display: flex; justify-content: space-between; gap: 12px; }
.rc-total { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: 1rem; }
.rc-total strong { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; color: var(--primary); }
.rc-form, #rc-deliv { display: grid; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label, .area { position: relative; display: block; cursor: pointer; }
.seg input, .area input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; background: var(--light); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .95rem; transition: background-color .2s, box-shadow .2s; }
.seg input:checked + span, .area input:checked + span { background: #EAF3E0; box-shadow: inset 0 0 0 2px var(--leaf); }
.seg input:focus-visible + span, .area input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.areas { display: grid; gap: 8px; }
.area span { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; background: var(--light); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; transition: background-color .2s, box-shadow .2s; }
.area span span { color: var(--muted); font-size: .82rem; text-align: right; display: inline; min-height: 0; padding: 0; background: none; box-shadow: none; }
.minbar { display: grid; gap: 6px; }
.minbar-track { display: block; height: 8px; border-radius: 99px; background: var(--kraft); overflow: hidden; }
.minbar-fill { display: block; height: 100%; background: var(--primary); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease), background-color .3s; }
.minbar.ok .minbar-fill { background: var(--leaf-2); }
.minbar-txt { font-size: .85rem; color: var(--muted); }
.minbar.ok .minbar-txt { color: var(--leaf-2); font-weight: 600; }
.fld { display: grid; gap: 6px; font-weight: 600; }
.fld .opt { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 0; font-weight: 400; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.fld input:focus, .fld textarea:focus { box-shadow: inset 0 0 0 2px var(--leaf); outline: none; }
.fld textarea { resize: vertical; }
.fe { font-weight: 600; font-size: .86rem; color: #A92815; }
.fld [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--primary); background: #FFF6F3; }
.sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); background: #EAF3E0; box-shadow: inset 0 0 0 1.5px var(--leaf-2); }
.sent > .ic { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--leaf-2); color: #fff; stroke-width: 2.6; }
.sent strong { display: block; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 2px; }
.sent p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.sent.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.err { background: #FBE0D8; color: #7A1A0A; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; }

/* Delivery */
.deliv-sec { background: var(--leaf); color: var(--on-dark); position: relative; overflow: clip; }
.deliv-grid { display: grid; gap: 40px; align-items: center; }
.deliv-sub { color: var(--on-dark-2); margin-top: 14px; max-width: 50ch; }
.zones { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; counter-reset: z; }
.zones li { padding: 16px 18px; border-radius: var(--r-md); background: rgba(246,240,222,.06); box-shadow: inset 0 0 0 1px rgba(246,240,222,.14); display: grid; gap: 4px; }
.z-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.z-head strong { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.z-fee { color: var(--sprout); font-weight: 600; }
.z-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--on-dark-2); font-size: .92rem; }
.deliv-pick { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--on-dark-2); }
.deliv-pick .ic { color: var(--sprout); margin-top: 2px; }
.rings { max-width: 420px; width: 100%; margin-inline: auto; }
#rings-svg { width: 100%; height: auto; overflow: visible; }
.ring { stroke: rgba(246,240,222,.35); stroke-width: 1.2; stroke-dasharray: 4 6; }
.ring.r0 { fill: rgba(159,214,124,.34); }
.ring.r1 { fill: rgba(159,214,124,.2); }
.ring.r2, .ring.r3, .ring.r4 { fill: rgba(159,214,124,.1); }
.ring-t { fill: var(--on-dark); font: 600 13px var(--f-text); }
.ring-core { fill: var(--primary); }
.ring-pin { fill: #fff; }
.ring-dot { fill: var(--primary); }
.van rect, .van path { fill: #FFD94A; }
.van .wh { fill: var(--ink); }
.orbit { transform-box: view-box; transform-origin: 200px 200px; animation: orbit 16s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Why */
.why-grid { display: grid; gap: 36px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 2px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks .ic { color: var(--primary); margin-top: 3px; }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 70px; gap: 10px; }
.mosaic figure { margin: 0; border-radius: var(--r-md); }
.mosaic figure:hover img { transform: scale(1.04); }
.m1 { grid-column: 1 / 4; grid-row: span 3; }
.m1 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.m1 video.on { opacity: 1; }
.m1 figcaption { position: absolute; z-index: 1; left: 10px; bottom: 10px; right: 10px; width: fit-content; padding: 6px 12px; border-radius: 10px; background: rgba(251,244,228,.9); color: var(--leaf); font-weight: 600; font-size: .8rem; line-height: 1.3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.m2 { grid-column: 4 / 6; grid-row: span 5; }
.m3 { grid-column: 1 / 4; grid-row: span 2; }

/* Reviews */
.reviews-sec { background: var(--kraft); }
.car-btns { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .15s; }
.round:hover { background: var(--leaf); color: var(--light); }
.round:active { transform: scale(.94); }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 86%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scroll-behavior: smooth; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; margin: 0; background: var(--paper); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #E0A21B; }
.stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.01em; }
.review figcaption { margin-top: auto; font-size: .88rem; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* Visit */
.visit-grid { display: grid; gap: 32px; }
.addr { font-size: 1.15rem; margin-top: 18px; }
.hours { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours li span:last-child { font-weight: 600; text-align: right; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 22px; }
.contact-line a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--leaf-2); }
.ration { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--sh-2); display: grid; gap: 14px; align-content: start; border-top: 6px solid var(--leaf); }
.ration-ic { width: 48px; height: 48px; border-radius: 14px; background: #EAF3E0; color: var(--leaf); display: grid; place-items: center; }
.ration h3 { font-size: 1.7rem; letter-spacing: -.03em; }

/* Footer */
.foot { background: var(--ink); color: #B9C6B4; padding: 48px 0 40px; }
.foot-in { display: grid; gap: 6px; }
.foot-name { font-family: var(--f-display); font-weight: 750; font-size: 1.6rem; letter-spacing: -.03em; color: var(--on-dark); margin-bottom: 4px; }
.small { font-size: .85rem; }

/* Mobile dock and basket bar */
.dock, .bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,244,228,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(23,71,46,.12), 0 -10px 30px -16px rgba(23,71,46,.4); }
.dock { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.has-cart .dock { display: none; }
.bk-bar { animation: up .3s var(--ease); }
.bk-bar.bump .bk-ic { animation: bump .4s var(--ease); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }
.bk-sum { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 10px; border-radius: 16px; border: 0; background: var(--leaf); color: var(--light); cursor: pointer; text-align: left; }
.bk-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; background: rgba(246,240,222,.12); display: grid; place-items: center; flex: none; }
.bk-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.bk-txt { display: flex; flex-direction: column; line-height: 1.2; font-size: .82rem; color: var(--on-dark-2); flex: 1; min-width: 0; }
.bk-txt strong { color: #fff; font-size: 1.05rem; }
.bk-go { display: inline-flex; align-items: center; gap: 4px; background: var(--primary); color: #fff; font-weight: 600; min-height: 44px; padding: 0 10px 0 14px; border-radius: 12px; white-space: nowrap; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(14,30,20,.5); animation: fadein .25s var(--ease); }
@keyframes fadein { from { opacity: 0; } }

/* Phones and tablets: the slip is a bottom sheet */
@media (max-width: 959.98px) {
  .receipt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; filter: none; }
  .rc-paper { border-radius: 22px 22px 0 0; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .rc-paper::after { display: none; }
  .sheet-open .receipt { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .sheet-open { overflow: hidden; }
}

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .deal-row { grid-auto-columns: minmax(230px, 40%); }
  .reviews { grid-auto-columns: minmax(300px, 46%); }
  .tags { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .mosaic { grid-auto-rows: 96px; }
  .hero-tag { width: 150px; top: 84px; right: 28px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .bar-links { display: flex; }
  .hero { min-height: min(100svh, 880px); display: grid; grid-template-columns: 47fr 53fr; grid-template-rows: auto 1fr; }
  .hero-photo { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1 / 3; margin: 18px 18px 18px 0; border-radius: 28px; overflow: hidden; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(14,46,29,.35), rgba(14,46,29,0) 30%), linear-gradient(0deg, rgba(14,46,29,.35), rgba(14,46,29,0) 30%); }
  .hero-nav { grid-column: 1; grid-row: 1; width: auto; margin: 0; padding: 30px clamp(24px, 4vw, 56px) 0 max(32px, calc((100vw - 1200px) / 2)); }
  .hero-links { display: none; }
  .hero-copy { grid-column: 1; grid-row: 2; width: auto; margin: 0; align-self: center; padding: 40px clamp(24px, 4vw, 56px) 64px max(32px, calc((100vw - 1200px) / 2)); }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-tag { top: 70px; right: auto; left: calc(47% + 40px); width: 168px; padding: 24px 16px 16px; }
  .ht-price strong { font-size: 1.9rem; }
  .deals-head { grid-template-columns: 1fr auto; align-items: end; }
  .deal-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .shelf-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .tabs { margin: 0 0 18px; padding: 4px 0; flex-wrap: wrap; }
  .receipt { position: sticky; top: 84px; max-height: calc(100svh - 104px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 10px; }
  .rc-close { display: none; }
  .deliv-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .why-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
  .reviews { grid-auto-columns: calc((100% - 32px) / 3); margin: 0; padding: 4px 0 16px; scroll-padding-inline: 0; }
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .dock { display: none; }
  .has-cart { padding-bottom: 84px; }
  .bk-bar { padding-inline: max(24px, calc((100vw - 1200px) / 2)); display: flex; justify-content: flex-end; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
  .bk-sum { pointer-events: auto; box-shadow: 0 18px 36px -14px rgba(14,46,29,.6); }
  .bk-sum { width: auto; min-width: 360px; }
}

@media (max-width: 370px) {
  .tags { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pt { padding-inline: 10px; }
  .step button { width: 40px; }
  .trust { grid-template-columns: 1fr; }
  .hero-tag { width: 116px; top: 62px; padding: 20px 10px 10px; }
  .ht-price strong { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .reviews { scroll-behavior: auto; }
}
