/* =========================================================
   ÓIO TREM — Cardápio
   Estação ferroviária histórica · experiência contemporânea
   ========================================================= */

:root {
  /* Paleta da marca */
  --petrol: #082F3A;        /* azul-petróleo profundo */
  --petrol-2: #0C3B48;
  --petrol-3: #124B5A;      /* hover sobre petróleo */
  --petrol-deep: #05222B;
  --yellow: #FFD32A;        /* amarelo vivo: seleção, linhas e detalhes ferroviários */
  --yellow-2: #FFDD55;
  --orange: #FF6B24;        /* laranja: Adicionar e Fazer pedido */
  --orange-2: #FF8344;      /* hover (texto petróleo mantém contraste ≥ 5:1) */
  --cream: #FFF5E6;         /* creme: fundo do cardápio e textos sobre petróleo */
  --cream-2: #F6E8D2;
  --paper: #FFF5E6;
  --card: #FFFFFF;          /* cartões brancos valorizam as fotos */
  --amber: #FF9A3C;         /* brilho das luzes (decorativo) */
  --charcoal: #121617;

  /* Texto */
  --ink: #142B33;           /* texto escuro */
  --ink-soft: #4B6068;      /* texto secundário */
  --line: #EADFCC;
  --line-strong: #D9C8AB;
  --on-dark-soft: rgba(255, 245, 230, .8);

  --focus: var(--yellow);

  /* Tipografia (2 famílias) */
  --font-sign: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-text: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Medidas */
  --header-h: 60px;
  --catnav-h: 112px;  /* 2 linhas de abas no celular */
  --gutter: 16px;
  --container: 1200px;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Movimento */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --t-ui: 220ms;
  --t-reveal: 540ms;

  /* Textura fina de impressão */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .16  0 0 0 0 .1  0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (min-width: 760px) {
  :root { --header-h: 68px; --gutter: 24px; --catnav-h: 63px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
html.has-dialog { overflow: hidden; }
/* Destinos das âncoras principais ficam logo abaixo do cabeçalho fixo */
#inicio, #combos, #cardapio, #contato { scroll-margin-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  transition: padding-bottom var(--t-ui) var(--ease-out);
}
body.has-cartbar { padding-bottom: calc(84px + var(--safe-b)); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--petrol); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top var(--t-ui) var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 10px;
  font-family: var(--font-sign); font-weight: 800; font-size: 1.12rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1;
  transition: transform 180ms var(--ease-out), background-color var(--t-ui), border-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui);
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }

/* Laranja com texto petróleo (contraste 5,0:1) para Adicionar e Fazer pedido */
.btn-order { background: var(--orange); color: var(--petrol); box-shadow: 0 10px 22px -12px rgba(255, 107, 36, .75); }
.btn-order:hover { background: var(--orange-2); }
.btn-order:focus-visible { outline-color: var(--petrol); }
/* Amarelo vivo com texto petróleo (9,9:1) para destaques */
.btn-yellow { background: var(--yellow); color: var(--petrol); box-shadow: 0 10px 22px -12px rgba(200, 160, 0, .6); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-yellow:focus-visible { outline-color: var(--petrol); }
.btn-outline { border-color: rgba(255, 245, 230, .55); color: var(--cream); background: rgba(5, 34, 43, .25); }
.btn-outline:hover { border-color: var(--cream); background: rgba(255, 245, 230, .1); }
.btn-dark { background: var(--petrol); color: var(--cream); }
.btn-dark:hover { background: var(--petrol-3); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--petrol); }
.btn-ghost:hover { border-color: var(--petrol); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 12px; background: rgba(8, 47, 58, .08); color: var(--ink);
  transition: background-color var(--t-ui), transform 180ms var(--ease-out);
}
.icon-btn:hover { background: rgba(8, 47, 58, .14); }
.icon-btn:active { transform: scale(.94); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--petrol);
  color: var(--cream);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow var(--t-ui);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 8px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.brand-name { display: none; font-family: var(--font-sign); font-weight: 900; font-size: 1.25rem; letter-spacing: .06em; white-space: nowrap; }
@media (min-width: 420px) { .brand-name { display: inline; } }
@media (min-width: 760px) { .brand-name { font-size: 1.35rem; letter-spacing: .08em; } .brand img { width: 50px; } .header-inner { gap: 12px; } }

/* Menu junto da logo: somente Cardápio e Contato, também no celular */
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-sign); font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 0 10px; border-radius: 8px; color: var(--cream);
  box-shadow: inset 0 -3px 0 transparent;
  transition: color var(--t-ui), box-shadow var(--t-ui), background-color var(--t-ui);
}
@media (hover: hover) { .header-nav a:hover { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); } }
.header-nav a:focus-visible { outline-color: var(--yellow); }
@media (min-width: 760px) { .header-nav { gap: 4px; } .header-nav a { font-size: 1.08rem; letter-spacing: .08em; padding: 0 14px; } }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: var(--yellow); color: var(--petrol);
  font-family: var(--font-sign); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color var(--t-ui), transform 180ms var(--ease-out);
}
.cart-btn:focus-visible { outline-color: var(--cream); }
.cart-btn:hover { background: var(--yellow-2); }
.cart-btn:active { transform: scale(.95); }
.cart-btn-label { display: none; }
@media (min-width: 760px) { .cart-btn-label { display: inline; } }
.cart-btn-count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--petrol); color: var(--cream);
  font-family: var(--font-text); font-size: .82rem; font-weight: 700; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.bump { animation: bump 340ms var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }

