/* qmen.us — public restaurant slug page (digital menu + live tables).
   Brand tokens (--color-*, --font-sans, .wm) come from output.css, loaded first. */

:root {
  --text-xs: .75rem; --text-sm: .875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 1.875rem;
  --radius-field: .25rem; --radius-box: .5rem;
  --radius-btn: var(--radius-field); --radius-card: var(--radius-box);
  --brand-accent: var(--color-primary); --brand-accent-content: var(--color-primary-content);
  --accent-ink: oklch(46% 0.16 33);   /* chili darkened for text on light (WCAG AA) */
  --mole-900: oklch(21% 0.03 33); --mole-line: oklch(34% 0.03 33);
  --hairline: var(--color-base-300);
  --muted: oklch(46% 0.032 40);   /* secondary text — WCAG AA (>=4.5:1) on the light menu surfaces */
  /* Two accent colours pulled from the restaurant logo at runtime (JS); brand fallback. */
  --logo-c1: var(--color-primary); --logo-c2: var(--color-secondary);
  --catnav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-base-200); font-family: var(--font-sans); color: var(--color-base-content); }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 28px; }
@media (max-width: 560px) { .wrap { padding-inline: 20px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-sm);
  border-radius: var(--radius-btn); border: 1px solid transparent;
  padding: 0 16px; height: 40px; cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--color-base-content); }
.btn-ghost:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }

/* badges */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.badge.success { background: oklch(46% 0.13 155); }   /* darker green so #fff badge text clears AA */
.badge.ghost   { background: var(--color-neutral); }

