/* ==========================================================================
   Bay Grill II storefront
   Mobile-first. Breakpoints: 375 (base) · 768 · 1024 · 1440.
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted, OFL; no third-party requests) ---------- */
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/figtree-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: "Figtree";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/figtree-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: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-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: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-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;
}

/* ---------- 1. Tokens ---------- */
:root {
    color-scheme: light;

    /* Brand palette — classic diner: black, deep red, cream */
    --color-primary: #b3141c;          /* white text 6.9:1, on cream 6.4:1 */
    --color-primary-strong: #7a0e13;   /* hover; white text 11:1 */
    --color-on-primary: #ffffff;
    --color-secondary: #f1e4cc;        /* warm sand highlight; ink text 15:1 */
    --color-on-secondary: #111111;
    --color-accent: #b3141c;           /* one CTA colour: red */
    --color-accent-strong: #7a0e13;
    --color-on-accent: #ffffff;
    --color-background: #ffffff;
    --color-foreground: #111111;       /* on white 18.9:1 */
    --color-card: #ffffff;
    --color-muted: #f5f4f2;
    --color-muted-foreground: #57514a; /* on white 7.8:1 */
    --color-border: #ece8e3;
    --color-error: #b91c1c;
    --color-ring: #111111;             /* white/pink ring on dark surfaces */
    --color-on-dark-accent: #f04444;   /* red for text on black: 5.05:1 on #111, 4.56:1 on #1c1c1c */

    /* Derived (all text pairs ≥ 4.5:1, UI boundaries ≥ 3:1) */
    --color-link: #b3141c;
    --color-input-border: #8a7f72;
    --color-choice-border: #ddd7d0;
    --color-tint: #fdf2f2;           /* light red wash for hover/selected */
    --color-success: #166534;
    --color-success-bg: #f0fdf4;
    --color-success-line: #86efac;
    --color-warning: #713f12;
    --color-warning-bg: #fef9c3;
    --color-warning-line: #fde047;
    --color-error-bg: #fef2f2;
    --color-error-line: #fca5a5;

    /* Type */
    --font-heading: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
    --font-body: Figtree, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

    /* Spacing scale: 4 / 8 / 16 / 24 / 32 / 48 / 64 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05), 0 4px 14px rgba(17, 17, 17, 0.07);
    --shadow-md: 0 2px 4px rgba(17, 17, 17, 0.06), 0 12px 28px rgba(17, 17, 17, 0.1);
    --shadow-lg: 0 16px 40px rgba(17, 17, 17, 0.16);

    --header-h: 64px;
    --rail-h: 60px;
    --gutter: 16px;
    --content-max: 1280px;
    --tap: 44px;
    --ease: 160ms ease;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-3));
    scroll-padding-bottom: 104px;
}

html:has(.category-rail) { scroll-padding-top: calc(var(--header-h) + var(--rail-h) + var(--space-3)); }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
    color: var(--color-foreground);
    font: 400 1rem/1.5 var(--font-body);
    overflow-x: hidden;
}

body.has-basket-bar { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

h1, h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.02;
    text-transform: uppercase;
    text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
/* Product names, dates and error titles stay in the body font so they are easy to read. */
.basket-line__name, .history-card__title, .flash h2, .callout h2, .error-summary h2 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; letter-spacing: normal; line-height: 1.3; text-transform: none; }
h3, h4 { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
p { margin: 0; }

a { color: var(--color-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { display: block; max-width: 100%; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

:focus-visible {
    outline: 3px solid var(--color-ring);
    outline-offset: 3px;
}

[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

::selection { background: #f5c9c6; color: var(--color-foreground); }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.js .js-hidden { display: none; }
.muted { color: var(--color-muted-foreground); }
.price { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    color: var(--color-accent-strong);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow svg { width: 16px; height: 16px; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-2);
    left: var(--space-2);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--color-card);
    color: var(--color-foreground);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* ---------- 3. Header, drawer, footer ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-foreground);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.site-header :focus-visible { outline-color: #fff; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    max-width: var(--content-max);
    min-height: var(--header-h);
    margin: 0 auto;
    padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: var(--tap);
    color: inherit;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font: 800 1.125rem/1 var(--font-heading);
}

/* Customer-supplied mascot logo, kept square enough to remain clear in the compact header. */
.brand__picture { display: flex; align-items: center; }
.brand__logo { width: auto; height: 54px; object-fit: contain; }
.brand__text { display: grid; min-width: 0; line-height: 1.1; }
.brand__name { overflow: hidden; font: 800 1.125rem/1.1 var(--font-heading); letter-spacing: 0.02em; text-overflow: ellipsis; white-space: nowrap; }
.brand__place { overflow: hidden; color: #d9d2c7; font-size: 0.75rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.site-tools { display: flex; flex: none; align-items: center; gap: 2px; }

/* Desktop page links; the drawer carries them on smaller screens. */
.site-nav { display: none; }
.site-nav > ul { display: flex; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 14px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--ease);
}
.site-nav > ul > li > a:hover { background: rgba(255, 255, 255, 0.14); }
.site-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-on-dark-accent); }
/* "Deals": a hand-drawn red brush stroke that runs a little past the word (decorative). */
.site-nav > ul > li > a.site-nav__deals { position: relative; }
.site-nav__deals::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 3px;
    bottom: 5px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10.6c17-3.4 43-5.9 71-5.6 15 .2 29 1.3 43 3.4' fill='none' stroke='%23F04444' stroke-width='3.8' stroke-linecap='round'/%3E%3Cpath d='M16 13.2c21-2.1 49-3.1 88-1.2' fill='none' stroke='%23F04444' stroke-width='2' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
    transform: rotate(-1.5deg);
    transform-origin: left center;
    transition: transform 220ms ease;
}
.site-nav__deals:hover::after { transform: rotate(-1.5deg) scaleX(1.06); }
.site-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--tap);
    padding: 0 12px 0 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    font-weight: 700;
    transition: background-color var(--ease);
}
.site-nav__trigger svg { width: 18px; height: 18px; stroke-width: 2.4; transition: transform var(--ease); }
.site-nav__trigger:hover, .site-nav__trigger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.site-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega menu panel: positioned against the sticky header, full width. */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--color-card);
    color: var(--color-foreground);
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 24px 48px rgba(17, 17, 17, 0.22);
    animation: mega-in 160ms ease-out;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-menu :focus-visible { outline-color: var(--color-ring); }
.mega-menu__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-5);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-4) var(--gutter) var(--space-5);
}
.mega-menu__title { margin-bottom: var(--space-3); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; line-height: 1; text-transform: uppercase; }