/* =========================================================
   TOPO DO CARDÁPIO
   ========================================================= */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 22px 0 30px;
}
.hero-grid {
  display: grid; gap: 14px;
  grid-template-areas: "tag" "title" "lead" "photo" "actions" "board";
}
.station-tag {
  grid-area: tag; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 6px;
  background: var(--petrol); color: var(--cream);
  font-family: var(--font-sign); font-weight: 900; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2px var(--petrol), inset 0 0 0 4px var(--yellow), 0 8px 18px -12px rgba(8, 47, 58, .9);
}
.station-tag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--cream); }
.hero-title {
  grid-area: title; max-width: 11ch;
  font-family: var(--font-sign); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.7rem, 12.5vw, 4.4rem); line-height: .9; letter-spacing: .005em;
  color: var(--petrol); text-wrap: balance;
}
.hero-lead { grid-area: lead; max-width: 34rem; color: var(--ink-soft); font-size: 1.06rem; text-wrap: pretty; }

/* Foto principal: 3:2, a mesma proporção da foto (produto inteiro) */
.hero-photo { grid-area: photo; position: relative; margin: 4px 0 0; max-width: 660px; }
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 16px; background: #2A1E14;
  box-shadow: 0 0 0 3px var(--yellow), 0 28px 46px -28px rgba(8, 47, 58, .8);
}
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; }
.hero-photo-cta {
  display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 14px;
  border: 0; border-radius: 9px; background: var(--petrol); color: var(--cream);
  font-family: var(--font-sign); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7);
  transition: background-color var(--t-ui), transform 180ms var(--ease-out);
}
.hero-photo-cta:hover { background: var(--petrol-3); }
.hero-photo-cta:active { transform: scale(.97); }
.hero-photo-cta:focus-visible { outline-color: var(--yellow); }
.hero-photo-price { color: var(--yellow); font-family: var(--font-text); font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

.hero-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-outline-dark { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-outline-dark:hover { background: var(--petrol); color: var(--cream); }

/* Painel split-flap */
.flap-board {
  grid-area: board; margin-top: 8px; width: 100%; max-width: 420px;
  padding: 10px 12px 12px; border-radius: 10px;
  background: linear-gradient(180deg, var(--petrol-2), var(--petrol-deep));
  box-shadow: 0 0 0 1px rgba(255, 211, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px -24px rgba(8, 47, 58, .9);
  color: var(--cream);
}
.flap-head {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font-family: var(--font-sign); font-weight: 800; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 245, 230, .6);
}
.flap-head span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--orange); }
.flap-row { display: flex; flex-direction: column; gap: 8px; }
.flap-label { font-family: var(--font-sign); font-weight: 900; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.flap-cells { flex: 1; min-width: 0; display: flex; gap: 3px; }
.flap {
  position: relative; flex: 1 1 0; min-width: 20px; max-width: 34px; height: 40px; perspective: 200px;
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #1C2B30 0 50%, #142126 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .04);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .75); }
.flap-char {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-sign); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--cream);
  backface-visibility: hidden;
}
@media (min-width: 560px) {
  .flap-row { flex-direction: row; align-items: center; gap: 12px; }
  .flap-label { flex: none; }
}

/* Entrada do conteúdo — não bloqueia a navegação */
.intro { animation: introUp 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes introUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (min-width: 960px) {
  .hero { padding: 52px 0 60px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "tag photo" "title photo" "lead photo" "actions photo" "board photo";
    column-gap: 56px; row-gap: 16px;
  }
  .hero-title { font-size: clamp(3.6rem, 5.6vw, 5.6rem); }
  .hero-photo { align-self: center; margin: 0; }
  .hero-photo figcaption { left: 16px; bottom: 16px; }
}

/* =========================================================
   DIVISÓRIAS DE TRILHO (amarelo nos trilhos)
   ========================================================= */
.rail-divider { position: relative; height: 40px; display: flex; align-items: center; }
.rail-divider--to-light { background: linear-gradient(180deg, var(--petrol) 0 50%, var(--paper) 50%); }
.rail-divider--to-dark { background: linear-gradient(180deg, var(--paper) 0 50%, var(--petrol-deep) 50%); }
.rail-line {
  position: relative; display: block; width: 100%; height: 16px;
  background:
    linear-gradient(180deg, transparent 0 3px, var(--yellow) 3px 5px, transparent 5px 11px, var(--yellow) 11px 13px, transparent 13px),
    repeating-linear-gradient(90deg, rgba(8, 47, 58, .55) 0 7px, transparent 7px 24px);
  transform-origin: left center;
}
.rail-line::before, .rail-line::after { /* marcos de estação */
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 3px var(--petrol), 0 0 0 5px var(--yellow);
  transform: translateY(-50%);
}
.rail-line::before { left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.rail-line::after { right: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.js .rail-line { transform: scaleX(0); transition: transform 900ms var(--ease-io); }
.js .rail-divider.is-in .rail-line { transform: scaleX(1); }

/* =========================================================
   SEÇÕES / TÍTULOS
   ========================================================= */
.section { padding: 56px 0 64px; }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.section-title {
  margin-top: 8px;
  font-family: var(--font-sign); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: .95; letter-spacing: .01em; color: var(--cream);
  text-wrap: balance;
}
.section-title--ink { color: var(--petrol); }
.section-sub { margin-top: 6px; font-family: var(--font-sign); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--yellow); }
.section-lead { margin-top: 12px; color: var(--on-dark-soft); font-size: 1.06rem; max-width: 40rem; }

/* Revelação ao rolar */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   COMBOS EM DESTAQUE
   ========================================================= */
.combos-feature {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(255, 211, 42, .1), transparent 70%),
    var(--petrol);
  color: var(--cream);
}
.promo-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .promo-grid { grid-template-columns: repeat(3, 1fr); } }