/* eyebrow + live dot */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm);
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow .live { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 55%, transparent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in oklab, var(--brand-accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand-accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .live { animation: none; } }

/* top platform bar */
.topbar { background: var(--color-base-100); border-bottom: 1px solid var(--hairline); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.topbar .wm { font-size: 22px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); }
@media (max-width: 480px) { .topbar-right .tag { display: none; } }

/* restaurant header (hero) — one block, four styles via [data-hero] */
.rhead { position: relative; background: var(--color-base-100); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.rhead-inner { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 40px; }
.rhead-main { min-width: 0; }
.rest-name { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; margin: 16px 0 0; overflow-wrap: break-word; }
.rest-tag { font-size: var(--text-lg); margin: 12px 0 0; max-width: 46ch; color: var(--muted); }
.rest-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; font-size: var(--text-sm); color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.meta-sep { opacity: .4; }
.rest-meta > .meta-sep:first-child { display: none; }   /* no leading "·" when the status badge is hidden */
.meta-item.meta-link { color: inherit; text-decoration: none; cursor: pointer; }
.meta-item.meta-link:hover { text-decoration: underline; }
.meta-item.wa svg { fill: currentColor; stroke: none; }   /* WhatsApp glyph is a solid icon */
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 13px; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 700;
  background: color-mix(in oklab, oklch(56% 0.14 155) 16%, transparent); color: oklch(42% 0.12 155); }
.status-pill .d { width: 8px; height: 8px; border-radius: 50%; background: oklch(56% 0.14 155); }
.status-pill.closed { background: color-mix(in oklab, var(--color-neutral) 14%, transparent); color: var(--color-neutral); }
.status-pill.closed .d { background: oklch(60% 0.2 25); }   /* Fechado → red dot */

/* self-order CTA */
.self-order-cta { margin-top: 18px; height: 50px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 700;
  background: var(--color-primary); color: var(--color-primary-content, #fff); }

/* full-bleed background layers (cover + marca) */
.rhead-cover { display: none; position: absolute; inset: 0; z-index: 1; }
.rhead-cover .rhead-media { position: absolute; inset: 0; }
.cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, oklch(15% 0.03 33 / .45) 0%, oklch(13% 0.03 33 / .82) 100%); }
.rhead-bg { display: none; position: absolute; inset: 0; z-index: 1; isolation: isolate; }
.rhead-bg-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rhead-tint { position: absolute; inset: 0; mix-blend-mode: multiply; }
.rhead-shade { position: absolute; inset: 0; }

/* logo chip */
.rhead-logo { display: inline-flex; height: 76px; width: auto; aspect-ratio: var(--logo-ar, 1); margin-bottom: 8px;
  border-radius: 14px; overflow: hidden; background: #fff; position: relative;
  box-shadow: 0 6px 18px oklch(18% 0.04 33 / .16); border: 1px solid var(--hairline); }
.rhead-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.rhead-logo .rhead-media { object-fit: contain; padding: 8px; }

/* --- dark --- */
.rhead[data-hero="dark"] { background: var(--mole-900); border-bottom-color: var(--mole-line); }
.rhead[data-hero="dark"] .rest-name { color: #fff; }
.rhead[data-hero="dark"] .rest-tag { color: rgba(255,255,255,.7); }
.rhead[data-hero="dark"] .rest-meta { color: rgba(255,255,255,.75); }
.rhead[data-hero="dark"] .rhead-logo,
.rhead[data-hero="cover"] .rhead-logo,
.rhead[data-hero="marca"] .rhead-logo { box-shadow: 0 8px 24px oklch(0% 0 0 / .3); border: 2px solid rgba(255,255,255,.9); }

/* --- cover --- */
.rhead[data-hero="cover"] { background: var(--mole-900); border-bottom-color: var(--mole-line); }
.rhead[data-hero="cover"] .rhead-cover { display: block; }
.rhead[data-hero="cover"] .rhead-inner { padding-top: 120px; }
.rhead[data-hero="cover"] .rest-name { color: #fff; }
.rhead[data-hero="cover"] .rest-tag { color: rgba(255,255,255,.85); }
.rhead[data-hero="cover"] .rest-meta { color: rgba(255,255,255,.78); }

/* --- marca: logo-colour gradient, optionally over a full-bleed photo --- */
.rhead[data-hero="marca"] {
  --g1: color-mix(in oklab, var(--logo-c1) 90%, black);
  --g2: color-mix(in oklab, var(--logo-c2) 80%, black);
  border-bottom-color: transparent;
  background: radial-gradient(130% 130% at 8% -10%, color-mix(in oklab, var(--logo-c1) 62%, white) 0%, transparent 52%), linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%); }
.rhead[data-hero="marca"][data-grad="vertical"] {
  background: radial-gradient(120% 120% at 82% -12%, color-mix(in oklab, var(--logo-c2) 58%, white) 0%, transparent 50%), linear-gradient(180deg, var(--g1) 0%, var(--g2) 100%); }
.rhead[data-hero="marca"][data-grad="radial"] { background: radial-gradient(125% 150% at 26% 8%, var(--g1) 0%, var(--g2) 78%); }
.rhead[data-hero="marca"][data-photo="on"].has-photo .rhead-bg { display: block; }
.rhead[data-hero="marca"] .rhead-tint { background: linear-gradient(135deg, color-mix(in oklab, var(--logo-c1) 84%, white) 0%, var(--logo-c2) 100%); }
.rhead[data-hero="marca"][data-grad="vertical"] .rhead-tint { background: linear-gradient(180deg, color-mix(in oklab, var(--logo-c1) 84%, white) 0%, var(--logo-c2) 100%); }
.rhead[data-hero="marca"][data-grad="radial"] .rhead-tint { background: radial-gradient(120% 150% at 26% 6%, color-mix(in oklab, var(--logo-c1) 86%, white) 0%, var(--logo-c2) 82%); }
.rhead[data-hero="marca"] .rhead-shade {
  background: linear-gradient(90deg, oklch(16% 0.03 33 / .66) 0%, oklch(16% 0.03 33 / .34) 40%, oklch(16% 0.03 33 / .04) 70%, transparent 100%), linear-gradient(0deg, oklch(14% 0.03 33 / .5) 0%, transparent 46%); }
.rhead[data-hero="marca"] .rhead-inner { position: relative; display: flex; align-items: center; gap: 44px; padding-top: 52px; padding-bottom: 52px; min-height: 232px; }
/* Reserve exactly the logo's real width (140px tall × its aspect ratio) plus the
   right offset + gap, so a wide logo can never cover the title. --logo-ar is set
   on .rhead in the template so .rhead-main inherits it. */
.rhead[data-hero="marca"] .rhead-main { flex: 1 1 auto; min-width: 0; padding-right: calc(140px * var(--logo-ar, 1) + 60px); }
.rhead[data-hero="marca"] .rhead-logo { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); height: 140px; margin: 0; border-radius: 20px; }
.rhead[data-hero="marca"] .rest-name { color: #fff; }
.rhead[data-hero="marca"] .rest-tag { color: rgba(255,255,255,.9); }
.rhead[data-hero="marca"] .rest-meta { color: rgba(255,255,255,.82); }
.rhead[data-hero="marca"] .meta-sep { color: rgba(255,255,255,.55); }
.rhead[data-hero="marca"] .status-pill { background: rgba(255,255,255,.2); color: #fff; }
.rhead[data-hero="marca"] .status-pill .d { background: oklch(78% 0.17 150); }
.rhead[data-hero="marca"] .status-pill.closed .d { background: oklch(70% 0.2 25); }   /* Fechado → red dot (beats the green above) */

/* CTA turns solid-white on the vivid hero styles for contrast */
.rhead[data-hero="marca"] .self-order-cta,
.rhead[data-hero="cover"] .self-order-cta,
.rhead[data-hero="dark"] .self-order-cta { background: #fff; color: var(--color-base-content); }

@media (max-width: 760px) {
  .rhead[data-hero="marca"] .rhead-inner { flex-direction: column; align-items: flex-start; padding-top: 44px; }
  .rhead[data-hero="marca"] .rhead-main { padding-right: 0; order: 2; }
  .rhead[data-hero="marca"] .rhead-logo { position: static; transform: none; order: 1; height: 96px; margin-bottom: 6px; }
}

/* sticky category nav — pins just below the 64px site navbar (z-index 39 < 40) */
.catnav { position: sticky; top: 64px; z-index: 39; background: color-mix(in oklab, var(--color-base-100) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
/* The content wraps (.rhead-inner, .menu) keep the shared .wrap side gutter, so the
   chips' left edge lines up with the title and the menu items. */
.catnav-inner { display: flex; align-items: center; gap: 6px; height: var(--catnav-h); overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: var(--text-sm); color: var(--muted); white-space: nowrap;
  transition: background .12s ease, color .12s ease; }
.chip:hover { background: color-mix(in oklab, var(--color-base-content) 6%, transparent); color: var(--color-base-content); }
.chip.active { background: var(--brand-accent); color: var(--brand-accent-content); }
.chip-mesas { margin-left: auto; border: 1px solid var(--hairline); }
.chip-mesas.active { border-color: transparent; }

/* menu */
.menu { padding-block: 44px 8px; }
.cat { padding: 18px 0 30px; scroll-margin-top: calc(64px + var(--catnav-h) + 12px); }
.cat + .cat { border-top: 1px solid var(--hairline); }
.cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.cat-head h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.cat-head .cat-sub { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
@media (max-width: 720px) { .items { grid-template-columns: 1fr; gap: 4px; } }
.item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
  border-top: 1px solid color-mix(in oklab, var(--hairline) 70%, transparent); }
.item:first-child, .items > .item:nth-child(2) { border-top: none; }
@media (max-width: 720px) { .items > .item:nth-child(2) { border-top: 1px solid color-mix(in oklab, var(--hairline) 70%, transparent); } }
.item-img { position: relative; flex: 0 0 76px; width: 76px; height: 76px; margin-top: 2px; border-radius: 10px;
  background: var(--color-base-300); display: flex; align-items: center; justify-content: center; }
.item-img svg { width: 26px; height: 26px; stroke: color-mix(in oklab, var(--color-base-content) 32%, transparent); stroke-width: 1.6; fill: none; }
.item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* tap the thumbnail to enlarge it */
.item-img-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in; }
.item-img-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* faded corner marks on a library ("i" = illustrative) or AI photo; the label shows on
   hover / tap. The thumbnail doesn't clip (its image rounds itself) so the label can
   spill over the item's text. */
.photo-badges { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 3px; }
.photo-badge { position: relative; height: 16px; min-width: 16px; padding: 0 4px; border: 0; border-radius: 8px;
  background: rgb(0 0 0 / .42); color: #fff; font: 700 9px/16px var(--font-sans, system-ui, sans-serif);
  letter-spacing: .03em; opacity: .7; cursor: help; transition: opacity .15s; }
.photo-badge-i { width: 16px; padding: 0; font: italic 700 10px/16px Georgia, "Times New Roman", serif; letter-spacing: 0; }
.photo-badge:hover, .photo-badge:focus-visible, .photo-badge.is-open { opacity: 1; outline: none; }
.photo-badge-tip { position: absolute; left: 0; bottom: calc(100% + 5px); z-index: 5; padding: 4px 8px; border-radius: 6px;
  background: rgb(20 20 20 / .92); color: #fff; font: 500 11px/1.3 var(--font-sans, system-ui, sans-serif); letter-spacing: 0;
  font-style: normal; white-space: nowrap; opacity: 0; transform: translateY(2px); pointer-events: none;
  transition: opacity .15s, transform .15s; }
.photo-badge:hover .photo-badge-tip, .photo-badge:focus-visible .photo-badge-tip, .photo-badge.is-open .photo-badge-tip { opacity: 1; transform: none; }

/* enlarged-image lightbox (native <dialog> → free focus-trap + Esc + backdrop) */
dialog.img-lightbox { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
  background: transparent; overflow: hidden; place-items: center; }
dialog.img-lightbox[open] { display: grid; }
dialog.img-lightbox::backdrop { background: rgba(20, 14, 10, .84); backdrop-filter: blur(2px); }
dialog.img-lightbox img { max-width: min(92vw, 760px); max-height: 88vh; object-fit: contain; border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55); cursor: zoom-out; }
.img-lb-close { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.img-lb-close:hover { background: rgba(255, 255, 255, .28); }
.img-lb-note { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; padding: 6px 12px;
  border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; white-space: nowrap; }
.img-lb-note:empty { display: none; }
.img-lb-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; }
/* an item with more photos: a count on the thumbnail, arrows + dots in the enlarged view */
.photo-count { position: absolute; right: 4px; bottom: 4px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; pointer-events: none; }
.img-lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; display: grid; place-items: center; }
.img-lb-nav:hover { background: rgba(255, 255, 255, .28); }
.img-lb-nav svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.img-lb-prev { left: 12px; }
.img-lb-next { right: 12px; }
.img-lb-dots { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); display: flex; gap: 7px; }
.img-lb-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.img-lb-dots span.is-on { background: #fff; }
dialog.img-lightbox:not(.is-gallery) .img-lb-nav, dialog.img-lightbox:not(.is-gallery) .img-lb-dots { display: none; }
@media (prefers-reduced-motion: no-preference) {
  dialog.img-lightbox[open] { animation: lb-in .18s ease; }
  dialog.img-lightbox[open]::backdrop { animation: lb-bg .18s ease; }
  @keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
  @keyframes lb-bg { from { opacity: 0; } }
}
.item-body { flex: 1 1 auto; min-width: 0; }
.item-head { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-size: var(--text-lg); font-weight: 700; margin: 0; }
.leader { flex: 1; align-self: flex-end; height: 0; margin-bottom: 5px;
  border-bottom: 1.5px dotted color-mix(in oklab, var(--color-base-content) 28%, transparent); }
.item-price { font-size: var(--text-xl); font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* When a per-size/flavor breakdown is shown, the headline is just a quiet "from a to b"
   hint — all one uniform size (no oversized "major" price), the highlighted prices live below. */
.item-price.item-price-from { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.item-price.item-price-from .from { font-size: inherit; font-weight: inherit; }
.item-was { font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.item-off { font-size: var(--text-sm); font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.happy-banner { margin-top: 16px; font-weight: 700; color: var(--accent-ink); }
.item-price .per-unit { font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
.item-flavors { font-size: var(--text-sm); line-height: 1.4; margin: 10px 0 0; color: var(--color-base-content); opacity: .75; }
/* size/flavor prices — one per line: name + price row, optional description below */
.item-opts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; max-width: 40ch; }
.item-opts .opt { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm); }
.item-opts .opt-row { display: flex; align-items: baseline; gap: 8px; }
.item-opts .opt-name { color: var(--color-base-content); }
.item-opts .opt-lead { flex: 1; align-self: flex-end; height: 0; margin-bottom: 5px;
  border-bottom: 1.5px dotted color-mix(in oklab, var(--color-base-content) 22%, transparent); }
.item-opts .opt-price { color: var(--accent-ink); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-opts .opt-desc { font-size: var(--text-xs); line-height: 1.35; color: var(--muted); }

/* Optional add-on groups (e.g. "Adicionais") — collapsed by default, one option per line. */
.item-optgroup { margin-top: 8px; font-size: var(--text-sm); }
.item-optgroup > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; color: var(--color-base-content); opacity: .82; user-select: none; }
.item-optgroup > summary::-webkit-details-marker { display: none; }
.item-optgroup > summary::marker { content: ""; }
.item-optgroup .og-chev { width: 13px; height: 13px; stroke-width: 2.2; transition: transform .15s ease; }
.item-optgroup[open] > summary { opacity: .95; margin-bottom: 4px; }
.item-optgroup[open] .og-chev { transform: rotate(180deg); }
.item-optgroup .og-list { list-style: none; margin: 0; padding: 0 0 0 2px; display: grid; gap: 4px; max-width: 34ch; }
.item-optgroup .og-list li { display: flex; align-items: baseline; gap: 10px; opacity: .8; }
.item-optgroup .og-opt { color: var(--color-base-content); }
.item-optgroup .og-delta { margin-left: auto; color: var(--color-primary); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-desc { font-size: var(--text-sm); line-height: 1.5; margin: 5px 0 0; color: var(--muted); max-width: 52ch; }

/* mesas */
.mesas-sec { background: var(--color-base-100); border-top: 1px solid var(--hairline); margin-top: 32px;
  padding: 56px 0 64px; scroll-margin-top: var(--catnav-h); }
.mesas-lead { font-size: var(--text-base); line-height: 1.55; margin: 14px 0 0; max-width: 56ch; color: var(--muted); }
.mesas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 34px; }
.mesa { background: var(--color-base-200); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; }
/* every desk is clickable — anyone can open it to see its orders */
.mesa { cursor: pointer; }
.mesa:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px oklch(28% 0.05 33 / .35);
  border-color: color-mix(in oklab, var(--brand-accent) 45%, var(--hairline)); }
.mesa:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.mesa-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 16px; }
.mesa-label { font-size: var(--text-xl); font-weight: 800; }
.qr { width: 116px; height: 116px; background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; }
.qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.mesa-cap { font-size: var(--text-xs); font-weight: 600; margin: 14px 0 0; color: var(--muted); }
.mesa.busy { background: var(--color-base-100); }

/* footer */
footer.ft { background: var(--mole-900); color: rgba(255,255,255,.7); padding: 40px 0 36px; }
.ft-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ft .wm { font-size: 22px; }
.ft .tag { font-size: var(--text-sm); margin-top: 12px; max-width: 34ch; color: rgba(255,255,255,.68); }
.ft-right { font-size: var(--text-sm); color: rgba(255,255,255,.6); text-align: right; }
.ft-right a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; }
.ft-right a:hover { color: #fff; }
.site-footer .ft-bot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--mole-line); font-size: var(--text-xs); color: rgba(255,255,255,.72); }

/* ---------- mobile polish ---------- */
html, body { overflow-x: hidden; }
.rest-name { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .rhead-inner { padding-block: 28px 26px; }
  .rest-name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .rest-tag { font-size: var(--text-base); }
  .menu { padding-block: 28px 8px; }
  .cat-head h2 { font-size: var(--text-2xl); }
  .item-img { flex-basis: 60px; width: 60px; height: 60px; }
  .mesas-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* ---- subtle "Compartilhar" link at the bottom of the page ---- */
.share-bar { display: flex; justify-content: flex-end; padding: 8px 24px 36px; }
.share-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 12px;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent); }
.share-link svg { opacity: .85; }
.share-link:hover { color: var(--color-primary); }

/* ---- share modal ---- */
.share-modal[hidden] { display: none; }
.share-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-backdrop { position: absolute; inset: 0; background: oklch(20% 0.02 33 / .45); }
.share-card { position: relative; z-index: 1; width: 400px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--color-base-100); border-radius: 16px; padding: 28px 30px 30px; text-align: center;
  box-shadow: 0 20px 44px -22px oklch(20% 0.03 33 / .35), 0 2px 8px oklch(20% 0.03 33 / .12); }
