/* =========================================================================
   Public menu (guest-facing, opened from the table QR code)
   Neutral greys so any restaurant's brand colour sits well on top.
   --brand / --brand-2 / --on-brand are injected per branch in the view.
   ========================================================================= */

.menu-page {
    --bg: #F4F4F2;
    --bg-2: #EAEAE7;
    --surface: #FDFDFC;
    --ink: #161616;
    --ink-2: #4A4A47;
    --ink-3: #6B6B67;
    --line: #DEDEDA;
    /* Readable shades of the brand colours, computed per branch for contrast (BrandTheme). */
    --brand-ink: var(--brand-ink-light, color-mix(in oklab, var(--brand) 70%, #000));
    --accent-ink: var(--accent-ink-light, var(--brand-ink));
    --brand-soft: color-mix(in oklab, var(--brand) 14%, var(--surface));
    background: var(--bg);
    color: var(--ink);
    color-scheme: light;
}
/* Dark: the guest's phone setting, unless the restaurant chose Always light / Always dark. */
@media (prefers-color-scheme: dark) {
    .menu-page:not(.theme-light) {
        --bg: #0F0F10;
        --bg-2: #18181A;
        --surface: #1C1C1F;
        --ink: #F1F1EF;
        --ink-2: #BDBDB8;
        --ink-3: #93938E;
        --line: #2C2C30;
        --brand-ink: var(--brand-ink-dark, color-mix(in oklab, var(--brand) 72%, #fff));
        --accent-ink: var(--accent-ink-dark, var(--brand-ink));
        --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface));
        color-scheme: dark;
    }
}
.menu-page.theme-dark {
    --bg: #0F0F10;
    --bg-2: #18181A;
    --surface: #1C1C1F;
    --ink: #F1F1EF;
    --ink-2: #BDBDB8;
    --ink-3: #93938E;
    --line: #2C2C30;
    --brand-ink: var(--brand-ink-dark, color-mix(in oklab, var(--brand) 72%, #fff));
    --accent-ink: var(--accent-ink-dark, var(--brand-ink));
    --brand-soft: color-mix(in oklab, var(--brand) 22%, var(--surface));
    color-scheme: dark;
}

.menu-page h1, .menu-page h2, .menu-page p { margin: 0; }
.menu-page a { color: inherit; }

/* ---------- Hero ---------- */
.m-hero {
    position: relative;
    min-height: min(58svh, 460px);
    display: flex;
    align-items: flex-end;
    padding: 72px 20px 28px;
    color: var(--hero-ink, #fff); /* white on photos; black or white on colour; ink when minimal */
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.m-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.m-hero-scrim {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .05) 35%, rgb(0 0 0 / .78) 100%);
}
/* Header styles (Branch Edit → Brand). Colour: no darkening, the text colour is chosen
   against the gradient itself. Minimal: compact, on the page background. */
.m-hero--colour .m-hero-scrim { background: radial-gradient(circle at 85% 10%, rgb(255 255 255 / .18), transparent 45%); }
.m-hero--minimal { min-height: 0; padding: 72px 20px 22px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.m-hero--minimal .m-hero-scrim { display: none; }
.m-hero--minimal .m-logo { width: 60px; height: 60px; }
.m-hero--colour .m-lang summary, .m-hero--minimal .m-lang summary {
    background: color-mix(in srgb, currentColor 10%, transparent);
    border-color: color-mix(in srgb, currentColor 24%, transparent);
}
.m-hero-content { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.m-logo {
    width: 76px; height: 76px;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 10px 30px rgb(0 0 0 / .3);
}
.m-logo--initial {
    display: grid; place-items: center;
    background: var(--brand); color: var(--on-brand);
    font: 700 36px/1 var(--font-display);
}
.m-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 9vw, 64px);
    line-height: .98;
    letter-spacing: -.04em;
    text-wrap: balance;
}
/* "Table 14", from the QR code's ?t= */
.m-table {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: -4px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 600; font-size: 15px;
    box-shadow: 0 2px 10px rgb(0 0 0 / .25);
}
/* "Book a table": a light pill with brand-coloured text, readable on photo, colour and minimal headers. */
.m-book {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border-radius: var(--r-pill);
    background: var(--surface); color: var(--brand-ink) !important;
    font-weight: 700; font-size: 15px; text-decoration: none;
    box-shadow: 0 2px 10px rgb(0 0 0 / .2);
}
.m-book i { font-size: 18px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.m-meta a {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, currentColor 14%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    text-decoration: none;
    max-width: 100%;
}
.m-meta a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-meta a:hover { background: color-mix(in srgb, currentColor 24%, transparent); }

/* Opening hours chip: expands in place (the hero clips anything floating over it). */
.m-hours { max-width: 100%; }
.m-hours[open] { flex-basis: 100%; }
.m-hours-chip {
    list-style: none;
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, currentColor 14%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
}
.m-hours-chip::-webkit-details-marker { display: none; }
.m-hours-chip:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
.m-hours-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.m-hours-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgb(0 0 0 / .25); }
.m-hours-chip.is-open .m-hours-dot { background: #4ADE80; }
.m-hours-chip.is-closed .m-hours-dot { background: #F87171; }
.m-hours-caret { font-size: 12px; transition: transform .2s var(--ease-out); }
.m-hours[open] .m-hours-caret { transform: rotate(180deg); }
.m-hours-panel {
    width: min(100%, 340px);
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: rgb(0 0 0 / .45);
    border: 1px solid rgb(255 255 255 / .18);
    color: #fff; /* always a dark panel, whatever the header style */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.m-hours-panel h2 { margin: 0 0 6px; font: 600 13px/1.2 var(--font-body); color: rgb(255 255 255 / .75); }
.m-hours-panel ul { list-style: none; margin: 0; padding: 0; }
.m-hours-panel li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; }
.m-hours-panel li span:first-child { display: inline-block; }
.m-hours-panel li span:first-child::first-letter { text-transform: uppercase; } /* "e hënë" -> "E hënë", not "E Hënë" */
.m-hours-panel li span:last-child { text-align: right; }
.m-hours-panel li.is-today { font-weight: 700; }

/* Language switcher */
.m-lang { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; }
.m-lang summary {
    list-style: none;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: rgb(0 0 0 / .35);
    border: 1px solid rgb(255 255 255 / .28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font: 600 13px/1 var(--font-mono);
    cursor: pointer;
}
.m-lang summary::-webkit-details-marker { display: none; }
.m-lang-caret { transition: transform .2s ease; }
.m-lang[open] .m-lang-caret { transform: rotate(180deg); }
.m-lang-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 180px;
    margin: 0; padding: 6px;
    list-style: none;
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.m-lang-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-size: 15px;
}
.m-lang-list a:hover { background: var(--bg-2); }
.m-lang-list a[aria-current] { color: var(--brand-ink); font-weight: 600; }

/* ---------- Category bar ---------- */
.m-cats {
    position: sticky; top: 0; z-index: var(--z-sticky);
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid var(--line);
}
.m-cats-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 0; }
.m-cats-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 6px;
    overflow-x: auto;
    padding: 0 8px 0 16px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
}
.m-cats-scroll::-webkit-scrollbar { display: none; }
.m-chip {
    flex: none;
    scroll-snap-align: center;
    padding: 9px 15px;
    border-radius: var(--r-pill);
    color: var(--ink-2);
    font-size: 14.5px; font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease;
}
.m-chip:hover { background: var(--bg-2); color: var(--ink); }
.m-chip.is-active { background: var(--brand); color: var(--on-brand); }
.m-icon-btn {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
}
.m-icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-icon-btn { position: relative; }
.m-icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    border-radius: var(--r-pill);
    background: var(--brand); color: var(--on-brand);
    font: 600 11px/1 var(--font-body);
    box-shadow: 0 0 0 2px var(--surface);
}
.m-badge[hidden] { display: none; }
.m-search { max-width: 900px; margin: 0 auto; padding: 0 16px 12px; position: relative; }
.m-search i { position: absolute; left: 30px; top: 13px; color: var(--ink-3); font-size: 18px; }
.m-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--ink);
    font: 16px var(--font-body);
}
.m-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Categories & items ---------- */
.m-main { max-width: 900px; margin: 0 auto; padding: 8px 16px 140px; }
.m-cat { padding-top: 36px; scroll-margin-top: 72px; }
.m-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 14px; }
.m-cat-head h2 { font-family: var(--font-display); font-size: 28px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.m-cat-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.m-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-item { position: relative; }
.m-item-open {
    width: 100%;
    display: flex; align-items: stretch; gap: 14px;
    padding: 16px 56px 16px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color .2s ease, transform .2s var(--ease-out);
}
.m-item.has-img .m-item-open { padding-right: 16px; }
.m-item-open:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); }
.m-item-open:active { transform: scale(.99); }
.m-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.m-item-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; }
.m-item-desc {
    font-size: 14px; color: var(--ink-2); line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-item-nutri { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }

/* Dietary tags and declared allergens */
.m-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.m-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: var(--bg-2);
    color: var(--ink-2);
    font-size: 12px; font-weight: 600;
}
.m-tag .ph { font-size: 13px; }
.m-tag--vegan, .m-tag--vegetarian { background: color-mix(in oklab, #2f8f4e 14%, var(--surface)); color: color-mix(in oklab, #2f8f4e 75%, var(--ink)); }
.m-tag--spicy { background: color-mix(in oklab, #d4421f 14%, var(--surface)); color: color-mix(in oklab, #d4421f 75%, var(--ink)); }
.m-item-allergens { font-size: 12.5px; color: var(--ink-3); }

/* Active filter summary above the dishes */
.m-filterbar {
    display: flex; align-items: center; gap: 8px;
    margin-top: 20px;
    padding: 10px 12px 10px 14px;
    border-radius: var(--r-md);
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: 14px; font-weight: 500;
}
.m-filterbar[hidden] { display: none; }
.m-filterbar span { flex: 1; min-width: 0; }
.m-filterbar-clear {
    flex: none;
    padding: 6px 12px;
    border: 0; border-radius: var(--r-pill);
    background: var(--surface); color: var(--ink);
    font: 600 13px/1 var(--font-body);
    cursor: pointer;
}

/* Filter sheet */
.m-filter-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.m-filter-group legend { float: none; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.m-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.m-filter-chip span {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 14.5px; font-weight: 500;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}
.m-filter-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-filter-chip--avoid input:checked + span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.m-filter-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.m-filter-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); }
.m-filter-note .ph { margin-top: 2px; flex: none; }
.m-filter-note--warn { color: var(--brand-ink); }
.m-filter-note[hidden] { display: none; }
.m-item-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.m-item-price { font: 500 15px/1 var(--font-mono); color: var(--brand-ink); }
.m-item-img { width: 104px; height: 104px; flex: none; border-radius: 14px; object-fit: cover; background: var(--bg-2); }

.m-save {
    position: absolute;
    right: 12px; bottom: 12px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: var(--shadow-sm);
    transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-out);
}
.m-item.has-img .m-save { right: 18px; bottom: 18px; }
.m-save:active { transform: scale(.9); }
.m-save[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.m-save.is-pop { animation: pop .35s var(--ease-out); }
@keyframes pop { 50% { transform: scale(1.18); } }

/* Sold out: still listed (unless the restaurant hides them), muted, no + button. */
.m-soldout {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--bg);
    font: 600 11.5px/1.3 var(--font-body);
    white-space: nowrap;
}
.m-soldout--lg { padding: 7px 14px; font-size: 14px; }
.m-soldout[hidden] { display: none; }
.m-item.is-soldout .m-item-open { padding-right: 16px; }
.m-item.is-soldout .m-item-name { color: var(--ink-2); }
.m-item.is-soldout .m-item-price { color: var(--ink-3); }
.m-item.is-soldout .m-item-img { filter: grayscale(1); opacity: .6; }

.m-item[hidden], .m-cat[hidden] { display: none; }

/* Recommended row: horizontal scroll-snap cards with large photos, bleeding to the screen edge. */
.m-featured { padding-top: 28px; }
.m-featured[hidden] { display: none; }
.m-featured h2 { padding: 0 4px 12px; font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.m-featured-scroll {
    list-style: none;
    display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 250px); gap: 12px;
    margin: 0 -16px; padding: 2px 16px 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    scrollbar-width: thin;
}
.m-featured-scroll li { scroll-snap-align: start; min-width: 0; }
.m-feature {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    padding: 0;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--surface); color: inherit;
    overflow: hidden;
    text-align: left; font: inherit;
    cursor: pointer; touch-action: manipulation;
    transition: border-color .2s ease, transform .2s var(--ease-out);
}
.m-feature:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); }
.m-feature:active { transform: scale(.985); }
.m-feature:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.m-feature-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-2); }
.m-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-feature-ph {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: var(--on-brand);
    font: 700 48px/1 var(--font-display);
}
.m-feature-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--brand-3); color: var(--on-brand-3);
    font-size: 12px; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.m-feature-text { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; }