.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px var(--space-2); margin: 0; padding: 0; list-style: none; }
.mega-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--color-foreground);
    text-decoration: none;
    transition: background-color var(--ease);
}
.mega-tile:hover { background: var(--color-tint); }
.mega-tile__image {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--color-muted);
    transition: transform 220ms ease;
}
.mega-tile:hover .mega-tile__image { transform: scale(1.06); }
.mega-tile__image--blank { display: grid; place-items: center; background: var(--color-primary); color: #fff; }
.mega-tile__image--blank .category-icon { width: 30px; height: 30px; }
.mega-tile__copy { display: grid; gap: 2px; min-width: 0; }
.mega-tile__name { font-weight: 800; line-height: 1.2; }
.mega-tile:hover .mega-tile__name { color: var(--color-primary); }
.mega-tile__meta { color: var(--color-muted-foreground); font-size: 0.875rem; }

.mega-feature { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-foreground); color: #e8e2d9; }
.mega-feature__image { width: 100%; height: 170px; object-fit: cover; }
.mega-feature__body { display: grid; gap: var(--space-2); padding: var(--space-4); }
.mega-feature__eyebrow { color: var(--color-on-dark-accent); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mega-feature__title { color: #fff; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.mega-feature__price { margin-bottom: var(--space-2); font-size: 1.0625rem; }
.mega-feature__price .price { color: #fff; font-weight: 800; }
.mega-feature :focus-visible { outline-color: #fff; }

/* Mobile drawer: categories with a small photo so the list looks appetising too. */
.drawer-category { gap: 12px; padding: 6px 12px 6px 6px !important; }
.drawer-category img, .drawer-category__blank { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.drawer-category__blank { display: grid; place-items: center; background: var(--color-primary); color: #fff; }\n.drawer-category__blank .category-icon { width: 24px; height: 24px; }

.tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: var(--tap);
    min-height: var(--tap);
    padding: 0 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--ease);
}

.tool:hover, .tool[aria-expanded="true"], .tool[aria-current="page"] { background: rgba(255, 255, 255, 0.14); }
.tool svg { width: 22px; height: 22px; flex: none; }

.tool__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.tool__count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tool__count[data-empty] { background: rgba(255, 255, 255, 0.22); color: #fff; }

.category-drawer {
    max-height: min(70vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--color-card);
    color: var(--color-foreground);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.category-drawer ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-3) var(--gutter);
    list-style: none;
}

.category-drawer a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--color-muted);
    color: var(--color-foreground);
    font-weight: 600;
    text-decoration: none;
}

.category-drawer a:hover { background: var(--color-tint); }
.category-drawer :focus-visible { outline-color: var(--color-ring); outline-offset: 0; }
.category-drawer__inner { max-width: var(--content-max); margin: 0 auto; padding-bottom: var(--space-3); }
.category-drawer .drawer-deal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: var(--space-3) var(--gutter) 0;
    padding: 8px 14px 8px 8px;
    border-radius: var(--radius-lg);
    background: var(--color-foreground);
    color: #fff;
}
.category-drawer .drawer-deal:hover { background: var(--color-primary); }
.category-drawer .drawer-deal:focus-visible { outline-offset: 2px; }
.drawer-deal img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.drawer-deal__copy { display: grid; flex: 1; gap: 2px; }
.drawer-deal__title { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.drawer-deal__meta { color: #d9d2c7; font-size: 0.9375rem; font-weight: 500; }
.drawer-deal__meta .price { color: #fff; font-weight: 800; }
.drawer-deal svg { width: 22px; height: 22px; flex: none; }
.category-drawer .drawer-secondary { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); margin: 0 var(--gutter); padding: var(--space-2) 0 0; border-top: 1px solid var(--color-border); }
.category-drawer .drawer-secondary a { min-height: var(--tap); padding: 0 8px; background: transparent; color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; }
.category-drawer .drawer-secondary a[aria-current="page"] { color: var(--color-foreground); text-decoration: none; }
.drawer-title { margin: var(--space-3) var(--gutter) 0; color: var(--color-muted-foreground); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.category-drawer nav + nav ul { padding-top: var(--space-2); }

.site-footer {
    margin-top: auto;
    border-top: 4px solid var(--color-primary);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(179, 20, 28, 0.18) 0%, rgba(179, 20, 28, 0) 60%),
        #0e0d0d;
    color: #cfc8be;
    font-size: 0.9375rem;
}
.site-footer__inner {
    display: grid;
    gap: var(--space-5);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-6) var(--gutter) var(--space-5);
}
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__col { display: grid; align-content: start; justify-items: start; gap: var(--space-2); }
.site-footer__title { margin-bottom: var(--space-1); color: #fff; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.site-footer__title::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--color-on-dark-accent); }
.site-footer__subtitle { margin-top: var(--space-2); color: #fff; font-weight: 700; }
.site-footer__brand { display: inline-flex; min-height: var(--tap); align-items: center; }
.site-footer__brand picture { display: flex; }
.site-footer__brand img { width: auto; height: 112px; object-fit: contain; }
.site-footer__tagline { max-width: 36ch; }
.site-footer__cta { margin-top: var(--space-2); }
.site-footer .site-footer__cta { color: #fff; }
.site-footer__address { font-style: normal; }
.site-footer__address + p a, .site-footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.site-footer__links a:hover, .site-footer__address + p a:hover { color: var(--color-on-dark-accent); text-decoration: underline; }
.site-footer__links { display: grid; margin: 0; padding: 0; list-style: none; }
.site-footer__hours { display: grid; gap: 4px; width: 100%; max-width: 320px; margin: 0; }
.site-footer__hours div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); }
.site-footer__hours dd { margin: 0; color: #fff; font-weight: 600; }


.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a9a29a;
    font-size: 0.875rem;
}
.site-footer__credit { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__credit a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.site-footer__credit img { width: auto; height: 24px; }
.site-footer__credit strong { color: #fff; }
.site-footer__areas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-3) var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__areas-title { color: #fff; font-weight: 700; }
.site-footer__areas ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; padding: 0; list-style: none; }
.site-footer__areas a { display: inline-flex; align-items: center; min-height: var(--tap); color: #cfc8be; font-size: 0.9375rem; text-decoration: none; }
.site-footer__areas a:hover { color: #fff; text-decoration: underline; }
body.has-basket-bar .site-footer__bottom { padding-bottom: calc(var(--space-3) + 88px + env(safe-area-inset-bottom)); }

/* ---------- 4. Page shell ---------- */
.page-shell {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--space-6);
}

.page-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.page-main { min-width: 0; }
#main-content:focus { outline: none; }

.page { padding-top: var(--space-4); }
.narrow-page { max-width: 640px; margin-inline: auto; }
.auth-page { max-width: 480px; margin-inline: auto; }

.page-head { margin-bottom: var(--space-4); }
.page-head__lead { margin-top: var(--space-2); color: var(--color-muted-foreground); font-size: 1.0625rem; }
.page-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }

.breadcrumb { padding-top: var(--space-3); }
.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: var(--tap);
    padding-right: var(--space-2);
    color: var(--color-foreground);
    font-weight: 600;
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 20px; height: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.split__main { min-width: 0; }

/* ---------- 5. Flash + callouts ---------- */
.flash-stack { display: grid; gap: var(--space-2); padding-top: var(--space-3); }

.flash, .callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius);
}

.flash svg, .callout > svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.flash h2, .callout h2 { margin-bottom: var(--space-1); font: 700 1.0625rem/1.3 var(--font-body); }
.flash ul, .callout ul { margin: 0; padding-left: 20px; }
.flash li + li, .callout li + li { margin-top: var(--space-1); }
.flash a, .callout a { color: inherit; font-weight: 700; }
.flash--success { background: var(--color-success-bg); border-color: var(--color-success-line); color: var(--color-success); font-weight: 600; }
.flash--success { flex-wrap: wrap; align-items: center; }
.flash--success > p { flex: 1 1 12rem; }
.flash__action {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-3);
    border: 2px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.flash__action:hover { background: rgba(22, 101, 52, 0.08); }
.flash--error, .callout--error { background: var(--color-error-bg); border-color: var(--color-error-line); color: var(--color-error); }
.callout--warning { background: var(--color-warning-bg); border-color: var(--color-warning-line); color: var(--color-warning); }
.callout--info { background: var(--color-card); border-color: var(--color-border); color: var(--color-foreground); }
.callout { margin-bottom: var(--space-3); }
.callout p + p { margin-top: var(--space-1); }
.error-summary:focus { outline: 3px solid var(--color-error); outline-offset: 2px; }

/* ---------- 6. Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.button svg { width: 20px; height: 20px; flex: none; }
.button--cta { background: var(--color-accent); color: var(--color-on-accent); }
.button--cta:hover { background: var(--color-accent-strong); }
.button--secondary { background: var(--color-card); border-color: var(--color-accent-strong); color: var(--color-accent-strong); }
.button--secondary:hover { background: var(--color-tint); }
.button--ghost { background: transparent; border-color: var(--color-choice-border); color: var(--color-foreground); }
.button--ghost:hover { background: var(--color-card); border-color: var(--color-input-border); }
.button--small { min-height: var(--tap); padding: 8px 14px; font-size: 0.9375rem; }
.button--large { min-height: 56px; font-size: 1.125rem; }
.button--block { width: 100%; }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.button--cta:disabled:hover { background: var(--color-accent); }

.is-busy { position: relative; cursor: progress !important; }
.is-busy::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--tap);
    color: var(--color-link);
    font-weight: 700;
}
.text-link svg { width: 18px; height: 18px; }

.text-button {
    min-height: var(--tap);
    padding: 0 var(--space-2);
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--color-link);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text-button:hover { text-decoration-thickness: 2px; }

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner--large { width: 36px; height: 36px; border-width: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 7. Badges & status ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge--required { background: #fee2e2; color: #991b1b; }
.badge--optional { background: var(--color-muted); color: var(--color-muted-foreground); }
.badge--included { background: #dcfce7; color: #166534; }
.option-group--included .option__row { cursor: default; }
.badge--popular { background: var(--color-primary); color: var(--color-on-primary); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 3px 12px 3px 8px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}
.status-badge svg { width: 16px; height: 16px; stroke-width: 2.2; }
.status-badge--progress { background: var(--color-warning-bg); color: var(--color-warning); }
.status-badge--done { background: #dcfce7; color: var(--color-success); }
.status-badge--stopped { background: #fee2e2; color: #991b1b; }

.status-text--closed { color: var(--color-error); font-weight: 700; }

/* ---------- 8. Menu page ---------- */

/* ---------- 8a. Home: hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-foreground);
    color: #fff;
}
.hero__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Keeps white text ≥ 4.5:1 over any photo. */
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.8) 55%, rgba(17, 17, 17, 0.55) 100%);
}
.hero__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--space-6) var(--gutter) var(--space-5);
}
.hero__eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-on-dark-accent);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero h1 { max-width: 12ch; font-size: clamp(2.75rem, 1.7rem + 5vw, 5rem); line-height: 0.95; }
.hero__title-break { display: block; color: var(--color-on-dark-accent); }
/* Location stays part of the H1 for search engines, but reads as a quiet line under the headline. */
.hero__title-place { display: block; margin-top: 10px; color: #e8e2d9; font-family: var(--font-body); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; text-transform: none; }
.hero__lead { max-width: 42ch; margin-top: var(--space-3); color: #e8e2d9; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.hero :focus-visible { outline-color: #fff; }
.hero .button--cta:hover { background: var(--color-primary-strong); }

.button--on-dark { border-color: rgba(255, 255, 255, 0.7); background: transparent; color: #fff; }
.button--on-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.service-status--dark { margin-top: var(--space-4); }
.service-status--dark .status-pill { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; }
.service-status--dark .status-pill--closed { color: #d9d2c7; }
.service-status--dark .status-pill--open .status-pill__dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.service-status--dark .status-pill--closed .status-pill__dot { background: #f04444; box-shadow: 0 0 0 3px rgba(240, 68, 68, 0.25); }

.hero:not(.hero--photo) {
    background:
        radial-gradient(60% 70% at 78% 45%, rgba(179, 20, 28, 0.28) 0%, rgba(179, 20, 28, 0) 70%),
        radial-gradient(120% 90% at 20% 0%, #262222 0%, #161313 45%, #0b0a0a 100%);
}
.hero__inner { display: grid; gap: var(--space-4); align-items: center; }
.hero__copy { position: relative; z-index: 1; }
.hero-food { position: relative; height: 240px; margin-top: calc(var(--space-2) * -1); }
.hero-food__item { position: absolute; height: auto; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.55)); will-change: transform; }
.hero-food__pizza { z-index: 1; top: 0; left: 34%; width: 210px; animation: hero-float 5.2s ease-in-out infinite; }
.hero-food__burger { z-index: 2; bottom: 0; left: 0; width: 170px; animation: hero-float 4.5s ease-in-out infinite; }
.hero-food__fries { z-index: 2; right: 0; bottom: 0; width: 128px; animation: hero-wobble 5s ease-in-out infinite; }
.hero-food__wings { display: none; z-index: 0; animation: hero-float 5.5s ease-in-out -1.5s infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hero-wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
/* ---------- 8b. Home: sections ---------- */
.home-section { padding-top: var(--space-6); scroll-margin-top: calc(var(--header-h) + var(--space-3)); }
.section-head { margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.section-head__lead { max-width: 60ch; margin-top: var(--space-2); color: var(--color-muted-foreground); font-size: 1.0625rem; }
.section-more { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin-top: var(--space-3); }

.crave-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.crave-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-foreground);
    aspect-ratio: 4 / 3;
    color: #fff;
    text-decoration: none;
}
.crave-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.crave-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0) 35%, rgba(17, 17, 17, 0.88) 100%); }
.crave-tile__name { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.crave-tile:hover img { transform: scale(1.05); }

.deal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
/* Phones: a swipeable row so deals do not push the menu far down. */
@media (max-width: 767px) {
    .deal-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
    .deal-grid > li { scroll-snap-align: start; }
    .deal-card__image { aspect-ratio: 16 / 9; }
    .deal-grid--page { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 12px; margin: 0; padding: 0; overflow: visible; }
    .deal-grid--page .deal-card { flex-direction: row; }
    .deal-grid--page .deal-card__image { flex: none; width: 104px; height: auto; min-height: 100%; aspect-ratio: auto; }
    .deal-grid--page .deal-card__image--blank svg { width: 32px; height: 32px; }
    .deal-grid--page .deal-card__body { min-width: 0; padding: 12px 14px; }
    .deal-grid--page .deal-card__name { font-size: 1.0625rem; }
    .deal-grid--page .deal-card__footer { flex-wrap: wrap; gap: var(--space-2); }
}
@media (max-width: 399px) {
    .deal-grid--page .deal-card__image { width: 84px; }
    .deal-grid--page .deal-card__body { padding: 10px 12px; }
}
.deal-grid--page .deal-card__category { display: none; }
.deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--ease), border-color var(--ease);
}
.deal-card:hover { border-color: var(--color-input-border); box-shadow: var(--shadow-md); }
.deal-card__image { display: block; width: 100%; height: auto; aspect-ratio: 400 / 220; object-fit: cover; background: var(--color-muted); }
.deal-card__image--blank { display: grid; place-items: center; color: var(--color-primary); background: linear-gradient(135deg, var(--color-muted), var(--color-secondary)); }
.deal-card__image--blank svg { width: 48px; height: 48px; stroke-width: 1.5; }
.deal-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: var(--space-3); }
.deal-card__category { color: var(--color-primary); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.deal-card__name { font-size: 1.125rem; }
.deal-card__name a { color: var(--color-foreground); text-decoration: none; }
.deal-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.deal-card__name a:focus-visible { outline: none; }
.deal-card__name a:focus-visible::after { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.deal-card__desc { color: var(--color-muted-foreground); font-size: 0.9375rem; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deal-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.deal-card__price { font-size: 1.25rem; font-weight: 800; }
.deal-card__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--color-primary); color: var(--color-on-primary); font-weight: 800; }

.about {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-foreground);
    color: #e8e2d9;
}
.about h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.about .eyebrow { color: var(--color-on-dark-accent); }
.about__copy { display: grid; justify-items: start; gap: var(--space-3); }
.about__copy p { max-width: 60ch; font-size: 1.0625rem; }
.about .text-link { color: #fff; }
.about :focus-visible { outline-color: #fff; }
.about__facts { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.about__facts li { display: flex; gap: 12px; align-items: flex-start; }
.about__facts svg { width: 28px; height: 28px; flex: none; color: var(--color-on-dark-accent); }
.about__facts strong { display: block; color: #fff; }

.menu-section { padding-top: var(--space-6); }
.category-head__title { font-family: var(--font-heading); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 700; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }

.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }

.deals-band {
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-3);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(179, 20, 28, 0.35) 0%, rgba(179, 20, 28, 0) 60%),
        linear-gradient(135deg, #1b1818 0%, #0d0c0c 100%);
    color: #e8e2d9;
}
.deals-band h2 { color: #fff; }
.deals-band .eyebrow { color: var(--color-on-dark-accent); }
.deals-band .section-head__lead { color: #d9d2c7; }
.deals-band :focus-visible { outline-color: #fff; }
.deals-band .deal-card { border-color: transparent; color: var(--color-foreground); }
.deals-band .deal-card :focus-visible { outline-color: var(--color-ring); }
.deals-band .deal-grid { scrollbar-width: none; }
.deals-band .deal-grid::-webkit-scrollbar { display: none; }


.about-strip {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-muted);
}
.about-strip .about__facts svg { color: var(--color-primary); }
.about-strip .about__facts strong { color: var(--color-foreground); }
.about-strip .about__facts span { color: var(--color-muted-foreground); }
.about-strip h2 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }

/* Deals carousel: one card per view on phones, two on tablets, three on wide screens. Never auto-plays. */
.deals-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav__button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background-color var(--ease), border-color var(--ease), opacity var(--ease);
}
.carousel-nav__button svg { width: 22px; height: 22px; stroke-width: 2.4; }
.carousel-nav__button:hover:not(:disabled) { border-color: #fff; background: var(--color-primary); }
.carousel-nav__button:disabled { opacity: 0.35; cursor: default; }
.deal-carousel { margin-inline: -4px; }
.deal-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--space-3);
    margin: 0;
    padding: 4px 4px var(--space-2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px; /* matches the padding, so the first card snaps to scroll position 0 */
    scroll-behavior: smooth;
    scrollbar-width: none;
    list-style: none;
}
.deal-track::-webkit-scrollbar { display: none; }
.deal-track > li { scroll-snap-align: start; min-width: 0; }
.deal-track .deal-card__image { aspect-ratio: 16 / 9; }
.deal-carousel__status { margin-top: var(--space-2); color: #cfc8be; font-size: 0.875rem; text-align: right; }
.deal-carousel__status:empty { display: none; }
@media (min-width: 600px) {
    .deal-track { grid-auto-columns: calc((100% - var(--space-3)) / 2); }
}
@media (min-width: 1280px) {
    .deal-track { grid-auto-columns: calc((100% - 2 * var(--space-3)) / 3); }
}
/* Category picker: phones and tablets see one button with the current category; it opens the full list. */
.category-picker { display: none; }
@media (max-width: 1279px) {
    .js .category-picker {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 60px;
        padding: 8px var(--gutter);
        border: 0;
        background: var(--color-card);
        color: var(--color-foreground);
        text-align: left;
    }
    body.has-basket .category-picker { padding-inline: 4px; }
    .category-picker:focus-visible { outline-offset: -3px; }
    .category-picker__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-primary); color: #fff; }
    .category-rail .category-picker__icon .category-icon { width: 24px; height: 24px; color: #fff; }
    .category-picker__copy { display: grid; flex: 1; min-width: 0; }
    .category-picker__name { overflow: hidden; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
    .category-picker__hint { color: var(--color-muted-foreground); font-size: 0.875rem; font-weight: 600; }
    .category-picker__chevron { width: 26px; height: 26px; flex: none; stroke-width: 2.2; transition: transform var(--ease); }
    .category-rail.is-open .category-picker__chevron { transform: rotate(180deg); }

    /* The list: hidden until opened (JS), a two-column grid of big, easy tap targets. */
    .js .category-rail:not(.is-open) > ul { display: none; }
    body .category-rail > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
        min-height: 0;
        padding: 12px var(--gutter) var(--space-3);
        overflow: visible;
        scroll-snap-type: none;
    }
    .js .category-rail.is-open > ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--header-h) - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-top: 1px solid var(--color-border);
        background: var(--color-card);
        box-shadow: 0 24px 40px rgba(17, 17, 17, 0.22);
    }
    .category-rail li { scroll-snap-align: none; }
    body .category-rail > ul a { display: flex; width: 100%; min-height: 52px; padding: 8px 12px; border-radius: var(--radius); white-space: normal; line-height: 1.2; }
    .category-rail a .category-rail__count { display: inline; margin-left: auto; padding-left: 4px; color: var(--color-muted-foreground); font-size: 0.8125rem; font-weight: 600; }
    .category-rail a[aria-current="true"] .category-rail__count { color: #d9d2c7; }
}
@media (min-width: 600px) and (max-width: 1279px) {
    body .category-rail > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- 8b2. About & Deals pages ---------- */
.about-intro { display: grid; gap: var(--space-4); align-items: center; }
.about-intro h1 { max-width: 16ch; }
.about-intro__copy .page-head__lead { max-width: 56ch; margin-top: var(--space-3); font-size: 1.125rem; }
.about-story { display: grid; gap: var(--space-5); max-width: 42rem; margin: var(--space-6) auto 0; font-size: 1.0625rem; line-height: 1.7; }
.about-story h2 { margin: 0 0 var(--space-2); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.about-story p { margin: 0 0 var(--space-3); }
.about-story p:last-child { margin-bottom: 0; }
.about-values { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.about-values li { padding: 8px 16px; border-radius: 999px; background: var(--color-tint); color: var(--color-primary-strong); font-weight: 800; }
.about-signoff { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-foreground); color: #fff; text-align: center; }
.about-signoff__name { margin: 0; font: 800 1.5rem/1.2 var(--font-heading); letter-spacing: 0.04em; }
.about-signoff address { margin-top: var(--space-1); color: #d9d2c7; font-style: normal; }
.about-signoff__tagline { margin: var(--space-2) 0 0; font-weight: 700; }
.about-intro__image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-muted); }

.serve-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.serve-list a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-3);
    border: 1px solid var(--color-choice-border);
    border-radius: 999px;
    background: var(--color-card);
    color: var(--color-foreground);
    font-weight: 700;
    text-decoration: none;
}
.serve-list a:hover { border-color: var(--color-primary); color: var(--color-primary); }

.steps { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-card); }
.step h3 { font-size: 1.1875rem; font-weight: 800; }
.step p { color: var(--color-muted-foreground); }
.step__number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); font-weight: 800; font-size: 1.125rem; }