.share-x { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent); }
.share-x:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
.share-x svg { width: 18px; height: 18px; }
.share-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.share-hint { font-size: 13.5px; color: color-mix(in oklab, var(--color-base-content) 62%, transparent); margin: 8px 0 22px; }
.share-qr { width: 208px; height: 208px; margin: 0 auto; background: #fff; border: 1px solid var(--color-base-300);
  border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px oklch(0% 0 0 / .06); }
.share-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.share-url { margin-top: 16px; font-family: var(--font-mono, ui-monospace, monospace); font-weight: 700; font-size: 18px; color: var(--color-primary); }
.share-soc { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.share-soc a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.share-soc a svg { width: 21px; height: 21px; }
.share-soc .wa { background: oklch(60% 0.16 150); }
.share-soc .tg { background: oklch(58% 0.13 235); }
.share-soc .fb { background: oklch(48% 0.14 258); }
.share-soc .xx { background: oklch(18% 0 0); }
.share-divider { height: 1px; background: var(--color-base-300); margin: 24px 0; }
.share-seclabel { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent); margin: 0 0 12px; }
.share-orient-label { margin-top: 22px; }
.share-hint-inline { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; }
.share-dl { display: flex; gap: 8px; }
.share-dl button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px;
  border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; border: 1px solid var(--color-base-300);
  background: var(--color-base-100); color: var(--color-base-content); }
