/* Maitha R9 "Familiar" (docs/11-familiar-spec.md). Checkers-pattern layout, Maitha tokens. Replaces maita.css in the
   preview and after the flip. Mobile below 768px, compact header 768–1199px, desktop from 1200px. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/source-sans-3-800-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #1E4D2B; --green-deep: #133520; --lime: #B5D334; --leaf: #356B35; --alert: #B3361C;
  --ink: #17201A; --ink-soft: #45524A; --paper: #FAFBF5; --tint: #EDF4E1; --line: #D9DECF; --white: #fff;
  --control-line: #73806D; --scrim: rgba(23, 32, 26, .62);
  --font: "Source Sans 3", Arial, sans-serif;
  --r: 15px; --r-in: 10px; --r-b: 5px;
  --sh-panel: 0 4px 16px rgba(23, 32, 26, .16); --sh-head: 0 2px 4px rgba(23, 32, 26, .06);
  --gap: 16px; --sec: 48px; --tabbar: 64px;
}
@media (max-width: 767px) { :root { --gap: 12px; --sec: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/22px var(--font); font-variant-numeric: tabular-nums; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hd-top :focus-visible, .ft :focus-visible, .banner:focus-visible { outline-color: #fff; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: var(--r-in); }
.skip:focus { top: 8px; }
.wrap { width: calc(100% - 64px); max-width: 1360px; margin-inline: auto; }
@media (max-width: 767px) { .wrap { width: calc(100% - 24px); } }
.fi { width: 24px; height: 24px; flex: none; }
.fi-big { width: 80px; height: 80px; stroke-width: 1.25; color: var(--green); }
.fi-huge { width: 160px; height: 120px; stroke-width: 1; color: var(--green); }
.ic { width: 22px; height: 22px; flex: none; }
main { padding-bottom: var(--sec); }
@media (max-width: 767px) { main { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 32px); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 2px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font-weight: 700; font-size: 16px; line-height: 20px; text-decoration: none; text-align: center; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { background: #a3bf2c; border-color: #a3bf2c; }
.btn.ghost { background: #fff; color: var(--green); border-color: var(--green); }
.btn.ghost:hover { background: var(--tint); }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 52px; font-size: 18px; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--tint); border-color: var(--tint); color: var(--ink-soft); cursor: default; }
.btn .ic, .btn .fi { width: 20px; height: 20px; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--ink); }
.x:hover { background: var(--tint); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--green); border-radius: 9999px; background: #fff; color: var(--green); font-weight: 700; font-size: 14px; line-height: 18px; }
.pill .fi { width: 20px; height: 20px; }
.pill.on { background: var(--green); color: #fff; }

/* ---------- Header (spec §3) ---------- */
.hd { position: relative; z-index: 20; }
.hd-top { background: var(--green-deep); color: #fff; }
.hd-top .wrap { display: flex; align-items: center; gap: 16px; min-height: 86px; }
.hd-logo { display: flex; align-items: center; width: 180px; height: 60px; flex: none; background: #fff; border-radius: var(--r-in); padding: 8px 12px; }
.hd-logo svg { width: 100%; height: 100%; }
.hd-menu { display: none; }
.hd-area { display: flex; align-items: center; gap: 10px; width: 237px; height: 49px; flex: none; padding: 0 14px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .14); color: #fff; text-align: left; }
.hd-area:hover { background: rgba(255, 255, 255, .22); }
.hd-area span, .hd-acct span { display: flex; flex-direction: column; min-width: 0; }
.hd-area small, .hd-acct small { font-size: 12px; line-height: 16px; font-weight: 600; opacity: .9; }
.hd-area b, .hd-acct b { font-size: 16px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-area .fi { color: var(--lime); }
.hd-search { position: relative; flex: 1 1 auto; min-width: 240px; }
.hd-search input { width: 100%; height: 48px; padding: 12px 48px 12px 46px; border: 0; border-radius: var(--r); background: var(--tint); color: var(--ink); font-weight: 500; font-size: 16px; }
.hd-search input::placeholder { color: var(--ink-soft); }
.hd-search input::-webkit-search-cancel-button { display: none; }
.hd-search > .fi { position: absolute; left: 14px; top: 12px; color: var(--ink-soft); pointer-events: none; }
.hd-clear { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-soft); }
.hd-acct { display: flex; align-items: center; gap: 10px; width: 150px; min-height: 48px; flex: none; color: #fff; text-decoration: none; }
.hd-acct .fi { width: 40px; height: 40px; stroke-width: 1.25; }
.hd-basket { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 72px; height: 56px; flex: none; color: #fff; text-decoration: none; }
.hb-ico { position: relative; display: block; }
.hb-ico .fi { width: 28px; height: 28px; }
.hb-count { position: absolute; top: -6px; right: -12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 12px; line-height: 20px; font-weight: 800; text-align: center; }
.hb-count[hidden] { display: none; }
.hb-total { padding: 1px 8px; border-radius: var(--r-b); background: var(--lime); color: var(--ink); font-size: 14px; line-height: 18px; font-weight: 800; }
.hd-nav { background: #fff; box-shadow: var(--sh-head); }
.hd-nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.hd-dept { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink); }
.hd-div { width: 1px; height: 32px; background: var(--line); }
.hd-opts { font-size: 14px; color: var(--ink-soft); }
.hd-sp { flex: 1; }
.hd-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.hd-link:hover, .hd-dept:hover { color: var(--green); }
.hd-link .fi { color: var(--green); }

@media (max-width: 1199px) {
  .hd-acct span, .hd-opts, .hd-div { display: none; }
  .hd-acct { width: auto; }
  .hd-area { width: 200px; }
  .hd-link:not(:last-child) span { display: none; }
}
@media (max-width: 767px) {
  .hd-top .wrap { flex-wrap: wrap; gap: 12px; min-height: 0; padding: 6px 0 12px; }
  .hd-logo { width: 112px; height: 40px; padding: 4px 8px; order: 0; }
  .hd-menu { display: grid; place-items: center; order: 1; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: #fff; }
  .hd-area { order: 2; width: calc(45% - 6px); height: 48px; padding: 0 10px; gap: 6px; }
  .hd-area .fi { width: 20px; height: 20px; }
  .hd-area small { font-size: 11px; line-height: 14px; }
  .hd-area b { font-size: 14px; line-height: 18px; }
  .hd-search { order: 3; flex: 1 1 calc(55% - 6px); min-width: 0; }
  .hd-search input { height: 48px; border-radius: var(--r-in); padding-left: 40px; padding-right: 40px; }
  .hd-search > .fi { left: 10px; }
  .hd-acct, .hd-basket { display: none; }
  .hd-nav .wrap { min-height: 56px; gap: 8px; }
  .hd-dept, .hd-link { display: none; }
  .hd-nav .pill { font-size: 13px; padding: 6px 12px; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 767px) {
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); text-decoration: none; font-size: 12px; line-height: 16px; font-weight: 600; }
  .tabbar a[aria-current] { color: var(--green); }
  .tabbar a[aria-current] .fi { fill: var(--tint); }
  .tb-ico { position: relative; }
  .tb-ico .hb-count { right: -14px; }
  body.kb-open .tabbar, body.sp-open .tabbar { display: none; }
}

/* ---------- Overlays: drawers, modal, sheet (native <dialog>) ---------- */
dialog { padding: 0; border: 0; color: var(--ink); max-width: none; max-height: none; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: var(--scrim); }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(416px, 100%); height: 100dvh; margin: 0; background: #fff; display: flex; flex-direction: column; }
.drawer[open] { display: flex; }
.drawer-left { border-radius: 0 var(--r) var(--r) 0; }
.drawer-right { inset: 0 0 0 auto; border-radius: var(--r) 0 0 var(--r); }
@media (max-width: 415px) { .drawer-left, .drawer-right { border-radius: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; line-height: 28px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 767px) { .drawer-head h2 { font-size: 20px; line-height: 24px; } .drawer-head { padding-left: 16px; } }
.drawer-scroll { flex: 1; overflow: auto; padding: 8px 24px 24px; }
@media (max-width: 767px) { .drawer-scroll { padding: 8px 16px 16px; } }
.dept-list li { border-bottom: 1px solid var(--line); }
.dept-list a, .dept-list button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; background: none; color: var(--ink); text-decoration: none; text-align: left; font-size: 16px; line-height: 20px; font-weight: 600; }
.dept-list a span, .dept-list button span { flex: 1; }
.dept-list .fi:first-child { width: 32px; height: 32px; color: var(--green); }
.dept-list a:hover, .dept-list button:hover { color: var(--green); }
.dept-list small { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.dept-more { margin-top: 24px; border-top: 1px solid var(--line); }
.dept-back button { color: var(--green); }
.dept-title h3 { padding: 16px 0 8px; font-size: 20px; line-height: 24px; }
.drawer-scroll.in-sub > .dept-list[data-level="top"] > li > :not(.dept-list) { display: none; }
.drawer-scroll.in-sub > .dept-list[data-level="top"] > li { border: 0; }
.drawer-scroll.in-sub > .dept-more { display: none; }

.modal { width: min(480px, calc(100% - 24px)); margin: auto; border-radius: var(--r); background: #fff; box-shadow: var(--sh-panel); }
.modal-sm { width: min(416px, calc(100% - 24px)); }
.modal-sm .area-form p { margin: 0 0 4px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 0 24px; }
.modal-head h2 { font-size: 22px; line-height: 26px; }
.area-form { display: grid; gap: 12px; padding: 16px 24px 24px; }
.area-form label { font-weight: 700; }
.area-form input, .nf-search input { width: 100%; height: 48px; padding: 0 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; }
.area-out { padding: 12px 14px; border-radius: var(--r-in); background: var(--tint); }
.area-out.miss { background: #FBEDE9; color: var(--alert); }
.area-form .link { justify-self: center; }
@media (max-width: 767px) { .modal { width: 100%; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; } .area-form { padding: 16px; } .modal-head { padding-left: 16px; } }

.sheet { position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0; background: #fff; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet .filters { flex: 1; overflow: auto; padding: 16px; border-radius: 0; }
.sheet .filters h2 { display: none; }
.sheet .f-apply { position: sticky; bottom: 0; }

/* Basket drawer */
.drawer-in { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.mini-lines li { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-lines img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.mini-lines li > div { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.mini-lines a { color: var(--ink); text-decoration: none; font-weight: 600; }
.step-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.drawer-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.drawer-foot .sum { display: flex; justify-content: space-between; font-size: 18px; }
.drawer-foot .note { font-size: 14px; color: var(--ink-soft); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 48px 16px; text-align: center; }
.empty h1 { font-size: 24px; line-height: 28px; }

/* Toast */
.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; width: min(360px, calc(100% - 24px)); padding: 12px 8px 12px 16px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-panel); }
.toast[hidden] { display: none; }
.toast > .fi { color: #fff; background: var(--leaf); border-radius: 50%; padding: 3px; flex: none; }
.toast div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.toast span { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 767px) { .toast { left: 12px; right: 12px; width: auto; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 12px); } }
@media (prefers-reduced-motion: no-preference) { .toast:not([hidden]) { animation: rise .2s ease-out; } @keyframes rise { from { transform: translateY(12px); opacity: 0; } } }

.to-top { position: fixed; z-index: 25; right: 24px; bottom: 96px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #fff; box-shadow: var(--sh-panel); }
.to-top[hidden] { display: none; }
@media (max-width: 767px) { .to-top { right: 12px; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 76px); } }

/* ---------- Search panel (spec §8) ---------- */
.sp { position: absolute; z-index: 35; left: 50%; transform: translateX(-50%); top: 76px; width: min(1000px, calc(100% - 32px)); max-height: calc(100vh - 92px); display: flex; flex-direction: column; border-radius: var(--r); background: #fff; box-shadow: var(--sh-panel); overflow: hidden; }
.sp[hidden] { display: none; }
.sp-head { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.sp-back { display: none; }
.sp-count { font-weight: 700; text-transform: uppercase; }
.sp-body { flex: 1; overflow: auto; padding: 16px; background: var(--tint); }
.sp-foot { display: grid; place-items: center; min-height: 72px; padding: 12px; border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .sp { position: fixed; inset: 0; transform: none; width: 100%; max-height: none; height: 100dvh; border-radius: 0; }
  .sp-head { padding: 0 12px; min-height: 64px; }
  .sp-back { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; }
  .sp-body { padding: 12px; }
  .sp-foot .btn { width: 100%; }
  body.sp-open .hd-search { position: fixed; z-index: 36; top: 10px; left: 64px; right: 12px; }
  body.sp-open .hd { z-index: auto; }
  body.sp-open .sp-head { flex-wrap: wrap; align-content: flex-start; padding-top: 12px; padding-bottom: 8px; }
  body.sp-open .sp-count { flex-basis: 100%; padding: 12px 4px 0; }
}

/* ---------- Sections and rails (spec §5) ---------- */
.wrap.home > * + * { margin-top: var(--sec); }
.wrap.home { padding-top: 24px; }
@media (max-width: 767px) { .wrap.home { padding-top: 12px; } }
.sec-h { font-size: 24px; line-height: 28px; font-weight: 700; text-transform: uppercase; }
@media (max-width: 767px) { .sec-h { font-size: 20px; line-height: 24px; } }
.quick .sec-h { margin-bottom: 16px; }
.quick-list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.quick-list::-webkit-scrollbar { display: none; }
.quick-list li { flex: none; width: 136px; scroll-snap-align: start; }
.quick-list a { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; text-align: center; }
.q-circle { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--tint); overflow: hidden; }
.q-circle img { width: 78%; height: 78%; object-fit: contain; }
.q-protein { background: #F4E7D8; } .q-pantry { background: #FFF3C9; } .q-drinks { background: #FDE3CF; }
.q-rewards { background: var(--green); color: var(--lime); } .q-rewards .fi { width: 56px; height: 56px; }
.q-deals { background: var(--alert); color: #fff; font-size: 22px; font-weight: 800; }
.q-label { font-size: 16px; line-height: 20px; font-weight: 700; }
.quick-list a:hover .q-circle { box-shadow: 0 0 0 3px var(--green); }
@media (max-width: 767px) { .quick-list li { width: 72px; } .q-circle { width: 64px; height: 64px; } .q-label { font-size: 13px; line-height: 16px; } .q-rewards .fi { width: 34px; height: 34px; } .q-deals { font-size: 14px; } }

.banner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; aspect-ratio: 5.04 / 1; border-radius: var(--r); overflow: hidden; background: var(--green-deep); color: #fff; text-decoration: none; }
.banner .b-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 24px 40px; }
.b-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; font-weight: 800; }
.b-short { display: none; }
.b-sub { font-size: 18px; line-height: 24px; }
.b-cta { margin-top: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: var(--r); background: var(--lime); color: var(--ink); font-weight: 700; }
.banner:hover .b-cta { background: #c6e04c; }
.banner { grid-template-rows: minmax(0, 1fr); }
.banner > * { min-height: 0; min-width: 0; }
.b-img { width: 100%; height: 100%; object-fit: cover; }
.banner-service { background: var(--lime); color: var(--ink); }
.banner-service .b-cta { background: var(--green-deep); color: #fff; }
.banner-service .b-draw { object-fit: contain; padding: 12px; background: #fff; }
@media (max-width: 767px) {
  .banner { aspect-ratio: auto; grid-template-columns: 1fr 96px; min-height: 96px; }
  .banner .b-text { padding: 12px 14px; gap: 2px; }
  .b-long { display: none; } .b-short { display: inline; }
  .b-h { font-size: 16px; line-height: 18px; }
  .b-sub { font-size: 13px; line-height: 16px; }
  .b-cta { display: none; }
}

.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.view-all { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.rail-wrap { position: relative; }
.tiles-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px; margin: -2px; }
.tiles-rail::-webkit-scrollbar { display: none; }
.tiles-rail > .tile { flex: none; width: calc((100% - 80px) / 6); scroll-snap-align: start; }
@media (max-width: 1199px) { .tiles-rail > .tile { width: calc((100% - 48px) / 4); } }
@media (max-width: 767px) { .tiles-rail { gap: 12px; } .tiles-rail > .tile { width: 140px; } }
.rail-btn { position: absolute; z-index: 2; top: 150px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green-deep); color: #fff; box-shadow: var(--sh-panel); }
.rail-btn.prev { left: -22px; } .rail-btn.next { right: -22px; }
.rail-btn:disabled { background: var(--tint); color: var(--ink-soft); box-shadow: none; }
@media (max-width: 767px) { .rail-btn { display: none; } }
.dots { display: flex; justify-content: center; margin-top: 8px; }
.dots button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; }
.dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--control-line); }
.dots button[aria-current]::before { width: 10px; height: 10px; background: var(--green); }

.brand-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.brand-list a { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; }
.br-img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; }
.br-img img { max-height: 100%; width: auto; object-fit: contain; }
.br-name { padding: 12px 16px; font-size: 20px; line-height: 24px; font-weight: 800; text-transform: uppercase; color: var(--green); border-top: 1px solid var(--line); }
@media (max-width: 1199px) { .brand-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .brand-list { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; } .brand-list li { flex: none; width: 160px; } .br-name { font-size: 15px; } }

/* ---------- Product tile (spec §6) ---------- */
.tile { position: relative; display: flex; flex-direction: column; min-height: 395px; padding: 16px; border-radius: var(--r); background: #fff; }
.t-img { display: grid; place-items: center; height: 170px; padding: 12px; }
.t-img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.t-noimg { display: grid; justify-items: center; gap: 4px; width: 100%; height: 100%; place-content: center; border-radius: var(--r-in); background: var(--tint); color: var(--green); font-size: 12px; font-weight: 600; }
.t-noimg .fi { width: 48px; height: 48px; }
.is-out .t-img img { filter: grayscale(1); opacity: .6; }
.t-act { position: absolute; top: 12px; right: 12px; z-index: 1; }
.t-add { display: inline-flex; align-items: center; gap: 4px; min-width: 78px; height: 44px; padding: 0 14px 0 10px; border-radius: 9999px; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 2px 6px rgba(23, 32, 26, .18); }
.t-add:hover { background: var(--green-deep); }
.t-add .fi { width: 22px; height: 22px; stroke-width: 2.25; }
.t-add[hidden] { display: none; }
.t-add.t-alt { padding: 0 14px; background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.t-add[aria-busy="true"] { opacity: .7; }
.t-pill-out { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--tint); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: 9999px; background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(23, 32, 26, .18); }
.stepper[hidden] { display: none; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: inherit; border-radius: 50%; }
.stepper button:hover { background: rgba(255, 255, 255, .15); }
.stepper button:disabled { opacity: .45; }
.stepper output { min-width: 44px; text-align: center; font-weight: 800; }
.stepper .fi { width: 20px; height: 20px; stroke-width: 2.25; }
.stepper.sm { height: 44px; background: var(--tint); color: var(--green); box-shadow: none; }
.t-body { display: flex; flex-direction: column; flex: 1; gap: 6px; }
.t-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; }
.bdg { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 6px; border-radius: var(--r-b); font-size: 12px; line-height: 16px; font-weight: 700; color: #fff; background: var(--alert); }
.bdg .fi { width: 14px; height: 14px; }
.bdg-pts { background: var(--tint); color: var(--green); }
.bdg-frozen { background: #DDEBF3; color: #1B4A66; }
.bdg-adult { background: var(--ink); }
.t-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 32px; line-height: 36px; font-weight: 800; }
.pr sup { font-size: 14px; line-height: 0; font-weight: 700; vertical-align: 12px; margin-left: 1px; }
.t-price small { font-size: 14px; font-weight: 700; }
.t-price.on-sale .pr { color: var(--alert); }
.t-was { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink-soft); }
.t-unit { color: var(--ink-soft); }
.t-soon { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--ink-soft); }
.t-name { font-size: 14px; line-height: 18px; font-weight: 400; min-height: 54px; }
.t-name a { color: var(--ink); text-decoration: none; }
.t-name a:hover { text-decoration: underline; }
.t-meta { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-soft); }
.t-chip { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1.5px solid var(--leaf); border-radius: 9999px; color: var(--leaf); font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.t-chip .fi { width: 16px; height: 16px; }
@media (max-width: 767px) {
  .tile { min-height: 320px; padding: 10px; }
  .t-img { height: 116px; padding: 8px; }
  .t-act { top: 8px; right: 8px; }
  .tiles-rail .stepper, .tiles-grid .stepper { position: absolute; right: -4px; top: -4px; }
  .t-price { font-size: 22px; line-height: 26px; }
  .pr sup { font-size: 11px; vertical-align: 8px; }
  .t-name { min-height: 72px; }
  .bdg { font-size: 12px; line-height: 16px; }
  .t-chip { height: 22px; font-size: 11px; }
}
.tiles-panel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tiles-panel .tile { min-height: 315px; }
.tiles-panel .t-img { height: 140px; }
.tiles-panel .t-price { font-size: 24px; line-height: 28px; }
@media (max-width: 767px) { .tiles-panel { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Listing (spec §7) ---------- */
.listing { padding-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 14px; line-height: 20px; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .fi { width: 16px; height: 16px; }
.crumbs-up { text-transform: uppercase; font-weight: 700; }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 24px; border-radius: var(--r); background: #fff; }
.titlebar h1 { font-size: 24px; line-height: 28px; font-weight: 700; text-transform: uppercase; }
.count { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.tb-ctl { display: flex; gap: 8px; align-items: center; }
.sort { position: relative; display: flex; align-items: center; }
.sort label { position: absolute; left: 12px; pointer-events: none; display: flex; color: var(--ink-soft); }
.sort select { height: 44px; padding: 0 36px 0 42px; border: 2px solid var(--control-line); border-radius: 9999px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345524A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; font-weight: 700; font-size: 14px; }
.f-open { display: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 16px; scrollbar-width: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--green); border-radius: 9999px; background: #fff; color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; }
.chips a[aria-current] { background: var(--green); color: #fff; }
.lay { display: grid; gap: 16px; margin-top: 16px; }
.lay.has-f { grid-template-columns: 320px 1fr; align-items: start; }
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lay:not(.has-f) .tiles-grid { grid-template-columns: repeat(5, 1fr); }
.filters { display: grid; gap: 16px; padding: 24px; border-radius: var(--r); background: #fff; }
.filters h2 { font-size: 18px; line-height: 22px; text-transform: uppercase; }
.f-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.f-toggle { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 700; text-transform: uppercase; }
.f-toggle input { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: var(--control-line); position: relative; cursor: pointer; }
.f-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.f-toggle input:checked { background: var(--green); }
.f-toggle input:checked::after { transform: translateX(22px); }
.filters fieldset { margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); }
.filters legend { padding: 0; font-weight: 700; margin-bottom: 4px; }
.f-row { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.f-row input { width: 20px; height: 20px; accent-color: var(--green); }
.f-row span { flex: 1; }
.f-row small { color: var(--ink-soft); }
.js .side .f-apply { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
@media (max-width: 1199px) { .lay.has-f { grid-template-columns: 260px 1fr; } .tiles-grid { grid-template-columns: repeat(3, 1fr); } .lay:not(.has-f) .tiles-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) {
  .titlebar { flex-direction: column; align-items: stretch; padding: 12px; }
  .titlebar h1 { font-size: 22px; line-height: 26px; }
  .tb-ctl > * { flex: 1; }
  .sort select { width: 100%; padding-left: 38px; padding-right: 30px; }
  .tb-ctl > .sort { flex: 1.6; }
  .f-open { display: inline-flex; }
  .lay.has-f { grid-template-columns: 1fr; }
  .side { display: none; }
  .tiles-grid, .lay:not(.has-f) .tiles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .crumbs a:not(:nth-last-child(3)) { display: none; }
  .crumbs .fi:not(:nth-last-child(2)) { display: none; }
}

/* ---------- Product page (spec §9) ---------- */
.pdp-wrap { padding-top: 16px; }
.pdp { display: grid; grid-template-columns: 506px 1fr; gap: 62px; padding: 32px; border-radius: var(--r); background: #fff; }
.gal-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0; border: 1px solid #C8D6C0; border-radius: var(--r); padding: 24px; }
.gal-main img { max-height: 100%; width: auto; object-fit: contain; }
.gal-zoom { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.gal-zoom:hover { background: var(--tint); }
.gal-thumbs { display: flex; gap: 16px; margin-top: 24px; overflow-x: auto; }
.gal-thumbs button { width: 114px; height: 114px; padding: 8px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; }
.gal-thumbs button[aria-pressed="true"] { border-color: var(--green); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pdp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdp-top .t-chip { margin: 0; height: 36px; padding: 0 12px; font-size: 14px; }
.pdp-acts { display: flex; gap: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; font-size: 14px; font-weight: 600; border-radius: var(--r-in); }
.act:hover { background: var(--tint); }
.act[aria-pressed="true"] { color: var(--alert); }
.pdp-info h1 { font-size: 32px; line-height: 36px; font-weight: 700; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 52px; line-height: 56px; font-weight: 800; }
.pdp-price.t-soon { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--ink-soft); margin: 8px 0 16px; }
.pdp-info > .btn.ghost { align-self: flex-start; }
.pdp-price .pr sup { font-size: 24px; vertical-align: 22px; }
.pdp-price.on-sale .pr { color: var(--alert); }
.pdp-price small { font-size: 18px; font-weight: 700; }
.pdp-price .t-was { font-size: 22px; }
.pdp-ends { color: var(--alert); font-weight: 700; }
.pdp-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); }
.pdp-note .fi { color: var(--green); }
.pdp-buy form.cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.pdp-buy .variations_form { display: block; }
.pdp-buy table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.pdp-buy table.variations th, .pdp-buy table.variations td { display: block; padding: 0; text-align: left; }
.pdp-buy table.variations label { font-weight: 700; }
.pdp-buy table.variations td { padding: 8px 0 12px; }
.pdp-buy select.sr + .swatches, .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 2px solid var(--control-line); border-radius: 9999px; font-weight: 700; cursor: pointer; background: #fff; }
.swatch label img { width: 32px; height: 32px; object-fit: contain; }
.swatch label small { font-weight: 600; color: var(--ink-soft); }
.swatch input:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.swatch input:checked + label small { color: var(--tint); }
.swatch input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.pdp-buy .woocommerce-variation-price { display: none; }
.pdp-buy .woocommerce-variation-availability p { margin: 4px 0 8px; font-weight: 600; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.qlabel { flex-basis: 100%; font-weight: 700; margin-bottom: -8px; }
.pdp-buy .quantity { display: inline-flex; align-items: center; width: 184px; height: 52px; border-radius: var(--r); background: var(--tint); }
.pdp-buy .quantity.stepper { color: var(--green); box-shadow: none; }
.pdp-buy .quantity .step { width: 52px; height: 52px; border: 0; background: none; color: var(--green); font-size: 24px; font-weight: 700; }
.pdp-buy .quantity input.qty { flex: 1; width: 40px; height: 52px; border: 0; background: none; text-align: center; font-weight: 800; font-size: 18px; color: var(--ink); -moz-appearance: textfield; }
.pdp-buy .quantity input::-webkit-outer-spin-button, .pdp-buy .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-buy .quantity label.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.familiar .pdp-buy form.cart .single_add_to_cart_button { min-width: 184px; height: 52px; padding: 0 24px; border: 0; border-radius: var(--r); background: var(--lime); color: var(--ink); font-weight: 700; font-size: 16px; }
.familiar .pdp-buy form.cart .single_add_to_cart_button:hover { background: #a3bf2c; }
.familiar .pdp-buy form.cart .single_add_to_cart_button.disabled { background: var(--tint); color: var(--ink-soft); cursor: not-allowed; }
.pdp-buy .stock.out-of-stock { font-weight: 700; color: var(--alert); }
.subst { flex-basis: 100%; margin: 8px 0 0; padding: 16px; border: 0; border-radius: var(--r); background: var(--tint); }
.subst legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; }
.subst-opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.subst-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 2px solid var(--control-line); border-radius: 9999px; background: #fff; font-weight: 600; cursor: pointer; }
.subst-opts input { accent-color: var(--green); width: 18px; height: 18px; }
.subst-opts label:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.subst-help { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.rel { margin-top: 32px; padding: 16px; border-radius: var(--r); background: var(--tint); }
.rel .rail-btn { top: 140px; }
.pdp-more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.pdp-more section { padding: 24px; border-radius: var(--r); background: #fff; }
.pdp-more h2 { font-size: 18px; line-height: 22px; margin-bottom: 12px; }
.prose p + p { margin-top: 12px; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 40%; font-weight: 700; }
.gal-viewer { width: min(900px, calc(100% - 24px)); padding: 16px; border-radius: var(--r); background: #fff; }
.gal-viewer img { max-height: 80vh; margin: 0 auto; object-fit: contain; }
@media (max-width: 1199px) { .pdp { grid-template-columns: 380px 1fr; gap: 32px; } }
@media (max-width: 767px) {
  .pdp { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .gal-thumbs { gap: 8px; margin-top: 12px; }
  .gal-thumbs button { width: 64px; height: 64px; padding: 4px; }
  .pdp-info h1 { font-size: 24px; line-height: 28px; }
  .pdp-price { font-size: 36px; line-height: 40px; }
  .pdp-price .pr sup { font-size: 18px; vertical-align: 14px; }
  .familiar .pdp-buy form.cart .single_add_to_cart_button { flex: 1; min-width: 0; }
  .pdp-buy .quantity { width: 150px; }
  .pdp-more { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .rel { padding: 12px; }
}

/* ---------- Pages, basket, checkout, account (spec §12–14) ---------- */
.page-wrap, .wrap.help, .wrap.rw { padding-top: 24px; }
.page-h { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 28px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.page-h .fi { color: var(--green); width: 32px; height: 32px; }
.card { padding: 24px; border-radius: var(--r); background: #fff; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 20px; line-height: 24px; margin-bottom: 12px; }
.prose { max-width: 820px; }
.prose h2 { margin: 24px 0 8px; font-size: 20px; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose p, .prose li { margin-top: 8px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-in); background: var(--tint); border: 1px solid #C8D6C0; }
.woocommerce-error { background: #FBEDE9; border-color: #E8B9AD; color: var(--alert); }
.woocommerce-message .button { margin-left: 12px; font-weight: 700; }

.bk-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.bk-head h1 { font-size: 24px; line-height: 28px; text-transform: uppercase; }
.bk { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.bk-lines { display: grid; gap: 16px; }
.bk-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 24px; border-radius: var(--r); background: #fff; }
.bk-img img { width: 96px; height: 96px; object-fit: contain; }
.bk-main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.bk-name { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.bk-each { color: var(--ink-soft); font-size: 14px; }
.bk-main dl.variation { margin: 0; font-size: 14px; color: var(--ink-soft); display: flex; gap: 4px; }
.bk-main dl.variation dd { margin: 0; }
.bk-main dl.variation p { margin: 0; }
.bk-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.bk-sub select { height: 44px; padding: 0 12px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; font-weight: 600; }
.bk-acts { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.bk-acts .stepper { width: 132px; background: var(--tint); color: var(--green); box-shadow: none; }
.bk-acts .stepper .quantity { flex: 1; }
.bk-acts .stepper input.qty { width: 100%; height: 44px; border: 0; background: none; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.bk-acts .stepper input::-webkit-outer-spin-button, .bk-acts .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bk-acts .stepper .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bk-acts .stepper button { color: var(--green); }
.bk-total { font-size: 24px; line-height: 28px; font-weight: 800; }
.mt-cart-save { position: absolute; left: -9999px; }
.bk-sum { position: sticky; top: 24px; padding: 24px; border-radius: var(--r); background: #fff; display: grid; gap: 12px; }
.bk-sum h2 { font-size: 20px; line-height: 24px; text-transform: uppercase; }
.sums, .mt-sums { margin: 0; display: grid; gap: 8px; }
.sums > div, .mt-sums > div { display: flex; justify-content: space-between; gap: 12px; }
.sums dt, .mt-sums dt { color: var(--ink-soft); }
.sums dd, .mt-sums dd { margin: 0; font-weight: 700; }
.sums .sum-total, .sums .mt-total, .mt-sums .mt-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; }
.sums .sum-total dt, .sums .mt-total dt, .mt-sums .mt-total dt { color: var(--ink); font-weight: 700; }
.sum-note { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sum-note .fi, .sum-note .ic { width: 20px; height: 20px; color: var(--leaf); }
.sum-acct { font-size: 14px; color: var(--ink-soft); }
.keep { justify-self: center; }
.mt-quote { padding: 12px 14px; border-radius: var(--r-in); background: var(--tint); font-size: 14px; display: grid; gap: 4px; }
.mt-quote .mq-main strong { font-size: 15px; }
.mt-quote .mq-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-text { background: none; border: 0; padding: 0; min-height: 44px; color: var(--green); font-weight: 700; text-decoration: underline; cursor: pointer; }
.btn-pill { min-height: 44px; padding: 0 14px; border: 2px solid var(--green); border-radius: 9999px; background: #fff; color: var(--green); font-weight: 700; }
@media (max-width: 1023px) { .bk { grid-template-columns: 1fr; } .bk-sum { position: static; } }
@media (max-width: 767px) {
  .bk-line { grid-template-columns: 72px 1fr; padding: 16px; gap: 12px; }
  .bk-img img { width: 72px; height: 72px; }
  .bk-acts { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .bk-total { font-size: 20px; }
}

/* Checkout: step bar over the existing one-page form; form left, payment + review right */
.co form.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.co #customer_details { display: grid; gap: 16px; }
.co-step { padding: 24px; border-radius: var(--r); background: #fff; }
.co-step h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 24px; margin-bottom: 16px; }
.co-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-size: 16px; font-weight: 800; }
.co-pay { position: sticky; top: 24px; }
.co .form-row { margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.co .form-row label { font-weight: 700; }
.co .form-row .optional { font-weight: 400; color: var(--ink-soft); }
.co .form-row .required { color: var(--alert); text-decoration: none; }
.co input.input-text, .co select, .co textarea, .woocommerce-MyAccount-content input.input-text { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; }
.co textarea { min-height: 96px; }
.co .woocommerce-invalid input.input-text { border-color: var(--alert); }
.mt-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mt-lines em { font-style: normal; color: var(--ink-soft); }
.mt-review dl.variation { margin: 2px 0 0; display: flex; gap: 4px; color: var(--ink-soft); font-size: 13px; }
.mt-review dl.variation dd, .mt-review dl.variation p { margin: 0; }
.mt-change { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.co #payment { margin-top: 16px; }
.co #payment ul.payment_methods { display: grid; gap: 8px; margin-bottom: 12px; }
.co #payment li.wc_payment_method { padding: 12px 14px; border: 2px solid var(--green); border-radius: var(--r-in); }
.co #payment li label { font-weight: 700; }
.co #payment .payment_box { font-size: 14px; color: var(--ink-soft); }
.co .place-big, .co #place_order { width: 100%; min-height: 52px; border: 0; border-radius: var(--r); background: var(--lime); color: var(--ink); font-weight: 700; font-size: 18px; }
.co .woocommerce-terms-and-conditions-wrapper { font-size: 14px; margin-bottom: 12px; }
.co-help { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 1023px) { .co form.checkout { grid-template-columns: 1fr; } .co-pay { position: static; } }

/* Account + sign-in */
.auth-cloth { padding: 32px 0; }
.auth { width: min(440px, calc(100% - 24px)); margin: 0 auto; padding: 32px; border-radius: var(--r); background: #fff; display: grid; gap: 16px; }
.auth h1 { font-size: 26px; line-height: 30px; }
.auth-card, .auth-card form { display: grid; gap: 12px; }
.auth .field { display: grid; gap: 6px; font-weight: 700; }
.auth input { min-height: 48px; padding: 10px 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); }
.auth .btn-wide { width: 100%; }
.auth .btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.auth .btn-secondary { background: var(--green); }
.auth .btn-google { background: #fff; color: var(--ink); border: 2px solid var(--control-line); }
.auth .or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 14px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-small, .auth-help { font-size: 14px; color: var(--ink-soft); }
.auth-msg { padding: 12px; border-radius: var(--r-in); background: var(--tint); }
.auth-msg--error { background: #FBEDE9; color: var(--alert); }
.logged-in .is-acct .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; padding: 12px; border-radius: var(--r); background: #fff; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-in); color: var(--ink); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--tint); color: var(--green); }
.woocommerce-MyAccount-content { padding: 24px; border-radius: var(--r); background: #fff; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { margin: 16px 0 8px; font-size: 20px; }
.acct-hello { margin-top: 0 !important; }
.acct-points { padding: 16px; border-radius: var(--r); background: var(--green); color: #fff; }
.big-pts { font-size: 36px; line-height: 40px; font-weight: 800; margin-bottom: 4px !important; }
.reward-shelf { display: grid; gap: 8px; }
.reward-shelf li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-in); background: var(--tint); }
.reward-shelf li div { display: grid; }
.woocommerce-orders-table { width: 100%; border-collapse: collapse; }
.woocommerce-orders-table th, .woocommerce-orders-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
/* WooCommerce's clearfix boxes and empty notices wrapper would take grid cells; its float widths would squeeze the columns. */
.is-acct .woocommerce::before, .is-acct .woocommerce::after { display: none; }
.is-acct .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.is-acct .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.familiar .is-acct .woocommerce-MyAccount-navigation, .familiar .is-acct .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.is-acct .woocommerce-MyAccount-navigation { grid-column: 1; }
.is-acct .woocommerce-MyAccount-content { grid-column: 2; }
.btn-text { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text + .btn-text { margin-left: 20px; }
.acct-home .btn.btn-secondary { background: #fff; color: var(--green); }
.acct-home .btn.btn-secondary:hover { background: var(--tint); }
.order-lines li { border-bottom: 1px solid var(--line); }
.order-lines a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 48px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.order-lines a b { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.order-lines a:hover b { color: var(--green-deep); }
.acct-points { margin: 16px 0; }
.acct-points p { margin: 0; }
.big-pts em { font-style: normal; }
.reward-shelf li.is-ready { background: #E9F3D0; }
.reward-shelf strong { font-weight: 700; }
.reward-shelf span { font-size: 14px; color: var(--ink-soft); }
.reward-shelf .needs { text-align: right; white-space: nowrap; }
.reward-shelf .tag { padding: 4px 10px; border-radius: 9999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
.acct-msg:empty { display: none; }
.acct-msg { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-in); background: var(--tint); font-weight: 600; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share input { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; }
@media (max-width: 767px) { .logged-in .is-acct .woocommerce { grid-template-columns: 1fr; } .is-acct .woocommerce-MyAccount-navigation, .is-acct .woocommerce-MyAccount-content { grid-column: 1; } .auth { padding: 24px; } .woocommerce-MyAccount-content { padding: 16px; } }

/* Thank-you page (existing template, restyled) */
.ty { max-width: 760px; }
.ty-art { width: 96px; height: 96px; margin-bottom: 8px; }
.ty-lead { font-size: 20px; line-height: 26px; font-weight: 700; margin-bottom: 4px; }
.ty > p { margin-bottom: 16px; }
.ty-card, .thanks-note { padding: 24px; border-radius: var(--r); background: #fff; margin-bottom: 16px; }
.ty-card h2 { font-size: 20px; line-height: 24px; margin-bottom: 8px; }
.ty-addr { font-weight: 600; }
.ty-paid { margin-top: 12px; font-weight: 600; }
.mt-lines li > span { display: block; }
.mt-lines small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.mt-lines b { white-space: nowrap; }
@media (max-width: 767px) { .ty-card, .thanks-note { padding: 16px; } }

/* Rewards, Help, 404 */
.rw { max-width: 960px; }
.rw-pts { display: grid; gap: 8px; justify-items: start; }
.rw-label { font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.rw-big { font-size: 56px; line-height: 60px; font-weight: 800; color: var(--green); }
.rw-how { display: grid; gap: 8px; list-style: disc; padding-left: 20px; }
.rw-shelf { display: grid; gap: 8px; }
.rw-shelf li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-in); background: var(--tint); }
.rw-shelf li div { display: grid; }
.rw-shelf span:not(.bdg) { color: var(--ink-soft); font-size: 14px; }
.help .lede { margin: -8px 0 16px; color: var(--ink-soft); }
.help-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.help-side { display: grid; gap: 16px; }
.help-side .card + .card { margin: 0; }
.help-faq details { border-bottom: 1px solid var(--line); }
.help-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq details[open] summary .fi { transform: rotate(180deg); }
.help-faq details p { padding: 0 0 12px; }
.help-faq details .btn { margin-bottom: 16px; }
.contact { display: grid; gap: 4px; margin-top: 12px; }
.contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.help-map { width: 100%; height: 240px; margin: 12px 0; border: 0; border-radius: var(--r-in); background: var(--tint); }
@media (max-width: 1023px) { .help-grid { grid-template-columns: 1fr; } .help-side { order: -1; } }
@media (max-width: 767px) { .card { padding: 16px; } .help-map { height: 220px; } }
.nf { max-width: 560px; padding: 64px 0; display: grid; justify-items: center; gap: 12px; text-align: center; }
.nf-code { font-weight: 800; color: var(--ink-soft); letter-spacing: .1em; }
.nf h1 { font-size: 30px; line-height: 34px; }
.nf-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.nf-search { width: 100%; display: grid; gap: 6px; margin-top: 24px; text-align: left; font-weight: 700; }
.nf-search div { display: flex; gap: 8px; }
@media (max-width: 767px) { .nf { padding: 32px 0; } }

/* ---------- Footer (spec §17) ---------- */
.ft { background: var(--green-deep); color: #fff; padding: 48px 0 32px; }
.ft a { color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.ft-logo img { width: 150px; height: auto; margin-bottom: 12px; }
.ft-co p { line-height: 26px; }
.ft h2 { font-size: 16px; line-height: 20px; font-weight: 700; margin-bottom: 12px; }
.ft ul { display: grid; gap: 2px; }
.ft ul a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.ft ul a:hover { text-decoration: underline; }
.ft ul .fi, .ft ul .ic { width: 20px; height: 20px; }
.ft-social { display: flex !important; gap: 8px !important; margin-top: 8px; }
.ft-social a, .ft-social span { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.ft-social span { opacity: .55; }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); }
.ft-soon { opacity: .85; }
.ft-small { font-size: 14px; opacity: .85; }
@media (max-width: 1023px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .ft-grid { grid-template-columns: 1fr; gap: 24px; } .ft { padding-top: 32px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.gal-viewer .modal-head { padding: 0 0 8px; justify-content: flex-end; }
.gal-nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.gal-nav[hidden] { display: none; }
/* WooCommerce floats the totals at 48%; R8 pictograms (.ico) that still render inside R9 pages get the icon size. */
.familiar .bk-side .cart_totals { float: none; width: auto; }
.familiar .ico { width: 24px; height: 24px; flex: none; }
.bk-sum .mt-quote { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; row-gap: 2px; align-items: start; padding: 12px 14px; border-radius: var(--r-in); background: var(--tint); }
.bk-sum .mt-quote p { margin: 0; }
.bk-sum .mt-quote > :not(svg) { grid-column: 2; }
.bk-sum .mt-quote > svg { grid-row: 1 / span 4; }
@media (max-width: 767px) { .bk-sub { flex-direction: column; align-items: flex-start; gap: 4px; } }
/* WooCommerce buttons inside the account pages (View, Save address, Save changes). */
.familiar .woocommerce-MyAccount-content .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 2px solid var(--green); border-radius: var(--r); background: var(--green); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.familiar .woocommerce-MyAccount-content .button:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.familiar .woocommerce-orders-table .button { min-height: 36px; padding: 4px 14px; background: #fff; color: var(--green); }
.familiar .woocommerce-orders-table .button:hover { background: var(--tint); color: var(--green); }
.mt-sums { margin-top: 8px; }
/* WooCommerce paints #payment grey and its description box mauve. */
.familiar .co #payment, .familiar .co #payment div.payment_box { background: none; }
.familiar .co #payment div.payment_box { padding: 8px 0 0; margin: 0; color: var(--ink-soft); }
.familiar .co #payment div.payment_box::before { display: none; }
.familiar .co #payment div.form-row { padding: 12px 0 0; }

/* ---------- Signed-in pass (impeccable audit, 23 Oct): account tabs, order cards, addresses ---------- */
.is-acct .page-h { margin-bottom: 16px; }
@media (max-width: 767px) {
  /* Phones: the account menu is one scrolling row of tabs, so the page starts on screen. */
  .woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; padding: 0; overflow-x: auto; background: none; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .woocommerce-MyAccount-navigation li { flex: none; }
  .woocommerce-MyAccount-navigation a { min-height: 44px; padding: 0 16px; border: 2px solid var(--control-line); border-radius: 9999px; background: #fff; white-space: nowrap; }
  .woocommerce-MyAccount-navigation .is-active a { background: var(--green); border-color: var(--green); color: #fff; }
}
.order-cards { display: grid; gap: 12px; }
.order-card { position: relative; display: grid; gap: 4px; padding: 16px 56px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-in); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
.order-card:hover { border-color: var(--green); background: var(--tint); }
.oc-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.oc-top b { font-size: 18px; color: var(--green); }
.oc-top time, .oc-sum { color: var(--ink-soft); font-size: 15px; }
.oc-sum b { color: var(--ink); }
.oc-status { font-weight: 600; }
.oc-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--green); }
.oc-notes { display: grid; gap: 12px; }
.oc-notes time { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.oc-notes p { margin: 2px 0 0; }
.woocommerce-MyAccount-content > p:first-child { color: var(--ink-soft); }
.familiar .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; max-width: 520px; }
.woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.familiar .woocommerce-Address-title h2 { margin: 0; }
.familiar .woocommerce-Address-title .edit { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--green); border-radius: var(--r); color: var(--green); font-weight: 700; text-decoration: none; float: none; }
.familiar .woocommerce-Address-title .edit:hover { background: var(--tint); }
.woocommerce-Address address { font-style: normal; line-height: 1.6; padding: 16px; margin-bottom: 16px; border-radius: var(--r-in); background: var(--tint); }
.familiar .woocommerce-orders-table .button { min-height: 44px; }
.familiar .show-password-input { width: 44px; height: 44px; top: 50%; transform: translateY(-50%); right: 2px; display: grid; place-items: center; }
.familiar .password-input { position: relative; display: block; }
p, li, dd { text-wrap: pretty; }
/* Inside the account's white panel an order's sections are divided by rules, not boxed again. */
.woocommerce-MyAccount-content .ty-card { padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
/* The edit-address form repeats the page heading; the page h1 already names it. */
.is-acct .woocommerce-MyAccount-content form > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce-Address > p:first-child, .woocommerce-MyAccount-content > p:first-child { margin-bottom: 16px; }

/* ---------- Delivery or collection (R9 rebuild of /delivery-areas/) ---------- */
.areas { display: grid; gap: 24px; max-width: 960px; }
.areas .page-h { margin-bottom: 0; }
.areas-lead { font-size: 18px; line-height: 26px; max-width: 62ch; margin-top: -12px; }
.areas-check h2, .areas-two h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 24px; margin-bottom: 12px; }
.areas-two h2 .fi { color: var(--green); }
.areas-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.areas-row { display: flex; gap: 8px; }
.areas-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; }
.areas-row .btn { min-width: 112px; }
.areas-check .area-out { display: grid; gap: 12px; justify-items: start; margin-top: 16px; }
.areas-note { color: var(--ink-soft); margin: 4px 0 12px; }
.zones { display: grid; gap: 8px; }
.zone { padding: 4px 16px; border-radius: var(--r-in); background: #fff; }
.zone-top { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.zone-top > .fi { color: var(--green); flex: none; }
.zone-top span { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.zone-top small { color: var(--ink-soft); font-size: 15px; }
.zone-fee { font-size: 20px; }
.zone details { border-top: 1px solid var(--line); }
.zone summary { display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--green); cursor: pointer; list-style: none; }
.zone summary::-webkit-details-marker { display: none; }
.zone summary .fi { width: 18px; height: 18px; transition: transform .15s; }
.zone details[open] summary .fi { transform: rotate(180deg); }
.zone .places { padding: 0 0 12px; color: var(--ink-soft); font-size: 15px; line-height: 24px; }
.areas-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.areas-two .card { display: grid; gap: 12px; justify-items: start; }
.areas-two h2 { margin-bottom: 0; }
.know { display: grid; gap: 10px; }
.know li { display: flex; gap: 10px; align-items: flex-start; }
.know li > svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
@media (max-width: 767px) { .areas-two { grid-template-columns: 1fr; } .areas-lead { font-size: 17px; } .areas-row .btn { min-width: 0; } }

/* Guest account page = the sign-in card, centred, with the staff form tucked under it. */
body:not(.logged-in) .is-acct .woocommerce { display: grid; justify-items: center; gap: 16px; }
body:not(.logged-in) .is-acct .auth-cloth { width: 100%; max-width: 440px; }
.staff-login { width: 100%; max-width: 440px; }
.staff-login summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink-soft); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.staff-login summary::-webkit-details-marker { display: none; }
.staff-login summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.staff-login[open] summary::before { transform: rotate(45deg); }
.staff-login form { display: grid; gap: 12px; margin-top: 8px; padding: 24px; border-radius: var(--r); background: #fff; }
.staff-login .field { display: grid; gap: 6px; font-weight: 700; }
.staff-login .field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; font-weight: 400; }
.staff-login .btn { justify-self: start; }
/* Reading pages (policies, credits) share the 960px column of Rewards and Delivery. */
.page-wrap.is-read { max-width: 640px; }
.areas-two .card + .card { margin: 0; }
/* Reading measure for policies and other prose (detector: ~115 characters a line at 960px). */
.is-read .prose { font-size: 17px; line-height: 27px; }
/* A tile without a price keeps the same gap above its name as a priced one. */
.t-soon + .t-name, .t-badges + .t-name { margin-top: 8px; }

/* ---------- Address-first delivery + one-page checkout (docs/12-address-checkout-spec.md) ---------- */

/* Header pill (spec §4): 260×52, icon + two lines; the whole pill is the button. */
.hd-break { display: none; }
.hd-area { width: 260px; height: 52px; }
.hd-area .hd-ico { display: grid; place-items: center; flex: none; }
.hd-area .hd-ico .fi { color: var(--lime); }
@media (max-width: 1199px) { .hd-area { width: 210px; } }
@media (max-width: 767px) {
  /* Phone: logo + menu, then the pill and search side by side, half each. */
  .hd-top .wrap { gap: 8px 8px; padding: 6px 0 10px; }
  .hd-logo { order: 0; }
  .hd-menu { order: 1; }
  .hd-break { display: block; order: 2; flex-basis: 100%; height: 0; }
  .hd-area { order: 3; flex: 0 0 calc(50% - 4px); width: auto; min-width: 0; height: 52px; overflow: hidden; }
  .hd-search { order: 4; flex: 0 0 calc(50% - 4px); }
  .hd-search input { height: 52px; }
  .hd-search > .fi { top: 14px; }
  .hd-clear { top: 4px; }
}

/* The picker (spec §5): a 560px dialog; a bottom sheet on phones. */
.addr { width: min(560px, calc(100% - 24px)); max-height: 90dvh; padding: 0; overflow: hidden; }
.addr[open] { display: flex; flex-direction: column; }
.addr .modal-head { padding: 20px 12px 0 24px; }
.addr-body { flex: 1; overflow: auto; padding: 16px 24px; display: grid; gap: 16px; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; border-radius: var(--r); background: var(--tint); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: calc(var(--r) - 4px); font-weight: 700; color: var(--green); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(23, 32, 26, .18); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.addr-search, .addr-manual { display: grid; gap: 8px; }
.addr-search > label, .addr-manual label { font-weight: 700; }
.addr-field { position: relative; }
.addr-field > .fi { position: absolute; left: 14px; top: 14px; color: var(--ink-soft); pointer-events: none; }
.addr-field input, .addr-manual input, .addr-manual select { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; font-size: 16px; }
.addr-field input { padding-left: 44px; }
.addr-manual select { appearance: auto; }
.addr-list { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-in); background: #fff; box-shadow: var(--sh-panel); overflow: hidden; }
.addr-list li { display: grid; gap: 2px; min-height: 56px; padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.addr-list li:last-child { border-bottom: 0; }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--tint); }
.addr-list b { font-weight: 700; }
.addr-list span { font-size: 14px; color: var(--ink-soft); }
.addr-help { font-size: 14px; color: var(--ink-soft); }
.addr-search .link, .addr-manual .link { justify-self: start; min-height: 44px; }
.addr-note { padding: 10px 12px; border-radius: var(--r-in); background: #FBEDE9; color: var(--alert); font-weight: 600; }
.addr-out { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--tint); }
.addr-out b { font-size: 18px; }
.addr-out.miss { background: #FBEDE9; }
.addr-out.busy { color: var(--ink-soft); }
.addr-out .addr-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.addr-foot { display: grid; gap: 4px; justify-items: center; padding: 12px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.addr-foot .btn { min-height: 52px; }
.addr-foot .link { min-height: 44px; }
.addr-foot [hidden] { display: none !important; }
@media (max-width: 767px) {
  .addr { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
  .addr .modal-head { padding: 16px 8px 0 16px; }
  .addr-body { padding: 12px 16px; }
  .addr-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* Home prompt (spec §6): only while there's no address; tint, 72px desktop, compact on phones. */
.addr-prompt { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 16px 12px 20px; border-radius: var(--r); background: var(--tint); }
.addr-prompt > .fi { color: var(--green); width: 28px; height: 28px; flex: none; }
.addr-prompt p { flex: 1; display: grid; gap: 2px; margin: 0; }
.addr-prompt b { font-size: 18px; line-height: 24px; }
.addr-prompt .ap-short { display: none; }
.addr-prompt .btn { flex: none; }
@media (max-width: 767px) {
  .addr-prompt { min-height: 64px; padding: 10px 12px; gap: 10px; }
  .addr-prompt > .fi { display: none; }
  .addr-prompt .ap-long { display: none; }
  .addr-prompt .ap-short { display: block; font-size: 16px; line-height: 21px; }
  .addr-prompt .btn { min-height: 44px; padding: 8px 14px; }
}

/* Basket + drawer delivery block (spec §7). */
.ful { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-in); background: var(--tint); }
.ful > .fi { flex: none; color: var(--green); margin-top: 2px; }
.ful > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ful b { overflow-wrap: anywhere; }
.ful span { font-size: 14px; color: var(--ink-soft); }
.ful .link { flex: none; min-height: 32px; font-weight: 700; }
.ful-frozen, .ful-unknown { background: #FBEDE9; }
.ful-frozen > .fi, .ful-unknown > .fi { color: var(--alert); }
.sum-more { font-weight: 600; color: var(--green); }
.drawer-foot .ful { margin-bottom: 4px; }

/* Checkout, one page (spec §8): 1200px; 744 | 432 on desktop; one column on phones. */
.is-co.page-wrap { max-width: 1200px; }
.co-r9 form.checkout { grid-template-columns: minmax(0, 1fr) 432px; }
.co-r9 #customer_details { display: grid; gap: 16px; }
.co-r9 .card { padding: 24px; }
.co-r9 .card + .card { margin-top: 0; }
.co-side { position: sticky; top: 24px; display: grid; gap: 12px; }
.co-ful-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.co-ful-head h2 { font-size: 20px; line-height: 26px; }
.co-ful-head .link { min-height: 44px; font-weight: 700; }
.co-ful { display: grid; gap: 8px; }
.co-ful .co-ful-head { margin-bottom: 4px; }
.co-to { font-size: 17px; overflow-wrap: anywhere; }
.co-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-in); background: #FBEDE9; color: var(--ink); }
.co-warn > .fi { flex: none; color: var(--alert); }
.co-warn p { margin: 0; }
.co-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.co-good { color: var(--green); font-weight: 600; }
.co-note-wrap { margin-top: 16px; }
.co-r9 .co-note textarea { width: 100%; min-height: 88px; padding: 10px 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); background: #fff; font: inherit; resize: vertical; }
.mt-hidden-fields .form-row { display: none !important; }
.co-who-sum { font-size: 17px; line-height: 26px; }
.co-who-fields { display: grid; gap: 4px; }
.co-who-fields .btn { justify-self: start; margin-bottom: 8px; }
.co-who .description { font-size: 14px; color: var(--ink-soft); }
.co-receipt { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
/* One payment method: no radio card; the line above the button says it. */
.familiar .co-r9 #payment ul.payment_methods { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; padding: 0; }
.familiar .co-r9 #payment { margin-top: 16px; background: none; }
.co-paynote { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.co-paynote .fi { color: var(--green); }
.co-terms, .co-r9 .woocommerce-privacy-policy-text p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.co-r9 #place_order { min-height: 52px; font-size: 18px; }
.co-r9 #place_order[disabled], .co-r9 .processing #place_order { opacity: .7; }
@media (max-width: 1023px) { .co-r9 form.checkout { grid-template-columns: 1fr; } .co-side { position: static; } }
@media (max-width: 767px) { .co-r9 .card { padding: 16px; } }

/* Account → Delivery address. */
.addr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.addr-noteline { color: var(--ink-soft); }
.addr-picked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; border: 2px solid var(--control-line); border-radius: var(--r-in); }
.addr-picked p { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.addr-picked .link { min-height: 44px; }
.wrap.home > h1.sr + * { margin-top: 0; }
.areas-check { display: grid; gap: 12px; justify-items: start; }
.co-r9 .mt-change { display: none; } /* "Edit basket" sits in the card head */
@media (max-width: 767px) { .hd-search input { padding-right: 10px; } .hd-search input:not(:placeholder-shown) { padding-right: 44px; } }