/* ---------- 8c. Delivery area SEO pages ---------- */
.breadcrumbs { margin: var(--space-3) 0 var(--space-4); color: var(--color-muted-foreground); font-size: 0.875rem; font-weight: 700; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--color-input-border); }
.breadcrumbs a { color: var(--color-muted-foreground); }
.breadcrumbs a:hover { color: var(--color-primary); }

.area-hero,
.area-intro {
    display: grid;
    gap: var(--space-4);
    align-items: center;
    margin-top: var(--space-3);
    padding: var(--space-5) var(--space-4);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(70% 100% at 100% 0%, rgba(241, 188, 57, 0.26) 0%, rgba(241, 188, 57, 0) 70%),
        var(--color-card);
}
.area-hero h1,
.area-intro h1 { max-width: 17ch; font-size: clamp(2.5rem, 1.7rem + 4vw, 4.5rem); line-height: 0.95; }
.area-hero .page-head__lead,
.area-intro .page-head__lead { max-width: 62ch; margin-top: var(--space-3); }
.area-grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.area-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 100%;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    color: var(--color-foreground);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.area-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.area-card__postcode { justify-self: start; padding: 5px 9px; border-radius: 999px; background: var(--color-muted); color: var(--color-primary); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; }
.area-card__name { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 700; line-height: 1; text-transform: uppercase; }
.area-card__meta { color: var(--color-muted-foreground); font-size: 0.9375rem; }
.area-card__link { margin-top: auto; padding-top: var(--space-2); color: var(--color-primary); font-weight: 800; }

