/*
 * base.css — MenuSpace structural layout
 * Production responsive rebuild
 * Theme files should still handle colors, borders, shadows, and brand visuals.
 */


:root {
    color-scheme: dark;

    /* Core theme contract. Theme files may override any of these. */
    --accent: #d32f2f;
    --bg: #0b0d12;
    --surface: #11141b;
    --card: rgba(255,255,255,.045);
    --card-alt: rgba(255,255,255,.07);
    --border: rgba(255,255,255,.10);
    --border2: rgba(255,255,255,.18);
    --text: #f5f7fb;
    --muted: rgba(245,247,251,.62);
    --muted2: rgba(245,247,251,.36);
    --shadow: 0 12px 34px rgba(0,0,0,.34);
    --radius: 12px;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: var(--font-body);

    /* Shared component variables used by storefront includes. */
    --input-bg: rgba(255,255,255,.055);
    --btn-subtle-bg: rgba(255,255,255,.07);
    --btn-subtle-hover: rgba(255,255,255,.12);
    --overlay-bg: rgba(0,0,0,.62);
    --hero-text: var(--text);
    --hero-border: var(--border);
    --hero-featured-bg: var(--card);
    --hero-ticker-bg: rgba(0,0,0,.24);
    --hero-ticker-color: var(--muted);
    --footer-bg: var(--surface);
    --footer-border: var(--border);
    --footer-text: var(--muted);
    --footer-heading: var(--text);
    --build-header-bg: var(--surface);

    /* Sticky mobile stack sizing. */
    --store-mobile-bar-height: 48px;
    --store-search-height: 53px;
    --store-pill-height: 45px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
svg,
video,
canvas {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

[hidden] { display: none !important; }

/* ── Page wrappers ───────────────────────────────────────────────────── */
.page,
.page-wrap {
    width: min(1100px, calc(100% - 24px));
    margin: 0 auto;
    padding: 0 0 120px;
    max-width: 100%;
}

/* ── Layout: sticky sidebar + scrolling content ──────────────────────── */
.content-wrap {
    display: grid;
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.content-wrap > *,
.menu-content,
.section-block,
.items-list,
.item-row,
.item-content,
.item-action,
.item-add-row {
    min-width: 0;
}

/* ── Sticky section nav sidebar ──────────────────────────────────────── */
.section-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
    overflow: hidden;
}

.sidebar-label {
    padding: 0 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sidebar-link {
    display: block;
    max-width: 100%;
    padding: 9px 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s, background .15s;
}

/* ── Search bar ──────────────────────────────────────────────────────── */
.search-wrap {
    width: 100%;
    max-width: 100%;
    padding: 14px 0 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
}

.search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(1100px, calc(100% - 24px));
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    min-width: 0;
}

.search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 14px 0;
}

.search-clear {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    display: none;
    transition: color .15s;
}
.search-clear.show { display: block; }

/* ── Pill bar — hidden on desktop ────────────────────────────────────── */
.pill-bar {
    display: none;
}

/* ── Menu content ────────────────────────────────────────────────────── */
.menu-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    max-width: 100%;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section-block {
    width: 100%;
    max-width: 100%;
    scroll-margin-top: 88px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    min-width: 0;
}

.section-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.section-line {
    flex: 1 1 auto;
    min-width: 20px;
    height: 1px;
}

.section-count {
    flex: 0 0 auto;
    font-size: 10px;
    white-space: nowrap;
    padding: 1px 7px;
    border-radius: 99px;
}

/* ── Item list ───────────────────────────────────────────────────────── */
.items-list {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ── Item row ────────────────────────────────────────────────────────── */
.item-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 100px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.item-img-wrap {
    position: relative;
    width: 116px;
    height: 100%;
    min-height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    grid-row: 1 / 3;
}

.item-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.item-no-img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.item-content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.item-name {
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.item-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
}

.item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px 14px 8px;
    flex-shrink: 0;
}

.item-price {
    white-space: nowrap;
}

.item-add-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
}

