/* MENU + DISH PAGE (menu.html, menu-detail.html, /category/*). Marigold
   tokens (benaam.css); round 2 layout, 30 Sep 2026: a printed menu, not
   app cards -- numbered index, ruled numbered sections, dish rows on
   hairlines. Owner's brief: docs/design/redesign-web/00-brief/ROUND2-BRIEF.md.
   JS leans on: .modal[hidden] (sheet gate); .gallery-lightbox.open flips
   opacity AND pointer-events; the tab strip scrolls sideways
   (category-tabs.js scrollIntoView); .category-tabs sticks at --hdr-live
   (site-header.js measures the header, whose banner wraps on phones);
   #product-grid's container query gives two columns only at 780px. */

body.modal-open { overflow: hidden; }
.menu-main-content { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter) var(--sp-12); }

/* ---- frame: one column; 1024 index | dishes; 1280 + your order ---- */
.menu-layout { position: relative; }
.cart-panel { display: none; }
@media (min-width: 1024px) {
  .menu-layout {
    display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); column-gap: var(--sp-10); align-items: start;
    max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter);
  }
  .menu-layout .menu-main-content { max-width: none; margin: 0; padding: 0 0 var(--sp-12); }
}
@media (min-width: 1280px) {
  .menu-layout { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--panel-w); max-width: var(--shell-wide); }
  /* Header and footer line up with the wider frame (logo over the rail). */
  .menu-page .hdr .shell, .menu-page .foot__in { max-width: var(--shell-wide); }
}

/* ---- the masthead: a line of type, not a card ---- */
.menu-page .page-head { margin: var(--sp-6) 0 var(--sp-5); padding: 0; gap: var(--sp-2); }
.menu-head__kicker {
  display: flex; align-items: center; gap: var(--sp-2); margin: 0;
  /* The mark is green; the words are not: 11px green on the page ground
     is ~4:1, under AA for small text. */
  color: var(--text-2); font-size: var(--fs-11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.menu-head__kicker .veg-indicator { width: 14px; height: 14px; }
.menu-head__kicker .veg-icon { width: 6px; height: 6px; }
.menu-page .page-head h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  line-height: .98; letter-spacing: -.04em;
}
.menu-page .page-head__sub { max-width: 34ch; color: var(--text-2); font-size: var(--fs-16); }
@media (min-width: 1024px) { .menu-page .page-head { margin-top: var(--sp-8); margin-bottom: var(--sp-6); } }

/* ---- search + the Filter button (menu-front.css): one row ---- */
.menu-controls { display: flex; gap: var(--sp-2); align-items: stretch; margin-bottom: var(--sp-2); }
.menu-search { position: relative; flex: 1; min-width: 0; }
.menu-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--text-3); pointer-events: none; }
.menu-search__icon svg { width: 18px; height: 18px; }
.menu-search__input { padding-left: 44px !important; padding-right: 48px !important; background: var(--surface) !important; }
.menu-search__clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-2);
}
.menu-search__clear:hover { background: var(--surface-2); }
.menu-search__clear svg { width: 16px; height: 16px; }
.menu-search__clear[hidden] { display: none; }
.menu-search__status:not(:empty) { margin: var(--sp-2) 0; color: var(--text-3); font-size: var(--fs-13); }
.menu-search__empty { justify-items: start; text-align: left; padding: var(--sp-8) 0; }
.menu-search__empty-title { font: 700 var(--fs-20)/1.25 var(--font-display); color: var(--text); }
.menu-search__empty-hint { color: var(--text-2); font-size: var(--fs-14); }