.area-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-border);
}
.area-facts div { display: grid; align-content: start; gap: 4px; min-height: 104px; padding: var(--space-3); background: var(--color-card); }
.area-facts dt { color: var(--color-muted-foreground); font-size: 0.8125rem; font-weight: 700; }
.area-facts dd { margin: 0; color: var(--color-foreground); font-size: 1.0625rem; font-weight: 800; }
.area-facts dd.price { color: var(--color-primary); font-size: 1.375rem; }
.area-price-note { margin-top: var(--space-3); padding: var(--space-3); border-left: 4px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--color-muted); }

.area-story { display: grid; gap: var(--space-3); }
.area-story h2 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); }
.area-story__copy { display: grid; gap: var(--space-2); color: var(--color-muted-foreground); font-size: 1.0625rem; }
.area-product-links { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-muted); }
.area-product-links h3 { margin-bottom: var(--space-2); }
.area-product-links ul,
.related-areas ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-product-links a,
.related-areas a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 8px 14px;
    border: 1px solid var(--color-choice-border);
    border-radius: 999px;
    background: var(--color-card);
    color: var(--color-foreground);
    font-weight: 700;
    text-decoration: none;
}
.area-product-links a:hover,
.related-areas a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.related-areas h2 { margin-bottom: var(--space-3); }
.area-updated { margin-top: var(--space-5); color: var(--color-muted-foreground); font-size: 0.875rem; }


