:root {
    --cream: #f8f4ee;
    --cream-2: #f3ede5;
    --surface: #fffdfa;
    --ink: #241a12;
    --ink-2: #6d6459;
    --ink-3: #9b9086;
    --line: #e8e0d6;
    --accent: #c04a1c;
    --accent-dark: #a83d14;
    --accent-tint: #fcece5;
    --accent-line: #f2c9b2;
    --tag-req-bg: #fbe4d8;
    --tag-opt-bg: #ece5db;
    --violet: #7458d6;
    --violet-tint: #f2effe;
    --violet-line: #c9bafa;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(36, 26, 18, .05), 0 8px 24px -18px rgba(36, 26, 18, .25);
    --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tab-h: 62px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    /* A native app doesn't rubber-band the whole page into a blank strip. */
    overscroll-behavior-y: none;
}

a, button { -webkit-tap-highlight-color: transparent; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Layout rules below use display:flex/grid, which would beat the UA [hidden] rule. */
[hidden] { display: none !important; }

/* ---------- shell ---------- */

.app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    position: relative;
    padding-bottom: calc(var(--tab-h) + var(--safe-b) + 26px);
}

@media (min-width: 980px) {
    body { background: var(--cream); }
}

.pad { padding-left: 18px; padding-right: 18px; }

/* ---------- type ---------- */

.brand {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.1;
}

.page-title {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.15;
}

.section-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.sub { font-size: 12.5px; color: var(--ink-2); }
.micro { font-size: 11px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */

.topbar {
    padding: 18px 18px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    flex: none;
}

.topbar--row {
    align-items: center;
}

.icon-btn--round {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 10px rgba(36, 26, 18, .18);
    border-color: rgba(255, 255, 255, .6);
}

.icon-btn svg { width: 17px; height: 17px; stroke: var(--ink); }

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* ---------- segmented control ---------- */

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 4px;
}

.segmented button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.segmented button svg { width: 14px; height: 14px; stroke: currentColor; }

.segmented button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(36, 26, 18, .12);
}

/* ---------- chips ---------- */

.chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 4px 18px 2px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: transform .14s ease, background .14s ease, color .14s ease;
}

.chip:active { transform: scale(.96); }

.chip-count { font-size: 10.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.chip[aria-current="true"],
.chip[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chip[aria-current="true"] .chip-count,
.chip[aria-pressed="true"] .chip-count { color: rgba(255, 255, 255, .62); }

/* ---------- section head ---------- */

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 18px 12px;
}

/* ---------- landing hero ---------- */

/* A dark, warm brand card: ember glows over near-black, with a faint dot grain. */
.hero-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 14px 14px 0;
    padding: 16px 18px 50px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(110% 85% at 100% 0%, rgba(236, 120, 58, .55) 0%, rgba(236, 120, 58, 0) 58%),
        radial-gradient(80% 70% at 0% 100%, rgba(192, 74, 28, .42) 0%, rgba(192, 74, 28, 0) 62%),
        linear-gradient(160deg, #31221a 0%, #1b120c 100%);
    box-shadow: 0 18px 40px -22px rgba(36, 26, 18, .7);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 14px 14px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-logo {
    width: 58px;
    height: 58px;
    padding: 4px;
    border-radius: 17px;
    /* Whole logo, wordmark included, on a white tile so it reads on the dark hero. */
    object-fit: contain;
    background: #fff;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}

.hero-logo--mono {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
}

.hero-cart {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background .16s ease;
}

.hero-cart svg { width: 18px; height: 18px; stroke: #fff; }

.hero-cart:active { background: rgba(255, 255, 255, .22); }

.hero-cart .badge-count { box-shadow: 0 0 0 2px #2a1c14; }

.hero-name {
    margin-top: 22px;
    font-family: var(--serif);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.6px;
    overflow-wrap: anywhere;
}

.hero-tag {
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .72);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.hero-status,
.hero-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}

.hero-fact svg { width: 12px; height: 12px; stroke: currentColor; opacity: .8; }

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.hero-status--open { color: #86efac; }
.hero-status--shut { color: #fcd34d; }
.hero-status--off { color: #fca5a5; }

.hero-status--open .hero-dot { box-shadow: 0 0 0 0 rgba(134, 239, 172, .6); }

@media (prefers-reduced-motion: no-preference) {
    .hero-status--open .hero-dot { animation: hero-live 2s ease-out infinite; }
}

@keyframes hero-live {
    0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, .55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(134, 239, 172, 0); }
}

/* Pickup / delivery floats over the hero's lower edge. */
.mode-panel {
    position: relative;
    z-index: 1;
    margin: -32px 26px 0;
    padding: 8px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 14px 30px -16px rgba(36, 26, 18, .4);
}

.mode-panel .segmented { border: 0; }

.mode-panel .meta-line { margin-top: 9px; padding: 0 6px; }

.menu-aside .chips { padding-top: 16px; }

/* ---------- section heads with a kicker ---------- */

.kicker {
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--accent);
}

.menu-main .section-head { align-items: flex-end; padding-top: 26px; }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
}

.section-link svg { width: 14px; height: 14px; stroke: currentColor; }

/* ---------- popular scroller ---------- */

.scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 18px 8px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    scrollbar-width: none;
}

.scroller::-webkit-scrollbar { display: none; }

/* Photo first: the dish fills the card and the words sit on a dark fade. */
.pcard {
    position: relative;
    isolation: isolate;
    flex: none;
    width: 62%;
    max-width: 236px;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: 22px;
    background: var(--ink);
    box-shadow: 0 12px 26px -18px rgba(36, 26, 18, .6);
    transition: transform .16s ease;
}

.pcard:active { transform: scale(.975); }

.pcard img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s ease;
}

.pcard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 8, 0) 38%, rgba(20, 12, 8, .55) 64%, rgba(20, 12, 8, .9) 100%);
}

