/* Storefront browsing layer: sticky categories, fulfilment choice, product
   details, mobile cart bar and quick help. Pairs with menu-experience.js. */
:root {
  --gb-header-h: 72px;
  --gb-tabs-h: 58px;
  --gb-bar-h: 0px;
  --gb-sticky: calc(var(--gb-header-h) + var(--gb-tabs-h) + 12px);
}
html { scroll-padding-top: var(--gb-sticky); }
html.has-cart-bar { scroll-padding-bottom: calc(var(--gb-bar-h) + 12px); }

/* ---- Header: Profile link belongs with the other links ---- */
.nav-links .nav-profile { display: inline-flex; align-items: center; gap: .4rem; }
.nav-links .nav-profile svg { flex: none; }

/* ---- Sticky category bar ---- */
.category-tabs {
  position: sticky; top: var(--gb-header-h); z-index: 90;
  padding: .7rem 0; margin-top: .5rem;
  background: #050507;
  box-shadow: 0 0 0 100vmax #050507;
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid #141821;
  backdrop-filter: blur(12px);
}
.cat-tab { min-height: 40px; }
.cat-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Menu top: title with delivery/pickup beside it, one slim line each for the rest ---- */
.page-hero--menu {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55rem 1.5rem;
  padding: 1.1rem 0 .2rem; text-align: left;
}
.page-hero--menu h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; }
.page-hero--menu > :not(h1):not(.menu-fulfil) { grid-column: 1 / -1; }
.menu-fulfil {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px;
  width: min(470px, 100%); border: 1px solid #252b3b; border-radius: 16px; background: #0b0f17;
}
.menu-fulfil button {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; min-width: 0;
  padding: .35rem .8rem; border: 0; border-radius: 12px; background: transparent; color: #dfe5f5;
  text-align: left; font: inherit; cursor: pointer; transition: background .15s, color .15s;
}
.menu-fulfil button:hover { background: #151b27; }
.menu-fulfil button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.menu-fulfil button[aria-pressed="true"] { background: var(--green); color: #041104; }
.mf-icon { flex: none; display: grid; place-items: center; }
.mf-copy { display: flex; flex-direction: column; gap: .05rem; min-width: 0; line-height: 1.2; }
.mf-copy strong { font-size: .95rem; white-space: nowrap; }
.mf-copy small { color: #aab3c7; font-size: .8rem; white-space: nowrap; }
.mf-wait { color: var(--green); font-weight: 700; }
.mf-long + .mf-wait:not(:empty)::before { content: ' · '; }
.menu-fulfil button[aria-pressed="true"] small, .menu-fulfil button[aria-pressed="true"] .mf-wait { color: #0b3a0b; }
.menu-fulfil-note { margin: 0; text-align: right; color: #b9c4b5; font-size: .84rem; line-height: 1.45; }
.menu-fulfil-note:empty { display: none; }

/* ---- Member prompt: one slim, dismissible line ---- */
.member-prompt {
  display: flex; align-items: center; gap: .5rem; margin: .2rem 0 0; padding: .25rem .3rem .25rem .9rem;
  border: 1px solid #33214d; border-radius: 12px; background: #120b1c;
}
.member-prompt[hidden] { display: none; }
.member-prompt p {
  flex: 1; min-width: 0; margin: 0; text-align: left; color: #cfc3de; font-size: .86rem; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.member-prompt strong { color: #fff; margin-right: .6rem; }
.member-prompt a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border-radius: 999px; background: #8f3dff; color: #fff; font-weight: 800; text-decoration: none; font-size: .84rem;
}
.member-prompt-close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #b7a9cc;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.member-prompt-close:hover { color: #fff; background: #23153a; }
.member-prompt a:focus-visible, .member-prompt-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Cards: open details from photo or name ---- */
.card-media {
  display: block; width: calc(100% - 20px); padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer;
}
div.card-media { cursor: default; }
.card-media:focus-visible, .card-name:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 16px; }
.card-name {
  all: unset; cursor: pointer; display: inline; overflow-wrap: anywhere;
}
.card-name:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.card-size {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .25rem .55rem;
  border: 1px solid #2a3142; color: #c5cde0; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.card .card-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Product details sheet ---- */
.product-sheet, .help-sheet {
  padding: 0; margin: auto; border: 1px solid #4b3366; border-radius: 22px;
  background: #0d0b13; color: var(--text); box-shadow: 0 30px 120px #000c;
}
.product-sheet::backdrop, .help-sheet::backdrop { background: #000b; backdrop-filter: blur(5px); }
.product-sheet { width: min(900px, 94vw); max-height: 92dvh; overflow: hidden; }
.product-sheet[open] { display: flex; flex-direction: column; }
.sheet-open { overflow: hidden; }
.product-sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3150;
  background: rgba(13, 11, 19, .85); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.product-sheet-close:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.product-sheet-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.product-sheet-article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-sheet-media {
  background: #fff; display: grid; place-items: center; min-height: 100%; padding: 1.25rem;
}
.product-sheet-media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; }
.product-sheet-info { padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.product-sheet-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding-right: 48px; }
.sheet-chip {
  border-radius: 999px; padding: .3rem .65rem; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #cfe9c6; background: #132016; border: 1px solid #284a2b;
}
.sheet-chip-size { color: #e8ecf8; background: #171b26; border-color: #30384c; text-transform: none; }
.product-sheet-info h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; overflow-wrap: anywhere; }
.product-sheet-desc { color: #b8c0d2; line-height: 1.55; font-size: .95rem; }
.product-sheet-info .combo-upgrade { margin: 0; }
.product-sheet-cta {
  margin-top: auto; padding-top: .9rem; border-top: 1px solid #241f31;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.sheet-price strong { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 2rem; }
.sheet-was { color: var(--muted); text-decoration: line-through; margin-right: .4rem; }
.product-sheet-cta .add-btn {
  min-height: 50px; padding: 0 1.4rem; background: linear-gradient(90deg, #58ff3f, #4cf13a); color: #041104;
}
.product-sheet-cta .add-btn:hover { box-shadow: 0 0 20px rgba(75, 255, 63, .3); }

/* ---- Help ---- */
.help-sheet { width: min(460px, 94vw); padding: 1.2rem; }
.help-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.help-sheet header .product-sheet-close { position: static; }
.help-sheet h2 { font-size: 1.6rem; }
.help-row {
  display: flex; flex-direction: column; gap: .2rem; padding: .85rem 1rem; margin-top: .5rem;
  border: 1px solid #262c3b; border-radius: 14px; background: #0b0f17; color: var(--text); text-decoration: none;
}
.help-row:hover { border-color: var(--green); }
.help-row:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.help-row small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.help-hours { margin-top: .9rem; color: #aeb6c8; font-size: .82rem; line-height: 1.5; text-align: center; }

/* ---- Floating buttons ---- */
.fab-stack {
  position: fixed; right: 16px; z-index: 95;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 48px; height: 48px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #2b3a2d; background: #0b120c; color: #eaffea; font: 700 .88rem Inter, system-ui, sans-serif;
  box-shadow: 0 10px 30px #000a;
}
.fab[hidden] { display: none; }
.fab:hover { border-color: var(--green); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fab-top { width: 48px; padding: 0; background: var(--green); color: #041104; border-color: transparent; }

/* ---- Mobile cart bar ---- */
.cart-bar { display: none; }
@media (max-width: 760px) {
  .cart-bar:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    padding: .55rem .7rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(5, 6, 9, .96); border-top: 1px solid #1c3a22; backdrop-filter: blur(12px);
  }
  .cart-bar-progress { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: .76rem; color: #cfe2c9; }
  .cart-bar-progress[hidden] { display: none; }
  .cart-bar-track { flex: 0 0 72px; height: 6px; border-radius: 99px; background: #1d2a1f; overflow: hidden; }
  .cart-bar-fill { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .3s; }
  .cart-bar-progress.is-complete { color: var(--green); font-weight: 700; }
  .cart-bar-link {
    display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: 0 1rem;
    border-radius: 14px; background: linear-gradient(90deg, #58ff3f, #4cf13a); color: #041104;
    text-decoration: none; font-weight: 900; letter-spacing: .02em;
  }
  .cart-bar-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  .cart-bar-count {
    min-width: 28px; height: 28px; padding: 0 .4rem; border-radius: 99px; display: grid; place-items: center;
    background: #041104; color: var(--green); font-size: .85rem;
  }
  .cart-bar-label { flex: 1; text-transform: uppercase; font-size: .9rem; }
  .cart-bar-total { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
  html.has-cart-bar body { padding-bottom: calc(var(--gb-bar-h) + 8px); }
  html.has-cart-bar .fab-stack { bottom: calc(var(--gb-bar-h) + 12px); }
  html.has-cart-bar .toast { bottom: calc(var(--gb-bar-h) + 12px); }
  .fab-help span { display: none; }
  .fab-help { width: 48px; padding: 0; }
}

/* ---- Mobile layout ---- */
@media (max-width: 760px) {
  #menuGrid .card-media { width: calc(100% - 12px); }
  .product-sheet {
    width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0;
    border-width: 1px 0 0;
  }
  .product-sheet-article { grid-template-columns: 1fr; }
  .product-sheet-media { padding: .8rem; }
  .product-sheet-media img { max-height: 34dvh; }
  .product-sheet-info { padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .product-sheet-cta {
    position: sticky; bottom: 0; margin: 0 -1rem calc(-1rem - env(safe-area-inset-bottom));
    padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: #0d0b13f2;
  }
  .help-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .page-hero--menu { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-top: .8rem; }
  .page-hero--menu h1 { font-size: 1.55rem; }
  .menu-fulfil { width: 100%; }
  .menu-fulfil button { min-height: 48px; gap: .45rem; padding: .3rem .5rem; }
  .mf-icon svg { width: 18px; height: 18px; }
  .mf-copy strong { font-size: .9rem; }
  .mf-copy small { font-size: .78rem; }
  /* Phones: show the wait time when the kitchen has set one, otherwise the fee. */
  .mf-long:has(+ .mf-wait:not(:empty)) { display: none; }
  .mf-long + .mf-wait:not(:empty)::before { content: none; }
  .menu-fulfil-note { text-align: left; font-size: .8rem; }
  .member-prompt p { font-size: .84rem; }
  .member-prompt .mp-more { display: none; }

  /* Compact list cards: photo left, details right, more dishes per screen. */
  #menuGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #menuGrid .card:not(.sauce-menu-card) {
    grid-column: 1 / -1; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; border-radius: 16px;
  }
  #menuGrid .card:hover { transform: none; }
  #menuGrid .card:not(.sauce-menu-card) .card-media { width: auto; margin: 8px; }
  #menuGrid .card:not(.sauce-menu-card) .card-body { padding: 10px 12px 10px 2px; gap: 5px; min-height: 100%; }
  #menuGrid .card h3 { font-size: 1.15rem; }
  #menuGrid .card .card-desc { -webkit-line-clamp: 2; font-size: .78rem; line-height: 1.35; color: #a3abbf; }
  #menuGrid .card-meta .tag, #menuGrid .card-size { font-size: .62rem; padding: 3px 6px; }
  #menuGrid .card:not(.sauce-menu-card) .card-row {
    flex-direction: row; align-items: center; justify-content: space-between; gap: 8px;
    border-top: 0; padding-top: 2px; margin-top: auto;
  }
  #menuGrid .card:not(.sauce-menu-card) .card-row strong { font-size: 1.35rem; }
  #menuGrid .card:not(.sauce-menu-card) .add-btn { width: auto; min-height: 42px; padding: 0 14px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-bar-fill, .menu-fulfil button { transition: none; }
}

/* ---- Loading placeholders ---- */
.menu-loading-text { grid-column: 1 / -1; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skeleton-card { pointer-events: none; }
.skeleton-media { aspect-ratio: 1; margin: 10px 10px 0; border-radius: 16px; }
.skeleton-line { display: block; height: 14px; border-radius: 6px; margin: .55rem 0; }
.skeleton-line.short { width: 55%; height: 22px; }
.skeleton-media, .skeleton-line { background: linear-gradient(90deg, #11151e 0%, #1b2130 50%, #11151e 100%); background-size: 200% 100%; animation: gb-shimmer 1.3s linear infinite; }
@keyframes gb-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-media, .skeleton-line { animation: none; } }

/* ---- Quantity on cards ---- */
.card-row { gap: .5rem; }
.card-row .qty-minus {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2c3446; background: #141922; color: #fff;
  font-size: 1.15rem; font-weight: 800; cursor: pointer; margin-left: auto; flex: none;
}
.card-row .qty-minus:hover { border-color: #ff8f8f; }
.card-row .qty-count { min-width: 1.6ch; text-align: center; font-weight: 900; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--green); }
.add-btn.has-qty {
  width: 40px; min-width: 40px; padding: 0; font-size: 0; position: relative; flex: none;
  background: var(--green); color: #041104;
}
.add-btn.has-qty::before { content: '+'; font-size: 1.35rem; font-weight: 900; line-height: 1; }
.add-btn.has-qty:hover { background: #7dff70; }
.in-cart-badge { font-size: .72rem; font-weight: 800; color: var(--green); white-space: nowrap; margin-left: auto; }
.card.in-cart { border-color: #2a5a2f; }
.card-row .qty-minus:focus-visible, .add-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- Slide-out cart ---- */
.cart-drawer {
  margin: 0 0 0 auto; padding: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw);
  border: 0; border-left: 1px solid #2a3a2c; border-radius: 0; background: #0b0d12; color: var(--text);
  box-shadow: -20px 0 80px #000c;
}
.cart-drawer[open] { display: flex; flex-direction: column; animation: gb-drawer-in .22s ease-out; }
.cart-drawer::backdrop { background: #000a; backdrop-filter: blur(3px); }
@keyframes gb-drawer-in { from { transform: translateX(40px); opacity: .4; } }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid #1c2230; }
.cart-drawer-head h2 { font-size: 1.6rem; }
.cart-drawer-head .product-sheet-close { position: static; }
.cart-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.1rem 1rem; }
.drawer-lines { list-style: none; padding: 0; margin: 0; }
.drawer-line { display: flex; gap: .8rem; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid #191e2a; }
.drawer-line.is-unavailable { opacity: .75; }
.drawer-line-main { min-width: 0; }
.drawer-line-main > strong { display: block; font-size: .98rem; overflow-wrap: anywhere; }
.drawer-line-main .cart-config { margin-top: .4rem; }
.drawer-line-main .cart-config ul { margin-top: .3rem; }
.drawer-edit { margin-top: .4rem; background: none; border: 1px solid #335a38; color: var(--green); border-radius: 8px; min-height: 36px; padding: .3rem .65rem; cursor: pointer; font: 600 .78rem Inter, system-ui, sans-serif; }
.drawer-line-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex: none; }
.drawer-line-total { font-family: Anton, Impact, sans-serif; font-size: 1.25rem; }
.drawer-qty { display: flex; align-items: center; gap: .35rem; }
.drawer-qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2c3446; background: #141922; color: #fff; font-weight: 900; font-size: 1rem; cursor: pointer; }
.drawer-qty button:disabled { opacity: .35; cursor: not-allowed; }
.drawer-qty span { min-width: 2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.drawer-qty button:focus-visible, .drawer-edit:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.drawer-suggest { margin-top: 1.1rem; }
.drawer-suggest h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.drawer-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
.cart-drawer-foot { padding: .9rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid #1c2230; background: #090b0f; display: grid; gap: .4rem; }
.cart-drawer-foot:empty { display: none; }
.drawer-sum { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: #cdd3e2; }
.drawer-sum.promo-line { color: var(--green); }
.drawer-free { margin: 0; font-size: .78rem; color: #b9d9b2; }
.drawer-checkout { margin-top: .5rem; justify-content: center; min-height: 52px; font-size: 1rem; text-decoration: none; display: flex; align-items: center; }
.drawer-continue { background: none; border: 0; color: var(--muted); min-height: 40px; cursor: pointer; font: 600 .85rem Inter, system-ui, sans-serif; text-decoration: underline; }
@media (max-width: 760px) {
  .cart-drawer { width: 100vw; height: 92dvh; margin: auto 0 0; border-left: 0; border-top: 1px solid #2a3a2c; border-radius: 22px 22px 0 0; }
  @keyframes gb-drawer-in { from { transform: translateY(40px); opacity: .4; } }
}

/* ---- Suggestions (drawer and after adding) ---- */
.suggest-list { display: grid; gap: .5rem; }
.suggest-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border: 1px solid #1f2533; border-radius: 12px; background: #0f131b; }
.suggest-item img, .suggest-dot { width: 46px; height: 46px; border-radius: 9px; object-fit: contain; background: #fff; flex: none; }
.suggest-dot { display: grid; place-items: center; background: #1a2130; color: var(--green); font-weight: 900; }
.suggest-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-copy strong { font-size: .85rem; overflow-wrap: anywhere; }
.suggest-copy small { color: var(--muted); font-size: .78rem; }
.add-btn.suggest-add { width: 40px; height: 40px; padding: 0; flex: none; font-size: 1.3rem; background: var(--green); color: #041104; letter-spacing: 0; }
.add-btn.suggest-add.added { font-size: .6rem; }
.suggest-panel {
  position: fixed; z-index: 97; left: 50%; translate: -50% 0; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(420px, calc(100vw - 24px)); padding: .9rem; border-radius: 18px;
  background: #0c1016f7; border: 1px solid #2c5a31; box-shadow: 0 20px 60px #000d; backdrop-filter: blur(12px);
  animation: gb-pop-in .2s ease-out;
}
.suggest-panel[hidden] { display: none; }
@keyframes gb-pop-in { from { transform: translateY(14px); opacity: 0; } }
.suggest-panel header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.suggest-panel header p { margin: 0; font-size: .88rem; }
.suggest-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #041104; font-size: .7rem; font-weight: 900; }
.suggest-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2c3446; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; flex: none; }
.suggest-lead { margin: .5rem 0 .45rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.suggest-open-cart { margin-top: .6rem; width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid #2c5a31; background: transparent; color: var(--green); font: 800 .85rem Inter, system-ui, sans-serif; cursor: pointer; }
html.has-cart-bar .suggest-panel { bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) { html.has-cart-bar .suggest-panel { bottom: calc(var(--gb-bar-h) + 10px); } }
@media (prefers-reduced-motion: reduce) { .suggest-panel, .cart-drawer[open] { animation: none; } }

/* ---- Order again and promo link notice ---- */
.reorder-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: .2rem 0 0; padding: .55rem .6rem .55rem .9rem; text-align: left;
  border: 1px solid #2c5a31; border-radius: 16px; background: linear-gradient(100deg, #0f2312, #0b0f17);
}
.reorder-box[hidden] { display: none; }
.reorder-box strong { font-size: .98rem; }
.reorder-box p { margin: .15rem 0 0; color: #b9c4b5; font-size: .8rem; line-height: 1.4; }
.reorder-box .btn { flex: none; min-height: 44px; }
.promo-notice { margin: .2rem 0 0; padding: .6rem .9rem; border-radius: 12px; border: 1px dashed #8f3dff; background: #1a1028; color: #eadcff; font-size: .85rem; }
.promo-notice[hidden] { display: none; }
@media (max-width: 640px) {
  .reorder-box { padding: .6rem .6rem .6rem .85rem; gap: .6rem; }
  .reorder-box .btn { min-height: 40px; padding: 0 .85rem; font-size: .76rem; }
}
.cart-drawer { position: fixed; inset: 0 0 0 auto; max-width: 100vw; }
@media (max-width: 760px) { .cart-drawer { inset: auto 0 0 0; } }
.card-row { flex-wrap: wrap; }
.card-row .in-cart-badge { order: -1; flex-basis: 100%; margin: 0 0 -.2rem; }

/* ---- Temporarily sold out ---- */
.card.sold-out .card-media img { filter: grayscale(1); opacity: .55; }
.card.sold-out h3, .card.sold-out .card-desc { opacity: .7; }
.card.sold-out .add-btn[disabled] { background: #1b1f29; color: #ff9b9b; cursor: not-allowed; letter-spacing: .06em; }
.card.sold-out .card-row strong { opacity: .6; }
.sheet-note .note-field { margin: 0; }

/* ---- Live wait time and kitchen note ---- */
/* (wait time colours live with the fulfilment control above) */
.busy-notice { margin: .2rem 0 0; padding: .6rem .9rem; border-radius: 12px; border: 1px solid #7a5a1d; background: #241a08; color: #ffe2a3; font-size: .85rem; }
.busy-notice[hidden] { display: none; }

/* ---- Member status ---- */
.member-prompt.is-member { border-color: #2c5a31; background: linear-gradient(100deg, #0f2312, #1d1030); }
.nav-profile.has-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---- Calmer layout (29 Nov 2026): less chrome, larger touch targets ---- */
.category-tabs { margin-top: .6rem; padding: .6rem 0; }
.cat-tab { min-height: 44px; }
#menuGrid { margin-top: .5rem; }
#menuGrid .cat-header { padding: 1.1rem 0 0; }
#menuGrid .cat-header:first-child { padding-top: .4rem; }
.add-btn { height: auto; min-height: 44px; }
.card-row .qty-minus, .add-btn.has-qty { width: 44px; min-width: 44px; height: 44px; }
.card-row .qty-count { min-width: 2ch; }
/* Wide screens: combo photo beside its text instead of a full-height banner. */
@media (min-width: 900px) {
  .combo-entry { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
  .combo-entry-photo { min-height: 100%; }
  .combo-entry-photo img { height: 100%; object-fit: cover; }
  .combo-entry-body { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.1rem; padding: 1.5rem 1.75rem; }
  .combo-entry h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: .5rem; }
  .combo-entry-action { width: 100%; min-width: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.2rem; }
  .combo-entry-action small { grid-column: 1 / -1; }
}
.nav-help-li { display: none; }
.nav-help { all: unset; cursor: pointer; }
.nav-help:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (max-width: 760px) {
  /* One floating control at most: help moves into the ☰ menu. */
  .fab-help { display: none; }
  .nav-help-li { display: block; }
  .nav-help { color: #e4e7f5; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; font-size: inherit; min-height: 44px; display: inline-flex; align-items: center; }
  .fab-top { width: 44px; min-width: 44px; height: 44px; background: #0b120ce6; color: var(--green); border-color: #2b3a2d; }
  .toast { left: 12px; right: 12px; text-align: center; }
}
@media (max-width: 640px) {
  #menuGrid .cat-header h2 { font-size: 1.7rem; }
  #menuGrid .card .card-desc { font-size: .84rem; line-height: 1.4; color: #b3bbcd; }
  #menuGrid .card-meta .tag, #menuGrid .card-size { font-size: .68rem; }
  #menuGrid .card:not(.sauce-menu-card) .add-btn { min-height: 44px; font-size: .76rem; }
  #menuGrid .card:not(.sauce-menu-card) .add-btn.has-qty { width: 44px; min-width: 44px; padding: 0; font-size: 0; }
  #menuGrid .card:not(.sauce-menu-card) .card-row { flex-wrap: nowrap; }
  #menuGrid .card:not(.sauce-menu-card) .card-row .in-cart-badge { order: 0; flex-basis: auto; margin: 0 0 0 auto; }
}

/* ---- First-visit welcome: choose delivery or pickup, see the My Ghost offer ---- */
.welcome-gate {
  padding: 0; margin: auto; width: min(880px, 94vw); max-height: 92dvh; overflow: auto;
  border: 1px solid #4b3366; border-radius: 24px; background: #0b0d12; color: var(--text); box-shadow: 0 30px 120px #000c;
}
.welcome-gate[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.welcome-gate::backdrop { background: #000b; backdrop-filter: blur(6px); }
.wg-close { top: 10px; right: 10px; }
.wg-offer {
  order: -1; display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem;
  background: radial-gradient(circle at 15% 0%, #3a1f5c 0%, transparent 60%), linear-gradient(160deg, #1d1030, #0d1410);
}
.wg-offer[hidden] { display: none; }
.welcome-gate:has(.wg-offer[hidden])[open] { grid-template-columns: minmax(0, 1fr); width: min(520px, 94vw); }
.wg-offer-title { margin: 0; font-family: Anton, Impact, sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.08; text-transform: uppercase; }
.wg-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.wg-perks li { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; background: #07080cc7; border: 1px solid #33214d; }
.wg-perks li > span { font-size: 1.3rem; flex: none; }
.wg-perks li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wg-perks strong { font-size: .95rem; }
.wg-perks small { color: #c9bfd8; font-size: .8rem; line-height: 1.35; }
.wg-perks b { flex: none; padding: .35rem .6rem; border-radius: 10px; background: var(--green); color: #041104; font-weight: 900; white-space: nowrap; }
.wg-join { justify-content: center; min-height: 48px; text-decoration: none; display: flex; align-items: center; }
.wg-note { color: #b7a9cc; font-size: .8rem; line-height: 1.4; }
.wg-choose { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.wg-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-right: 48px; }
.wg-chip { margin: 0; padding: .35rem .75rem; border-radius: 999px; border: 1px solid #2c5a31; color: var(--green); font-size: .8rem; font-weight: 700; }
.wg-lang { display: inline-flex; border: 1px solid #2a3142; border-radius: 999px; overflow: hidden; flex: none; }
.wg-lang button { min-width: 44px; min-height: 36px; border: 0; background: transparent; color: #cfd6ea; font: 800 .75rem Inter, system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.wg-lang button[aria-pressed="true"] { background: var(--green); color: #041104; }
.wg-choose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); text-align: center; }
.wg-options { display: grid; gap: .6rem; }
.wg-options button {
  display: flex; align-items: center; gap: .9rem; min-height: 76px; padding: .8rem 1rem; text-align: left;
  border: 1.5px solid #252b3b; border-radius: 16px; background: #0f131b; color: var(--text); font: inherit; cursor: pointer;
}
.wg-options button:hover, .wg-options button[aria-pressed="true"] { border-color: var(--green); background: #0f2312; }
.wg-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #041104; }
.wg-options strong { display: block; font-size: 1.05rem; }
.wg-options small { color: var(--muted); font-size: .85rem; }
.wg-skip { align-self: center; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: 600 .88rem Inter, system-ui, sans-serif; min-height: 44px; }
.welcome-gate button:focus-visible, .wg-join:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .welcome-gate { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-width: 1px 0 0; }
  .welcome-gate[open], .welcome-gate:has(.wg-offer[hidden])[open] { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .wg-offer { order: 1; padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom)); gap: .6rem; }
  .wg-choose { padding: 1.1rem 1rem .6rem; gap: .7rem; }
  .wg-options button { min-height: 64px; }
  .wg-offer-title { font-size: 1.5rem; }
}
.welcome-gate h2:focus { outline: none; }

/* ---- Round 7 (2026-11-30): photos sit on a warm paper tile; adding is the green action ---- */
#menuGrid .card-media { background: #f2ecdc; border-radius: 16px; overflow: hidden; }
#menuGrid .card-media img { mix-blend-mode: multiply; border-radius: 0; }
#menuGrid .card.sold-out .card-media { background: #3a3c44; }
#menuGrid .card:not(.sauce-menu-card) .add-btn:not(.has-qty):not([disabled]) { background: var(--green); color: #041104; }
#menuGrid .card:not(.sauce-menu-card) .add-btn:not(.has-qty):not([disabled]):hover { background: #7dff70; }
@media (max-width: 760px) {
  #menuGrid .card:not(.sauce-menu-card) { grid-template-columns: 124px minmax(0, 1fr); border-radius: 18px; }
  #menuGrid .card:not(.sauce-menu-card) .card-media { margin: 10px; border-radius: 14px; }
  #menuGrid .card:not(.sauce-menu-card) .card-body { padding: 12px 12px 12px 2px; }
}

/* ---- Round 9 (2026-11-30): the menu is rows that slide ----
   Best sellers first, then one row per category. On phones and tablets a row
   scrolls sideways and the next card peeks in, so the page stays short. From
   900px the row dissolves and the same cards form the grid. */
#menuGrid .card { position: relative; }
.cat-row { display: contents; }
.card-rank {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: .15rem .55rem; border-radius: 999px;
  background: var(--green); color: #041104; font-size: .74rem; font-weight: 900; pointer-events: none;
}
#menuGrid .combo-mini .card-media { background: #20112e; }
#menuGrid .combo-mini .card-media img { mix-blend-mode: normal; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.combo-go {
  border: 0; border-radius: 999px; min-height: 44px; padding: 0 1.1rem; background: var(--green); color: #041104;
  font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
}
.combo-go:hover { background: #7dff70; }
.combo-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 899.98px) {
  #menuGrid { display: block; --row-bleed: .7rem; }
  #menuGrid .cat-header { padding: 1.5rem 0 0; }
  #menuGrid .cat-header:first-child { padding-top: .4rem; }
  #menuGrid .combo-entry { margin: .75rem 0 0; }
  #menuGrid .cat-row {
    display: flex; align-items: stretch; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: .75rem calc(-1 * var(--row-bleed)) 0; padding: 2px var(--row-bleed) 10px;
    scroll-padding-inline: var(--row-bleed);
  }
  #menuGrid .cat-row::-webkit-scrollbar { display: none; }
  #menuGrid .cat-row > .card:not(.zz) {
    flex: 0 0 min(43vw, 190px); display: flex; flex-direction: column; grid-column: auto; grid-template-columns: none;
    align-items: stretch; scroll-snap-align: start; border-radius: 18px; min-width: 0;
  }
  #menuGrid .cat-row > .card:not(.zz) .card-media { width: auto; margin: 8px 8px 0; border-radius: 12px; aspect-ratio: 1 / 1; flex-shrink: 0; }
  #menuGrid .cat-row > .card:not(.zz) .card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }
  #menuGrid .cat-row > .card:not(.zz) .card-meta { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
  #menuGrid .cat-row > .card:not(.zz) h3 {
    margin: 0; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #menuGrid .cat-row > .card:not(.zz) .card-desc, #menuGrid .cat-row > .sauce-menu-card .card-body > p:not(.tag) { display: none; }
  #menuGrid .cat-row > .card:not(.zz) .card-row {
    margin-top: auto; padding-top: 4px; border-top: 0; display: flex; flex-direction: row; flex-wrap: wrap;
    align-items: center; justify-content: space-between; gap: 6px;
  }
  #menuGrid .cat-row > .card:not(.zz) .card-row > span:not([class]) { flex: 1 0 100%; }
  #menuGrid .cat-row > .card:not(.zz) .card-row strong { font-size: 1.3rem; }
  #menuGrid .cat-row > .card:not(.zz) .add-btn, #menuGrid .cat-row > .card:not(.zz) .combo-go { flex: 1 1 auto; width: auto; min-height: 42px; padding: 0 8px; font-size: .74rem; }
  #menuGrid .cat-row > .card:not(.zz) .add-btn.has-qty { flex: 0 0 44px; padding: 0; font-size: 0; }
  #menuGrid .cat-row > .card:not(.zz) .qty-minus { margin-left: 0; }
  #menuGrid .cat-row > .card:not(.zz) .qty-count { flex: 1; }
  #menuGrid .cat-row > .card:not(.zz) .in-cart-badge { order: 0; flex: 1 0 100%; margin: 0; font-size: .66rem; white-space: normal; }
  #menuGrid .cat-row > .sauce-menu-card .card-row > strong { flex: 1 0 100%; }
  #menuGrid .cat-row > .sauce-menu-card .card-body { padding-top: 12px; }
  #menuGrid .cat-row > .sauce-menu-card .add-btn:not(.has-qty):not([disabled]) { background: var(--green); color: #041104; }
  .card-rank { top: 14px; left: 14px; }
}