/* ---- below 1024px: a ruled tab strip, marigold underline (not pills) ---- */
.category-tabs {
  position: sticky; top: var(--hdr-live, var(--header-h)); z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.category-tabs-scroll {
  display: flex; gap: var(--sp-1); max-width: var(--shell); margin: 0 auto; padding: 0 calc(var(--gutter) - 12px);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.category-tabs-scroll::-webkit-scrollbar { display: none; }
.category-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px;
  border: 0; border-radius: 0; background: none; color: var(--text-2);
  font-size: var(--fs-14); font-weight: 600; cursor: pointer; box-shadow: inset 0 -3px 0 transparent;
  transition: color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.category-tab:hover { color: var(--text); }
.category-tab.active { color: var(--text); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.category-tab:focus-visible { outline-offset: -2px; }
.category-tab__no, .category-tab__n { display: none; }
.category-tab[data-category="favorites"] .category-tab__no { display: inline-flex; color: var(--danger); }
.category-tab__no .ico, .category-tab__no svg { width: 15px; height: 15px; }

/* ---- 1024px up: the index -- number, name, dotted leader, count ---- */
@media (min-width: 1024px) {
  .category-tabs {
    top: calc(var(--hdr-live, var(--header-h)) + var(--sp-6)); align-self: start; margin-top: var(--sp-8);
    max-height: calc(100vh - var(--hdr-live, var(--header-h)) - var(--sp-10)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0;
  }
  .category-tabs::before {
    content: "The menu"; display: block; padding-bottom: var(--sp-2); margin-bottom: var(--sp-1);
    font-size: var(--fs-11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  }
  .category-tabs-scroll { display: grid; gap: 0; max-width: none; margin: 0; padding: 0; overflow: visible; white-space: normal; }
  .category-tab {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; column-gap: 0;
    width: 100%; min-height: 40px; padding: 10px 0 9px; box-shadow: none;
    color: var(--text-2); font-size: var(--fs-14); font-weight: 500; line-height: 1.3; text-align: left;
  }
  .category-tab__no { display: block; color: var(--text-3); font-size: var(--fs-11); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
  .category-tab__name { display: flex; align-items: baseline; min-width: 0; }
  .category-tab__name::after { content: ""; flex: 1 1 auto; min-width: 12px; margin: 0 8px 0 8px; border-bottom: 0; transform: translateY(-4px); }
  .category-tab__n { display: block; color: var(--text-3); font-size: var(--fs-12); font-weight: 600; font-variant-numeric: tabular-nums; }
  .category-tab:hover { color: var(--text); }
  .category-tab:hover .category-tab__name { text-decoration: underline 1px var(--line-2); text-underline-offset: 6px; }
  .category-tab.active { color: var(--text); font-weight: 700; box-shadow: none; }
  .category-tab.active .category-tab__no { color: var(--accent-ink); }
  .category-tab.active .category-tab__name { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
  .category-tab.active .category-tab__n { color: var(--text); font-weight: 700; }
  .category-tab[data-category="favorites"] .category-tab__no { display: flex; align-self: center; }
  .category-tab:focus-visible { outline-offset: 2px; }
}

/* ---- sections: numbered, ruled, set in the display face ---- */
.menu-section { margin-top: var(--sp-10); scroll-margin-top: calc(var(--hdr-live, var(--header-h)) + 64px); }
.menu-section:first-child { margin-top: var(--sp-3); }
.menu-section__title { display: flex; align-items: baseline; gap: var(--sp-3); margin: 0 0 var(--sp-1); }
.menu-section__no { flex: none; color: var(--accent-ink); font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.menu-section__name { min-width: 0; font: 700 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.menu-section__n { flex: none; margin-left: auto; color: var(--text-3); font-size: var(--fs-13); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- "in season" strip (4.11) ---- */
.seasonal-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin: var(--sp-4) 0; padding: var(--sp-3) 0; border-block: 1px solid var(--line); }
.seasonal-strip[hidden] { display: none; }
.seasonal-strip__label { font-weight: 700; font-size: var(--fs-14); }
.seasonal-strip__links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.seasonal-strip__link { display: inline-flex; align-items: center; min-height: 40px; color: var(--accent-ink); font-size: var(--fs-14); font-weight: 700; text-underline-offset: 4px; }

/* ---- Today's Picks: a swipe row of photo-first dishes ---- */
.featured-section { margin: var(--sp-6) 0 var(--sp-2); }
.featured-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--sp-3); margin-bottom: var(--sp-3); }
.featured-title { font: 700 var(--fs-24)/1.1 var(--font-display); letter-spacing: -.03em; }
.featured-subtitle { color: var(--text-3); font-size: var(--fs-13); }
.featured-scroll-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 64%); gap: var(--sp-5);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) var(--sp-3); scroll-padding-inline: var(--gutter);
}
.featured-scroll-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .featured-scroll-row { grid-auto-columns: minmax(240px, 32%); } }
@media (min-width: 1024px) { .featured-scroll-row { grid-auto-columns: calc((100% - 2 * var(--sp-5)) / 3); } }

/* ---- the dish list ---- */
.product-grid-section { margin-top: var(--sp-2); container-type: inline-size; }
/* category-tabs.js scrolls the list into view on a tap: clear the header
   (and, below 1024px, the sticky tab strip under it). */
#product-grid { scroll-margin-top: calc(var(--hdr-live, var(--header-h)) + 72px); }
@media (min-width: 1024px) { #product-grid { scroll-margin-top: calc(var(--hdr-live, var(--header-h)) + var(--sp-6)); } }
.product-grid-inner { display: grid; gap: var(--sp-8) var(--sp-6); }
/* One column on a phone; as many 260px+ cards as fit on a desktop (two beside
   the rail, three with room to spare). */
.product-grid-inner { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* A dish is a photo-first card (round 4): a large 16:10 photo on top, then the
   name, one line about it, and price with Add. No box and no rule: the photo's
   own edge is the card's edge. */
.product-card {
  --img: 100%; --pad: 0px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "body";
  row-gap: var(--sp-3); align-items: start;
  cursor: pointer; animation: bk-rise var(--t-slow) var(--ease-out) both;
}
.product-image-wrap { grid-area: img; position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .product-card:hover .product-image { transform: scale(1.05); } }
.product-card-body { grid-area: body; display: grid; align-content: start; gap: var(--sp-2); min-width: 0; }
.product-header-row { display: flex; align-items: flex-start; gap: var(--sp-2); }
.product-header-row .veg-indicator { margin-top: 3px; }
.product-title { min-width: 0; font-size: var(--fs-16); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
@media (min-width: 768px) { .product-title { font-size: var(--fs-18); } }
.product-title__link { color: inherit; text-decoration: none; }
/* The name reads as a way in: underlined on hover and focus. */
.product-title__link:hover { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
.product-title__link:focus-visible { border-radius: 2px; }
.product-rating-row { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); font-weight: 600; color: var(--veg); }
.rating-count { color: var(--text-3); font-weight: 500; }
.product-desc { color: var(--text-2); font-size: var(--fs-13); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .product-desc { font-size: var(--fs-14); } }
.product-footer { display: flex; align-items: center; gap: var(--sp-2); margin-top: 2px; }
.product-price { font-weight: 700; font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.product-price__sizes { margin-left: 10px; color: var(--text-3); font-size: var(--fs-12); font-weight: 600; }

/* The veg mark (FSSAI): drawn, never an emoji. */
.veg-indicator { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--veg); border-radius: 3px; flex: none; }
.veg-indicator.non-veg { border-color: var(--danger); }
.veg-icon { width: 7px; height: 7px; border-radius: 50%; background: var(--veg); }
.veg-indicator.non-veg .veg-icon { background: var(--danger); }
.indicator-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Add: a squared white tab on the photo's lower edge. */
.btn-add {
  position: static; margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 96px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--accent-ink); box-shadow: var(--e-2);
  font-size: var(--fs-14); font-weight: 700; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform 100ms var(--ease);
}
.btn-add__plus { font-size: 18px; font-weight: 500; line-height: 1; }
.btn-add:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-add:active { transform: scale(.95); }
.btn-add[disabled] { min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); font-size: var(--fs-11); font-weight: 700; box-shadow: none; background: var(--surface-2); border-color: var(--line); cursor: default; }

/* Tags and the heart, on the photo */
.product-badge {
  position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 4px; background: var(--surface); color: var(--text-2);
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--e-1);
}
.product-badge + .product-badge { top: 34px; }
.badge-pick { color: var(--accent-ink); }
.btn-favorite {
  position: absolute; right: 4px; top: 4px; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text-2);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.btn-favorite::before { content: ""; position: absolute; inset: 5px; z-index: -1; border-radius: 50%; background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-favorite.active { color: var(--danger); }
.btn-favorite .ico { width: 20px; height: 20px; }
.btn-favorite.active .ico { fill: currentColor; }
.animate-pop { animation: heartPop .3s var(--ease-out); }
@keyframes heartPop { 50% { transform: scale(1.3); } }

/* Sold out / not served now: grey the photo, say so on it, and when. */
.product-card.unavailable { cursor: default; }
.product-card.unavailable .product-image { filter: grayscale(1); opacity: .55; }
.product-card.unavailable .product-title, .product-card.unavailable .product-price { color: var(--text-3); }
.out-of-stock-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 6px; text-align: center; }
.out-of-stock-text { padding: 3px 8px; border-radius: 4px; background: var(--text); color: var(--surface); font-size: var(--fs-11); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.out-of-stock-eta { padding: 2px 6px; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 10px; font-weight: 700; line-height: 1.3; }

/* No photo: words only; the photo wrapper is a line of tags/heart/sold-out. */
.product-card--text { padding: var(--sp-4); border-radius: var(--r-lg); background: var(--surface-2); }
.product-card--text .product-image-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: auto; aspect-ratio: auto; overflow: visible; background: none; border-radius: 0; }
.product-card--text .product-image-wrap:empty { display: none; }
.product-card--text .product-badge, .product-card--text .product-badge + .product-badge { position: static; box-shadow: none; background: var(--surface); }
.product-card--text .btn-favorite { position: absolute; top: var(--sp-2); right: var(--sp-2); }
.product-card--text .out-of-stock-overlay { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; }
.product-card--text .out-of-stock-eta { padding: 0; background: none; color: var(--text-2); font-size: var(--fs-12); }
.product-card--text .btn-add { box-shadow: var(--e-1); }
.product-card--text .btn-add[disabled] { max-width: none; }
/* The heart sits in the corner, so the name keeps clear of it. */
.product-card--text:has(.btn-favorite) .product-header-row { padding-right: 40px; }

/* ---- "Your order" panel, 1280px up (floating-cart.js): no box, same 2px rule ---- */
@media (min-width: 1280px) {
  .cart-panel {
    position: sticky; top: calc(var(--hdr-live, var(--header-h)) + var(--sp-6)); align-self: start; margin-top: var(--sp-8);
    display: flex; flex-direction: column; gap: var(--sp-3);
    max-height: calc(100vh - var(--hdr-live, var(--header-h)) - var(--sp-10));
  }
  .cart-panel__foot { flex: none; display: grid; gap: var(--sp-3); }
  .cart-panel.has-cart .cart-panel__empty,
  .cart-panel:not(.has-cart) .cart-panel__lines, .cart-panel:not(.has-cart) .cart-panel__sum, .cart-panel:not(.has-cart) .cart-panel__go { display: none; }
  .cart-panel__title {
    padding-bottom: var(--sp-3);
    font-size: var(--fs-11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  }
  .cart-panel__empty { margin-top: var(--sp-2); font: 700 var(--fs-20)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--text); }
  .cart-panel__hint { color: var(--text-3); font-size: var(--fs-13); line-height: 1.45; }
  .cart-panel__lines { flex: 1 1 auto; display: grid; align-content: start; gap: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
  .cart-panel__line { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: var(--sp-2); align-items: baseline; padding: var(--sp-3) 0; border-bottom: 0; font-size: var(--fs-14); }
  .cart-panel__line.is-new { animation: bk-rise var(--t-slow) var(--ease-out) both; }
  .cart-panel__qty { color: var(--accent-ink); font-weight: 800; }
  .cart-panel__name { font-weight: 600; line-height: 1.35; }
  .cart-panel__name small { display: block; color: var(--text-3); font-size: var(--fs-12); font-weight: 500; }
  .cart-panel__amt { font-weight: 700; }
  .cart-panel__sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-1); font-size: var(--fs-14); color: var(--text-2); }
  .cart-panel__sum strong { color: var(--text); font-size: var(--fs-24); font-weight: 800; letter-spacing: -.02em; }
  .cart-panel__go {
    display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-md);
    background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none; transition: background var(--t-fast) var(--ease);
  }
  .cart-panel__go:hover { background: var(--accent-hover); }
  /* The panel does the floating bar's job here. */
  .menu-page #floating-cart-container { display: none; }
  body.menu-page:has(#floating-cart-container.has-cart) .foot { padding-bottom: 0; }
}

/* Loading / empty / error */
.skeleton-loading-grid { display: grid; }
.skeleton-card { cursor: default; animation: none; }
.skeleton-card .skeleton-img-box { grid-area: img; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.skeleton-shimmer { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: bk-shimmer 1.3s linear infinite; }
.skeleton-line { height: 16px; margin-bottom: 10px; }
.skeleton-line.short { width: 60%; }
.skeleton-img-box { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.error-state, .error-msg { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-12) var(--sp-5); text-align: center; color: var(--text-2); }
.error-msg a { font-weight: 700; }

/* THE DISH SHEET. <768px a bottom sheet (scrolling column over a pinned
   buy block); 768-899 a centred dialog; 900px up two panes -- the dish
   left, the choice right with the buy block pinned, so a typical dish needs
   no scrolling at 1280x720 (owner, 30 Sep). */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal .modal-backdrop { position: absolute; inset: 0; z-index: 1; background: var(--scrim); animation: bk-fade var(--t-med) var(--ease); }
.modal-dialog {
  position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; max-height: 92vh; max-height: 92dvh;
  overflow: hidden; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--e-3);
  animation: bk-sheet var(--t-slow) var(--ease-out);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--glass); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--e-1); cursor: pointer;
}
.modal-close:hover { background: var(--surface); }
.modal-scrollable-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.modal-zone-gallery { padding: 0; }
.modal-zone-gallery:empty { display: none; }
.modal .gallery-main-frame { aspect-ratio: 16 / 10; max-height: 22vh; max-height: 22dvh; width: 100%; border-radius: 0; }
.modal .gallery-thumbnails { padding: 0 var(--sp-5); }
.modal-zone-info { padding: var(--sp-5) var(--sp-5) 0; }
/* No photo: keep the name clear of the close button. */
.modal-zone-gallery:empty + .modal-zone-info { padding-top: var(--sp-6); padding-right: 76px; }
.modal-details-body { display: grid; gap: var(--sp-6); padding: var(--sp-6) var(--sp-5) var(--sp-5); }
.modal-details-body > :empty { display: none; }
.modal-buy {
  flex: none; display: grid; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) calc(var(--sp-4) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line);
}
/* Phone sheet: tighter rhythm, quantity beside Add (which carries the
   total; "Total" is for screen readers). The photo was cut to a 13vh strip
   so a six-size dish's sizes cleared the buy block at 375x667 (QA, 1 Oct);
   the owner (5 Oct) found the food unreadable that thin. It is a proper
   photo again, and a dish with many sizes scrolls. */