.promo {
  --notch: var(--petrol);
  position: relative; display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.promo-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #2A1E14; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 6px; background: var(--yellow); color: var(--petrol);
  font-family: var(--font-sign); font-weight: 900; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
}
.promo-body {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 20px 20px;
  border-top: 2px dashed var(--yellow);
}
.promo-body::before, .promo-body::after { /* recortes de bilhete */
  content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--notch);
}
.promo-body::before { left: -11px; }
.promo-body::after { right: -11px; }
.promo-name { font-family: var(--font-sign); font-weight: 900; font-size: 1.8rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; color: var(--petrol); }
.promo-includes { list-style: none; padding: 0; display: grid; gap: 6px; }
.promo-includes li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.promo-includes li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--petrol); transform: translateY(-1px); }
.promo-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.promo-price { font-family: var(--font-sign); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--petrol); font-variant-numeric: tabular-nums; }
.promo-price small { font-size: .5em; letter-spacing: .04em; margin-right: 3px; vertical-align: .55em; }
.promo-price sup { font-size: .5em; vertical-align: .75em; margin-left: 1px; }
.promo .btn { min-height: 48px; padding: 0 18px; }
.promo-open { /* abre os detalhes */
  appearance: none; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit;
  letter-spacing: inherit; text-transform: inherit;
}
.promo-open::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.promo .btn, .promo-foot { position: relative; z-index: 1; }
.promo-open:focus-visible { outline: none; }
.promo:has(.promo-open:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }

.notice {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--petrol);
}
.notice .icon { width: 1.05em; height: 1.05em; }

.combos-more { margin-top: 24px; color: var(--on-dark-soft); }
.combos-more strong { color: var(--cream); }
.combos-more a { color: var(--yellow); font-weight: 700; text-underline-offset: 3px; }

/* =========================================================
   CARDÁPIO — fundo creme, cartões brancos
   ========================================================= */
.menu { --focus: var(--petrol); background: var(--paper); }
.menu-intro { padding-top: 44px; padding-bottom: 18px; display: grid; gap: 16px; }
@media (min-width: 900px) { .menu-intro { grid-template-columns: 1fr minmax(320px, 440px); align-items: end; } }
.menu-note { margin-top: 6px; font-size: .88rem; color: var(--ink-soft); }

.search-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-sign); font-weight: 800; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol);
}
.search-field { position: relative; }
.search input {
  width: 100%; height: 52px; padding: 0 50px 0 46px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #5A6B71; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(255, 211, 42, .55); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--petrol); }
.search-clear:hover { background: rgba(8, 47, 58, .08); }

/* Categorias: uma por vez; seleção em amarelo, inativas neutras. 2 linhas de 3 no celular. */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  padding: 8px 0;
  background: var(--paper);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 12px 20px -20px rgba(8, 47, 58, .7);
}
.cat-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 760px) { .cat-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } }
.cat-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 44px; padding: 0 6px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  font-family: var(--font-sign); font-weight: 800; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 200ms, border-color 200ms, color 200ms, transform 160ms var(--ease-out);
}
.cat-tab .icon { display: none; width: 18px; height: 18px; color: var(--ink-soft); stroke-width: 1.9; }
@media (min-width: 420px) { .cat-tab .icon { display: block; } }
.cat-tab:hover { border-color: var(--petrol); }
.cat-tab:active { transform: scale(.97); }
.cat-tab:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.cat-tab[aria-selected="true"] {
  background: var(--yellow); border-color: var(--yellow); color: var(--petrol);
  box-shadow: inset 0 -3px 0 rgba(8, 47, 58, .28);
}
.cat-tab[aria-selected="true"] .icon { color: var(--petrol); }

.menu-body { padding-bottom: 56px; }
.search-status { min-height: 1px; padding-top: 18px; font-weight: 600; color: var(--ink-soft); }
.search-status:empty { padding-top: 0; }