.cta-band {
    display: grid;
    justify-items: start;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--color-foreground);
    color: #e8e2d9;
}
.cta-band h2 { color: #fff; }
.cta-band .button { margin-top: var(--space-2); }
.cta-band :focus-visible { outline-color: #fff; }
/* About: local page */
.serve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.serve-card {
    display: grid;
    gap: 4px;
    height: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    color: var(--color-foreground);
    text-decoration: none;
    transition: box-shadow var(--ease), border-color var(--ease);
}
.serve-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.serve-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: var(--color-tint); color: var(--color-primary); }
.serve-card__icon .category-icon { width: 26px; height: 26px; }
.serve-card__name { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.serve-card__meta { color: var(--color-muted-foreground); font-size: 0.875rem; }

.town-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.town-list li { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--color-muted); font-weight: 700; }

.local-grid { display: grid; gap: var(--space-3); }
.local-card { display: grid; align-content: start; justify-items: start; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-card); box-shadow: var(--shadow-sm); }
.local-card .hours-list { width: 100%; }
.local-card .info-subhead { margin-top: var(--space-2); }
.local-card__title { font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem); }

.faq { display: grid; gap: var(--space-2); max-width: 820px; }
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-card); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 56px;
    padding: 12px var(--space-3);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--color-primary); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 var(--space-3) var(--space-3); color: var(--color-muted-foreground); }
/* ---------- 8c. Contact ---------- */
.contact-cards { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.contact-card {
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}
.contact-card > svg { width: 32px; height: 32px; color: var(--color-primary); }
.contact-card__title { font-size: 1.375rem; }
.contact-card__text { margin-bottom: var(--space-2); color: var(--color-muted-foreground); }
.contact-card .button { margin-top: auto; }

.service-status { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-card);
    font-size: 0.9375rem;
    font-weight: 600;
}
.status-pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-muted-foreground); }
.status-pill--open .status-pill__dot { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.status-pill--closed { color: var(--color-muted-foreground); }

.category-rail {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    margin: 0 calc(var(--gutter) * -1);
    /* Opaque so dishes never show through while it is stuck under the header. */
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 16px -12px rgba(17, 17, 17, 0.35);
}

.category-rail ul {
    display: flex;
    gap: var(--space-2);
    min-height: var(--rail-h);
    margin: 0;
    padding: 8px var(--gutter);
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x proximity;
    /* Snap pills to the gutter, not the screen edge. */
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.category-rail ul::-webkit-scrollbar { display: none; }
.category-rail li { flex: none; scroll-snap-align: start; }

.category-rail a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 0 16px 0 12px;
    border: 1px solid var(--color-choice-border);
    border-radius: 999px;
    background: var(--color-card);
    color: var(--color-foreground);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--ease), color var(--ease);
}
.category-rail a:hover { border-color: var(--color-primary); }
.category-icon { width: 22px; height: 22px; flex: none; stroke-width: 1.7; }
.category-rail .category-icon { color: var(--color-primary); }
.category-rail a[aria-current="true"] .category-icon { color: #fff; }
.category-rail__count { display: none; }
.category-rail a[aria-current="true"] { background: var(--color-foreground); border-color: var(--color-foreground); color: #fff; }
.category-rail :focus-visible { outline-offset: -3px; }

.menu-category { padding-top: var(--space-5); }

.category-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.category-head__count { color: var(--color-muted-foreground); font-size: 0.9375rem; white-space: nowrap; }

.category-head--photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-foreground);
    aspect-ratio: 375 / 130;
    max-height: 200px;
    width: 100%;
}
.category-head__image { width: 100%; height: 100%; object-fit: cover; }
.category-head--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 26, 23, 0) 20%, rgba(20, 16, 14, 0.82) 100%);
}
.category-head--photo .category-head__title, .category-head--photo .category-head__count { position: absolute; z-index: 1; color: #fff; }
.category-head--photo .category-head__title { left: var(--space-3); right: 96px; bottom: 12px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.category-head--photo .category-head__count { right: var(--space-3); bottom: 16px; color: #fff; }

.dish-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }

.dish {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: var(--space-3);
    height: 100%;
    min-height: 112px;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.dish:hover { border-color: var(--color-secondary); box-shadow: var(--shadow-md); }

.dish__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dish__name { font-size: 1.0625rem; }
.dish__name a { color: var(--color-foreground); text-decoration: none; }
.dish__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.dish__name a:focus-visible { outline: none; }
.dish__name a:focus-visible::after { outline: 3px solid var(--color-ring); outline-offset: 2px; border-radius: var(--radius-lg); }

.dish__desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dish__price { margin-top: auto; padding-top: 2px; font-weight: 700; font-size: 1.0625rem; }

.dish__image {
    flex: none;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--color-muted);
}

.dish__add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: var(--shadow-md);
    pointer-events: none;
}
.dish__add svg { width: 20px; height: 20px; stroke-width: 2.4; }
.dish--no-image .dish__add { position: static; align-self: flex-end; box-shadow: none; }

/* ---------- 9. Live basket + mobile bar ---------- */
.live-basket { display: none; }

.live-basket__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.live-basket__head h2 { font-size: 1.5rem; }
.live-basket__empty { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-5) var(--space-3); text-align: center; }
.live-basket__empty svg { width: 40px; height: 40px; margin-bottom: var(--space-2); color: var(--color-secondary); }
.live-basket__list { margin: 0 0 var(--space-3); padding: 0; list-style: none; }

.live-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.live-line__qty { font-weight: 700; font-variant-numeric: tabular-nums; }
.live-line__name { font-weight: 700; }
.live-line__opts { color: var(--color-muted-foreground); font-size: 0.875rem; }
.live-line__total { font-weight: 700; }

.basket-bar {
    position: fixed;
    z-index: 40;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 10px 18px 10px 10px;
    border-radius: var(--radius-lg);
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(31, 26, 23, 0.3);
    font-weight: 700;
    text-decoration: none;
}
.basket-bar:hover { background: var(--color-accent-strong); }
.basket-bar:focus-visible { outline-color: var(--color-foreground); }
.basket-bar__count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px; background: #fff; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.basket-bar__label { flex: 1; font-size: 1.0625rem; }

/* ---------- 10. Product page ---------- */
.product-form { padding-bottom: var(--space-3); }

.product-hero { display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-4); }
.product-hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--color-muted);
}
.product-hero__desc { max-width: 65ch; margin-top: var(--space-2); color: var(--color-muted-foreground); font-size: 1.0625rem; }
.product-hero__price { margin-top: 12px; font-size: 1.25rem; font-weight: 700; }
.product-hero__price-note { color: var(--color-muted-foreground); font-size: 0.9375rem; font-weight: 500; }

.option-list { display: grid; gap: var(--space-3); }

.option-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + var(--space-3));
}

.option-group__legend {
    float: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: var(--space-3) var(--space-3) 0;
}
.option-group__name { font-size: 1.125rem; font-weight: 700; }
.option-group__rule { clear: both; padding: 2px var(--space-3) 12px; color: var(--color-muted-foreground); font-size: 0.9375rem; }
.option-group__tally:not(:empty)::before { content: " · "; }
.option-group__error { margin: 0 var(--space-3) 12px; }
.option-group.is-invalid { border-color: var(--color-error); box-shadow: 0 0 0 1px var(--color-error); }

.option + .option, .option-group__rule + .option, .option-group__error + .option { border-top: 1px solid var(--color-border); }

.option__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px var(--space-3);
    cursor: pointer;
    transition: background-color var(--ease);
}
.option__row:hover { background: var(--color-tint); }
.option__row:has(.option__control:checked) { background: var(--color-tint); box-shadow: inset 4px 0 0 var(--color-primary); }
.option__row:has(.option__control:disabled) { cursor: not-allowed; opacity: 0.55; }
.option__row--qty { cursor: default; }
.option__row--qty:has(.stepper__input:not([value="0"])) { background: var(--color-tint); }