@media (max-width: 767.98px) {
  .modal-dialog { max-height: 95vh; max-height: 95dvh; }
  .modal .gallery-main-frame { aspect-ratio: 4 / 3; max-height: 34vh; max-height: 34dvh; }
  .modal-zone-info { padding-top: var(--sp-4); }
  .modal .modal-header-info { gap: var(--sp-2); }
  .modal-details-body { gap: var(--sp-5); padding-top: var(--sp-4); }
  .modal .variant-card { min-height: 52px; padding: 8px 10px; }
  .modal-buy { display: flex; align-items: center; gap: var(--sp-3); padding-top: 10px; padding-bottom: calc(var(--sp-3) + var(--safe-b)); }
  .modal-buy__row { display: contents; }
  .modal-zone-qty:empty { display: none; }
  .modal-zone-cta { flex: 1; min-width: 0; }
  .modal-buy .btn-modal-add { min-height: 48px; padding: 0 var(--sp-4); }
  .modal-zone-price, .modal-buy .qty-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  .modal { align-items: center; padding: var(--sp-6); }
  .modal-dialog { width: min(600px, 100%); max-height: 88vh; max-height: 88dvh; border-radius: var(--r-xl); animation: bk-rise var(--t-med) var(--ease-out); }
  /* A real photo on the tablet dialog too, not the 22vh strip (round 3). */
  .modal .gallery-main-frame { aspect-ratio: 3 / 2; max-height: 36vh; max-height: 36dvh; }
}
@media (min-width: 900px) {
  .modal { align-items: center; padding: var(--sp-6); }
  .modal-dialog {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: minmax(0, 1fr) auto;
    width: min(1040px, 100%); height: min(720px, calc(100dvh - 48px)); max-height: none;
    border-radius: var(--r-xl); animation: bk-rise var(--t-med) var(--ease-out);
  }
  .modal-scrollable-content { display: contents; }
  .modal-dish { grid-column: 1; grid-row: 1 / 3; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); background: var(--bg); }
  .modal .gallery-main-frame { aspect-ratio: 3 / 2; max-height: none; }
  .modal-zone-info { padding: var(--sp-6) var(--sp-8) var(--sp-8); }
  /* No photo: the name set large, right under the rail's number for its
     kind of food (product-modal.js; decorative), top-aligned. */
  .modal-zone-gallery:empty + .modal-zone-info { padding: var(--sp-10) var(--sp-8) var(--sp-8); }
  .modal-dish[data-no]:not([data-no=""]) > .modal-zone-gallery:empty + .modal-zone-info { padding-top: var(--sp-5); }
  .modal .modal-zone-gallery:empty + .modal-zone-info .modal-product-title { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; }
  .modal-dish:has(> .modal-zone-gallery:empty):not([data-no=""])[data-no]::before {
    content: attr(data-no); content: attr(data-no) / "";
    display: block; padding: var(--sp-12) var(--sp-8) 0;
    font: 800 clamp(6rem, 3rem + 6vw, 9rem)/.8 var(--font-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums;
    color: var(--line-2);
  }
  .modal-details-body { grid-column: 2; grid-row: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding: var(--sp-8) var(--sp-8) var(--sp-6); }
  .modal-buy { grid-column: 2; grid-row: 2; padding: var(--sp-4) var(--sp-8) var(--sp-6); }
  .modal-close { top: 16px; right: 16px; }
}
/* Laptop heights (720-800): a six-size dish scrolled its pane by ~30px. */
@media (min-width: 900px) and (max-height: 820px) {
  .modal .gallery-main-frame { aspect-ratio: 16 / 9; }
  .modal-zone-info { padding-bottom: var(--sp-6); }
  .modal-details-body { gap: var(--sp-5); padding-top: var(--sp-6); }
  .modal .variant-card { min-height: 52px; padding-block: 7px; }
  .modal .pick-chip { padding: 0 12px 0 8px; }
}