.m-feature-name { font-weight: 600; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-feature-price { font: 500 14px/1 var(--font-mono); color: var(--brand-ink); }
@media (min-width: 720px) { .m-featured-scroll { grid-auto-columns: 240px; } }

/* Badge on a dish ("Chef's pick") */
.m-item-badge {
    align-self: flex-start;
    display: inline-flex; align-items: center;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    /* --accent-ink reaches 4.5:1 on the plain surface; on this tint it is pulled a little towards
       the ink so the small text keeps that contrast in light and dark themes. */
    background: color-mix(in oklab, var(--brand-3) 10%, var(--surface)); color: color-mix(in oklab, var(--accent-ink) 72%, var(--ink));
    font-size: 12px; font-weight: 700;
}
.m-item-badge[hidden] { display: none; }

/* Time-based categories: a note under the title; greyed while not served. */
.m-cat-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -6px 4px 14px; font-size: 14px; color: var(--ink-2); }
.m-cat-note .ph { color: var(--ink-3); }
.m-cat-note strong { color: var(--ink); font-weight: 600; }
.m-cat.is-later .m-item-open { background: color-mix(in oklab, var(--surface) 55%, var(--bg)); }
.m-cat.is-later .m-item-name, .m-cat.is-later .m-item-price { color: var(--ink-3); }
.m-cat.is-later .m-item-img { filter: grayscale(.85); opacity: .7; }
.m-cat.is-later .m-item-open { padding-right: 16px; }
.m-chip--later { opacity: .6; }
.m-noresults { text-align: center; color: var(--ink-3); padding: 48px 0 0; }