.option__control { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--color-primary); cursor: inherit; }
.option__copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.option__row--qty .option__copy { cursor: pointer; }
.option__name { font-weight: 600; }
.option__desc { color: var(--color-muted-foreground); font-size: 0.875rem; }
.option__price { flex: none; color: var(--color-accent-strong); font-weight: 700; }
.option__row--qty .option__price { flex: initial; }

.option__children { padding: 0 var(--space-3) var(--space-3) calc(var(--space-3) + 11px); }
.option__children .option-group { border-color: var(--color-choice-border); border-left: 3px solid var(--color-secondary); border-radius: var(--radius); background: var(--color-tint); }
.option__children .option-group__name { font-size: 1rem; }
.option__children .option__row:has(.option__control:checked) { background: var(--color-card); }

.stepper { display: inline-flex; flex: none; align-items: center; gap: 4px; }
.stepper__input {
    width: 64px;
    min-height: var(--tap);
    padding: 8px;
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.stepper.is-enhanced .stepper__input { width: 44px; padding: 0; border-color: transparent; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.stepper.is-enhanced .stepper__input::-webkit-inner-spin-button, .stepper.is-enhanced .stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__button {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 1.5px solid var(--color-input-border);
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-foreground);
}
.stepper__button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper__button:hover:not(:disabled) { background: var(--color-tint); border-color: var(--color-primary); }
.stepper__button:disabled { opacity: 0.4; cursor: not-allowed; }

.note-field { margin-top: var(--space-4); }

.add-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: var(--space-4) calc(var(--gutter) * -1) 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px rgba(31, 26, 23, 0.08);
}
.add-bar__qty { display: flex; align-items: center; }
.add-bar__qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.add-bar__submit { flex: 1; justify-content: space-between; min-width: 0; min-height: 52px; padding-inline: 14px; white-space: nowrap; }
.add-bar__submit [data-button-label] { overflow: hidden; text-overflow: ellipsis; }
.add-bar__total { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.4); }
.add-bar .stepper { gap: 0; }
.add-bar .stepper.is-enhanced .stepper__input { width: 36px; }
.add-bar--added { flex-direction: column; align-items: stretch; gap: 10px; }
.add-bar__added { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9375rem; }
.add-bar__added svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--color-success); color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.add-bar__added strong { display: block; }
.add-bar__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.add-bar__again, .add-bar__checkout { min-height: 52px; white-space: nowrap; }
.add-bar__checkout { justify-content: center; gap: 8px; font-size: 1.0625rem; }
.add-bar__checkout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 599px) { .add-bar__menu { display: none; } }
.add-bar__menu { align-self: center; color: var(--color-muted-foreground); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 11. Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--space-3); }
.field > label, .field__label { font-weight: 700; }
.field__required, .field__optional { color: var(--color-muted-foreground); font-weight: 500; }
.field__help { color: var(--color-muted-foreground); font-size: 0.9375rem; }

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--color-primary); outline-offset: 1px; }
.field--invalid input:not([type="checkbox"]):not([type="radio"]), .field--invalid textarea, [aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) { border-color: var(--color-error); border-width: 2px; background: #fffafa; }

.field__inline { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.field__inline input { flex: 1 1 180px; width: auto !important; text-transform: uppercase; }
.field__inline .button { flex: 0 0 auto; }

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--color-error);
    font-size: 0.9375rem;
    font-weight: 700;
}
.field-error:empty { display: none; }
.field-error::before {
    content: "!";
    display: grid;
    flex: none;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--color-error);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
}

.check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 10px 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-primary); cursor: pointer; }
.check a { font-weight: 700; }

.password-field { position: relative; }
.password-field input { padding-right: 56px !important; }
.password-field__toggle {
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-muted-foreground);
    cursor: pointer;
}
.password-field__toggle:hover { background: var(--color-muted); color: var(--color-foreground); }
.password-field__toggle[hidden] { display: none; }
.password-field__eye-off,
.password-field__toggle[aria-pressed="true"] .password-field__eye { display: none; }
.password-field__toggle[aria-pressed="true"] .password-field__eye-off { display: block; }

.password-strength { margin-top: var(--space-2); }
.password-strength[hidden] { display: none; }
.password-strength__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.password-strength__bar span { height: 6px; border-radius: 999px; background: var(--color-border); transition: background-color .2s ease; }
.password-strength__label { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--color-muted-foreground); }
.password-strength[data-level="0"] .password-strength__bar span:nth-child(-n+1),
.password-strength[data-level="1"] .password-strength__bar span:nth-child(-n+1) { background: var(--color-error); }
.password-strength[data-level="2"] .password-strength__bar span:nth-child(-n+2) { background: #c2410c; }
.password-strength[data-level="3"] .password-strength__bar span:nth-child(-n+3),
.password-strength[data-level="4"] .password-strength__bar span { background: var(--color-success); }
.password-strength[data-level="0"] .password-strength__label,
.password-strength[data-level="1"] .password-strength__label { color: var(--color-error); }
.password-strength[data-level="2"] .password-strength__label { color: #9a3412; }
.password-strength[data-level="3"] .password-strength__label,
.password-strength[data-level="4"] .password-strength__label { color: var(--color-success); }

.password-match { margin: var(--space-2) 0 0; font-size: 0.9375rem; font-weight: 700; color: var(--color-error); }
.password-match.is-match { color: var(--color-success); }
.password-match[hidden] { display: none; }

.field-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-3); }

/* ---------- 12. Panels, choice cards, summaries ---------- */
.panel {
    min-width: 0;
    margin: 0 0 var(--space-3);
    padding: var(--space-4) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}
.panel--plain { padding-block: var(--space-2); }
.panel h2 { margin-bottom: 12px; }
.panel__title {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 var(--space-3);
    padding: 0;
    font: 700 1.375rem/1.2 var(--font-heading);
}
/* Floating the legend lets it behave like a normal block inside a fieldset; headings stay in flow. */
legend.panel__title { float: left; }
legend.panel__title ~ * { clear: both; }
.panel__step {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-foreground);
    color: #fff;
    font: 700 0.9375rem/1 var(--font-body);
}
.panel__hint { margin: -8px 0 var(--space-3); color: var(--color-muted-foreground); }

.choice-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; clear: both; }
.order-timing { display: grid; gap: 12px; margin-top: var(--space-3); }
.order-timing__title { margin: 0; font-weight: 700; }
.order-timing__picker select { width: 100%; }
.choice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 72px;
    padding: var(--space-3);
    border: 2px solid var(--color-choice-border);
    border-radius: var(--radius);
    background: var(--color-card);
    cursor: pointer;
    transition: border-color var(--ease), background-color var(--ease);
}
.choice-card:hover { border-color: var(--color-input-border); }
.choice-card:has(input:checked) { border-color: var(--color-primary); background: var(--color-tint); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.choice-card input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-primary); }
.choice-card input:focus-visible { outline: none; }
.choice-card__body { display: grid; gap: 2px; }
.choice-card__title { font-size: 1.0625rem; font-weight: 700; }
.choice-card__meta { color: var(--color-muted-foreground); font-size: 0.9375rem; }

.postcode-result:empty { display: none; }
.postcode-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: var(--space-1);
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-muted);
    font-weight: 600;
}
.postcode-result svg { width: 22px; height: 22px; flex: none; }
.postcode-result[data-state="success"] { background: var(--color-success-bg); border-color: var(--color-success-line); color: var(--color-success); }
.postcode-result[data-state="warning"] { background: var(--color-warning-bg); border-color: var(--color-warning-line); color: var(--color-warning); }
.postcode-result[data-state="error"] { background: var(--color-error-bg); border-color: var(--color-error-line); color: var(--color-error); }

.pickup-address { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; padding: var(--space-3); border-radius: var(--radius); background: var(--color-muted); }
.pickup-address svg { width: 24px; height: 24px; flex: none; color: var(--color-primary); }

.zone-guide { margin-top: var(--space-2); border-top: 1px solid var(--color-border); }
.zone-guide summary {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--color-link);
    font-weight: 700;
    cursor: pointer;
}
.zone-guide[open] summary { margin-bottom: var(--space-2); }