.share-dl button svg { width: 16px; height: 16px; }
.share-dl button.on { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-base-100)); color: var(--color-primary); }
.share-dl button.primary { border-color: transparent; background: var(--color-primary); color: var(--color-primary-content); }
.share-orient { display: flex; justify-content: center; gap: 10px; }
.share-orient button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--color-base-300); background: var(--color-base-100); font-weight: 600; font-size: 13px;
  cursor: pointer; color: var(--color-base-content); }
.share-orient button svg { width: 15px; height: 15px; }
.share-orient button.on { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 6%, var(--color-base-100)); color: var(--color-primary); }
.share-orient button.loading { opacity: .6; pointer-events: none; }

/* ======================================================================
   Menu styles (Restaurant.menu_style, body[data-menu]). Clássico is the
   layout above; the others restyle the same markup or swap the item partial.
   ====================================================================== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* compact tables panel (Vitrine, Caderno): a band with one pill per table */
.mesas-band-sec { padding: 8px 0 36px; scroll-margin-top: calc(64px + var(--catnav-h) + 12px); }
.mesas-band { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  padding: 22px 24px; border-radius: var(--radius-card); border: 1px solid var(--hairline); background: var(--color-base-100); }
.mesas-band-text { min-width: 0; flex: 1 1 280px; }
.mesas-band h2 { margin: 0; font-size: var(--text-xl); font-weight: 800; }
.mesas-band p { margin: 6px 0 0; font-size: var(--text-sm); line-height: 1.45; color: var(--muted); max-width: 52ch; }
.mesas-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mesa-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--color-base-200); color: inherit; font-size: var(--text-sm);
  font-weight: 700; text-decoration: none; }