.m-empty { text-align: center; padding: 96px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m-empty i { font-size: 48px; color: var(--brand-ink); }
.m-empty h2 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.03em; }
.m-empty p { color: var(--ink-2); }

@media (min-width: 760px) {
    .m-hero { padding: 96px 32px 40px; }
    .m-items { grid-template-columns: 1fr 1fr; }
    .m-main { padding-left: 24px; padding-right: 24px; }
}

/* ---------- Footer ---------- */
.m-footer {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 40px 20px calc(110px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 14px;
}
.m-powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); }
.m-powered .brand-mark { color: var(--ink); }

/* ---------- Floating list button ---------- */
.m-fab {
    position: fixed;
    left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
    z-index: var(--z-overlay);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 8px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: var(--bg);
    font: 600 15px/1 var(--font-body);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transform: translateX(-50%);
    animation: fab-in .45s var(--ease-out);
}
.m-fab[hidden] { display: none; }
.m-fab-count {
    min-width: 32px; height: 32px;
    display: grid; place-items: center;
    padding: 0 8px;
    border-radius: var(--r-pill);
    background: var(--brand); color: var(--on-brand);
    font-family: var(--font-mono);
}
.m-fab-total { font-family: var(--font-mono); font-weight: 500; opacity: .75; }
@keyframes fab-in { from { opacity: 0; transform: translate(-50%, 24px); } }