.pcard-rank {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 99px;
    background: rgba(255, 253, 250, .95);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pcard-body {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    padding: 14px 14px 15px;
    color: #fff;
}

.pcard h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-price {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pcard-price span { margin-right: 3px; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .7); }

/* ---------- dish list ---------- */

/* The landing list: one soft panel holding compact rows, photo on the left. */
.dish-list {
    margin: 0 14px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.dish {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

/* Hairline that starts after the photo, like a native list. */
.dish + .dish::before {
    content: '';
    position: absolute;
    top: 0;
    left: 82px;
    right: 0;
    height: 1px;
    background: var(--line);
}

.dish-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    transition: opacity .14s ease;
}

.dish-main:active { opacity: .65; }

.dish-thumb {
    flex: none;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--cream-2);
    box-shadow: 0 6px 14px -8px rgba(36, 26, 18, .45);
}

.dish-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.dish-body { flex: 1; min-width: 0; }

.dish-body h3 {
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.15px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dish-blurb {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dish-body .price {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.1px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.dish-body .price span {
    margin-right: 3px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-3);
}

/* Actions on the right: Add fills on press, Choose is the quieter outline. */
.dish .add-btn {
    border: 1px solid var(--accent-line);
    padding: 8px 14px;
}

.dish .add-btn:active { background: var(--accent); border-color: var(--accent); color: #fff; }

.dish-choose {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--cream);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 700;
    transition: border-color .14s ease, color .14s ease;
}

.dish-choose svg { width: 13px; height: 13px; stroke: currentColor; }

.dish-choose:active { border-color: var(--accent-line); color: var(--accent); }

.dish--out .dish-thumb img { filter: grayscale(.9); opacity: .6; }
.dish--out .dish-body { opacity: .6; }

.chev { flex: none; color: var(--ink-3); }
.chev svg { width: 16px; height: 16px; stroke: currentColor; }

.add-btn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 32px;
    min-height: 32px;
    padding: 7px 13px;
    border-radius: 99px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    transition: transform .14s ease, background .14s ease;
}

.add-btn:active { transform: scale(.94); background: var(--accent-line); }

/* ---------- full menu page ---------- */

.search { position: relative; display: flex; align-items: center; }

.search > svg {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    stroke: var(--ink-3);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 13px 42px 13px 38px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    font-size: 13.5px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px rgba(192, 74, 28, .09);
}

.search-input::placeholder { color: var(--ink-3); }

/* the WebKit cancel button sits on top of our own clear control */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-clear {
    position: absolute;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cream-2);
    color: var(--ink-2);
}

.search-clear svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; }

.browse-count {
    padding: 12px 18px 0;
    font-size: 11.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

/*
 * Full menu grid: photo on top, name and price below, quick add on the
 * photo's corner. Two up on a phone, more as the screen widens.
 */
.mgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 18px 0;
}

.mcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mcard:active { transform: scale(.98); }

.mcard-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-2);
}

.mcard img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.mcard:has(.mcard-out) img { filter: grayscale(.85); opacity: .7; }