.qty-picker {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.qty-val {
    min-width: 24px;
    text-align: center;
}

.add-btn {
    height: 32px;
    border: 0;
    cursor: pointer;
    padding: 0 14px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.add-btn:disabled { cursor: not-allowed; }
.add-btn.added { background: #00d26a !important; color: #000 !important; }

.customize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    cursor: pointer;
    padding: 0 14px;
    max-width: 100%;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Closed banner ───────────────────────────────────────────────────── */
.closed-banner {
    margin: 16px 0;
    padding: 14px 20px;
    text-align: center;
    font-weight: 600;
}


/* ── Reservations CTA ───────────────────────────────────────────────── */
.reservation-cta-wrap {
    width: min(1120px, calc(100% - 28px));
    margin: 18px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reservation-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}
.reservation-cta:hover { transform: translateY(-1px); }
.reservation-cta.primary {
    background: color-mix(in srgb, var(--accent) 18%, var(--btn-subtle-bg));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 14%, transparent);
}
.reservation-cta.primary:hover { background: color-mix(in srgb, var(--accent) 28%, var(--btn-subtle-hover)); }
.reservation-cta.secondary {
    background: var(--btn-subtle-bg);
    border: 1px solid var(--border2);
    color: var(--muted);
}
.reservation-cta.secondary:hover {
    background: var(--btn-subtle-hover);
    color: var(--text);
}

/* ── No results ──────────────────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 48px 20px;
    display: none;
    font-size: .9rem;
}

/* ── Brand strip ─────────────────────────────────────────────────────── */
.brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.brand-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    min-width: 0;
}

.brand-strip img {
    height: 38px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-strip-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-strip-title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hours-tag {
    max-width: 100%;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-strip-actions {
    display: flex;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.brand-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s;
    border-radius: 999px;
}
.brand-action-btn:hover { opacity: .8; }
.brand-action-btn.locs { background: rgba(255,255,255,.06); color: var(--accent); border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); }
.brand-action-btn.call { background: rgba(0,210,106,.1); color: #00d26a; border: 1px solid rgba(0,210,106,.25); }
.brand-action-btn.nav  { background: rgba(59,139,255,.1); color: #7ab8ff; border: 1px solid rgba(59,139,255,.25); }
.brand-action-btn {
    min-height: 38px;
    border: 1px solid var(--border);
    background: var(--btn-subtle-bg);
    color: var(--text);
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
    transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease;
}
.brand-action-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
    text-decoration: none;
}
.brand-action-btn:active { transform: translateY(0); }
.brand-action-btn.locs {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ── Food truck widget ───────────────────────────────────────────────── */
.ft-wrap {
    width: min(900px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px 0;
    overflow: hidden;
}

.ft-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.ft-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    min-width: 0;
}

.ft-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 220px;
}

.ft-icon {
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.ft-title {
    font-weight: 800;
    font-size: .95rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ft-address {
    font-size: .75rem;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.ft-status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
}

.ft-map {
    height: 280px;
    width: 100%;
    max-width: 100%;
    display: block;
}

.ft-no-loc {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    padding: 18px;
    text-align: center;
}

.ft-distance-bar {
    padding: 10px 16px;
    font-size: .82rem;
    text-align: center;
    border-top: 1px solid;
}

.ft-actions {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid;
    min-width: 0;
}

.ft-btn-locate,
.ft-btn-navigate {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px;
    border-radius: 8px;
    font-size: .85rem;
    text-align: center;
}

.ft-btn-locate {
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s;
}
.ft-btn-locate:hover { opacity: .85; }

.ft-btn-navigate {
    font-weight: 700;
    text-decoration: none;
    display: block;
    border: 1px solid;
    transition: opacity .15s;
}
.ft-btn-navigate:hover { opacity: .8; }

.ft-manual {
    padding: 12px 16px;
    border-top: 1px solid;
}

.ft-manual-row {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.ft-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: .88rem;
    outline: none;
    border: 1px solid;
}

.ft-go-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.ft-addr-err {
    font-size: .75rem;
    margin-top: 6px;
    color: #f87171;
}

/* ── Mobile store header ─────────────────────────────────────────────── */
.store-mobile-bar {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--store-mobile-bar-height);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 60;
    overflow: hidden;
    background: var(--bg);
}

.store-mobile-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.store-mobile-title {
    min-width: 0;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════ */

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    backdrop-filter: blur(6px);
    margin-bottom: 16px;
}

.hero-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1100px, 100%);
    max-width: 100%;
    margin: 0 auto;
    padding: 32px clamp(16px, 4vw, 24px);
    min-width: 0;
}

.hero-text-block {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.hero-announcement {
    max-width: 100%;
    font-size: clamp(1.1rem, 3.5vw, 1.9rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--hero-text, var(--text));
    overflow-wrap: anywhere;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 11px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-cta:hover  { opacity: .88; }
.hero-cta:active { transform: scale(.97); }

.hero-content-image {
    flex: 0 0 auto;
    width: clamp(120px, 26%, 240px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.hero-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/3;
}

.hero-featured {
    flex: 0 0 auto;
    width: clamp(200px, 28%, 280px);
    background: var(--hero-featured-bg);
    border: 1px solid var(--hero-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-featured-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.hero-featured-img-ph {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--card-alt, rgba(255,255,255,.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--muted2, rgba(255,255,255,.28));
}

.hero-featured-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.hero-featured-name {
    font-weight: 800;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hero-featured-desc {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.hero-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-width: 0;
}

.hero-featured-price {
    font-weight: 900;
    font-size: 1rem;
    color: var(--accent);
    white-space: nowrap;
}

.hero-featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 6px 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s, transform .1s;
}
.hero-featured-btn:hover  { opacity: .88; }
.hero-featured-btn:active { transform: scale(.96); }

.hero-carousel {
    position: relative;
    flex: 0 0 auto;
    width: clamp(160px, 28%, 260px);
    min-width: 0;
    max-width: 100%;
}

.hero-carousel .hero-featured {
    display: none;
    width: 100%;
}
.hero-carousel .hero-featured.active { display: flex; }

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s;
}
.carousel-prev:hover,
.carousel-next:hover { background: rgba(0,0,0,.8); }
.carousel-prev { left: -13px; }
.carousel-next { right: -13px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 7px 0 4px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    cursor: pointer;
    transition: background .2s;
}
.carousel-dot.active { background: var(--accent); }

.hero-ticker-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: var(--hero-ticker-bg);
    border-top: 1px solid var(--hero-border);
    padding: 9px 0;
}

.hero-ticker {
    display: flex;
    width: max-content;
    max-width: none;
    animation: hero-scroll 28s linear infinite;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 600;
    color: var(--hero-ticker-color);
    gap: 80px;
    will-change: transform;
}
.hero-ticker:hover { animation-play-state: paused; }

@keyframes hero-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Item view modal ─────────────────────────────────────────────────── */
.item-img-wrap {
    cursor: pointer;
}

.item-zoom-btn {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, transform .15s, opacity .15s;
}
.item-img-wrap:hover .item-zoom-btn { background: rgba(0,0,0,.82); }
.item-zoom-btn:active { transform: scale(.96); }

body.item-modal-open {
    overflow: hidden;
    touch-action: none;
}

.item-view-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.item-view-modal.open { display: flex; }

.item-view-backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg, rgba(0,0,0,.72));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.item-view-dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(86vh, 760px);
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, .9fr);
    overflow: hidden;
    outline: none;
    background: var(--surface, #111);
    border: 1px solid var(--border2, rgba(255,255,255,.16));
    border-radius: calc(var(--radius, 14px) + 4px);
    box-shadow: 0 28px 90px rgba(0,0,0,.56);
    animation: itemModalIn .18s ease both;
}

@keyframes itemModalIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.item-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(0,0,0,.48);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}
.item-view-close:hover { background: rgba(0,0,0,.72); }

.item-view-media {
    position: relative;
    min-height: 360px;
    background: var(--card-alt, rgba(255,255,255,.05));
    overflow: hidden;
}
.item-view-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}
.item-view-no-img {
    min-height: 360px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--muted2, rgba(255,255,255,.28));
}