.zone-map {
    position: relative;
    z-index: 0;
    height: 300px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #e7e5e4;
}
.zone-map__placeholder { display: grid; place-items: center; height: 100%; color: var(--color-muted-foreground); }
.leaflet-container { font: inherit; }

.summary-card {
    min-width: 0;
    margin-bottom: var(--space-3);
    padding: var(--space-4) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}
.summary-card > h2 { margin-bottom: var(--space-3); font-size: 1.375rem; }
.summary-card .button { margin-top: var(--space-3); }
.summary-card__secure { display: flex; gap: var(--space-2); align-items: flex-start; }
.summary-card__secure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.summary-lines { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.summary-lines li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.summary-lines li:first-child { padding-top: 0; }
.summary-lines__qty { flex: none; min-width: 2ch; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-lines__name { display: grid; flex: 1; min-width: 0; font-weight: 600; }
.summary-lines__name small { color: var(--color-muted-foreground); font-size: 0.875rem; font-weight: 400; }

.totals { display: grid; gap: var(--space-2); margin: 0; }
.totals > div { display: flex; justify-content: space-between; gap: var(--space-3); }
.totals dt { color: var(--color-muted-foreground); }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals__note dd { color: var(--color-muted-foreground); font-weight: 500; }
.totals__grand { margin-top: var(--space-1); padding-top: 12px; border-top: 2px solid var(--color-foreground); font-size: 1.1875rem; }
.totals__grand dt, .totals__grand dd { color: var(--color-foreground); font-weight: 700; }

.detail-list { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.detail-list > div { display: flex; justify-content: space-between; gap: var(--space-3); }
.detail-list dt { color: var(--color-muted-foreground); }
.detail-list dd { margin: 0; font-weight: 600; text-align: right; }

.fine-print { margin-top: 12px; color: var(--color-muted-foreground); font-size: 0.875rem; }

/* ---------- 13. Basket page ---------- */
.basket-list { display: grid; gap: 12px; margin: 0 0 var(--space-2); padding: 0; list-style: none; }

.basket-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
}
.basket-line__image { display: none; }
.basket-line__copy { min-width: 0; }
.basket-line__name { font: 700 1.125rem/1.3 var(--font-body); }
.basket-line__opts { margin: 4px 0 0; padding: 0; list-style: none; color: var(--color-muted-foreground); font-size: 0.9375rem; }
.basket-line__opts .price { color: var(--color-accent-strong); font-weight: 600; }
.basket-line__note { margin-top: 4px; color: var(--color-muted-foreground); font-size: 0.9375rem; font-style: italic; }
.basket-line__unit { margin-top: 4px; color: var(--color-muted-foreground); font-size: 0.875rem; }
.basket-line__total { font-size: 1.125rem; font-weight: 700; }
.basket-line__actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); }

.qty-control { display: inline-flex; align-items: center; gap: 4px; padding: 2px; border: 1.5px solid var(--color-input-border); border-radius: 999px; }
.qty-control form { display: contents; }
.qty-control__button {
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-foreground);
}
.qty-control__button:hover:not(:disabled) { background: var(--color-muted); }
.qty-control__button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-control__button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.qty-control__button.is-busy::before { display: none; }
.qty-control__button.is-busy svg { opacity: 0.35; }
.qty-control__value { min-width: 2ch; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- 14. Recommendations ---------- */
.recommendations { margin: var(--space-5) 0 var(--space-3); }
.recommendations__head { margin-bottom: var(--space-3); }
.recommendation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }

.recommendation-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-card);
}
.recommendation-card__image { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--color-muted); }
.recommendation-card__image--blank { background: linear-gradient(135deg, var(--color-muted), var(--color-secondary)); }
.recommendation-card__label { color: var(--color-accent-strong); font-size: 0.8125rem; font-weight: 700; }
.recommendation-card__name { font-size: 1rem; }
.recommendation-card__meta { color: var(--color-muted-foreground); font-size: 0.875rem; }
.recommendation-card__meta .price { color: var(--color-foreground); font-weight: 700; }

/* ---------- 15. Status pages ---------- */
.status-hero { display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-4) 0 var(--space-3); text-align: center; }
.status-hero h1 { margin-bottom: var(--space-1); }
.status-hero__icon { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: var(--space-3); border-radius: 50%; }
.status-hero__icon svg { width: 40px; height: 40px; stroke-width: 2.4; }
.status-hero__icon--success { background: #dcfce7; color: var(--color-success); }
.status-hero__icon--pending { background: var(--color-card); color: var(--color-accent); box-shadow: var(--shadow-md); }
.status-hero__icon--failed { background: #fee2e2; color: var(--color-error); }
[data-payment-state="pending"] .status-hero__icon--failed,
[data-payment-state="failed"] .status-hero__icon--pending,
[data-payment-state="timeout"] .status-hero__icon--failed { display: none; }
[data-payment-state="timeout"] .spinner { animation: none; border-right-color: currentColor; opacity: 0.4; }
.status-hero__message { max-width: 48ch; margin-top: var(--space-3); font-size: 1.0625rem; }
.status-hero .callout { margin-top: var(--space-3); text-align: left; }
.status-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--space-4); }

.timeline { display: grid; gap: 0; margin: var(--space-4) 0; padding: 0; list-style: none; counter-reset: step; }
.timeline__step { position: relative; display: grid; gap: 2px; padding: 0 0 var(--space-4) 44px; counter-increment: step; }
.timeline__step::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-choice-border);
    border-radius: 50%;
    background: var(--color-card);
    font-weight: 700;
}
.timeline__step:not(:last-child)::after { content: ""; position: absolute; top: 32px; bottom: 2px; left: 14px; width: 2px; background: var(--color-border); }
.timeline__step--done::before { content: "✓"; border-color: var(--color-success); background: var(--color-success); color: #fff; }
.timeline__step span { color: var(--color-muted-foreground); }
.success-page__help { margin-top: var(--space-3); text-align: center; }

.payment-form { padding-top: var(--space-4); }
.payment-element { min-height: 180px; }
.payment-element__loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: var(--color-muted-foreground); }
.payment-form__error { margin-top: var(--space-3); }

/* ---------- 16. Account ---------- */
.history-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
}
.history-card__title { font: 700 1.125rem/1.3 var(--font-body); }
.history-card__title a { color: var(--color-foreground); }
.history-card__meta { margin-top: 2px; color: var(--color-muted-foreground); font-size: 0.9375rem; overflow-wrap: anywhere; }
.history-card__total { font-size: 1.125rem; font-weight: 700; }
.history-card__status { grid-column: 1 / -1; }
.history-card__actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: var(--space-2); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }
.pager__link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); border: 1.5px solid var(--color-choice-border); border-radius: 999px; background: var(--color-card); color: var(--color-foreground); font-weight: 700; text-decoration: none; }
.pager__link[aria-disabled="true"] { opacity: 0.5; }
.pager__status { color: var(--color-muted-foreground); }

.account-setup { display: none; margin-top: var(--space-3); }
#checkout-form:has(#create_account:checked) .account-setup { display: block; }
.auth-form { padding-block: var(--space-4); }
.auth-form .button { margin-top: var(--space-2); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-4); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.auth-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

/* ---------- 17. Empty, info, legal ---------- */
.panel, .summary-card, .option-group, .contact-card, .step, .history-card, .basket-line, .recommendation-card, .choice-card, .status-pill, .serve-list a { box-shadow: var(--shadow-sm); }
.dish:hover, .deal-card:hover, .contact-card:hover { box-shadow: var(--shadow-md); }

.empty-state { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-3); border: 1px dashed var(--color-choice-border); border-radius: var(--radius-lg); background: var(--color-card); text-align: center; }
.empty-state__icon { width: 56px; height: 56px; margin-bottom: var(--space-2); color: var(--color-secondary); }
.empty-state h2 { font-size: 1.5rem; }
.empty-state p { max-width: 42ch; color: var(--color-muted-foreground); }
.empty-state .button { margin-top: var(--space-3); }