.mcard-out {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 4px 9px;
    border-radius: 99px;
    background: rgba(36, 26, 18, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.mcard-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px 12px 12px;
}

.mcard-body h3 {
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.1px;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* The name is the card's link; stretch it so a tap anywhere opens the dish. */
.mcard-body h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mcard-blurb {
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mcard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
}

.mcard-price {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.1px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.mcard-price span {
    margin-right: 3px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ink-3);
}

/* Quick add: a round + on the photo's bottom corner. "Add" stays for screen readers. */
.mcard .add-btn {
    position: absolute;
    z-index: 1;
    right: 8px;
    /* Photo is 4:3 of the card width, so its bottom edge sits at 75% of the width. */
    top: calc((100cqw * .75) - 40px);
    width: 34px;
    min-width: 0;
    height: 34px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 0;
    box-shadow: 0 3px 10px rgba(36, 26, 18, .25);
}

.mcard { container-type: inline-size; }

.mcard .add-btn svg { width: 16px; height: 16px; stroke-width: 2.6; }

.mcard .add-btn:active { transform: scale(.9); background: var(--accent); color: #fff; }

.mcard-pick {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
}

.mcard-pick svg { width: 13px; height: 13px; stroke: currentColor; }

.mcard .sold-out { position: relative; z-index: 1; font-size: 10px; }

.browse-group + .browse-group { margin-top: 8px; }

.see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: calc(100% - 36px);
    margin: 14px 18px 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    transition: border-color .14s ease, color .14s ease, transform .14s ease;
}

.see-more svg { width: 15px; height: 15px; stroke: currentColor; transform: rotate(90deg); }

.see-more:active { transform: scale(.99); border-color: var(--accent-line); color: var(--accent); }

@media (min-width: 980px) {
    .see-more { width: auto; margin: 18px auto 0; padding: 11px 26px; }
    .see-more:hover { border-color: var(--accent-line); color: var(--accent); }
}

/* ---------- landing overflow ---------- */

.see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--accent-line);
    border-radius: 14px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    transition: transform .14s ease, background .14s ease;
}

.see-all:active { transform: scale(.99); background: var(--accent-line); }
.see-all svg { width: 15px; height: 15px; stroke: currentColor; }

/* ---------- item page ---------- */

.hero { position: relative; }

.hero img {
    width: 100%;
    height: 268px;
    object-fit: cover;
    background: var(--cream-2);
}

.hero-nav {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
}

.hero-badge {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 99px;
    background: rgba(255, 253, 250, .93);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(36, 26, 18, .16);
}

.hero-badge svg { width: 12px; height: 12px; stroke: currentColor; }

.hero-badge--out { color: var(--ink-2); }

.item-head { padding: 18px 18px 4px; }
.item-head .page-title { margin-bottom: 8px; }
.item-head .sub { max-width: 30ch; }

.meta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--ink-2);
    margin-top: 12px;
}

.meta-line svg { width: 13px; height: 13px; stroke: var(--ink-3); flex: none; }

/* Wide-screen extras on the item page; the phone layout never shows them. */
.item-intro,
.item-options-title,
.item-assure,
.item-more { display: none; }

/* ---------- option groups ---------- */

.group { padding: 20px 18px 0; }

.group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.group-head h3 { font-size: 13px; font-weight: 700; letter-spacing: -.1px; }

.tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    padding: 4px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.tag--required { background: var(--tag-req-bg); color: var(--accent); }
.tag--optional { background: var(--tag-opt-bg); color: var(--ink-2); }

.opt {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    padding: 13px 13px;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    margin-bottom: 8px;
}

.opt-label { flex: 1; font-size: 13.5px; font-weight: 600; }
.opt-price { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.dot {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1.5px solid #cfc5b9;
    flex: none;
    display: grid;
    place-items: center;
}

.dot::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform .12s ease;
}

.box {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1.5px solid #cfc5b9;
    flex: none;
    display: grid;
    place-items: center;
    background: #fff;
}

.box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; opacity: 0; }

.opt[aria-checked="true"],
.opt[aria-checked="yes"] {
    background: var(--accent-tint);
    border-color: var(--accent-line);
}

.opt[aria-checked="true"] .dot { border-color: var(--accent); }
.opt[aria-checked="true"] .dot::after { transform: scale(1); }

.opt[aria-checked="true"] .box {
    background: var(--accent);
    border-color: var(--accent);
}

.opt[aria-checked="true"] .box svg { opacity: 1; }

/* the mockup marks one choice with a dashed violet outline */
.opt--hint {
    background: var(--violet-tint);
    border: 1.5px dashed var(--violet);
}

.opt--hint .dot { border-color: var(--violet); border-style: dashed; }
.opt--hint .dot::after { background: var(--violet); transform: scale(1); }
.opt--hint .opt-price { color: var(--violet); }

/* ---------- sticky footer ---------- */

.footnote {
    padding: 18px 18px 0;
    font-size: 11px;
    color: var(--ink-3);
}

.sticky {
    position: sticky;
    /* Rest directly on top of the tab bar instead of hiding behind it. */
    bottom: calc(var(--tab-h) + var(--safe-b));
    margin-top: 18px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 3px;
    flex: none;
}

.stepper button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--ink-2);
}