.item-view-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    min-width: 0;
    overflow-y: auto;
}
.item-view-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.item-view-name {
    color: var(--text, #fff);
    font-family: var(--font-display, inherit);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.item-view-desc {
    color: var(--muted, rgba(255,255,255,.68));
    font-size: .95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.item-view-price {
    color: var(--accent, #d32f2f);
    font-family: var(--font-display, inherit);
    font-size: 1.25rem;
    font-weight: 900;
}
.item-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.item-view-customize {
    min-height: 42px;
    height: auto;
    padding: 0 18px;
}
.item-view-add {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.item-view-add[hidden],
.item-view-customize[hidden],
.item-view-desc[hidden],
.item-view-badges[hidden],
#itemViewImg[hidden],
#itemViewNoImg[hidden] {
    display: none !important;
}
.item-view-add-btn {
    min-height: 42px;
    height: 42px;
    padding: 0 18px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ── Tablet / mobile layout ──────────────────────────────────────────── */
@media (max-width: 800px) {
    body {
        background-attachment: scroll !important;
    }

    .item-view-modal {
        align-items: flex-end;
        padding: 0;
    }

    .item-view-dialog {
        width: 100%;
        max-height: 88vh;
        grid-template-columns: 1fr;
        border-radius: 18px 18px 0 0;
        animation: slideUp .2s ease both;
    }

    .item-view-media,
    .item-view-media img,
    .item-view-no-img {
        min-height: 240px;
        max-height: 42vh;
    }

    .item-view-body {
        padding: 20px 16px 24px;
    }

    .item-view-actions,
    .item-view-add {
        width: 100%;
    }

    .item-view-customize,
    .item-view-add-btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .page,
    .page-wrap {
        width: 100%;
        padding: 0 0 120px;
    }

    .content-wrap {
        display: block;
        width: 100%;
        padding-top: 0;
    }

    .section-sidebar {
        display: none;
    }

    .store-mobile-bar {
        display: flex;
    }

    .search-wrap {
        min-height: var(--store-search-height);
        padding: 0;
        margin: 0;
        top: var(--store-mobile-bar-height);
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .search-inner {
        width: 100%;
        padding: 0 14px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .pill-bar {
        display: flex;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-height: var(--store-pill-height);
        position: sticky;
        top: calc(var(--store-mobile-bar-height) + var(--store-search-height));
        z-index: 40;
        flex-shrink: 0;
        background: var(--bg);
    }
    .pill-bar::-webkit-scrollbar { display: none; }

    .pill-tab {
        flex: 0 0 auto;
        padding: 5px 14px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .menu-content {
        gap: 0;
    }

    .section-block {
        scroll-margin-top: calc(var(--store-mobile-bar-height) + var(--store-search-height) + var(--store-pill-height) + 12px);
    }

    .section-header {
        padding: 12px 16px 8px;
        margin-bottom: 0;
    }

    .section-title {
        font-size: 1rem;
        font-weight: 700;
    }

    .section-line,
    .section-count {
        display: none;
    }

    .items-list {
        border: none;
        border-radius: 0;
    }

    .item-row {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 90px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .item-row:last-child { border-bottom: none; }

    .item-img-wrap {
        width: 90px;
        min-height: 90px;
        grid-row: 1 / 3;
        border-radius: 0;
    }

    .item-no-img {
        min-height: 90px;
    }

    .item-content {
        grid-column: 2;
        grid-row: 1;
        padding: 12px 14px 4px;
    }

    .item-action {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 6px 14px 14px;
        width: 100%;
        max-width: 100%;
    }

    .item-add-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .item-name {
        font-size: .92rem;
        white-space: normal;
        font-weight: 600;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    .item-desc {
        font-size: .78rem;
    }

    .item-badges {
        gap: 4px;
    }

    .item-badge {
        font-size: .65rem;
        padding: 1px 6px;
    }

    .add-btn {
        height: 34px;
        padding: 0 16px;
        font-size: 12px;
    }

    .customize-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .qty-val {
        min-width: 22px;
        font-size: 13px;
    }

    .closed-banner {
        border-radius: 0;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .no-results {
        padding: 40px 16px;
    }

    .reservation-cta-wrap {
        width: min(100% - 20px, 1120px);
        margin-top: 12px;
        align-items: stretch;
    }

    .reservation-cta {
        width: 100%;
    }

    .brand-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .brand-strip-left {
        flex: 1 1 auto;
        width: 100%;
    }

    .brand-strip img {
        height: 42px;
    }

    .brand-strip-title {
        font-size: 17px;
    }

    .brand-strip-actions {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
        flex-wrap: wrap;
    }

    .brand-action-btn {
        flex: 1 1 0;
        padding: 10px 12px;
        font-size: 14px;
    }

    .hours-tag {
        font-size: 12px;
        padding: 4px 9px;
    }

    .ft-wrap {
        padding: 16px 12px 0;
    }

    .ft-actions,
    .ft-manual-row {
        flex-wrap: wrap;
    }

    .ft-btn-locate,
    .ft-btn-navigate,
    .ft-input,
    .ft-go-btn {
        flex: 1 1 100%;
    }

    .hero-banner-inner {
        flex-direction: column !important;
        align-items: stretch;
        gap: 16px;
        padding: 20px 16px;
    }

    .hero-text-block {
        width: 100%;
    }

    .hero-content-image,
    .hero-featured,
    .hero-carousel {
        width: 100% !important;
        max-width: 100%;
    }

    .hero-featured-img,
    .hero-featured-img-ph {
        aspect-ratio: 16 / 7;
    }

    .hero-announcement {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .hero-cta {
        width: fit-content;
        max-width: 100%;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* ── Small phones ────────────────────────────────────────────────────── */
@media (max-width: 380px) {
    .item-row {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .item-img-wrap,
    .item-no-img {
        width: 82px;
        min-height: 86px;
    }

    .item-content {
        padding: 10px 10px 3px;
    }

    .item-action {
        gap: 8px;
        padding: 5px 10px 12px;
    }

    .item-price {
        font-size: .88rem;
    }

    .add-btn,
    .customize-btn {
        padding: 0 10px;
    }

    .qty-btn {
        width: 28px;
    }

    .qty-val {
        min-width: 20px;
    }

    .brand-action-btn {
        flex-basis: 100%;
    }
}

/* ── Mobile scroll stability patch ───────────────────────────────────── */
@media (max-width: 800px) {
    html {
        scroll-behavior: auto;
    }

    body {
        overscroll-behavior-y: auto;
        touch-action: pan-y;
    }

    .pill-bar {
        overscroll-behavior-x: contain;
        scroll-behavior: auto;
        touch-action: pan-x pan-y;
    }
}