/* ---- the dish: kicker, name, tags, story, allergy note ---- */
.modal-header-info { display: grid; gap: var(--sp-3); }
.modal-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 40px; margin: -6px 0 -6px; }
.modal-kicker-row__end { display: inline-flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.modal-kicker-row__end:empty { display: none; }
.modal-kicker {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--text-3); font-size: var(--fs-11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.modal-kicker:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.modal-title-row { display: flex; align-items: flex-start; gap: var(--sp-2); }
.modal-title-row .veg-indicator { margin-top: 7px; }
.modal-product-title { flex: 1; min-width: 0; font: 700 var(--fs-24)/1.15 var(--font-display); letter-spacing: -.025em; }
@media (min-width: 900px) { .modal .modal-product-title { font-size: 1.75rem; } }
/* Relative, not static: the heart's ::before disc is absolutely placed,
   and with a static button it filled the whole dialog (round 2 check). */
.btn-favorite-modal { position: relative; top: auto; right: auto; flex: none; width: 44px; height: 44px; margin: -4px -6px 0 0; background: none; }
.btn-favorite-modal::before { inset: 4px; background: var(--surface-2); }
.modal-badges-row { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-badges-row:empty { display: none; }
.modal-badge, .product-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 4px;
  background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); font-weight: 600;
}
.modal-dish .modal-badge, .modal-dish .product-chip { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.product-chip .ico, .product-chip svg { width: 14px; height: 14px; }
.chip-spice { color: var(--danger); }
.product-star-aggregate { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13); font-weight: 700; color: var(--veg); }
.modal-product-description { color: var(--text-2); font-size: var(--fs-14); line-height: 1.65; }
.modal-more { display: none; }
.modal-fullpage {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-left: auto; white-space: nowrap;
  color: var(--accent-ink); font-size: var(--fs-13); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.modal-fullpage:hover { text-decoration-thickness: 2px; }
.modal-fullpage__arrow { text-decoration: none; }
.modal-unavailable-eta { margin-bottom: var(--sp-2); color: var(--accent-ink); font-weight: 600; font-size: var(--fs-14); }
/* Phones and tablets, sheet and dish page alike: a long story folds to two
   lines, so the sizes come up on the first screen ("Read more" unfolds
   it). Tablets too since round 3: at 768 the story pushed the sizes out of
   the dialog. */
@media (max-width: 1023.98px) {
  .modal-product-description.is-long:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .modal-more {
    display: inline-flex; justify-self: start; align-items: center; min-height: 40px; margin: -12px 0 -8px; padding: 0;
    border: 0; background: none; color: var(--text); font-size: var(--fs-13); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  }
}

/* Allergen note (3.1 / 5.9): small print under a hairline, never hidden.
   Not a tinted box with a coloured left edge. */
.allergen-note { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-12); line-height: 1.6; }
.allergen-note__mark { color: var(--text-3); padding-top: 1px; }
.allergen-note__mark .ico, .allergen-note__mark svg { width: 16px; height: 16px; }
.allergen-note a { font-weight: 600; }
.allergen-list { margin: 4px 0 6px; padding-left: 1.1em; }

/* ---- the choice: sizes, add-ons, quick-picks ---- */
.variant-selector-fieldset, .addon-selector-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.variant-selector-legend, .addon-selector-legend { width: 100%; padding: 0; margin-bottom: var(--sp-3); font-size: var(--fs-16); font-weight: 700; letter-spacing: -.01em; }
.legend-hint { color: var(--text-3); font-size: var(--fs-13); font-weight: 500; }
/* Sizes: squared tiles side by side, name over price. */
/* auto-fit, not auto-fill: two sizes share the row half and half, and a
   single size fills it instead of sitting in a half-empty row (owner, 5 Oct). */
.variant-options-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, calc(50% - 4px)), 1fr)); gap: var(--sp-2); }