.stepper output {
    min-width: 22px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cta {
    flex: 1;
    background: var(--accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 18px -12px rgba(192, 74, 28, .9);
}

.cta:active { background: var(--accent-dark); }

.cta:disabled {
    background: var(--tag-opt-bg);
    color: var(--ink-3);
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------- cart ---------- */

.cart-card {
    margin: 14px 18px 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 14px;
    box-shadow: var(--shadow);
}

.cart-line {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.cart-card .cart-line:last-of-type { border-bottom: 0; }

.cart-line img {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    object-fit: cover;
    flex: none;
    background: var(--cream-2);
}

.cart-line-body { flex: 1; min-width: 0; }
.cart-line-body h3 { font-size: 13px; font-weight: 600; }
.cart-line-body p { font-size: 11px; color: var(--ink-2); margin-top: 1px; }

.cart-line-side { text-align: right; flex: none; }
.cart-line-side .price { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.edit {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
}

.edit svg { width: 11px; height: 11px; stroke: currentColor; }

.remove {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-3);
    margin-top: 3px;
}

.remove:active { color: var(--accent); }

.add-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 0 6px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--accent);
}

.block { padding: 24px 18px 0; }
.block > .page-title { margin-bottom: 14px; }

/* The checkout form stacks two sections; the second one needs air above it. */
#checkout > h2 { margin-top: 28px; }
#checkout > h2:first-child { margin-top: 0; }

.field-label {
    display: block;
    font-size: 11.5px;
    color: var(--ink-2);
    margin-bottom: 6px;
}

.input, .select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 13.5px;
    font-weight: 500;
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px rgba(192, 74, 28, .09);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d6459' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-2 .field + .field { margin-top: 0; }
.field + .field { margin-top: 14px; }

.zone-hint { font-size: 10.5px; color: var(--ink-3); margin: 9px 0 0; }

.zone-hint + .row-2 { margin-top: 16px; }

.summary {
    margin: 22px 18px 0;
    background: var(--cream-2);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--ink-2);
    padding: 3px 0;
}

.sum-row .v { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 11px;
}

.sum-total span { font-size: 12.5px; font-weight: 700; }
/* Georgia has no naira glyph, so money stays in the sans stack. */
.sum-total .total { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }

.pay-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--ink-2);
    margin-top: 12px;
}

.pay-note svg { width: 13px; height: 13px; stroke: var(--ink-3); }

.pay-wrap { padding: 16px 18px 0; }

.pay-wrap .cta { display: block; width: 100%; font-size: 14px; padding: 16px; }

.checkout-note { font-size: 10.5px; color: var(--ink-3); padding: 10px 18px 0; }

.empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 34px 18px 30px;
    text-align: center;
    color: var(--ink-2);
    font-size: 12.5px;
}

.empty svg { width: 30px; height: 30px; stroke: var(--ink-3); margin-bottom: 5px; }

.empty-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.empty-cta {
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 99px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 700;
}

.empty-cta:active { background: var(--accent-line); }

/* ---------- add-to-cart toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 16px);
    width: min(400px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 14px 34px rgba(36, 26, 18, .32);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 30;
}

.toast.is-open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* Clear the tab bar, and the price bar too on the item page. */
.toast { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }

body:has(.sticky) .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 84px); }

.toast img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: cover;
    flex: none;
    background: var(--ink-2);
}

.toast-body { flex: 1; min-width: 0; display: grid; gap: 1px; }

.toast-body strong {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-body span { font-size: 11.5px; color: rgba(255, 255, 255, .62); }

.toast-cta {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 13px;
    border-radius: 11px;
    background: var(--accent);
}

.toast-cta:active { background: var(--accent-dark); }

/* ==========================================================================
   Responsive: tablet. Same single column, wider grid for the dish cards.
   ========================================================================== */

@media (min-width: 640px) {
    .app { max-width: 700px; }

    .hero img { height: 340px; }

    /* Stays a swipeable slider: three cards visible, the rest scroll in. */
    .scroller {
        gap: 14px;
        padding: 2px 0 8px;
        scroll-padding: 0;
    }

    .pcard { width: calc((100% - 28px) / 3); max-width: none; }

    /* Wider cards read as banners, so flatten the crop instead of growing it. */
    .pcard img { aspect-ratio: 4 / 3; }

    .dish-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 28px;
        padding: 4px 18px;
    }

    /* Each column draws its own hairlines; the first row of each has none. */
    .dish:nth-child(2)::before { display: none; }
    .dish:nth-child(n+3)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 82px;
        right: 0;
        height: 1px;
        background: var(--line);
    }

    .mgrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        padding-top: 8px;
    }
}

/* ==========================================================================
   Responsive: web. Two-column arrangements; the phone layout is untouched.
   ========================================================================== */