/* Painel da categoria */
.cat-section { padding-top: 28px; scroll-margin-top: calc(var(--header-h) + var(--catnav-h) + 6px); }
.cat-section:focus { outline: none; }
.cat-head { display: grid; gap: 10px; margin-bottom: 18px; }
.cat-sign {
  display: inline-flex; align-items: stretch; justify-self: start; overflow: hidden;
  border-radius: 10px; background: var(--petrol); color: var(--cream);
  box-shadow: 0 0 0 2px var(--petrol), inset 0 0 0 2px var(--yellow), 0 14px 30px -20px rgba(8, 47, 58, .9);
}
.cat-platform {
  display: grid; place-items: center; align-content: center; padding: 8px 12px;
  background: var(--yellow); color: var(--petrol); text-align: center;
  font-family: var(--font-sign); font-weight: 800; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.cat-platform b { display: block; font-size: 1.8rem; font-weight: 900; letter-spacing: 0; line-height: .95; margin-top: 2px; }
.cat-title { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; font-family: var(--font-sign); font-weight: 900; font-size: 2.1rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.cat-title .icon { width: 26px; height: 26px; color: var(--yellow); stroke-width: 1.8; }
.cat-sub { font-family: var(--font-sign); font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cat-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.cat-note .icon { margin-top: 2px; color: var(--petrol); }

.group { margin-top: 26px; }
.group:first-of-type { margin-top: 8px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); }
.group-title { font-family: var(--font-sign); font-weight: 900; font-size: 1.4rem; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.group-note { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }

/* Cartões: foto 3:2 inteira no topo. 2 colunas no celular, 3 a partir de 900 px. */
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .items { gap: 14px; } }
@media (min-width: 900px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.items > li[hidden] { display: none; }

.item {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(8, 47, 58, .05);
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
.item:hover { border-color: var(--line-strong); box-shadow: 0 16px 30px -22px rgba(8, 47, 58, .5); }
.item-media { position: relative; aspect-ratio: 3 / 2; background: #2A1E14; pointer-events: none; }
.item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
.item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-kicker { font-family: var(--font-sign); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.item-name { font-family: var(--font-sign); font-weight: 800; font-size: 1.14rem; line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; color: var(--petrol); }
.item-open {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; text-align: left;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.item-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.item-open:focus-visible { outline: none; }
.item:has(.item-open:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 2px; }
.item-desc {
  font-size: .84rem; line-height: 1.38; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 211, 42, .38); color: var(--petrol);
}
.pill--petrol { background: rgba(8, 47, 58, .09); color: var(--petrol); }
.item-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.item-prices { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
/* preços em petróleo, com destaque tipográfico */
.price { font-family: var(--font-sign); font-weight: 800; font-size: 1.32rem; line-height: 1.05; letter-spacing: .01em; color: var(--petrol); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-family: var(--font-text); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-right: 4px; vertical-align: .2em; }

/* Adicionar: laranja com texto petróleo */
.item-add {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 11px;
  background: var(--orange); color: var(--petrol);
  font-family: var(--font-sign); font-weight: 800; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 16px -10px rgba(255, 107, 36, .9);
  transition: background-color var(--t-ui), transform 180ms var(--ease-out), color var(--t-ui);
}
.item-add:hover { background: var(--orange-2); }
.item-add:active { transform: scale(.92); }
.item-add:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.item-add .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.item-add.is-added { background: var(--petrol); color: var(--yellow); }

/* Celular: preços em cima e “Adicionar” em faixa larga, sem sobrepor valores */
@media (max-width: 599px) {
  .item-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .item-add { width: 100%; height: 42px; }
}
@media (min-width: 600px) {
  .item-body { padding: 14px 16px 16px; gap: 6px; }
  .item-name { font-size: 1.32rem; }
  .item-desc { font-size: .94rem; }
  .item-prices { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
  .price { font-size: 1.5rem; }
  .item-add { padding: 0 14px 0 10px; }
}

.empty-search { text-align: center; padding: 48px 16px 24px; display: grid; justify-items: center; gap: 10px; }
.empty-search h3 { font-family: var(--font-sign); font-weight: 900; font-size: 1.8rem; text-transform: uppercase; color: var(--petrol); }
.empty-search p { max-width: 30rem; color: var(--ink-soft); }
.empty-icon { width: 120px; color: var(--line-strong); }
.empty-search .btn { margin-top: 8px; }
.noscript { padding: 24px; background: var(--card); border-radius: 12px; }

/* =========================================================
   CONTATO / RODAPÉ
   ========================================================= */
.contact { background: var(--petrol-deep); color: var(--cream); }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.contact-copy > .btn { margin-top: 22px; }

/* Instagram: ícone, perfil e botão confortável para toque */
.insta-card {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  padding: 14px 16px; border-radius: 14px; max-width: 30rem;
  background: rgba(255, 245, 230, .06); box-shadow: inset 0 0 0 1px rgba(255, 211, 42, .35);
}
.insta-card:empty { display: none; }
.insta-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--petrol); }
.insta-icon .icon { width: 26px; height: 26px; }
.insta-text { flex: 1; min-width: 150px; }
.insta-label { font-family: var(--font-sign); font-weight: 800; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.insta-handle { font-size: 1.15rem; font-weight: 700; color: var(--cream); overflow-wrap: anywhere; }
.btn-insta { min-height: 48px; padding: 0 20px; border-color: var(--yellow); color: var(--cream); background: transparent; }
.btn-insta:hover { background: var(--yellow); color: var(--petrol); }
.btn-insta:focus-visible { outline-color: var(--cream); }
@media (max-width: 479px) { .btn-insta { flex: 1 1 100%; } }
.contact-info {
  display: grid; gap: 0; border-radius: 14px; overflow: hidden;
  background: rgba(255, 245, 230, .04); box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .14);
}
.contact-info > div { display: grid; gap: 2px; padding: 16px 18px; border-bottom: 1px dashed rgba(255, 245, 230, .16); }
.contact-info > div:last-child { border-bottom: 0; }
.contact-info dt { font-family: var(--font-sign); font-weight: 800; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.contact-info dd { font-size: 1.05rem; font-weight: 500; }
.contact-info a { color: var(--cream); text-underline-offset: 3px; }

.site-footer { background: var(--petrol); color: var(--on-dark-soft); padding: 28px 0 32px; font-size: .9rem; border-top: 3px solid var(--yellow); }
.footer-inner { display: flex; gap: 16px; align-items: center; }
.footer-inner img { width: 56px; flex: none; }
.footer-name { font-family: var(--font-sign); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); font-size: 1rem; }
.footer-slogan { font-style: italic; color: var(--yellow); }
.footer-legal { margin-top: 6px; font-size: .8rem; color: rgba(255, 245, 230, .72); }

/* =========================================================
   BARRA DO PEDIDO / TOAST
   ========================================================= */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 45;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  height: 60px; padding: 0 18px 0 10px; border: 0; border-radius: 14px;
  background: var(--orange); color: var(--petrol);
  box-shadow: 0 0 0 2px var(--petrol), 0 18px 34px -14px rgba(0, 0, 0, .6);
  font-family: var(--font-sign); font-weight: 900; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(calc(100% + 24px)); opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms, background-color var(--t-ui);
}
.cart-bar.is-visible { transform: none; opacity: 1; }
.cart-bar:hover { background: var(--orange-2); }
.cart-bar:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.cart-bar:active { transform: scale(.98); }
.cart-bar-count { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--petrol); color: var(--cream); font-family: var(--font-text); font-size: 1rem; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.cart-bar-label { text-align: left; }
.cart-bar-total { font-family: var(--font-text); font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.cart-bar.pulse { animation: barPulse 420ms var(--ease-out); }
@keyframes barPulse { 0% { box-shadow: 0 0 0 2px var(--petrol), 0 0 0 0 rgba(255, 107, 36, .7); } 100% { box-shadow: 0 0 0 2px var(--petrol), 0 0 0 16px rgba(255, 107, 36, 0); } }
@media (min-width: 760px) {
  .cart-bar { left: auto; right: 24px; bottom: calc(24px + var(--safe-b)); width: 360px; }
  body.has-cartbar { padding-bottom: 0; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); z-index: 70;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 12px;
  background: var(--petrol-deep); color: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 211, 42, .35), 0 18px 36px -16px rgba(0, 0, 0, .7);
  font-weight: 600;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 260ms var(--ease-out), opacity 200ms;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--yellow); stroke-width: 2.6; }
@media (min-width: 760px) { .toast { left: auto; right: 24px; bottom: calc(96px + var(--safe-b)); transform: translateY(16px); } .toast.is-visible { transform: none; } }

/* =========================================================
   DIALOGS (detalhes e pedido)
   ========================================================= */
dialog.sheet {
  --focus: var(--petrol);
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: 100%; max-width: 100%; max-height: 94dvh; height: fit-content;
  margin: auto 0 0 0; overflow: visible;
  transform: translateY(100%);
  transition: transform 300ms var(--ease-out);
}
dialog.sheet.is-open { transform: none; }
dialog.sheet::backdrop { background: rgba(3, 14, 18, 0); transition: background-color 300ms; }
dialog.sheet.is-open::backdrop { background: rgba(3, 14, 18, .62); }
dialog.sheet:focus { outline: none; }

/* Detalhes do produto */
.product-dialog .sheet-inner {
  display: flex; flex-direction: column; max-height: 94dvh;
  background: var(--card); border-radius: 20px 20px 0 0; overflow: hidden;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6);
}
.pd-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
/* Foto 3:2 inteira; troca com o preparo escolhido (sucos) */
.pd-media { position: relative; margin: 0; aspect-ratio: 3 / 2; background: #2A1E14; border-bottom: 4px solid var(--yellow); }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media figcaption {
  position: absolute; right: 10px; bottom: 10px;
  padding: 3px 8px; border-radius: 6px; background: rgba(5, 34, 43, .72); color: var(--cream);
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
}
.pd-plate { /* apresentação tipográfica quando não há foto */
  position: relative; display: grid; align-content: end; gap: 6px; min-height: 140px; padding: 56px 20px 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 245, 230, .04) 0 2px, transparent 2px 10px),
    radial-gradient(500px 200px at 80% 0%, rgba(244, 165, 58, .25), transparent 70%),
    var(--petrol);
  color: var(--cream);
  border-bottom: 4px solid var(--yellow);
}
.pd-plate .icon { position: absolute; right: 18px; bottom: 16px; width: 64px; height: 64px; color: rgba(255, 211, 42, .55); stroke-width: 1.4; }
.pd-plate-kicker { font-family: var(--font-sign); font-weight: 800; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.pd-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(5, 22, 28, .78); color: var(--cream);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color var(--t-ui), transform 180ms var(--ease-out);
}
.pd-close:hover { background: rgba(5, 22, 28, .95); }
.pd-close:active { transform: scale(.94); }
.pd-close:focus-visible { outline-color: var(--yellow); }
.pd-body { padding: 18px 20px 8px; display: grid; gap: 12px; }
.pd-kicker { font-family: var(--font-sign); font-weight: 800; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.pd-title { font-family: var(--font-sign); font-weight: 900; font-size: 2.1rem; line-height: .98; text-transform: uppercase; color: var(--petrol); }
.pd-desc { font-size: 1.04rem; color: var(--ink-soft); }
.pd-includes { list-style: none; padding: 0; display: grid; gap: 4px; }
.pd-includes li::before { content: "•"; color: var(--yellow); font-weight: 900; margin-right: 8px; }
.pd-price { font-weight: 700; font-size: 1.2rem; color: var(--petrol); font-variant-numeric: tabular-nums; }

.opt { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
.opt legend { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; margin-bottom: 10px; font-family: var(--font-sign); font-weight: 900; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.opt-req { margin-left: auto; font-family: var(--font-text); font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: rgba(8, 47, 58, .08); color: var(--ink-soft); text-transform: uppercase; }
.opt.has-error .opt-req { background: #9C2F1C; color: #fff; }
.opt-choices { display: grid; gap: 8px; }
.opt-choices--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-box {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  transition: border-color var(--t-ui), background-color var(--t-ui), box-shadow var(--t-ui);
}
.choice-box::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; transition: border-color var(--t-ui), box-shadow var(--t-ui); }
.choice-text { flex: 1; min-width: 0; display: grid; }
.choice-label { font-weight: 700; }
.choice-detail { font-size: .86rem; color: var(--ink-soft); }
.choice-price { font-weight: 700; color: var(--petrol); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice:hover .choice-box { border-color: var(--petrol-3); }
.choice input:checked + .choice-box { border-color: var(--petrol); background: rgba(255, 211, 42, .16); box-shadow: inset 0 0 0 1px var(--petrol); }
.choice input:checked + .choice-box::before { border-color: var(--petrol); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--petrol); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt-error { margin-top: 8px; font-size: .9rem; font-weight: 700; color: #9C2F1C; }

.field { display: grid; gap: 6px; }
.field-label { font-family: var(--font-sign); font-weight: 900; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; color: var(--petrol); }
.field-label small { font-family: var(--font-text); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
.field input { height: 50px; }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 4px rgba(255, 211, 42, .55); }
.field-hint { font-size: .84rem; color: var(--ink-soft); }
.field.has-error input, .field.has-error textarea { border-color: #9C2F1C; }
.field-error { font-size: .9rem; font-weight: 700; color: #9C2F1C; }

.pd-foot {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--card); border-top: 1px solid var(--line);
}
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; flex: none; }
.stepper button { width: 44px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; color: var(--petrol); border-radius: 10px; transition: background-color var(--t-ui), transform 160ms var(--ease-out); }
.stepper button:hover { background: rgba(8, 47, 58, .07); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { color: #B9AE96; pointer-events: none; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.stepper--sm button { width: 38px; height: 38px; }
.pd-add { flex: 1; justify-content: space-between; min-height: 52px; padding: 0 18px; }
.pd-add .pd-add-total { font-family: var(--font-text); font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

@media (min-width: 760px) {
  dialog.product-dialog {
    margin: auto; width: min(580px, calc(100% - 48px)); max-height: min(90dvh, 860px);
    transform: translateY(18px) scale(.98); opacity: 0;
    transition: transform 280ms var(--ease-out), opacity 220ms;
  }
  dialog.product-dialog.is-open { transform: none; opacity: 1; }
  .product-dialog .sheet-inner { border-radius: 20px; max-height: min(90dvh, 860px); }
  .pd-foot { padding-bottom: 14px; }
}

/* ---------- Bilhete do pedido ---------- */
dialog.cart-dialog { max-height: 94dvh; }
.ticket {
  position: relative; display: flex; flex-direction: column; max-height: 94dvh;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6);
}
.ticket::before { /* perfuração */
  content: ""; position: absolute; left: 14px; right: 14px; top: 6px; height: 8px;
  background: radial-gradient(circle at 4px 4px, rgba(3, 14, 18, .55) 0 3px, transparent 3.5px) 0 0 / 16px 8px repeat-x;
  opacity: .55;
}
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 20px 8px; }
.ticket-kicker { font-family: var(--font-sign); font-weight: 800; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-title { font-family: var(--font-sign); font-weight: 900; font-size: 2.3rem; line-height: 1; text-transform: uppercase; color: var(--petrol); }

.ticket-steps { list-style: none; margin: 4px 20px 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; counter-reset: step; }
.ticket-steps::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 10px; height: 4px; background: linear-gradient(180deg, transparent 0 1px, var(--line-strong) 1px 3px, transparent 3px); }
.ticket-steps li { position: relative; display: grid; justify-items: center; gap: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); counter-increment: step; }
.ticket-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong); color: var(--ink-soft);
  font-size: .78rem; font-weight: 800; transition: background-color var(--t-ui), border-color var(--t-ui), color var(--t-ui);
}
.ticket-steps li.is-done::before { background: var(--petrol); border-color: var(--petrol); color: var(--cream); }
.ticket-steps li.is-current { color: var(--petrol); }
.ticket-steps li.is-current::before { background: var(--yellow); border-color: var(--petrol); color: var(--petrol); }

.ticket-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px 18px; min-height: 120px; }
.ticket-body:focus { outline: none; }
.ticket-stub { position: relative; height: 22px; flex: none; }
.ticket-stub::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--line-strong); }
.ticket-stub::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0 50%, rgba(3, 14, 18, .62) 0 11px, transparent 11.5px),
    radial-gradient(circle at 100% 50%, rgba(3, 14, 18, .62) 0 11px, transparent 11.5px);
}
.ticket-foot { padding: 6px 20px calc(16px + var(--safe-b)); display: grid; gap: 12px; }
.ticket-sum { display: grid; gap: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.sum-row--total { font-family: var(--font-sign); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; color: var(--petrol); }
.sum-row--total span:last-child { font-family: var(--font-text); font-size: 1.3rem; letter-spacing: 0; }
.sum-note { font-size: .86rem; color: var(--ink-soft); }
.ticket-actions { display: flex; gap: 10px; }
.ticket-actions .btn { flex: 1; }
.ticket-actions .btn-ghost { flex: 0 0 auto; }

/* Linhas do pedido */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line-name { font-family: var(--font-sign); font-weight: 800; font-size: 1.2rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; color: var(--petrol); }
.line-opts, .line-note { font-size: .9rem; color: var(--ink-soft); }
.line-note { font-style: italic; }
.line-unit { font-size: .84rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.line-remove { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #8A3A26; font-weight: 700; font-size: .9rem; transition: background-color var(--t-ui); }
.line-remove:hover { background: rgba(156, 47, 28, .08); }

.cart-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 8px 8px; }
.cart-empty svg { width: 140px; color: var(--line-strong); }
.cart-empty h3 { font-family: var(--font-sign); font-weight: 900; font-size: 1.6rem; text-transform: uppercase; color: var(--petrol); }
.cart-empty p { color: var(--ink-soft); max-width: 22rem; }

.form-grid { display: grid; gap: 16px; padding-top: 4px; }
.mode-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-choices .choice-box { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 76px; }
.mode-choices .choice-box::before { position: absolute; right: 12px; top: 12px; }
.mode-choices .icon { width: 26px; height: 26px; color: var(--petrol); }

.review { display: grid; gap: 14px; }
.review-block { padding: 14px; border-radius: 12px; background: rgba(255, 251, 243, .7); box-shadow: inset 0 0 0 1.5px var(--line); }
.review-block h3 { font-family: var(--font-sign); font-weight: 900; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.review-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.review-items li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.review-items small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .86rem; }
.review-items span:last-of-type { font-variant-numeric: tabular-nums; font-weight: 700; }
.review dl { display: grid; gap: 6px; margin: 0; }
.review dl div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.review dt { font-weight: 700; color: var(--ink-soft); }
.review dd { overflow-wrap: anywhere; }
.review-info { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.review-info .icon { color: var(--petrol); margin-top: 2px; }
.sent-note { padding: 12px 14px; border-radius: 12px; background: rgba(255, 211, 42, .2); font-size: .92rem; display: grid; gap: 8px; }
.sent-note button { justify-self: start; }

@media (min-width: 760px) {
  dialog.cart-dialog {
    margin: 0 0 0 auto; width: min(460px, 100%); height: 100dvh; max-height: 100dvh;
    transform: translateX(100%);
  }
  dialog.cart-dialog.is-open { transform: none; }
  .ticket { height: 100dvh; max-height: 100dvh; border-radius: 20px 0 0 20px; }
  .ticket::before { left: 6px; right: auto; top: 18px; bottom: 18px; width: 8px; height: auto;
    background: radial-gradient(circle at 4px 4px, rgba(3, 14, 18, .55) 0 3px, transparent 3.5px) 0 0 / 8px 16px repeat-y; }
  .ticket-head { padding-left: 28px; }
  .ticket-steps { margin-left: 28px; }
  .ticket-body, .ticket-foot { padding-left: 28px; }
}

/* =========================================================
   ABERTURA — logo e locomotiva puxando a página
   ========================================================= */
.page { background: var(--paper); }

html.abertura-ativa,
html.abertura-ativa body { background: #000; overflow: hidden; }
html.abertura-ativa body { padding-bottom: 0; }
html.abertura-ativa .page {
  position: relative; z-index: 1;
  height: 100vh; height: 100svh; overflow: hidden;   /* camada do tamanho da tela durante o movimento */
  transform: translate3d(-400vw, 0, 0);               /* fora da tela até o primeiro quadro */
  will-change: transform;
}
html.abertura-ativa.abertura-reduzida .page { transform: none; }
html.abertura-ativa .cart-bar,
html.abertura-ativa .toast { display: none; }

.abertura-fundo, .abertura-frente { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.abertura-fundo { z-index: 0; }
.abertura-frente { z-index: 90; }
.abertura-reduzida .abertura-frente { background: #000; }

/* luz quente da plataforma atrás do trilho */
.abertura-brilho {
  position: absolute; left: 0; right: 0; top: calc(var(--trilho-y) - 50vh); height: 84vh; opacity: 0;
  background: radial-gradient(ellipse 62% 32% at 50% 60%, rgba(244, 165, 58, .17), rgba(244, 165, 58, 0) 100%);
}
.abertura-trilho {
  position: absolute; left: 0; right: 0; top: var(--trilho-y); height: 16px; opacity: 0;
  background:
    linear-gradient(180deg, #A8926A 0 2px, #5A4C36 2px 5px, transparent 5px),
    repeating-linear-gradient(90deg, #2C241A 0 12px, transparent 12px 38px) 0 5px / 100% 10px no-repeat;
}

/* Logo original + “APRESENTA” */
.abertura-logo {
  position: absolute; left: 50%; top: 44%;
  width: clamp(220px, 26vw, 340px);
  display: grid; justify-items: center; gap: clamp(16px, 2.6vh, 28px);
  opacity: 0; transform: translate(-50%, -50%);
  will-change: opacity, transform;
}
.abertura-logo img { width: 100%; height: auto; }
.abertura-apresenta {
  margin: 0; padding-left: .62em; opacity: 0;
  font-family: var(--font-text); font-weight: 500; font-size: clamp(.7rem, .95vw, .82rem);
  letter-spacing: .62em; text-transform: uppercase; color: rgba(255, 245, 230, .74);
}
.abertura-nome { margin: 0; font-family: var(--font-sign); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4rem); letter-spacing: .08em; color: var(--cream); }
@media (max-width: 759px) { .abertura-logo { width: min(64vw, 280px); top: 40%; } }

.abertura-pular {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 245, 230, .3); background: rgba(0, 0, 0, .4); color: rgba(255, 245, 230, .82);
  font-family: var(--font-text); font-weight: 600; font-size: .85rem; letter-spacing: .03em;
  pointer-events: auto; cursor: pointer;
  transition: border-color var(--t-ui), color var(--t-ui), background-color var(--t-ui);
}
.abertura-pular:hover { border-color: rgba(255, 245, 230, .7); color: var(--cream); }
.abertura-pular:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Borda dianteira da página, com o gancho do engate */
.painel-borda {
  position: absolute; top: 0; bottom: 0; left: 0; width: var(--borda-w);
  background: linear-gradient(90deg, #0E3946, #061A21);
  box-shadow: inset 2px 0 0 rgba(255, 245, 230, .45), 10px 0 26px rgba(0, 0, 0, .6);
  will-change: transform;
}
.painel-gancho {
  position: absolute; left: 100%; top: calc(var(--engate-y) - 15px); width: 11px; height: 30px;
  border-radius: 0 5px 5px 0; background: #0A2630;
  box-shadow: inset 0 0 0 2px rgba(255, 245, 230, .55);
}
.engate {
  position: absolute; left: 0; top: calc(var(--engate-y) - 4px); width: var(--engate-w); height: 8px;
  border-radius: 4px; background: #E8DCC0; box-shadow: 0 0 0 1.5px #0B1E25;
  transform-origin: 0 50%; will-change: transform;
}

/* Locomotiva: desenho enviado + rodas e bielas em SVG por cima */
.trem { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.trem-corpo { display: block; width: 100%; height: auto; }
.trem-pecas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trem-farol { /* facho do farol iluminando o trilho à frente */
  position: absolute; left: 88%; top: 25%; width: 80%; height: 30%;
  background: linear-gradient(90deg, rgba(255, 214, 140, .32), rgba(255, 214, 140, 0) 85%);
  clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%);
  pointer-events: none;
}
.vapor {
  position: absolute; left: 0; top: 0;
  width: var(--vapor); height: var(--vapor); margin: calc(var(--vapor) / -2) 0 0 calc(var(--vapor) / -2);
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(236, 228, 212, .6) 0%, rgba(236, 228, 212, .24) 45%, rgba(236, 228, 212, 0) 70%);
}

/* =========================================================
   MOVIMENTO REDUZIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .rail-line { transform: none; }
}