.info-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-3); }
.contact-form { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.contact-form .button { justify-self: start; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.info-page .panel p + .info-subhead, .info-page .panel dl + .info-subhead, .info-page .panel ul + .info-subhead { margin-top: var(--space-4); }
.info-subhead { margin-bottom: var(--space-2); color: var(--color-accent-strong); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hours-list { margin: 0; }
.hours-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px var(--space-3); padding: 10px 0; border-bottom: 1px dashed var(--color-border); }
.hours-row dt { text-transform: capitalize; }
.hours-row dd { margin: 0; font-weight: 700; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 6px 0; }
.fee-list { margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.fee-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.fee-list__swatch { width: 18px; height: 18px; flex: none; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 5px; }
.fee-list__name { min-width: 72px; font-weight: 700; }
.fee-list__value { margin-left: auto; color: var(--color-muted-foreground); font-weight: 600; }

.legal-page { max-width: 32em; /* ≈70 characters of Figtree per line */ margin-inline: auto; line-height: 1.65; }
.legal-page h1 { margin-bottom: var(--space-4); }
.legal-page h2 { margin: var(--space-5) 0 var(--space-2); font-size: 1.375rem; }
.legal-page p, .legal-page ul { margin: 0 0 var(--space-3); }
.legal-page ul { padding-left: 22px; }
.legal-page li + li { margin-top: var(--space-1); }
.legal-notice p { margin: 0; }

/* ---------- 3a. Red top bar ---------- */
.top-bar { background: var(--color-primary); color: #fff; font-size: 0.9375rem; }
.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    max-width: var(--content-max);
    min-height: var(--tap);
    margin: 0 auto;
    padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}
.top-bar p { display: flex; align-items: center; gap: 8px; margin: 0; }
.top-bar__status { flex-wrap: nowrap; min-width: 0; overflow: hidden; white-space: nowrap; }
.top-bar__status strong, .top-bar__status span { white-space: nowrap; }
.top-bar__status > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.top-bar__sep { opacity: 0.75; }
.top-bar__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.45); }
.top-bar__dot--open { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
.top-bar a { color: #fff; }
.top-bar__call { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-bar__call:hover { text-decoration: underline; }
.top-bar__call svg { width: 16px; height: 16px; }
.top-bar :focus-visible { outline-color: #fff; outline-offset: -3px; }
@media (max-width: 419px) {
    .top-bar { font-size: 0.8125rem; }
    .top-bar__inner { gap: var(--space-2); }
    .top-bar p { gap: 6px; }
}
@media (max-width: 767px) {
    .top-bar__call-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- 18. Breakpoints ---------- */
@media (min-width: 600px) {
    .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .choice-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-drawer ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 72px; }

    .brand__name { font-size: 1.375rem; }
    .brand__place { font-size: 0.875rem; }
    .brand__mark { width: 40px; height: 40px; }
    .brand__logo { height: 64px; }
    .tool__label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .tool { padding: 0 12px; }
    .tool--basket .tool__count { position: static; }
    .tool svg { width: 20px; height: 20px; }
    .category-drawer ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .dish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crave-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-block: var(--space-7); }
    .hero-food { height: 420px; margin-top: 0; }
    .hero-food__pizza { top: 2%; left: 22%; width: 60%; max-width: 360px; }
    .hero-food__burger { left: 0; bottom: 0; width: 46%; max-width: 280px; }
    .hero-food__fries { right: 0; bottom: 2%; width: 34%; max-width: 200px; }
    .hero-food__wings { display: block; left: 0; top: 2%; width: 36%; max-width: 220px; }
    .deals-band { padding: var(--space-6); }
    .about-strip { grid-template-columns: 1.3fr 1fr; align-items: center; padding: var(--space-6); }
    .about { grid-template-columns: 1.3fr 1fr; align-items: center; padding: var(--space-6); }
    .about-intro { grid-template-columns: 1.1fr 1fr; gap: var(--space-5); padding-top: var(--space-3); }
    .area-hero,
    .area-intro { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); padding: var(--space-6); }
    .area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .area-story { grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr); gap: var(--space-6); }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .serve-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .local-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band { padding: var(--space-6); }
    .dish__image { width: 112px; height: 112px; }

    .product-hero { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--space-4); align-items: center; }
    .product-hero--no-image { grid-template-columns: minmax(0, 1fr); }
    .add-bar { margin-inline: 0; padding: 12px var(--space-3) calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); bottom: var(--space-3); box-shadow: var(--shadow-lg); }

    .panel, .summary-card { padding: var(--space-4); }
    .basket-line { grid-template-columns: 88px minmax(0, 1fr) auto; }
    .basket-line__image { display: block; grid-row: span 2; width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
    .basket-line__actions { grid-column: 2 / -1; }
    .recommendation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zone-map { height: 380px; }
    .history-card { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
    .history-card__status { grid-column: auto; grid-row: 1; grid-column-start: 2; }
    .history-card__total { grid-column-start: 3; }
}

@media (min-width: 1024px) {
    :root { --gutter: 32px; }

    body.has-basket .page-columns { grid-template-columns: minmax(0, 1fr) 340px; }
    .site-footer__inner { grid-template-columns: 1.3fr 1.2fr 0.8fr 0.9fr; }

    .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
    .brand { justify-self: start; }
    .site-nav { display: block; }
    .site-tools { justify-self: end; }
    .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    /* With the basket column beside it, the bar stays inside the menu column. */
    body.has-basket .category-rail { margin-inline: 0; }
    .tool--nav { display: none; }
    .deal-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

    body.has-basket .live-basket {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
        display: block;
        max-height: calc(100vh - var(--header-h) - var(--space-6));
        margin-top: var(--space-4);
        padding: var(--space-4);
        overflow: auto;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        background: var(--color-card);
        box-shadow: var(--shadow-md);
    }

    body.has-basket-bar { padding-bottom: 0; }
    .basket-bar { display: none; }
    html { scroll-padding-bottom: var(--space-4); }

    .split { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); }
    .split__side { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
    .page { padding-top: var(--space-5); }
}

/* Wide screens: categories become a sticky list on the left of the menu. */
@media (min-width: 1280px) {
    html:has(.category-rail) { scroll-padding-top: calc(var(--header-h) + var(--space-3)); }
    .menu-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 var(--space-5); align-items: start; }
    .menu-section > .section-head { grid-column: 1 / -1; }
    body .menu-section .category-rail {
        position: sticky;
        top: calc(var(--header-h) + var(--space-4));
        max-height: calc(100vh - var(--header-h) - var(--space-6));
        margin: var(--space-5) 0 0;
        overflow: auto;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    body .menu-section .category-rail ul { flex-direction: column; gap: 2px; min-height: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
    .menu-section .category-rail li { scroll-snap-align: none; }
    .menu-section .category-rail a { display: flex; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius); background: transparent; white-space: normal; }
    .menu-section .category-rail a:hover { background: var(--color-muted); }
    .menu-section .category-rail a[aria-current="true"] { background: var(--color-foreground); color: #fff; }
    .menu-section .category-rail :focus-visible { outline-offset: 0; }
    .category-rail__count { display: inline; margin-left: auto; color: var(--color-muted-foreground); font-size: 0.8125rem; font-weight: 600; }
    .category-rail a[aria-current="true"] .category-rail__count { color: #d9d2c7; }
}

@media (min-width: 1440px) {
    :root { --content-max: 1360px; }
    body.has-basket .page-columns { grid-template-columns: minmax(0, 1fr) 380px; }
    .dish__image { width: 128px; height: 128px; }
}

/* Very small phones (< 360px): shrink dish images and header tools */
@media (max-width: 359px) {
    .dish__image { width: 80px; height: 80px; }
    .tool { min-width: 40px; padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .spinner, .is-busy::before { animation: none; border-right-color: currentColor; opacity: 0.5; }
}

@media (forced-colors: active) {
    .option__row:has(.option__control:checked), .choice-card:has(input:checked) { outline: 2px solid CanvasText; }
    .badge, .status-badge, .status-pill { border: 1px solid CanvasText; }
}

@media print {
    .site-header, .site-footer, .basket-bar, .add-bar, .category-rail, .live-basket { display: none !important; }
}

.turnstile-field {
    margin: 4px 0 14px;
    min-height: 0;
}

.turnstile-field:empty {
    display: none;
}