@media (min-width: 980px) {
    body { font-size: 15px; }

    .app {
        max-width: none;
        padding: 36px clamp(36px, 4vw, 80px) 80px;
    }

    .pad { padding-left: 0; padding-right: 0; }

    .split {
        display: grid;
        gap: 48px;
        align-items: start;
    }

    .split-menu { grid-template-columns: 292px minmax(0, 1fr); }
    .split-item { grid-template-columns: 400px minmax(0, 1fr); }
    .split-cart { grid-template-columns: minmax(0, 1fr) 348px; }

    .menu-aside,
    .item-aside,
    .cart-aside {
        position: sticky;
        top: 36px;
    }

    .brand { font-size: 34px; }
    .page-title { font-size: 31px; }
    .section-title { font-size: 20px; }
    .sub { font-size: 13.5px; }

    /* --- menu --- */

    .topbar { padding: 0 0 20px; }

    .chips {
        flex-direction: column;
        overflow: visible;
        gap: 8px;
        padding: 18px 0 0;
    }

    .chip {
        width: 100%;
        text-align: left;
        padding: 11px 15px;
        border-radius: 12px;
        font-size: 13.5px;
    }

    .section-head { padding: 0 0 16px; }
    .menu-main > .section-head:not(:first-child) { padding-top: 38px; }

    .notice { margin: 0 0 20px; border-radius: 12px; padding: 11px 14px; font-size: 13px; }

    .scroller { gap: 16px; }

    .pcard { width: calc((100% - 32px) / 3); }

    /* More room, more cards in view. */
    @media (min-width: 1400px) {
        .pcard { width: calc((100% - 48px) / 4); }
    }

    .pcard:hover { transform: translateY(-4px); }
    .pcard:hover img { transform: scale(1.06); }

    /* The hero sits in the sticky side column on wide screens. */
    .hero-card { margin: 0; padding: 18px 20px 50px; }
    .hero-name { font-size: 30px; }
    .mode-panel { margin: -32px 14px 0; }
    .menu-aside .chips { padding-top: 18px; }
    .menu-main .section-head { padding-top: 0; }
    .menu-main > .section-head:not(:first-child) { padding-top: 38px; }

    .dish-list { margin: 0; padding: 6px 22px; column-gap: 36px; }
    .dish { padding: 14px 0; }
    .dish-thumb { width: 76px; height: 76px; }
    .dish + .dish::before,
    .dish:nth-child(n+3)::before { left: 90px; }
    .dish-body h3 { font-size: 15px; }
    .dish-blurb { font-size: 12.5px; }
    .dish:hover .dish-thumb img { transform: scale(1.07); }
    .dish:hover h3 { color: var(--accent); }
    .dish-choose:hover { border-color: var(--accent-line); color: var(--accent); }
    .dish .add-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

    /* --- full menu page --- */

    .split-browse { grid-template-columns: 292px minmax(0, 1fr); }
    .browse-aside { position: sticky; top: 36px; }
    .browse-aside .page-title { font-size: 25px; }
    .browse-count { padding: 14px 0 0; }
    .browse-group + .browse-group { margin-top: 34px; }

    .mgrid {
        grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
        gap: 16px;
        padding: 14px 0 0;
    }
    .mcard:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 1px 2px rgba(36, 26, 18, .05), 0 16px 32px -18px rgba(36, 26, 18, .4); }
    .mcard:hover img { transform: scale(1.06); }
    .mcard-body { padding: 12px 14px 14px; }
    .mcard-body h3 { font-size: 14.5px; }
    .mcard-blurb { font-size: 12px; }
    .mcard-price { font-size: 15px; }
    .mcard .add-btn:hover { background: var(--accent); color: #fff; }

    .see-all { margin: 22px 0 0; justify-content: space-between; padding: 16px 18px; font-size: 14px; }

    /* --- item --- */

    /* Photo and product side by side, the photo held square and sticky. */
    .split-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }

    .hero img {
        height: auto;
        aspect-ratio: 1 / 1;
        border-radius: 28px;
        box-shadow: 0 30px 60px -36px rgba(36, 26, 18, .55);
    }
    .hero-nav { top: 18px; left: 18px; right: 18px; }
    .hero-badge { left: 20px; bottom: 20px; }

    /* The title moves to the right column, so the one under the photo goes. */
    .item-aside .item-head { display: none; }

    .item-form { max-width: none; }

    .item-intro {
        display: block;
        margin-bottom: 28px;
        padding-bottom: 26px;
        border-bottom: 1px solid var(--line);
    }

    .crumbs {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12.5px;
        color: var(--ink-3);
    }
    .crumbs svg { width: 12px; height: 12px; stroke: currentColor; }
    .crumbs a:hover { color: var(--accent); }

    .item-title {
        margin-top: 14px;
        font-family: var(--serif);
        font-size: 44px;
        font-weight: 700;
        line-height: 1.06;
        letter-spacing: -.9px;
        overflow-wrap: anywhere;
    }

    .item-price {
        margin-top: 14px;
        font-size: 26px;
        font-weight: 700;
        letter-spacing: -.4px;
        color: var(--accent);
        font-variant-numeric: tabular-nums;
    }
    .item-price span { margin-right: 6px; font-size: 14px; font-weight: 500; color: var(--ink-3); }

    .item-blurb { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
    .item-lede { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

    .item-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

    .item-fact {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 13px;
        border: 1px solid var(--line);
        border-radius: 99px;
        background: var(--surface);
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink-2);
    }
    .item-fact svg { width: 14px; height: 14px; stroke: var(--accent); }
    .item-fact--out { border-color: #efc7c5; background: #f7e0e0; color: #a3322f; }

    .item-options-title {
        display: block;
        margin-bottom: 16px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.3px;
        text-transform: uppercase;
        color: var(--accent);
    }

    /* Options sit two to a row so a long group does not run down the page. */
    .group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 10px;
        padding: 0;
    }
    .group-head { grid-column: 1 / -1; }
    .group + .group { margin-top: 26px; }

    .opt { padding: 15px 16px; }
    .opt-label { font-size: 14.5px; }
    .opt-price { font-size: 13.5px; }

    .footnote { padding: 18px 0 0; }

    .sticky {
        position: static;
        margin-top: 20px;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 14px;
        box-shadow: var(--shadow);
    }
    .sticky .cta { padding-top: 15px; padding-bottom: 15px; font-size: 15px; }

    .item-assure {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 18px;
    }
    .item-assure li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
    }
    .item-assure svg {
        flex: none;
        width: 34px;
        height: 34px;
        padding: 8px;
        border-radius: 50%;
        background: var(--accent-tint);
        stroke: var(--accent);
    }
    .item-assure strong { display: block; font-size: 13px; font-weight: 700; }
    .item-assure span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

    .item-more { display: block; margin-top: 44px; }
    .item-more-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    .item-more-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
    .more-card { display: block; }
    .more-thumb {
        display: block;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 18px;
        background: var(--cream-2);
        box-shadow: 0 10px 24px -18px rgba(36, 26, 18, .6);
    }
    .more-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
    .more-name {
        display: block;
        margin-top: 10px;
        font-size: 13.5px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color .14s ease;
    }
    .more-price { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .more-price small { margin-right: 3px; font-size: 11px; font-weight: 500; color: var(--ink-3); }
    .more-card:hover img { transform: scale(1.06); }
    .more-card:hover .more-name { color: var(--accent); }

    /* --- cart --- */

    .cart-card { margin: 20px 0 0; }
    .cart-line img { width: 58px; height: 58px; }
    .cart-line-body h3 { font-size: 14px; }
    .cart-line .price { font-size: 14px; }

    .block { padding: 0; }
    .block > .page-title { margin: 30px 0 16px; }

    #checkout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }

    #checkout > h2 { grid-column: 1 / -1; }
    #checkout > .row-2 { grid-column: 1 / -1; }
    #checkout > .pay-error { grid-column: 1 / -1; }

    /* The address block is one grid item, so it carries its own two columns. */
    #checkout > [data-delivery-block] {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
    }

    #checkout > [data-delivery-block] > h2 { grid-column: 1 / -1; }
    #checkout > [data-delivery-block] > .zone-hint { grid-column: 1 / -1; margin-top: 9px; }
    #checkout .field { margin-top: 14px; }

    .input, .select { padding: 14px 15px; font-size: 14.5px; }

    .summary { margin: 0; padding: 18px; }
    .sum-row { font-size: 13.5px; }
    .pay-wrap { padding: 14px 0 0; }
    .checkout-note { padding: 12px 0 0; }
}