.mesa-pill:hover { border-color: color-mix(in oklab, var(--brand-accent) 45%, var(--hairline)); }
.mesa-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.mesa-pill .dot.free { background: oklch(60% 0.15 150); }
.mesa-pill .dot.busy { background: oklch(62% 0.17 45); }

/* ---------- Vitrine: photo cards ---------- */
[data-menu="vitrine"] .wrap { max-width: 1180px; }
[data-menu="vitrine"] .chip { border: 1px solid var(--hairline); background: var(--color-base-100); color: var(--color-base-content); height: 40px; padding: 0 18px; }
[data-menu="vitrine"] .chip.active { background: var(--color-base-content); color: var(--color-base-100); border-color: transparent; }
[data-menu="vitrine"] .cat + .cat { border-top: 0; }
[data-menu="vitrine"] .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.item-card { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--hairline) !important; border-radius: var(--radius-card);
  background: var(--color-base-100); box-shadow: 0 1px 2px oklch(28% 0.05 33 / .08); overflow: visible; }
.item-card .item-img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.item-card .photo-badges { left: 10px; bottom: 10px; }
.item-card .photo-count { right: 10px; bottom: 10px; }
.card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.item-card .item-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-card .item-flavors { margin: 0; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 9px; border: 1px solid var(--hairline);
  border-radius: 6px; background: var(--color-base-200); font-size: var(--text-xs); }
