/* ==========================================================================
   Storefront — "corner shop" direction.
   Warm paper, deep grocer green, a tomato accent, receipt details in mono.
   ========================================================================== */
:root {
  --paper: #F5F0E6;
  --paper-2: #EDE6D8;
  --card: #FBF8F2;
  --ink: #1E2A22;
  --ink-2: #56604F;
  --ink-3: #8A8F80;
  --line: rgba(30, 42, 34, .13);
  --line-2: rgba(30, 42, 34, .22);
  --green: #2E5B3C;
  --green-2: #244A30;
  --green-soft: #DDE6D6;
  --tomato: #C4462A;
  --butter: #EBC45A;
  --wa: #1F8F52;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --r: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Sections & grid ---------- */
.section { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font: 400 clamp(26px, 3vw, 34px)/1.1 var(--serif); letter-spacing: -.015em; }
.section-tools { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.sort select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231E2A22' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  border-radius: 8px; height: 36px; padding: 0 32px 0 12px; cursor: pointer;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 28px 18px; }
.grid-feature { grid-template-columns: repeat(4, 1fr); }
.grid-feature .card-media { aspect-ratio: 4 / 3; }

/* Pantry-jar label placeholder */
.jar {
  --tilt: -1.2deg;
  position: relative; z-index: 1; width: 66%; max-width: 200px; padding: 14px 12px 11px; text-align: center;
  background: #FBF8F1; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(30,42,34,.08), 0 9px 6px -7px rgba(40,22,6,.45);
  display: grid; gap: 8px; transform-origin: 50% 100%;
  transform: rotate(calc(var(--tilt) + var(--sway, 0deg))) translateY(var(--lift, 0px));
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
  outline: 1px solid rgba(30,42,34,.10); outline-offset: -5px;
}
.card:nth-child(3n) .jar { --tilt: .9deg; }
.card:nth-child(4n+1) .jar { --tilt: -.4deg; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .jar { --tilt: 0deg; --lift: -6px; box-shadow: 0 1px 0 rgba(30,42,34,.08), 0 16px 10px -10px rgba(40,22,6,.35); }
}
.jar-name { font: 400 clamp(14px, 1.35vw, 17px)/1.15 var(--serif); color: var(--ink); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jar-unit { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  border-top: 1px dashed rgba(30,42,34,.25); padding-top: 7px; }
.jar-lg { width: 52%; max-width: 300px; padding: 28px 22px 20px; gap: 14px; }
.jar-lg .jar-name { font-size: clamp(22px, 2.6vw, 32px); }
.jar-lg .jar-unit { font-size: 12px; padding-top: 12px; }
.card.is-out .jar { opacity: .55; }

/* Add button / stepper */
.add-btn {
  height: 36px; padding: 0 12px 0 14px; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 0 var(--ink); transform: translateY(-1px);
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.add-btn:active { transform: translateY(1px) scale(.97); box-shadow: 0 0 0 var(--ink); }
.add-btn svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .add-btn:hover { background: var(--ink); color: var(--paper); } }
.add-soldout { font-size: 13px; color: var(--ink-3); }
.stepper {
  display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--green); color: #F5F0E6;
  animation: pop 220ms var(--ease-out);
}
@keyframes pop { from { transform: scale(.94); opacity: .6; } to { transform: none; opacity: 1; } }
.stepper button {
  width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; border-radius: 999px;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stepper button:not(:disabled):hover { background: rgba(255,255,255,.12); } }
.stepper svg { width: 14px; height: 14px; }
.stepper output { min-width: 22px; text-align: center; font: 500 14px var(--mono); }
.stepper-sm { height: 30px; background: transparent; color: var(--ink); border: 1px solid var(--line-2); animation: none; }
.stepper-sm button { width: 30px; height: 28px; }
@media (hover: hover) and (pointer: fine) { .stepper-sm button:not(:disabled):hover { background: var(--paper-2); } }
.add-lg .add-btn, .add-lg .stepper { height: 50px; font-size: 16px; }
.add-lg .add-btn { padding: 0 24px; background: var(--ink); color: var(--paper); }
.add-lg .stepper button { width: 50px; height: 50px; }
.add-lg .stepper output { min-width: 34px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px;
  border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none;
  transition: background-color 160ms ease, transform 140ms var(--ease-out), opacity 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--green); color: #F5F0E6; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover, .btn-ink:hover { background: var(--green-2); } }
.btn-quiet { background: transparent; border-color: var(--line-2); height: 44px; }
@media (hover: hover) and (pointer: fine) { .btn-quiet:hover { border-color: var(--ink); } }
.btn-wa { background: var(--wa); color: #fff; height: 56px; font-size: 16.5px; }
@media (hover: hover) and (pointer: fine) { .btn-wa:not(:disabled):hover { background: #197A45; } }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-busy span { opacity: .6; }
.btn.is-busy { cursor: progress; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--paper-2); } }

/* ---------- Pager / empty ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); text-decoration: none; font: 500 14px var(--mono); }
.pager a.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 64px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: 14px; }
.empty-title { font: 400 26px/1.2 var(--serif); margin-bottom: 8px; }

/* ---------- Product page ---------- */
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pdp-media { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--tint); display: grid; place-items: center; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media { position: relative; }
.pdp-info { padding-top: 8px; display: grid; gap: 14px; justify-items: start; }
.pdp-info h1 { font: 400 clamp(32px, 4.2vw, 50px)/1.05 var(--serif); letter-spacing: -.02em; }
.pdp-unit { color: var(--ink-2); margin-top: -6px; }
.pdp-desc { color: var(--ink-2); max-width: 48ch; font-size: 16.5px; }
.pdp-stock { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-in { background: #3E9A5C; } .dot-low { background: var(--butter); } .dot-out { background: var(--tomato); }

/* ---------- Drawer (basket) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(22, 28, 24, .42); opacity: 0; transition: opacity 240ms ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform 320ms var(--ease-drawer); box-shadow: -24px 0 60px -30px rgba(0,0,0,.3);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 400 24px/1 var(--serif); }
.drawer .receipt { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum-row strong { font: 500 18px var(--mono); }
.line { display: grid; grid-template-columns: 48px 1fr auto; grid-template-areas: "t m s" "t m p"; column-gap: 12px; row-gap: 4px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); align-items: center; }
.thumb { grid-area: t; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--tint, var(--paper-2)); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb em { font: 400 19px/1 var(--serif); font-style: normal; color: rgba(30,42,34,.6); }
.line-main { grid-area: m; min-width: 0; }
.line-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line-meta { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.line .stepper { grid-area: s; justify-self: end; }
.line-total { grid-area: p; justify-self: end; font: 400 13.5px var(--mono); }
.receipt-empty { padding: 56px 0; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }

/* ---------- Checkout ---------- */
.back { font-size: 14.5px; text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.page-title { font: 400 clamp(34px, 4.5vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; margin: 14px 0 28px; }
.co-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.co-form { display: grid; gap: 22px; }
.seg { border: 0; padding: 4px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px 10px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--line-2), 0 2px 8px -4px rgba(0,0,0,.18); }
.seg input:focus-visible + span { outline: 2px solid var(--green); }
.fields { display: grid; gap: 18px; }
.delivery-only { display: grid; gap: 18px; }
.checkout.is-pickup .delivery-only { display: none; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--card); border-radius: var(--r);
  padding: 13px 14px; font-size: 16px; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 91, 60, .12); }
.field.has-err input, .field.has-err textarea { border-color: var(--tomato); }
.err { color: var(--tomato); font-size: 13.5px; margin-top: 6px; }
.err:empty, .hint:empty { display: none; }
.hint { font-size: 13.5px; margin-top: 6px; color: var(--ink-2); }
.hint.is-ok { color: var(--green); font-weight: 500; }
.hint.is-no { color: var(--tomato); }
.loc-field .btn { width: 100%; justify-content: flex-start; font-weight: 500; }
.loc-field .btn svg { width: 18px; height: 18px; color: var(--green); }
.hp { position: absolute; left: -9999px; }
.callout { background: var(--green-soft); padding: 14px 16px; border-radius: var(--r); font-size: 15px; }

.co-summary { position: sticky; top: 92px; display: grid; gap: 14px; }
.receipt-paper {
  background: var(--card); padding: 24px 22px 20px; font-family: var(--mono); font-size: 13.5px;
  /* torn receipt edge */
  --tooth: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%,
                conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  padding-top: 30px; padding-bottom: 28px;
}
.receipt-head { font: 400 20px/1 var(--serif); text-align: center; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.r-line { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 6px 0; align-items: baseline; }
.r-qty { color: var(--ink-3); }
.r-name { font-family: var(--sans); font-size: 14.5px; }
.r-name em { font-style: normal; color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }
.receipt-totals { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; }
.receipt-totals .sum-row span:first-child { font-family: var(--sans); color: var(--ink-2); }
.sum-total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--ink); font-size: 16px; font-weight: 500; }
.sum-total span:first-child { color: var(--ink) !important; font-weight: 600; }
.receipt-note { text-align: center; color: var(--ink-3); margin-top: 16px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.co-issues { display: grid; gap: 6px; }
.co-issues p { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: #F6E3D9; color: #8A2E18; }
.co-issues:empty { display: none; }
.co-issues p.tip { background: var(--green-soft); color: var(--green-2); }

.sent { max-width: 620px; padding: 32px 0 24px; display: grid; gap: 18px; justify-items: start; }
.sent h1 { font: 400 clamp(32px, 4.5vw, 50px)/1.08 var(--serif); letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- Banner slider ---------- */
.banner-wrap { padding-top: clamp(14px, 2.4vw, 24px); }
.slider { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { overflow: hidden; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 5 / 2; display: block; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-arrow {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0;
  background: rgba(251, 248, 242, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); opacity: 0; transition: opacity 200ms ease, transform 140ms var(--ease-out);
}
.slide-arrow svg { width: 20px; height: 20px; }
.slide-arrow.prev { left: 16px; } .slide-arrow.next { right: 16px; }
.slide-arrow:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .slider:hover .slide-arrow { opacity: 1; } }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots button {
  pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(251, 248, 242, .55); box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transition: width 260ms var(--ease-out), background-color 200ms ease;
}
.dots button[aria-current="true"] { width: 24px; background: #FBF8F2; }

/* ---------- Category rail ---------- */
.cat-rail-wrap { position: relative; padding-top: clamp(22px, 3vw, 34px); }
.cat-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-tile { flex: 0 0 auto; width: 124px; display: grid; justify-items: center; gap: 9px; text-decoration: none; scroll-snap-align: start; }
.cat-img {
  width: 100%; aspect-ratio: 1; border-radius: 24px; background: var(--tint); overflow: hidden; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img em { font: 400 46px/1 var(--serif); font-style: normal; color: rgba(30, 42, 34, .55); }
.cat-all { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 42px; }
.cat-all i { aspect-ratio: 1; border-radius: 6px; background: rgba(30, 42, 34, .55); }
.cat-all i:nth-child(2), .cat-all i:nth-child(3) { background: rgba(30, 42, 34, .28); }
.cat-name { font-size: 14px; font-weight: 500; text-align: center; line-height: 1.25; color: var(--ink-2); }
.cat-tile:active .cat-img { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .cat-tile:hover .cat-img { box-shadow: inset 0 0 0 2px rgba(30, 42, 34, .25); } .cat-tile:hover .cat-name { color: var(--ink); } }
.cat-tile.is-on .cat-img { box-shadow: inset 0 0 0 2.5px var(--ink); }
.cat-tile.is-on .cat-name { color: var(--ink); font-weight: 700; }
.cat-rail-head { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(22px, 3vw, 34px); height: 124px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; z-index: 2; }
.rail-arrow {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; margin: 0 -20px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3);
  transition: opacity 180ms ease, transform 140ms var(--ease-out);
}
.rail-arrow svg { width: 18px; height: 18px; }
.rail-arrow:active { transform: scale(.94); }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) { .rail-arrow { display: none; } }

@media (max-width: 720px) {
  .slider { border-radius: 14px; }
  .dots { bottom: 8px; }
  .dots button { width: 6px; height: 6px; }
  .dots button[aria-current="true"] { width: 18px; }
  .cat-rail { gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scroll-padding-inline: var(--gutter); }
  .cat-tile { width: 82px; gap: 7px; }
  .cat-img { border-radius: 20px; }
  .cat-img em { font-size: 32px; }
  .cat-all { width: 30px; gap: 4px; }
  .cat-all i { border-radius: 4px; }
  .cat-name { font-size: 12.5px; }
}

/* ==========================================================================
   Corner-store layer: awning, sign, ticker, shelves, chalkboard, shopfront.
   ========================================================================== */
:root {
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --kraft: #E7D7B9;
  --wood: #A8733F;
  --wood-2: #7C5029;
  --board: #243129;
  --chalk: #F2EEE3;
  --awning-a: var(--green);
  --awning-b: #FFFAEE;
  --stripe: 34px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--noise), radial-gradient(1200px 600px at 50% -10%, #FBF6EA, transparent 70%), var(--paper); }

/* ---------- Awning ---------- */
.awning { position: relative; z-index: 32; height: 44px; pointer-events: none; filter: drop-shadow(0 4px 3px rgba(40, 22, 6, .22)); }
.awning-cloth, .awning-scallops {
  position: absolute; left: 0; right: 0;
  background: repeating-linear-gradient(90deg, var(--awning-a) 0 var(--stripe), var(--awning-b) var(--stripe) calc(var(--stripe) * 2));
}
.awning-cloth { top: 0; height: 29px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.awning-cloth::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #1F3D29; z-index: 1; }
.awning-cloth::after { /* canvas folds and light */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,0) 45%, rgba(255,255,255,.10) 75%, rgba(0,0,0,.10)), var(--noise);
}
.awning-scallops {
  top: 28px; height: 16px; transform-origin: 50% 0;
  -webkit-mask: radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) 0 0 / var(--stripe) 16px repeat-x;
          mask: radial-gradient(circle at 50% 0, #000 calc(var(--stripe) / 2 - .5px), transparent calc(var(--stripe) / 2)) 0 0 / var(--stripe) 16px repeat-x;
}
.awning-scallops::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.14), rgba(0,0,0,0) 60%); }
.awning + .site-head { margin-top: -16px; padding-top: 16px; }

/* ---------- Header / shop sign ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--noise), color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms ease;
}
.site-head::before { /* thin stripe that appears once the awning scrolls away */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; transform: scaleY(0); transform-origin: top;
  background: repeating-linear-gradient(90deg, var(--awning-a) 0 var(--stripe), var(--awning-b) var(--stripe) calc(var(--stripe) * 2));
  transition: transform 240ms var(--ease-out);
}
.site-head.is-stuck { box-shadow: 0 10px 24px -18px rgba(30, 20, 8, .45); }
.site-head.is-stuck::before { transform: scaleY(1); }
.head-row { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.brand-sub { font: 700 17px/1 var(--hand); color: var(--green); margin-top: 3px; transform: rotate(-1.5deg); transform-origin: left; }
.search { flex: 1; max-width: 440px; margin-left: auto; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; transition: color 160ms ease, transform 200ms var(--ease-out); }
.search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line-2); background: #FFFCF5;
  border-radius: 999px; padding: 0 16px 0 40px; outline: none;
  box-shadow: inset 0 2px 0 rgba(30,42,34,.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.search input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(46, 91, 60, .12); }
.search:focus-within svg { color: var(--green); transform: rotate(-12deg) scale(1.08); }

.open-sign {
  position: relative; flex-shrink: 0; width: 88px; height: 44px; padding: 0; margin: -18px 2px 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 2px; perspective: 500px; -webkit-tap-highlight-color: transparent;
}
.sign-string { position: absolute; left: 50%; top: 0; width: 42px; height: 16px; margin-left: -21px; }
.sign-string::before, .sign-string::after {
  content: ""; position: absolute; top: 1px; width: 24px; height: 1.5px; background: #6E5B45; border-radius: 1px;
}
.sign-string::before { left: 0; transform-origin: right center; transform: translate(-2px, 7px) rotate(-33deg); }
.sign-string::after { right: 0; transform-origin: left center; transform: translate(2px, 7px) rotate(33deg); }
.open-sign::before { /* the nail */
  content: ""; position: absolute; left: 50%; top: -2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #CFC6B6, #6E6254); box-shadow: 0 1px 1px rgba(0,0,0,.3); z-index: 1;
}
.sign-board { position: absolute; left: 0; right: 0; top: 14px; height: 32px; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.34, 1.56, .64, 1); }
.open-sign.is-flipped .sign-board { transform: rotateY(180deg); }
.sign-face {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 7px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  font: 700 22px/1 var(--hand); letter-spacing: .02em; color: #FFF4E4;
  background: var(--noise), linear-gradient(#D1553A, #B53E25);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 220, .55), inset 0 0 0 4px #B53E25, 0 3px 6px -2px rgba(0,0,0,.35);
}
.sign-back { transform: rotateY(180deg); background: var(--noise), linear-gradient(#35684A, #264D35); box-shadow: inset 0 0 0 2px rgba(240, 235, 210, .5), inset 0 0 0 4px #264D35, 0 3px 6px -2px rgba(0,0,0,.35); font-size: 19px; }
.open-sign.is-closed .sign-front { background: var(--noise), linear-gradient(#3A433C, #262D28); box-shadow: inset 0 0 0 2px rgba(240,235,220,.4), inset 0 0 0 4px #262D28, 0 3px 6px -2px rgba(0,0,0,.35); }
.open-sign:focus-visible { outline: none; }
.open-sign:focus-visible .sign-board { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 8px 0 14px;
  background: var(--ink); color: #F5EEDD; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 14.5px; flex-shrink: 0;
  box-shadow: 0 3px 0 #0E1511; transform: translateY(-1px);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 160ms ease;
}
.basket-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #0E1511; }
@media (hover: hover) and (pointer: fine) { .basket-btn:hover { background: #26342B; } }
.basket-ico { width: 24px; height: 22px; flex-shrink: 0; }
.basket-count {
  min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; overflow: hidden;
  background: rgba(245, 240, 230, .14); font: 500 13.5px/1 var(--mono); padding: 0 8px;
  transition: background-color 200ms ease, color 200ms ease;
}
.basket-count.has { background: var(--butter); color: var(--ink); }
.basket-btn.bump .basket-count { animation: bump 380ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- Ticker (painted fascia strip) ---------- */
.ticker {
  position: relative; overflow: hidden; background: var(--noise), var(--green); color: #F4ECD8;
  border-bottom: 3px solid var(--wood-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-closed { background: var(--noise), var(--tomato); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; gap: 26px; padding: 9px 26px 9px 0; font: 500 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker-set i { font-style: normal; color: var(--butter); font-size: 11px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Banner extras ---------- */
.slider { box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 26px 40px -34px rgba(40, 22, 6, .7); }
.slide img { will-change: transform; }
.dots button { position: relative; overflow: hidden; }
.dots button[aria-current="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--butter); transform-origin: left; transform: scaleX(0);
}
.slider.is-playing .dots button[aria-current="true"]::after { animation: dotfill 5s linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ---------- Category tiles: crate labels ---------- */
.cat-img {
  outline: 1.5px dashed rgba(30, 42, 34, .2); outline-offset: -7px;
  box-shadow: inset 0 -10px 18px -12px rgba(40, 22, 6, .25), 0 2px 0 rgba(40, 22, 6, .10);
  transition: box-shadow 180ms ease, transform 260ms cubic-bezier(.34, 1.56, .64, 1);
}
.cat-img em { font-size: 50px; transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1); }
@media (hover: hover) and (pointer: fine) {
  .cat-tile:hover .cat-img { transform: translateY(-5px) rotate(-2deg); box-shadow: inset 0 -10px 18px -12px rgba(40,22,6,.25), 0 10px 16px -10px rgba(40,22,6,.45); }
  .cat-tile:nth-child(even):hover .cat-img { transform: translateY(-5px) rotate(2deg); }
  .cat-tile:hover .cat-img em { transform: scale(1.12); }
}
.cat-tile:active .cat-img { transform: scale(.95); transition-duration: 90ms; }
.cat-tile.is-on .cat-img { box-shadow: inset 0 0 0 3px var(--ink), 0 2px 0 rgba(40, 22, 6, .10); outline-color: transparent; }

/* ---------- Section headings ---------- */
.scribble-head { position: relative; display: inline-block; padding-bottom: 6px; }
.scribble-head svg { position: absolute; left: -2px; right: -2px; bottom: -6px; width: calc(100% + 4px); height: 12px; color: var(--butter); overflow: visible; }

/* ---------- Chalkboard specials ---------- */
.board {
  position: relative; border-radius: 18px; padding: clamp(22px, 4vw, 40px) clamp(16px, 3.4vw, 36px) clamp(26px, 4vw, 40px);
  border: 12px solid transparent; color: var(--chalk);
  background:
    radial-gradient(420px 180px at 18% 12%, rgba(255,255,255,.07), transparent 70%) padding-box,
    radial-gradient(360px 160px at 82% 88%, rgba(255,255,255,.05), transparent 70%) padding-box,
    var(--noise) padding-box,
    linear-gradient(var(--board), #1D2922) padding-box,
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 3px, transparent 3px 11px) border-box,
    linear-gradient(135deg, #B98352, #8A5A30 40%, #A06A3B 70%, #7A4E28) border-box;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 0 50px rgba(0,0,0,.35), 0 26px 44px -32px rgba(40, 22, 6, .8);
}
.board::after { /* chalk tray */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -18px; height: 8px; border-radius: 0 0 6px 6px;
  background: linear-gradient(#8A5A30, #6D441F); box-shadow: 0 4px 6px -3px rgba(0,0,0,.4);
}
.board-head { position: relative; margin-bottom: 26px; }
.chalk { font: 700 clamp(36px, 5vw, 56px)/1 var(--hand); color: var(--chalk); letter-spacing: .01em; text-shadow: 0 0 1px rgba(255,255,255,.35), 0 0 12px rgba(255,255,255,.06); }
.chalk-line { display: block; width: min(320px, 72%); height: 14px; margin-top: 4px; color: var(--butter); opacity: .9; overflow: visible; }
.chalk-note { position: absolute; right: 4px; top: 12px; font: 700 23px/1 var(--hand); color: rgba(242, 238, 227, .72); transform: rotate(-4deg); }
.board .card-title a { color: var(--chalk); }
.board .card-unit { color: rgba(242, 238, 227, .6); }
.board .card-unit s { color: rgba(242, 238, 227, .45); }
.board .add-btn { border-color: var(--chalk); color: var(--chalk); box-shadow: 0 2px 0 rgba(242, 238, 227, .6); }
@media (hover: hover) and (pointer: fine) { .board .add-btn:hover { background: var(--chalk); color: var(--ink); } }
.board .card-media { box-shadow: inset 0 14px 18px -14px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.25); }

/* ---------- Product card: a spot on the shelf ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; text-decoration: none; isolation: isolate;
  border-radius: 12px 12px 6px 6px; background: var(--noise), var(--tint, var(--paper-2));
  box-shadow: inset 0 16px 20px -16px rgba(40, 22, 6, .28), inset 0 0 0 1px rgba(40, 22, 6, .05);
}
.grid-feature .card-media { aspect-ratio: 4 / 3; }
.card-goods { position: absolute; left: 0; right: 0; top: 0; bottom: 22px; display: grid; place-items: end center; padding: 10% 10% 0; }
.card-goods img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; mix-blend-mode: multiply;
  transform-origin: 50% 100%; transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card:hover .card-goods img { transform: translateY(-5px) scale(1.03); } }
.shelf {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: 1;
  background:
    linear-gradient(to bottom, #D9A774 0 3px, #B98352 3px 5px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(60, 30, 8, .07) 0 2px, transparent 2px 13px, rgba(255,255,255,.05) 13px 15px, transparent 15px 23px),
    linear-gradient(#A8733F, #8B5C31);
  box-shadow: 0 -2px 4px -1px rgba(40, 22, 6, .25);
}
.ticket {
  position: absolute; left: 10px; bottom: 3px; z-index: 2; height: 17px; display: inline-flex; align-items: center;
  padding: 0 7px; border-radius: 2px; background: var(--butter); color: var(--ink);
  font: 600 12.5px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,.18); transform-origin: 50% 0; transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1);
}
.ticket::before { content: ""; position: absolute; left: 50%; top: -2px; width: 12px; height: 3px; margin-left: -6px; border-radius: 1px; background: rgba(40, 22, 6, .45); }
.ticket-sale { background: var(--tomato); color: #FFF3E6; }
@media (hover: hover) and (pointer: fine) { .card:hover .ticket { transform: rotate(-5deg); } }
.burst {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 62px; height: 62px; display: grid; place-content: center; text-align: center;
  background: var(--tomato); color: #FFF3E6; transform: rotate(12deg);
  clip-path: polygon(50% 0%, 57% 12%, 69% 4%, 72% 18%, 85% 15%, 82% 29%, 96% 31%, 88% 43%, 100% 50%, 88% 57%, 96% 69%, 82% 71%, 85% 85%, 72% 82%, 69% 96%, 57% 88%, 50% 100%, 43% 88%, 31% 96%, 28% 82%, 15% 85%, 18% 71%, 4% 69%, 12% 57%, 0% 50%, 12% 43%, 4% 31%, 18% 29%, 15% 15%, 28% 18%, 31% 4%, 43% 12%);
  transition: transform 500ms cubic-bezier(.34, 1.56, .64, 1);
}
.burst span { font: 700 14px/.9 var(--hand); }
.burst b { font: 700 17px/1 var(--hand); }
@media (hover: hover) and (pointer: fine) { .card:hover .burst { transform: rotate(-8deg) scale(1.08); } }
.tape {
  position: absolute; top: 12px; left: -3px; z-index: 3; padding: 5px 12px 4px 14px;
  font: 700 17px/1 var(--hand); color: #6E3F0E; background: rgba(250, 236, 180, .95); transform: rotate(-4deg);
  clip-path: polygon(0 8%, 4% 0, 96% 6%, 100% 0, 97% 50%, 100% 100%, 95% 92%, 5% 100%, 0 92%, 3% 50%);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.stamp-out {
  position: absolute; left: 50%; top: 42%; z-index: 3; transform: translate(-50%, -50%) rotate(-12deg);
  border: 3px solid var(--tomato); color: var(--tomato); padding: 6px 10px 5px; border-radius: 6px;
  font: 600 15px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: rgba(255, 250, 240, .7);
  box-shadow: 0 0 0 1px rgba(196, 70, 42, .25);
}
.card.is-out .card-goods { filter: grayscale(.8); opacity: .5; }
.card-body { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.card-title { font: 600 15.5px/1.3 var(--sans); }
.card-title a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .card-title a:hover { text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 3px; } }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; }
.card-unit { color: var(--ink-3); font-size: 13.5px; }
.card-unit s { font: 400 12px var(--mono); margin-left: 4px; }
.fly { position: fixed; z-index: 95; pointer-events: none; margin: 0; will-change: transform; }
.plus-one { position: fixed; z-index: 96; pointer-events: none; font: 700 22px/1 var(--hand); color: var(--green); }

/* Product page shelf */
.pdp-media { position: relative; background: var(--noise), var(--tint); box-shadow: inset 0 20px 26px -20px rgba(40, 22, 6, .3); perspective: 800px; }
.pdp-media .card-goods { bottom: 34px; padding: 12% 12% 0; }
.pdp-media .shelf { height: 34px; }
.pdp-media .ticket { height: 24px; font-size: 16px; left: 18px; bottom: 5px; padding: 0 10px; }
.jar-lg { transform-style: preserve-3d; }

/* ---------- Drawer & toast ---------- */
.drawer-panel { background: var(--noise), var(--paper); }
.drawer-head h2 { display: flex; align-items: center; gap: 10px; }
.drawer-head .basket-ico { width: 28px; height: 26px; color: var(--green); }
.receipt-empty .empty-basket { width: 96px; height: 86px; color: var(--ink-3); transform-origin: 50% 0; }
.receipt-empty p { font: 700 26px/1.1 var(--hand); color: var(--ink-2); }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 24px) rotate(-2deg); opacity: 0; pointer-events: none;
  background: var(--noise), #FFF9EB; color: var(--ink); padding: 11px 16px 11px 30px; border-radius: 10px;
  border: 1px solid rgba(40, 22, 6, .16); font-size: 14.5px; font-weight: 500;
  display: flex; gap: 14px; align-items: center; width: max-content; max-width: calc(100% - 32px);
  box-shadow: 0 16px 30px -16px rgba(40, 22, 6, .5);
  transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1), opacity 200ms ease;
}
.toast::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.toast.is-on { transform: translate(-50%, 0) rotate(-1deg); opacity: 1; pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--green); font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--butter); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* ---------- Checkout extras ---------- */
.receipt-paper { background: var(--noise), #FFFDF7; box-shadow: 0 18px 30px -24px rgba(40, 22, 6, .6); }
.sent { position: relative; }
.sent-stamp {
  position: absolute; right: 0; top: 10px; padding: 10px 16px 8px; border: 4px solid var(--wa); border-radius: 10px; color: var(--wa);
  font: 600 26px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-12deg); opacity: .9;
}

/* ---------- Footer shopfront ---------- */
.site-foot { margin-top: 64px; background: var(--noise), var(--paper-2); padding-bottom: 24px; }
.shopfront {
  position: relative; padding-bottom: 44px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 2px, transparent 2px 58px), var(--noise), linear-gradient(#2F513A, #27442F);
  border-bottom: 10px solid #1E3325;
}
.awning-foot { height: 40px; }
.window {
  position: relative; overflow: hidden; margin: 22px auto 0; max-width: 760px; text-align: center;
  padding: clamp(28px, 5vw, 46px) 20px clamp(26px, 4.5vw, 40px);
  border: 12px solid #E4D2AE; border-radius: 12px 12px 4px 4px;
  background: radial-gradient(500px 220px at 50% 0%, rgba(255, 214, 140, .10), transparent 70%), linear-gradient(165deg, #1B2A22, #111C16 60%, #17251D);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4), inset 0 0 40px rgba(0,0,0,.6), 0 8px 0 -2px #C9B48C, 0 22px 30px -18px rgba(0,0,0,.6);
}
.window-sheen { position: absolute; inset: -30% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.09) 46%, rgba(255,255,255,.02) 50%, transparent 54%); }
.window-name {
  font: 400 clamp(36px, 6.4vw, 66px)/1 var(--serif); letter-spacing: -.01em;
  background: linear-gradient(180deg, #FBE7A2 0%, #D9A845 48%, #A97A22 52%, #F0CF78 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.45));
}
.window-hours { margin-top: 16px; font: 500 12.5px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #E6CB80; }
.window-note { margin-top: 12px; font: 700 clamp(24px, 3vw, 30px)/1 var(--hand); color: var(--chalk); transform: rotate(-2deg); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; font-size: 14.5px; padding-top: 36px; }
.site-foot h4 { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-feature { grid-template-columns: repeat(2, 1fr); }
  .co-grid, .pdp { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --stripe: 26px; }
  .awning { height: 36px; }
  .awning-cloth { height: 23px; }
  .awning-scallops { top: 22px; height: 13px; -webkit-mask-size: var(--stripe) 13px; mask-size: var(--stripe) 13px; }
  .awning + .site-head { margin-top: -13px; padding-top: 13px; }
  .head-row { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 12px 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand { margin-right: auto; }
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 15px; }
  .open-sign { width: 68px; height: 38px; margin-top: -14px; }
  .sign-board { top: 12px; height: 27px; }
  .sign-face { font-size: 18px; }
  .sign-back { font-size: 15px; }
  .basket-label { display: none; }
  .basket-btn { padding: 0 6px 0 12px; height: 42px; gap: 7px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .jar { width: 78%; padding: 10px 8px 8px; gap: 6px; }
  .jar-name { font-size: 14px; }
  .jar-unit { font-size: 9.5px; padding-top: 6px; }
  .card-goods { bottom: 20px; padding: 8% 7% 0; }
  .shelf { height: 20px; }
  .ticket { left: 6px; height: 16px; font-size: 11.5px; padding: 0 5px; }
  .burst { width: 50px; height: 50px; top: 5px; right: 5px; }
  .burst span { font-size: 12px; } .burst b { font-size: 14px; }
  .tape { font-size: 15px; top: 8px; }
  .stamp-out { font-size: 12px; padding: 5px 7px 4px; }
  .card-title { font-size: 14.5px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 4px; }
  .card-foot .add-btn { width: 100%; justify-content: center; }
  .card-foot .stepper { width: 100%; justify-content: space-between; }
  .add-soldout { text-align: center; padding: 8px 0; }
  .add-btn, .stepper { height: 34px; }
  .stepper button { width: 32px; height: 34px; }
  .board { border-width: 9px; border-radius: 14px; }
  .chalk-note { position: static; margin-top: 8px; font-size: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .section-head { align-items: start; flex-direction: column; }
  .window { border-width: 9px; }
  .sent-stamp { position: static; justify-self: start; font-size: 20px; }
}
@media (max-width: 380px) {
  .grid { gap: 20px 10px; }
  .open-sign { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .slider.is-playing .dots button[aria-current="true"]::after { animation: none; transform: scaleX(1); }
}
.awning-foot { --awning-a: var(--tomato); }
.price { font: 500 15px/1.2 var(--mono); white-space: nowrap; }
.price s { color: var(--ink-3); font-size: 13px; margin-left: 4px; }
.price-lg { font-size: 26px; font-weight: 500; }
.price-lg s { font-size: 16px; }

/* ---------- Checkout: find my location ---------- */
.locate-card {
  display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--noise), #FFFCF4;
  border: 1.5px dashed rgba(46, 91, 60, .35);
}
.locate-head { display: flex; gap: 12px; align-items: flex-start; }
.locate-head strong { display: block; font-size: 15.5px; }
.locate-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.locate-ico svg { width: 22px; height: 22px; }
.btn-locate { background: var(--green); color: #F5F0E6; height: 52px; box-shadow: 0 3px 0 #1B3A25; transform: translateY(-1px); }
.btn-locate:active { transform: translateY(2px); box-shadow: 0 0 0 #1B3A25; }
@media (hover: hover) and (pointer: fine) { .btn-locate:hover { background: var(--green-2); } }
.btn-locate svg { width: 22px; height: 22px; }
.btn-locate.is-busy svg { animation: spin 1s linear infinite; }
.btn-locate.is-done { background: transparent; color: var(--green); border: 1.5px solid var(--green); box-shadow: none; height: 44px; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-map { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); z-index: 0; }
.loc-status { font-size: 14.5px; font-weight: 500; }
.loc-status:empty { display: none; }
.loc-status.is-ok { color: var(--green); background: var(--green-soft); padding: 10px 12px; border-radius: 10px; }
.loc-status.is-no { color: #8A2E18; background: #F6E3D9; padding: 10px 12px; border-radius: 10px; }
.co-pin { background: none; border: 0; }
.co-pin-me span {
  display: block; width: 30px; height: 30px; margin: 0 auto; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--tomato); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.co-pin-me span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.co-pin-shop span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 15px; }
.co-gate {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 16px; border-radius: 14px;
  background: var(--noise), rgba(30, 42, 34, .05); border: 1.5px dashed var(--line-2); color: var(--ink-2); font-size: 14.5px;
}
.gate-lock { width: 38px; height: 38px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--ink-3); box-shadow: 0 1px 0 var(--line-2); }
.gate-lock svg { width: 20px; height: 20px; }
.co-gate .btn { height: 42px; }

/* ---------- Size / weight choices ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.opt {
  position: relative; border: 1.5px solid var(--line-2); background: #FFFCF5; color: var(--ink-2); border-radius: 8px;
  padding: 4px 8px; font: 500 12.5px/1.2 var(--mono); cursor: pointer; white-space: nowrap;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}
.opt:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--ink); color: var(--ink); } }
.opt.is-on { border-color: var(--ink); background: var(--ink); color: #F5EEDD; }
.opt[data-empty] { opacity: .45; text-decoration: line-through; }
.opt[data-count]:not([data-count=""])::after {
  content: attr(data-count); position: absolute; top: -7px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--butter); color: var(--ink); font: 600 10.5px/17px var(--mono); text-align: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.board .opt { background: rgba(242, 238, 227, .06); border-color: rgba(242, 238, 227, .35); color: rgba(242, 238, 227, .85); }
.board .opt.is-on { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.pdp-opts { display: grid; gap: 8px; }
.opts-label { font-weight: 600; font-size: 14px; }
.opts-lg { gap: 8px; margin: 0; }
.opts-lg .opt { display: grid; gap: 2px; padding: 9px 14px; border-radius: 10px; font-size: 15px; text-align: left; }
.opts-lg .opt small { font: 400 12px var(--mono); opacity: .7; }
.price [hidden] { display: none; }

/* ---------- Real photos fill the shelf spot ---------- */
.card-goods.has-photo { padding: 0; }
.card-goods.has-photo img { object-fit: cover; object-position: 50% 50%; mix-blend-mode: normal; border-radius: 12px 12px 0 0; }
.pdp-media .card-goods.has-photo { padding: 0; }
.pdp-media .card-goods img { object-fit: cover; mix-blend-mode: normal; }

.card-goods.has-photo > .jar { display: none; }
.card-goods.img-failed { padding: 10% 10% 0; }
.pdp-media .card-goods.img-failed { padding: 12% 12% 0; }
.card-goods.img-failed > img { display: none; }
.card-goods.img-failed > .jar { display: grid; }
.cat-img.has-photo > em { display: none; }
.cat-img.img-failed > img { display: none; }
.cat-img.img-failed > em { display: block; }
.thumb { position: relative; }
.thumb img { position: absolute; inset: 0; }