/* ---------- live-data states ---------- */

.notice {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 2px 18px 0;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    font-size: 12px;
    color: var(--ink-2);
}

.notice svg { width: 14px; height: 14px; stroke: var(--accent); flex: none; }

.notice--warn {
    background: var(--tag-req-bg);
    border-color: var(--accent-line);
    color: var(--accent-dark);
}

.notice--warn svg { stroke: var(--accent-dark); }

/* the offline screen is a panel, not a status pill */
.notice--error {
    display: block;
    width: auto;
    margin: 0;
    border-radius: var(--radius);
    color: var(--ink);
    text-align: center;
    padding: 48px 24px;
}

.notice--error .page-title { margin-bottom: 8px; }
.notice--error p { color: var(--ink-2); margin-bottom: 20px; }
.notice--error .cta { display: inline-block; width: auto; padding: 12px 22px; }

.sold-out {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ink-3);
}


/* ==========================================================================
   PWA shell: action bar, connectivity banner, orders screen
   ========================================================================== */

.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    max-width: 430px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 253, 250, .94);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-b);
}

.tab {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 8px 4px 7px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--ink-3);
    transition: color .15s ease, transform .12s ease;
}

.tab svg { width: 21px; height: 21px; stroke: currentColor; }

.tab:active { transform: scale(.93); }

.tab-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 28px;
    border-radius: 99px;
}

.tab[aria-current="page"] { color: var(--accent); }

.tab[aria-current="page"] .tab-mark { background: var(--accent-tint); }

.tab-badge {
    position: absolute;
    top: -2px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.tab-badge--warm { background: var(--violet); }

/* ---------- connectivity banner ---------- */

.offline-bar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.offline-bar.is-on { display: flex; }

.offline-bar svg { width: 14px; height: 14px; stroke: #f0b78c; flex: none; }

/* ---------- checkout extras ---------- */

.textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.4;
}

.field-label .opt-tag {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ink-3);
    background: var(--cream-2);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 99px;
    vertical-align: 1px;
}