.variant-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tick name" "tick price"; align-items: center;
  column-gap: var(--sp-3); row-gap: 2px; min-height: 60px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.variant-card .variant-radio-input { grid-area: tick; width: 20px; height: 20px; }
.variant-card .variant-radio-input::before { width: 8px; height: 8px; }
.variant-name { grid-area: name; font-size: var(--fs-14); font-weight: 600; line-height: 1.3; }
.variant-price { grid-area: price; color: var(--text-2); font-size: var(--fs-14); font-weight: 700; font-variant-numeric: tabular-nums; }
.variant-card:hover { border-color: var(--text-3); }
.variant-card.selected, .variant-card:has(:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.variant-card.selected .variant-price, .variant-card:has(:checked) .variant-price { color: var(--text); }
.variant-card.disabled { opacity: .5; cursor: not-allowed; }
/* The box's own focus ring is a faint glow: ring the whole tile, chip or row. */
.variant-card:has(:focus-visible), .pick-chip:has(:focus-visible), .addon-item-label:has(:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.strikethrough-price { text-decoration: line-through; color: var(--text-3); font-weight: 500; }
.chip-unavailable { margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--danger-soft); color: var(--danger); font-size: var(--fs-11); font-weight: 700; }
.variant-empty-state, .variant-all-unavailable { color: var(--text-3); font-size: var(--fs-14); }
/* One size: nothing to choose, so it is not drawn as a choice. A plain line
   -- the portion, then its price -- with no box, tick or marigold "chosen"
   fill (owner, 5 Oct: the lone card wasted the space). variant-selector.js
   marks it and trims the dish's own name out of the portion. */
.variant-options-list:has(> .variant-card--only) { display: block; }
.variant-card.variant-card--only {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default;
}
.variant-card--only .variant-radio-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.variant-card--only .variant-name { color: var(--text-2); font-size: var(--fs-14); font-weight: 500; }
.variant-card--only .variant-price { color: var(--text); font-size: var(--fs-16); font-weight: 800; }
.variant-card.variant-card--only:has(:focus-visible) { outline: 0; }
/* Add-ons: a ruled list (a price each, so a row each). */
.addon-options-list { display: grid; border-block: 1px solid var(--line); }
.addon-item-label {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-3);
  min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.addon-item-label:first-child { border-top: 0; }
.addon-item-label .addon-checkbox-input { width: 20px; height: 20px; }
.addon-name { font-size: var(--fs-14); font-weight: 600; }
.addon-price { font-size: var(--fs-14); font-weight: 700; font-variant-numeric: tabular-nums; }
.addon-item-label:hover .addon-name { text-decoration: underline 1px var(--line-2); text-underline-offset: 4px; }
/* Quick-picks (5.9): short words, so a row of squared tick-chips. */
.pick-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pick-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: var(--fs-14); font-weight: 600; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.pick-chip input { width: 18px; height: 18px; border-radius: 5px; }
.pick-chip input::before { width: 9px; height: 5px; border-width: 0 0 2px 2px; }
.pick-chip:hover { border-color: var(--text-3); }
.pick-chip:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* Share: one pill beside the kind of food (owner, 5 Oct). A computer gets
   a two-item menu under it (customer-extras.js); a phone its share sheet. */
.modal-header-info .dish-share { position: relative; display: inline-flex; margin: 0; }
.dish-share__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--text);
  font-size: var(--fs-13); font-weight: 700; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dish-share__btn:hover, .dish-share__btn[aria-expanded="true"] { border-color: var(--text-3); background: var(--surface-2); }