/* ---------- Bottom sheets (native <dialog>) ---------- */
.m-sheet {
    width: min(560px, 100%);
    max-width: 100%;
    max-height: min(88svh, 760px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--surface);
    color: var(--ink);
    overflow: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
}
.m-sheet[open] { animation: sheet-in .4s var(--ease-out); }
.m-sheet::backdrop { background: rgb(0 0 0 / .5); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
    .m-sheet { margin: auto; border-radius: var(--r-lg); }
}
.m-sheet-grip { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: var(--line); }
.m-sheet-close {
    position: sticky; top: 10px; float: right;
    margin: 0 12px -50px 0;
    z-index: 1;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: color-mix(in oklab, var(--surface) 80%, transparent);
    backdrop-filter: blur(8px);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}
.m-dish-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 10px; }
.m-dish-img[hidden] { display: none; } /* a global img { display: block } would otherwise leave an empty box */
.m-sheet-body { padding: 20px 22px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.m-sheet-body h2, .m-sheet-body .m-sheet-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; padding-right: 44px; margin: 0; }
.m-dish-desc { color: var(--ink-2); font-size: 15.5px; }
.m-dish-nutri { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 14px; }
.m-dish-nutri span { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.m-dish-tags[hidden] { display: none; }

/* Option groups in the dish sheet */
.m-dish-opts { display: flex; flex-direction: column; gap: 14px; }
.m-dish-opts[hidden], .m-dish-opts-error[hidden] { display: none; }
.m-opt-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.m-opt-group legend { float: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 6px; font-weight: 600; font-size: 15.5px; }
.m-opt-rule { font-size: 12.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.m-opt {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}
.m-opt + .m-opt { margin-top: 6px; }
.m-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.m-opt:has(input:disabled:not(:checked)) { opacity: .5; cursor: not-allowed; }
.m-opt input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--brand); }
.m-opt-name { flex: 1; min-width: 0; font-size: 15px; }
.m-opt-price { font: 500 14px/1 var(--font-mono); color: var(--ink-2); }
.m-dish-opts-error { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in oklab, #d4421f 14%, var(--surface)); color: color-mix(in oklab, #d4421f 80%, var(--ink)); font-size: 14px; font-weight: 600; }
.m-dish-allergens { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: 14px; }
.m-dish-allergens span { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.m-dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.m-dish-price { font: 500 22px/1 var(--font-mono); color: var(--brand-ink); }

.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font: 600 15px/1 var(--font-body);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .2s var(--ease-out), background-color .2s ease;
}
.m-btn:active { transform: scale(.98); }
.m-btn[hidden] { display: none; }
.m-btn--brand { background: var(--brand); color: var(--on-brand); }
.m-btn--brand[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.m-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }

.m-list-table {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-weight: 600; font-size: 14px;
}
.m-list-hint { color: var(--ink-3); font-size: 14px; }
.m-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.m-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-list li:last-child { border-bottom: 0; }
.m-list li.is-soldout .m-list-name { color: var(--ink-3); }
.m-list li.is-soldout .m-soldout { margin-top: 4px; }
.m-list-name { flex: 1; min-width: 0; font-weight: 600; }
.m-list-name small { display: block; font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); }
.m-list-name small.m-list-opts { font: 400 13px/1.4 var(--font-body); color: var(--ink-2); }
.m-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.m-qty button {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0; background: none; color: var(--ink);
    font-size: 16px; cursor: pointer; border-radius: 50%;
}
.m-qty span { min-width: 22px; text-align: center; font: 500 15px/1 var(--font-mono); }
.m-list-empty { text-align: center; color: var(--ink-3); padding: 28px 0 8px; border: 0 !important; display: block !important; }
.m-list-foot { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.m-list-foot[hidden] { display: none; } /* an empty list has no total to show */
.m-list-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.m-list-total strong { font: 600 20px/1 var(--font-mono); }

/* ---------- Table ordering (list sheet) ---------- */
.m-btn--block { width: 100%; min-height: 52px; font-size: 16px; }
.m-btn:disabled { opacity: .6; cursor: progress; }
.m-order-note { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.m-order-note textarea {
    width: 100%; resize: vertical; min-height: 48px;
    padding: 10px 12px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    font: 400 16px/1.4 var(--font-body); /* 16px: no zoom on iPhone */
}
.m-order-note textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.m-order-error, .m-order-off {
    margin: 0; padding: 10px 12px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 600;
}
.m-order-error { background: color-mix(in oklab, #d4421f 14%, var(--surface)); color: color-mix(in oklab, #d4421f 80%, var(--ink)); }
.m-order-error[hidden] { display: none; }
.m-order-off { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-2); color: var(--ink-2); }
.m-order-off i { font-size: 18px; margin-top: 1px; }

.m-order-done { text-align: center; padding: 8px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m-order-done[hidden] { display: none; }
.m-order-done > i { font-size: 52px; color: color-mix(in oklab, #1f8a4c 85%, var(--ink)); }
.m-order-done h3 { margin: 0; font: 700 22px/1.2 var(--font-display); }
.m-order-done p { margin: 0 0 8px; color: var(--ink-2); }

.m-orders { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-2); }
.m-orders[hidden] { display: none; }
.m-orders h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.m-orders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-orders li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.m-orders li > div { flex: 1; min-width: 0; }
.m-orders li strong { display: block; font-weight: 700; }
.m-orders li small { display: block; color: var(--ink-3); font: 400 13px/1.3 var(--font-mono); }
.m-order-status {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 700;
    background: var(--brand-soft); color: var(--brand-ink);
}
.m-order-status--preparing { background: color-mix(in oklab, #c27c0e 16%, var(--surface)); color: color-mix(in oklab, #a86500 80%, var(--ink)); }
.m-order-status--served { background: color-mix(in oklab, #1f8a4c 14%, var(--surface)); color: color-mix(in oklab, #1f7a45 82%, var(--ink)); }
.m-order-status--cancelled { background: var(--surface); color: var(--ink-3); }

/* ---------- Guest feedback (above the footer) ---------- */
.m-rate { margin: 8px 16px 0; padding: 22px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m-rate h2 { font: 700 18px/1.2 var(--font-display); }
.m-rate-stars { display: flex; gap: 6px; justify-content: center; }
.m-star {
    width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: transparent; cursor: pointer;
    color: color-mix(in oklab, var(--ink-3) 45%, var(--surface)); font-size: 30px;
    transition: transform .15s var(--ease-out), color .1s ease;
}
.m-star:hover, .m-star.is-on { color: #E8A317; }
.m-star:active { transform: scale(.9); }
.m-star:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.m-rate-stars--sheet { margin-bottom: 4px; }
.m-rate-done { margin: 0; display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 600; }
.m-rate-done[hidden], .m-rate-stars[hidden], .m-rate h2[hidden], [data-rate-private][hidden] { display: none; } /* display rules above would beat [hidden] */
.m-rate-done i { color: #d6455d; }
[data-rate-form] { display: flex; flex-direction: column; gap: 12px; }
[data-rate-form] h2 { text-align: center; font: 700 20px/1.25 var(--font-display); }
[data-rate-private] { text-align: center; }
.m-order-note input { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--font-body); }
.m-order-note small { font-weight: 400; color: var(--ink-3); }
.m-order-note[hidden], [data-rate-thanks][hidden], [data-rate-form][hidden] { display: none; }
.m-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Links styled as buttons keep the button's colours (".menu-page a" inherits colour). */
.menu-page a.m-btn { text-decoration: none; }
.menu-page a.m-btn--brand { color: var(--on-brand); }
[data-rate-thanks] > i { color: #d6455d; }
[data-rate-thanks] .m-btn { width: 100%; }

/* ---------- Offline (saved copy) ---------- */
.m-offline {
    position: sticky; top: 0; z-index: 40;
    display: flex; gap: 8px; align-items: flex-start;
    margin: 0; padding: 10px 16px;
    background: #2B2B2E; color: #F4F4F2; font-size: 14px; line-height: 1.4;
}
.m-offline[hidden] { display: none; }
.m-offline i { font-size: 18px; margin-top: 1px; flex: none; }

@media print {
    .m-cats, .m-fab, .m-save, .m-lang, .m-sheet, .m-filterbar, .m-featured, .m-rate, .m-offline { display: none !important; }
    .m-hero { min-height: 0; color: #000; background: none; }
    .m-hero-img, .m-hero-scrim { display: none; }
    .m-item-open { border: 0; padding: 8px 0; }
    .m-items { grid-template-columns: 1fr; }
}

/* What and where, under the name ("Italian restaurant · Durrës"). */
.m-kind { margin: 2px 0 0; font-size: 14px; font-weight: 500; opacity: .85; color: var(--hero-ink, inherit); }