.cart-line-body .cart-line-meta {
    font-size: 10.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.pay-error {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #fae7e5;
    border: 1px solid #ecc8c3;
    color: #8f2a27;
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- orders ---------- */

.order-list {
    display: grid;
    gap: 12px;
    padding: 0 18px;
}

.order-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.order-card.is-new {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow);
}

.order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.order-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.1px;
    overflow-wrap: anywhere;
}

.order-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* The order number is what a shopper quotes at the counter, so it leads the card. */
.order-title--ref {
    margin-top: 2px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.order-title--ref + .order-ref { margin-top: 4px; font-size: 12px; color: var(--ink-2); }

.order-ref {
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.order-total {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.order-actions { display: flex; gap: 8px; }

.order-pay,
.order-check {
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
}

.order-pay { background: var(--accent); color: #fff; }

.order-pay:active { background: var(--accent-dark); }

.order-check { border: 1px solid var(--line); color: var(--ink-2); background: var(--cream); }

.order-check:active { border-color: var(--accent-line); color: var(--accent); }

.order-check:disabled { opacity: .6; cursor: progress; }

.pill {
    flex: none;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 5px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.pill--warn { background: var(--tag-req-bg); color: var(--accent); }
.pill--info { background: var(--violet-tint); color: var(--violet); }
.pill--good { background: #e2f0e4; color: #2f7a41; }
.pill--bad { background: #f7e0e0; color: #a3322f; }

/* ---------- live kitchen progress on an order card ---------- */

.order-track {
    display: flex;
    margin: 14px 0 2px;
    padding: 0;
    list-style: none;
}

.order-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* The connector runs from the previous dot to this one. */
.order-step + .order-step::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--line);
}

.order-step.is-done::before,
.order-step.is-now::before { background: var(--accent); }

.order-dot {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: var(--surface);
}

.order-step.is-done .order-dot { border-color: var(--accent); background: var(--accent); }

.order-step.is-now .order-dot {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
}

.order-step-label {
    font-size: 10.5px;
    line-height: 1.25;
    color: var(--ink-3);
    padding: 0 2px;
}

.order-step.is-done .order-step-label { color: var(--ink-2); }
.order-step.is-now .order-step-label { color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
    .order-step.is-now .order-dot { animation: order-pulse 1.8s ease-in-out infinite; }
}

@keyframes order-pulse {
    50% { box-shadow: 0 0 0 7px var(--accent-tint); }
}

.order-card[role="button"] { cursor: pointer; }

.order-card[role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- select, bulk delete and pages ---------- */

.order-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 12px;
}

.order-tools-bulk {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-tool {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2);
}

.order-tool:disabled { opacity: .45; cursor: not-allowed; }

.order-tool[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); }

.order-tool--danger:not(:disabled) { background: #a3322f; border-color: #a3322f; color: #fff; }

.order-select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
}

.order-select-all input,
.order-select input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.order-head-text { flex: 1; min-width: 0; }

.order-select {
    display: flex;
    align-items: center;
    padding-top: 1px;
}

.order-select.is-locked { opacity: .4; cursor: not-allowed; }

.order-card.is-selected {
    border-color: var(--accent-line);
    background: var(--accent-tint);
}

.order-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 18px 4px;
}

.order-pager-label {
    font-size: 12px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

/* ---------- order details sheet ---------- */

.order-sheet {
    width: min(560px, 100%);
    max-width: 100%;
    max-height: 100%;
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 20px 20px 0 0;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 -8px 40px -12px rgba(36, 26, 18, .35);
}

.order-sheet::backdrop { background: rgba(36, 26, 18, .45); }

@media (min-width: 720px) {
    .order-sheet { margin: auto; border-radius: 20px; max-height: 88vh; }
}

@media (prefers-reduced-motion: no-preference) {
    .order-sheet[open] { animation: sheet-up .22s ease-out; }
}

@keyframes sheet-up {
    from { transform: translateY(24px); opacity: 0; }
}

.order-sheet-inner {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.order-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.order-sheet-title {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.order-sheet-body {
    overflow-y: auto;
    padding: 14px 18px calc(22px + var(--safe-b));
}

.order-sheet-loading {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
}

.sheet-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sheet-when { font-size: 12px; color: var(--ink-3); }

.sheet-alert {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7e0e0;
    color: #a3322f;
    font-size: 13px;
}

.sheet-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.sheet-section h3 {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink-3);
}

.sheet-pack {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
}

.sheet-items { margin: 0; padding: 0; list-style: none; }

.sheet-items li { padding: 6px 0; }

.sheet-item-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.sheet-qty { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sheet-price { font-weight: 700; font-variant-numeric: tabular-nums; }

.sheet-extras {
    margin-top: 2px;
    padding-left: 26px;
    font-size: 12px;
    color: var(--ink-2);
}

.sheet-rows { margin: 0; }

.sheet-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 13px;
}

.sheet-row dt { color: var(--ink-2); flex: none; }
.sheet-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.sheet-row.is-total {
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
}

.sheet-row.is-total dt { color: var(--ink); }

.sheet-pay {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    text-align: center;
    font-size: 14px;
}

/* ---------- payment result on return from the bank ---------- */

.pay-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 18px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pay-result-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.pay-mark { width: 20px; height: 20px; stroke: currentColor; }

/* Only the mark for the current state is shown; JS just sets data-state. */
.pay-result .pay-mark,
.pay-result .pay-spin { display: none; }

.pay-result[data-state="checking"] .pay-spin,
.pay-result[data-state="paid"] [data-mark~="paid"],
.pay-result[data-state="settled"] [data-mark~="settled"],
.pay-result[data-state="pending"] [data-mark~="pending"],
.pay-result[data-state="failed"] [data-mark~="failed"],
.pay-result[data-state="unknown"] [data-mark~="unknown"],
.pay-result[data-state="error"] [data-mark~="error"] { display: block; }

.pay-spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: pay-spin .7s linear infinite;
}

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

.pay-result[data-state="paid"] .pay-result-mark,
.pay-result[data-state="settled"] .pay-result-mark { background: #e2f0e4; color: #2f7a41; }

.pay-result[data-state="paid"],
.pay-result[data-state="settled"] { border-color: #c3e2ca; }

.pay-result[data-state="checking"] .pay-result-mark,
.pay-result[data-state="pending"] .pay-result-mark,
.pay-result[data-state="unknown"] .pay-result-mark { background: var(--violet-tint); color: var(--violet); }

.pay-result[data-state="failed"] .pay-result-mark,
.pay-result[data-state="error"] .pay-result-mark { background: #f7e0e0; color: #a3322f; }

.pay-result-body { grid-column: 2; }

.pay-result-title { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }

.pay-result-line { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.pay-result-again {
    grid-column: 2;
    justify-self: start;
    margin-top: 11px;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--cream);
    color: var(--ink-2);
}

.pay-result-again:active { border-color: var(--accent-line); color: var(--accent); }

@media (min-width: 980px) {
    .pay-result { margin: 0 0 18px; padding: 16px 18px; }
}

/* ---------- offline / full-height screens ---------- */

.app-screen {
    min-height: 80vh;
    display: grid;
    place-items: center;
    padding: 24px 18px;
}

.offline-card {
    max-width: 340px;
    display: grid;
    gap: 13px;
    justify-items: center;
    text-align: center;
}

.offline-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--accent-tint);
    color: var(--accent);
    display: grid;
    place-items: center;
}

.offline-mark svg { width: 26px; height: 26px; stroke: currentColor; }

.offline-card .sub { color: var(--ink-2); }

.offline-card .cta { display: inline-block; width: auto; padding: 13px 26px; }

@media (min-width: 980px) {
    /* Float the same three actions as a dock instead of a phone edge-to-edge bar. */
    .tabbar {
        left: 50%;
        right: auto;
        bottom: 20px;
        transform: translateX(-50%);
        max-width: 300px;
        border: 1px solid var(--line);
        border-radius: 20px;
        padding-bottom: 0;
        box-shadow: 0 16px 38px -14px rgba(36, 26, 18, .4);
    }

    .tab { padding: 11px 6px 10px; font-size: 11.5px; }

    .app { padding-bottom: 126px; }

    .toast { bottom: calc(var(--tab-h) + 44px); }

    body:has(.sticky) .toast { bottom: calc(var(--tab-h) + 44px); }

    .order-list {
        padding: 0;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .order-list > .empty { grid-column: 1 / -1; }
}

/* Logo loader */
.splash {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    transition: opacity .35s ease, visibility .35s;
}
.splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { width: 140px; height: auto; animation: splash-pulse 1.2s ease-in-out infinite; }
@keyframes splash-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .75; }
}
@media (prefers-reduced-motion: reduce) { .splash-logo { animation: none; } }

/* Install prompt (mobile only; the script never reveals it elsewhere) */
.install-backdrop {
    position: fixed; inset: 0; z-index: 900;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(36, 26, 18, .55);
}
.install-backdrop[hidden] { display: none; }
.install-card {
    width: 100%; max-width: 340px; padding: 24px 20px 16px;
    background: var(--surface); border-radius: 22px; text-align: center;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
}
.install-logo { width: 84px; height: 84px; border-radius: 18px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.install-card h2 { margin: 14px 0 6px; font-family: var(--serif); font-size: 21px; color: var(--ink); }
.install-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.install-steps { margin: 0 0 14px; padding-left: 20px; text-align: left; color: var(--ink); font-size: 14px; line-height: 1.6; }
.install-steps[hidden] { display: none; }
.install-btn { width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; }
.install-later { width: 100%; margin-top: 4px; padding: 12px; border: 0; background: none; color: var(--ink-3); font: inherit; }