.dish-share__btn svg { width: 16px; height: 16px; }
.dish-share__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; display: grid; min-width: 190px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e-3);
}
.dish-share__menu[hidden] { display: none; }
.dish-share__menu a, .dish-share__menu button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text); font-size: var(--fs-14); font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.dish-share__menu a:hover, .dish-share__menu button:hover { background: var(--surface-2); }
.dish-share__out {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--text); color: var(--surface); font-size: var(--fs-13); font-weight: 600; white-space: nowrap;
}
.dish-share__out[hidden] { display: none; }
/* The phone sheet's top line holds the kind of food, the dish page link and
   Share: the pill drops its word there and stays a round icon. */
@media (max-width: 479.98px) {
  .modal .dish-share__btn { width: 36px; padding: 0; justify-content: center; }
  .modal .dish-share__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.modal-zone-extras { display: grid; gap: var(--sp-2); }
/* Only a hidden "last time" line inside: no gap for it. */
.modal-zone-extras:not(:has(> :not([hidden]))) { display: none; }
/* A sold-out dish's one useful action -- "tell me when it is back" (or
   "sign in to be told") -- drawn as a real secondary button, not small print. */
.modal-zone-extras [data-notify-dish], .modal-zone-extras > a.section-hint {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 var(--sp-4);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface);
  color: var(--text); font-size: var(--fs-14); font-weight: 700; text-decoration: none; text-align: center;
}
.modal-zone-extras [data-notify-dish]:hover, .modal-zone-extras > a.section-hint:hover { border-color: var(--text-3); background: var(--surface-2); }
.modal-zone-extras .section-hint[data-last-choice]:not([hidden]) { padding-bottom: var(--sp-3); border-bottom: 0; color: var(--text-2); }