.opt-chip span { font-weight: 600; }
.opt-chip b { font-weight: 800; }
.card-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-foot .leader { display: none; }
.card-foot .item-price { font-size: var(--text-lg); }
.card-optgroup { margin: 0; }
.card-optgroup > summary { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--color-base-300);
  font-size: var(--text-xs); font-weight: 700; color: var(--color-base-content); }
.card-optgroup[open] { flex-basis: 100%; }
.card-optgroup .og-list { margin-top: 8px; }

/* ---------- Noite: dark page for bars and pizzerias ---------- */
[data-menu="noite"] {
  --color-base-100: oklch(24% 0.03 33); --color-base-200: oklch(19% 0.03 33); --color-base-300: oklch(34% 0.03 33);
  --color-base-content: oklch(93% 0.012 50); --hairline: oklch(31% 0.03 33); --muted: oklch(78% 0.025 45);
  --accent-ink: oklch(84% 0.15 90); --brand-accent: oklch(84% 0.15 90); --brand-accent-content: oklch(24% 0.05 70);
  color-scheme: dark;
}
[data-menu="noite"] .rhead:not([data-hero="cream"]) .self-order-cta { color: oklch(21% 0.03 33); }   /* a white button: keep its text dark */
[data-menu="noite"] .cat + .cat { border-top: 0; }
[data-menu="noite"] .cat-head { align-items: center; gap: 18px; }
[data-menu="noite"] .cat-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--hairline); order: 1; }
[data-menu="noite"] .cat-head h2 { white-space: nowrap; }
[data-menu="noite"] .items { column-gap: 56px; }
[data-menu="noite"] .item { flex-direction: row-reverse; border-top: 0; border-bottom: 1px solid var(--hairline); padding: 18px 0; }
[data-menu="noite"] .item-img { border-radius: 50%; border: 2px solid var(--hairline); flex-basis: 76px; }
[data-menu="noite"] .item-img.is-empty { display: none; }
[data-menu="noite"] .item-img .photo-badges { left: -4px; bottom: -2px; }
[data-menu="noite"] .item-opts { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
[data-menu="noite"] .item-opts .opt { min-width: 88px; padding: 7px 11px; border: 1px solid var(--hairline); border-radius: 6px;
  background: var(--color-base-100); }
[data-menu="noite"] .item-opts .opt-lead { min-width: 10px; border: 0; }
[data-menu="noite"] .item-opts .opt-name { font-weight: 700; }
.item-groupline { margin: 10px 0 0; font-size: var(--text-sm); line-height: 1.6; color: var(--muted); }
.item-groupline strong { font-weight: 700; color: var(--color-base-content); }
[data-menu="noite"] .mesa .qr { display: none; }
[data-menu="noite"] .mesa { align-items: stretch; text-align: left; background: var(--color-base-100); }
[data-menu="noite"] .mesa-top { margin-bottom: 8px; }
[data-menu="noite"] .mesa-cap { margin: 0; }
[data-menu="noite"] .share-link:hover { color: var(--accent-ink); }

/* ---------- Caderno: text only, price tables, a side index ---------- */
body[data-menu="caderno"] { background: var(--color-base-100); }
[data-menu="caderno"] .wrap { max-width: 1120px; }
.menu-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.menu-layout > .menu { flex: 999 1 560px; min-width: 0; padding-top: 32px; }
.menu-aside { flex: 1 1 220px; max-width: 260px; position: sticky; top: 84px; padding-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.side-index { display: flex; flex-direction: column; gap: 2px; }
.side-title, .hours-box > summary { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side-title { margin-bottom: 8px; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 12px;
  border-radius: 6px; color: var(--color-base-content); font-weight: 600; text-decoration: none; }
.side-link:hover { background: color-mix(in oklab, var(--color-base-content) 6%, transparent); }
.side-link.active { background: color-mix(in oklab, var(--brand-accent) 12%, var(--color-base-100)); color: var(--accent-ink); font-weight: 700; }
.side-n { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.hours-box { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--color-base-200); }
.hours-box > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.hours-box > summary::-webkit-details-marker { display: none; }
.hours-box > summary svg { width: 16px; height: 16px; }
.hours-list { margin: 10px 0 0; }
.hours-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: var(--text-sm); font-weight: 500; }
.hours-row dt, .hours-row dd { margin: 0; }
.hours-row.is-today { font-weight: 800; }
[data-menu="caderno"] .cat { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--hairline); }
[data-menu="caderno"] .cat + .cat { border-top: 0; }
[data-menu="caderno"] .cat-head { margin-bottom: 6px; }
[data-menu="caderno"] .cat-head h2 { font-size: var(--text-2xl); }
[data-menu="caderno"] .items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 40px; }
.item-line { display: block; padding: 12px 0; border-top: 0 !important; border-bottom: 1px dashed var(--hairline); }
.item-line .item-name { font-size: var(--text-base); }
.item-line .item-price { font-size: var(--text-base); color: var(--color-base-content); }
.item-line .item-desc, .item-line .item-sizes, .item-line .item-flavors { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); opacity: 1; }
.item-line .item-sizes b { color: var(--color-base-content); font-weight: 700; }
.item-line .item-groupline { margin-top: 3px; font-size: 13px; }
.price-table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead tr { background: var(--color-base-200); }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; }
.price-table thead th { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.price-table thead th.num { color: var(--color-base-content); }
.price-table th span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.price-table tbody tr { border-top: 1px solid var(--hairline); }
.price-table tbody th { font-weight: 700; }
.price-table .num { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { [data-menu="caderno"] .catnav { display: none; } }
@media (max-width: 899px) {
  .menu-layout { display: block; }
  .menu-aside { position: static; max-width: none; padding-top: 20px; }
  .side-index { display: none; }
  .hours-box:not([open]) .hours-list { display: none; }
  .price-table th, .price-table td { padding: 10px 8px; }
  .price-table th span { display: none; }
}