/* ---- the buy block: quantity and total on one line, Add under ---- */
.modal-buy__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.modal-buy__row:has(> .modal-zone-qty:empty):has(> .modal-zone-price:empty) { display: none; }
.qty-selector-wrap { display: flex; align-items: center; gap: var(--sp-3); }
.qty-label { color: var(--text-2); font-size: var(--fs-14); font-weight: 600; }
.qty-stepper { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.qty-btn { width: 44px; height: 100%; border: 0; background: none; color: var(--accent-ink); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.qty-btn:hover:not(:disabled) { background: var(--surface-2); }
.qty-btn:disabled { color: var(--text-3); opacity: .5; cursor: default; }
.qty-display { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.modal-price-breakdown { display: flex; align-items: baseline; gap: var(--sp-2); }
.price-label { color: var(--text-3); font-size: var(--fs-11); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price-val { font-size: var(--fs-24); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.animate-scale { animation: popPrice .22s var(--ease-out); }
@keyframes popPrice { 50% { transform: scale(1.06); } }
.btn-modal-add {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2); width: 100%; min-height: 52px; padding: 0 var(--sp-5);
  border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-16); font-weight: 800; cursor: pointer; transition: background var(--t-fast) var(--ease), transform 100ms var(--ease);
}
.btn-modal-add__amt { margin-left: auto; font-variant-numeric: tabular-nums; }
.btn-modal-add:hover { background: var(--accent-hover); }
.btn-modal-add:active { transform: scale(.98); }
.btn-modal-add.btn-disabled, .btn-modal-add[disabled] { background: var(--surface-2); color: var(--text-3); opacity: 1; pointer-events: none; }
.btn-modal-add.added-success, .btn-modal-add.added-success[disabled] { background: var(--veg); color: #fff; }
.modal-zone-aov { margin: 0; }

/* ---- gallery + lightbox ---- */
.food-gallery-root { position: relative; display: grid; gap: var(--sp-2); }
.gallery-main-frame { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
/* Thumbnails do the dots' job, visibly: no dots. */
.gallery-dots { display: none; }
.gallery-thumbnails { display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.gallery-thumb { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity var(--t-med) var(--ease); }
.gallery-lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.92); }
.lightbox-dialog { position: relative; width: min(960px, 100vw); padding: var(--sp-4); }
.lightbox-img-wrap { display: grid; place-items: center; }
.lightbox-img { max-height: 80vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
.lightbox-counter { margin-top: var(--sp-2); color: rgba(255,255,255,.7); text-align: center; font-size: var(--fs-13); }

/* THE DISH PAGE (/menu/{slug}): the sheet laid on a page. Phone: photo
   edge to edge, the dish, then the choice with its buy block sticking to
   the bottom. 1024px up: the choice docked in a sticky panel on the right. */
.product-detail-page { max-width: var(--shell); margin: 0 auto; padding: var(--sp-4) var(--gutter) var(--sp-12); }
.product-detail-card { display: grid; gap: var(--sp-8); }
.detail-dish { display: grid; gap: var(--sp-5); align-content: start; min-width: 0; }
.detail-gallery-zone:empty { display: none; }
/* Rounded with a margin on phones too, like the home page's photo: edge
   to edge under the header, its loading box touched the header with no gap
   (owner, 5 Oct). */
.detail-gallery-zone .gallery-main-frame, .detail-gallery-zone .skeleton-img-box { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.detail-dish .skeleton-line { max-width: 520px; }
.detail-dish .skeleton-line:first-child { height: 32px; margin-top: var(--sp-2); }
/* Nothing to buy yet (loading, or no such dish): no empty bar at the foot. */
.detail-content-zone .modal-buy:has(> .modal-zone-cta:empty) { display: none; }
.detail-gallery-zone .gallery-thumbnails { padding-top: var(--sp-1); }
.detail-dish .modal-zone-info { padding: 0; }
.detail-dish .modal-header-info { gap: var(--sp-4); }
.detail-dish .modal-product-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.02; letter-spacing: -.035em; }
.detail-dish .modal-title-row .veg-indicator { margin-top: .45em; }
.detail-dish .modal-header-info { max-width: 680px; }
.detail-dish .modal-product-description { font-size: var(--fs-16); }
.detail-gallery-zone:empty + .modal-zone-info { padding-top: var(--sp-6); }
.detail-content-zone { display: grid; gap: var(--sp-4); min-width: 0; }
.detail-choices { display: grid; gap: var(--sp-6); }
.detail-choices > :empty { display: none; }
.detail-content-zone .modal-buy {
  position: sticky; bottom: 0; z-index: 3; margin-inline: calc(var(--gutter) * -1);
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--e-2);
}
/* Above the tab bar and, with something in the basket, the floating bar. */
body.has-tabbar .detail-content-zone .modal-buy { bottom: var(--tabbar-h); padding-bottom: var(--sp-3); }
body:has(#floating-cart-container.has-cart) .detail-content-zone .modal-buy { bottom: 76px; }
body.has-tabbar:has(#floating-cart-container.has-cart) .detail-content-zone .modal-buy { bottom: calc(var(--tabbar-h) + 76px); }
@media (min-width: 768px) {
  .product-detail-page { padding-top: var(--sp-6); }
  .detail-gallery-zone .gallery-main-frame, .detail-gallery-zone .skeleton-img-box { aspect-ratio: 16 / 10; }
}
@media (min-width: 1024px) {
  .product-detail-card { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: var(--sp-12); align-items: start; }
  .detail-gallery-zone .gallery-main-frame, .detail-gallery-zone .skeleton-img-box { aspect-ratio: 3 / 2; }
  .detail-content-zone {
    position: sticky; top: calc(var(--hdr-live, var(--header-h)) + var(--sp-6));
    display: flex; flex-direction: column; gap: 0; max-height: calc(100vh - var(--hdr-live, var(--header-h)) - var(--sp-12));
    border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--e-2); overflow: hidden;
  }
  .detail-choices { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-6); border-top: 0; }
  .detail-content-zone .modal-buy, body.has-tabbar .detail-content-zone .modal-buy, body:has(#floating-cart-container.has-cart) .detail-content-zone .modal-buy {
    position: static; margin: 0; padding: var(--sp-4) var(--sp-6) var(--sp-4); box-shadow: none;
  }
  .detail-content-zone .modal-zone-aov:not([hidden]) { margin: 0 var(--sp-6) var(--sp-4); }
}
/* No such dish (404) or taken off the menu (410): the page says so, big. */
body.dish-missing .detail-content-zone { display: none; }
body.dish-missing .product-detail-card { grid-template-columns: minmax(0, 1fr); }
body.dish-missing .error-msg { justify-items: start; gap: var(--sp-4); padding: var(--sp-12) 0; text-align: left; }
body.dish-missing .error-msg p { font: 800 clamp(2rem, 1.4rem + 2.4vw, 3.25rem)/1.05 var(--font-display); letter-spacing: -.035em; color: var(--text); }
body.dish-missing .error-msg a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent); text-decoration: none;
}
body.dish-missing .error-msg a:hover { background: var(--accent-hover); }

/* Reviews on the dish page */
.product-reviews-section { margin-top: var(--sp-12); }
.reviews-header-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.reviews-aggregate-summary { display: flex; align-items: center; gap: var(--sp-4); }
.reviews-big-score { font: 800 var(--fs-32)/1 var(--font-display); letter-spacing: -.02em; }
.reviews-stars-visual { color: var(--accent-ink); letter-spacing: 2px; }
.reviews-total-subtext { color: var(--text-3); font-size: var(--fs-13); }
.reviews-sort-select { width: auto !important; min-height: 44px; font-size: var(--fs-14) !important; }
.reviews-list { display: grid; }
.review-card-item { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.review-item-top { display: flex; justify-content: space-between; gap: var(--sp-3); margin-bottom: 6px; }
.review-author { font-weight: 700; font-size: var(--fs-14); }
.review-date { color: var(--text-3); font-size: var(--fs-12); }
.review-stars { color: var(--accent-ink); letter-spacing: 1px; font-size: var(--fs-14); }
.review-text { color: var(--text-2); font-size: var(--fs-14); line-height: 1.6; margin-top: 4px; }
.review-kitchen-reply { margin: var(--sp-3) 0 0 var(--sp-5); font-size: var(--fs-13); color: var(--text-2); }
.review-kitchen-reply strong { display: block; color: var(--text-3); font-size: var(--fs-11); letter-spacing: .1em; text-transform: uppercase; }

/* Room for the floating bar (benaam.css) only while it is up, inside the
   footer: a body padding left a page-ground band under it (QA, 1 Oct). */
body:has(#floating-cart-container.has-cart) .foot { padding-bottom: 88px; }
/* 1024-1279: the bar over the dishes column, not across the index. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .menu-page .floating-cart-bar { --side: max(0px, (100% - var(--shell)) / 2); max-width: none; margin: 0 var(--side) 0 calc(var(--side) + var(--rail-w) + var(--sp-10)); }
}

/* Favourite toast (favorites.js) */
.toast-notice {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 88px + var(--safe-b)); transform: translateX(-50%); z-index: 110;
  padding: 12px var(--sp-5); border-radius: var(--r-md); background: var(--text); color: var(--surface);
  font-size: var(--fs-14); font-weight: 600; white-space: nowrap; box-shadow: var(--e-2);
}
