/* Cardápio digital — Restaurante Lanchonete Bom Retiro (v4: sans moderna + animações clean) */
:root {
  --preto: #0a0806;
  --preto-2: #131009;
  --preto-3: #1c1710;
  --ouro: #cc8e22;
  --ouro-claro: #e6b55c;
  --ouro-escuro: #9a6812;
  --creme: #f5ecda;
  --creme-2: rgba(245, 236, 218, .74);
  --creme-3: rgba(245, 236, 218, .52);
  --linha: rgba(204, 142, 34, .32);
  --linha-fraca: rgba(245, 236, 218, .09);
  --vidro: rgba(14, 11, 7, .38);
  --vidro-borda: rgba(245, 236, 218, .1);
  --pimenta: #e0603a;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topo-h: calc(env(safe-area-inset-top, 0px) + 96px);
  --barra-h: 0px;
  --sb: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, .8, .24, 1);          /* ease-out padrão */
  --ease-in: cubic-bezier(.4, 0, .9, .5);
  --mola: cubic-bezier(.22, 1.16, .36, 1);        /* spring sutil (overshoot ~3%) */
  --t1: .16s; --t2: .24s; --t3: .3s;
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.tem-carrinho { --barra-h: calc(62px + var(--sb)); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--preto); color: var(--creme); overflow: hidden; }
body {
  font-family: var(--sans); font-size: 15px; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
  overscroll-behavior: none; font-feature-settings: "lnum" 1;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sobretitulo { margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ouro); }
.link-dourado {
  color: var(--ouro-claro); font: 600 13.5px/1 var(--sans); text-decoration: none;
  padding: 12px 4px; border-bottom: 1px solid transparent;
}
.link-dourado:hover { border-bottom-color: currentColor; }

/* ===================== Abertura ===================== */
.abertura {
  position: fixed; inset: 0; z-index: 100; background: var(--preto);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.abertura::after { content: ""; position: absolute; inset: 0; background: var(--grao); opacity: .06; pointer-events: none; }
.abertura.sai { opacity: 0; visibility: hidden; }
.abertura__moldura { position: absolute; inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); width: 100%; height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.abertura__moldura rect {
  fill: none; stroke: var(--ouro); stroke-width: 1; opacity: .6;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: desenha 1.1s var(--ease) forwards;
}
.abertura__moldura rect + rect { opacity: .3; animation-delay: .12s; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
.abertura__centro { position: relative; text-align: center; width: min(72vw, 300px); }
.abertura__logo { position: relative; overflow: hidden; -webkit-mask: url(assets/logo.webp) center / contain no-repeat; mask: url(assets/logo.webp) center / contain no-repeat; opacity: 0; transform: translateY(8px) scale(.97);
  animation: logoEntra .8s var(--ease) .12s forwards; }
.abertura__logo img { width: 100%; height: auto; }
.brilho { position: absolute; inset: -20% auto -20% -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 205, .7), transparent);
  transform: skewX(-18deg); animation: brilho 1.1s var(--ease) .7s forwards; }
@keyframes logoEntra { to { opacity: 1; transform: none; } }
@keyframes brilho { to { left: 130%; } }
.abertura__sub { margin: 24px 0 0; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--creme-3);
  opacity: 0; animation: sobe .6s var(--ease) .55s forwards; }
@keyframes sobe { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== Topo ===================== */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 0;
  transition: background var(--t3) var(--ease), box-shadow var(--t3) var(--ease);
}
.modo-shorts .topo::before {
  content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 6, .62) 0%, rgba(10, 8, 6, .28) 55%, rgba(10, 8, 6, 0) 100%);
}
.modo-lista .topo.solido { background: rgba(10, 8, 6, .94); box-shadow: 0 1px 0 var(--linha-fraca); }
@supports (backdrop-filter: blur(1px)) {
  .modo-lista .topo.solido { background: rgba(10, 8, 6, .78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
}
.topo__linha { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; }
.topo__marca { width: 30px; height: auto; justify-self: center; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); transition: opacity var(--t3) var(--ease); }
.modo-lista .topo:not(.solido) .topo__marca { opacity: 0; }
.topo__acoes { display: flex; gap: 6px; justify-self: end; }

.mesa-pill, .icone-btn {
  background: var(--vidro); border: 1px solid var(--vidro-borda);
}
@supports (backdrop-filter: blur(1px)) {
  .mesa-pill, .icone-btn, .menu-mais, .barra__btn { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.mesa-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px 0 12px; border-radius: 99px;
  font: 500 12.5px/1 var(--sans); color: var(--creme-2);
  transition: transform var(--t1) var(--ease);
}
.mesa-pill:active { transform: scale(.95); }
.mesa-pill__num { font: 700 14px/1 var(--sans); color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.mesa-pill.pisca { animation: pisca 1.2s ease-in-out 3; }
@keyframes pisca { 50% { transform: scale(1.06); } }

.icone-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  transition: transform var(--t1) var(--ease), background var(--t2);
}
.icone-btn:active { transform: scale(.9); }
.icone-btn[aria-expanded="true"] { background: rgba(245, 236, 218, .14); }
.icone-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--creme); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icone-btn svg .fill { fill: var(--creme); stroke: none; }
.modo-shorts .ic-shorts, .modo-lista .ic-lista { display: none; }
.carrinho-btn.bate svg { animation: bate .32s var(--ease); }
@keyframes bate { 40% { transform: scale(1.18) translateY(-1px); } 100% { transform: none; } }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; overflow: hidden;
  background: var(--ouro); color: var(--preto); font: 700 10.5px/18px var(--sans); text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px rgba(10, 8, 6, .9);
}
.badge__n { display: block; }
.badge__n.conta { animation: conta .26s var(--ease); }
@keyframes conta { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.ponto-vivo { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ouro-claro); }
.ponto-vivo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ouro-claro); animation: vivo 1.8s var(--ease) infinite; }
@keyframes vivo { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

/* menu ⋯ */
.menu-mais {
  position: absolute; right: 16px; top: calc(env(safe-area-inset-top) + 58px); z-index: 5;
  min-width: 228px; padding: 6px; border-radius: 18px;
  background: rgba(24, 19, 12, .9); border: 1px solid var(--vidro-borda);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .8);
  transform-origin: calc(100% - 18px) 0; opacity: 0; transform: translateY(-4px) scale(.96);
  transition: opacity var(--t1) var(--ease), transform var(--t2) var(--ease);
}
.menu-mais.aberto { opacity: 1; transform: none; }
.menu-mais__item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 12px; border-radius: 12px;
  font: 500 14.5px/1 var(--sans); color: var(--creme); text-decoration: none; text-align: left;
  transition: background var(--t1);
}
.menu-mais__item:active, .menu-mais__item:hover { background: rgba(245, 236, 218, .07); }
.menu-mais__item svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: var(--ouro-claro); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-mais__item b { color: var(--ouro-claro); font-weight: 700; margin-left: 2px; }
.menu-mais__item--vivo { border-bottom: 1px solid var(--linha-fraca); border-radius: 12px 12px 6px 6px; margin-bottom: 2px; }
.menu-mais__item.chamado svg { animation: sino .6s var(--ease); }
@keyframes sino { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-5deg); } }

/* Abas de categoria */
.abas {
  position: relative; display: flex; justify-content: space-between; gap: 4px;
  height: 44px; margin: 0 -4px; overflow-x: auto; scrollbar-width: none;
}
.abas::-webkit-scrollbar { display: none; }
.aba {
  position: relative; flex: 0 0 auto; padding: 0 4px; height: 44px;
  font: 500 14px/44px var(--sans); letter-spacing: -.005em; color: rgba(245, 236, 218, .6);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5); transition: color var(--t2) var(--ease);
}
.aba[aria-current="true"] { color: var(--creme); }
.abas__trilho {
  position: absolute; left: 0; bottom: 6px; height: 2px; width: 100px; border-radius: 2px; background: var(--ouro-claro);
  transform-origin: 0 50%; transform: scaleX(.2);
  transition: transform var(--t3) var(--ease); pointer-events: none; will-change: transform;
}

/* ===================== Feed (shorts) ===================== */
.feed {
  position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: opacity var(--t3) var(--ease);
}
.feed::-webkit-scrollbar { display: none; }
.modo-lista .feed { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease-in), visibility 0s linear .2s; }

.card {
  position: relative; height: 100vh; height: 100dvh; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always; contain: layout paint;
  background: var(--preto);
}
.card__midia { position: absolute; inset: 0; will-change: transform; }
.card__midia > video, .card__midia > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__midia > img.kb { transform-origin: 50% 40%; will-change: transform; transform: scale(1.04); }
.card.ativo .card__midia > img.kb { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.5%, -2%, 0); } }
.card__midia > video { opacity: 0; transition: opacity .4s var(--ease); }
.card__midia > video.pronto { opacity: 1; }

/* skeleton com shimmer (uma camada só, anima por transform) */
.card__midia::after, .tile__foto::after, .det__midia::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100%; width: 300%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, var(--preto-3) 42%, #2a2217 50%, var(--preto-3) 58%);
  opacity: 0; transition: opacity var(--t3) var(--ease);
}
.carregando::after { opacity: 1; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { from { transform: translateX(-22%); } to { transform: translateX(22%); } }

/* placeholder enquanto não há mídia */
.ph { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 30%, hsla(var(--h, 34), 55%, 22%, .95) 0%, hsla(var(--h, 34), 50%, 10%, .9) 46%, var(--preto) 82%); }
.ph::before { content: ""; position: absolute; inset: 0; background: var(--grao); opacity: .08; }
.ph__centro { position: absolute; left: 50%; top: 38%; width: min(58vw, 280px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(204, 142, 34, .22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ph__simbolo { width: 30%; height: auto; opacity: .55; }
.ph__nome { margin: 0; max-width: 72%; text-align: center; font: 500 14px/1.3 var(--sans); color: rgba(245, 236, 218, .4); text-wrap: balance; }
.tile__foto .ph__centro { top: 50%; width: 64%; }
.det__midia .ph__centro { top: 46%; width: 42%; }
.car__thumb .ph__centro { top: 50%; width: 100%; border: 0; }
.car__thumb .ph__simbolo { width: 52%; }

.card__veu { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 54%, rgba(10, 8, 6, .42) 70%, rgba(10, 8, 6, .82) 88%, rgba(10, 8, 6, .9) 100%); }

.card__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 20px calc(20px + var(--barra-h) + var(--sb));
  transition: padding-bottom .4s var(--ease);
}
.card__texto { cursor: pointer; }
.card__texto > *, .card__acao { opacity: 0; transform: translateY(8px); transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease); }
.card.ativo .card__texto > *, .card.ativo .card__acao { opacity: 1; transform: none; }
.card.ativo .card__texto > :nth-child(2) { transition-delay: .04s; }
.card.ativo .card__texto > :nth-child(3) { transition-delay: .08s; }
.card.ativo .card__texto > :nth-child(4) { transition-delay: .12s; }
.card.ativo .card__acao { transition-delay: .16s; }

.selos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.selos:empty { display: none; }
.selo {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 9px; border-radius: 99px;
  font: 600 11.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  color: var(--ouro-claro); background: rgba(10, 8, 6, .5); box-shadow: inset 0 0 0 1px rgba(230, 181, 92, .4);
}
.selo svg { width: 11px; height: 11px; fill: currentColor; }
.selo--novo { background: var(--creme); color: var(--preto); box-shadow: none; }
.selo--picante { color: #ffb08f; background: rgba(60, 16, 6, .55); box-shadow: inset 0 0 0 1px rgba(224, 96, 58, .55); }

.card__nome {
  margin: 0; font: 600 30px/1.1 var(--sans); letter-spacing: -.025em; color: var(--creme);
  text-wrap: balance; text-shadow: 0 1px 18px rgba(0, 0, 0, .35);
}
.card__desc {
  margin: 6px 0 0; font: 400 15px/1.4 var(--sans); color: var(--creme-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__preco { margin: 14px 0 0; display: flex; align-items: center; gap: 12px; }
.preco { font: 700 21px/1 var(--sans); color: var(--ouro-claro); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preco small { font: 600 13px/1 var(--sans); letter-spacing: 0; margin-right: 3px; color: var(--ouro); }
.card__vermais { margin-left: auto; font: 500 13px/1 var(--sans); color: var(--creme-2); display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 0 8px 8px; }
.card__vermais svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card__acao { display: flex; gap: 10px; margin-top: 14px; }

/* passo (quantidade) */
.passo {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 50px; border-radius: 99px;
  background: rgba(10, 8, 6, .5); box-shadow: inset 0 0 0 1px rgba(245, 236, 218, .16);
}
.passo__btn { width: 42px; height: 50px; font: 400 21px/1 var(--sans); color: var(--creme); border-radius: 99px; transition: transform var(--t1) var(--ease), color var(--t1); }
.passo__btn:active { transform: scale(.84); color: var(--ouro-claro); }
.passo__btn:disabled { color: rgba(245, 236, 218, .26); }
.passo__num { min-width: 20px; text-align: center; font: 600 16px/1 var(--sans); font-variant-numeric: tabular-nums; }
.passo__num.muda { animation: muda var(--t2) var(--ease); }
@keyframes muda { from { transform: translateY(-5px); opacity: 0; } to { transform: none; opacity: 1; } }

.btn-ouro {
  position: relative; flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 20px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #d89d33 0%, #c98b1f 100%);
  color: #1a1206; font: 700 15px/1 var(--sans); letter-spacing: -.01em;
  box-shadow: 0 8px 22px -10px rgba(204, 142, 34, .65), inset 0 1px 0 rgba(255, 232, 180, .35);
  transition: transform var(--t1) var(--ease), background var(--t2), box-shadow var(--t2);
}
.btn-ouro:active { transform: scale(.96); }
.btn-ouro__rot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  transition: opacity var(--t1) var(--ease), transform var(--t2) var(--ease); }
.btn-ouro__valor { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .78; white-space: nowrap; }
.card .btn-ouro__rot { justify-content: center; gap: 8px; }
.card .btn-ouro__valor:not(:empty)::before { content: "·"; margin-right: 8px; }
.card .btn-ouro__valor:empty { display: none; }
.btn-ouro__ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: opacity var(--t1) var(--ease), transform var(--t2) var(--ease); }
.btn-ouro__ok svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; }
.btn-ouro.feito .btn-ouro__rot { opacity: 0; transform: translateY(-10px); }
.btn-ouro.feito .btn-ouro__ok { opacity: 1; transform: none; }
.btn-ouro.feito .btn-ouro__ok svg { animation: traco .28s var(--ease) .06s forwards; }
.btn-ouro--grande { justify-content: space-between; }
.btn-ouro--cheio { justify-content: center; }
.btn-ouro.espera { background: transparent; color: var(--ouro-claro); box-shadow: inset 0 0 0 1.5px var(--ouro); justify-content: center; }
.btn-ouro[aria-busy="true"] { pointer-events: none; }
.btn-ouro[aria-busy="true"] span { opacity: 0; }
.btn-ouro[aria-busy="true"]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px;
  border: 2px solid rgba(26, 18, 6, .3); border-top-color: #1a1206; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ===================== Barra do carrinho ===================== */
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 12px calc(8px + var(--sb));
  transform: translateY(110%); transition: transform .26s var(--ease-in);
}
.tem-carrinho .barra { transform: none; transition: transform .44s var(--mola); }
.barra__btn {
  width: 100%; height: 54px; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 8px;
  background: rgba(24, 19, 12, .88); color: var(--creme); border: 1px solid rgba(204, 142, 34, .32);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .9);
  transition: transform var(--t1) var(--ease);
}
.barra__btn:active { transform: scale(.98); }
.barra__qtd { min-width: 38px; height: 38px; border-radius: 12px; background: var(--ouro); color: #1a1206;
  font: 700 15px/38px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.barra__txt { flex: 1; text-align: left; font: 600 15px/1 var(--sans); letter-spacing: -.01em; }
.barra__total { color: var(--ouro-claro); font: 700 15px/1 var(--sans); font-variant-numeric: tabular-nums; }

/* ===================== Lista ===================== */
.lista {
  position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain;
  padding: var(--topo-h) 0 calc(var(--barra-h) + 32px);
  background: radial-gradient(140% 50% at 50% 0%, #1b140b 0%, var(--preto) 60%) fixed;
}
.lista::before { content: ""; position: fixed; inset: 0; background: var(--grao); opacity: .04; pointer-events: none; }
.lista.entra { animation: listaEntra var(--t3) var(--ease) both; }
.lista.sai { animation: listaSai .2s var(--ease-in) forwards; }
@keyframes listaEntra { from { opacity: 0; transform: translateY(10px); } }
@keyframes listaSai { to { opacity: 0; transform: translateY(6px); } }
.lista__capa { padding: 6px 16px 0; }
.moldura-classica {
  position: relative; padding: 26px 24px 22px; text-align: center; border-radius: 4px;
  border: 1px solid var(--linha); outline: 1px solid rgba(204, 142, 34, .14); outline-offset: -6px;
}
.moldura-classica img { width: min(58vw, 230px); height: auto; margin: 0 auto; }
.lista__frase { margin: 14px 0 0; font: 400 14px/1.4 var(--sans); color: var(--creme-2); }

.secao { padding: 32px 16px 4px; scroll-margin-top: var(--topo-h); }
.secao__titulo {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px;
  font: 600 22px/1.1 var(--sans); color: var(--creme); letter-spacing: -.025em;
}
.secao__titulo small { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--creme-3); }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 640px) { .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; text-align: left; display: block; width: 100%; cursor: pointer; }
.tile--largo { grid-column: 1 / -1; }
.tile--largo .tile__foto { aspect-ratio: 16 / 10; }
.tile--largo .tile__nome { font-size: 17px; }
.tile__foto { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--preto-3);
  box-shadow: 0 0 0 1px rgba(245, 236, 218, .05); transform: translateZ(0); }
.tile__foto > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tile:active .tile__foto > img { transform: scale(1.03); }
.tile__selo { position: absolute; left: 8px; top: 8px; z-index: 2; }
.tile__selo .selo { height: 22px; padding: 0 8px; font-size: 10.5px; background: rgba(10, 8, 6, .62); }
.tile__selo .selo--novo { background: var(--creme); }
.tile__mais {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ouro); color: var(--preto);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); transition: transform var(--t1) var(--ease);
}
.tile__mais svg { grid-area: 1 / 1; width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity var(--t1) var(--ease), transform var(--t2) var(--ease); }
.tile__mais svg:not(.ic-mais) { opacity: 0; transform: scale(.6); }
.tile__mais.feito .ic-mais { opacity: 0; transform: rotate(90deg) scale(.6); }
.tile__mais.feito svg:not(.ic-mais) { opacity: 1; transform: none; }
.tile__mais:active { transform: scale(.88); }
.tile__nome { margin: 11px 2px 0; font: 600 15px/1.25 var(--sans); letter-spacing: -.015em; color: var(--creme); text-wrap: balance; }
.tile__linha { margin: 5px 2px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tile__preco { font: 700 14px/1 var(--sans); color: var(--ouro-claro); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__serve { font: 500 12px/1 var(--sans); color: var(--creme-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista__rodape { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 40px 16px 8px; color: var(--creme-3); }

/* ===================== Folhas ===================== */
.veu { position: fixed; inset: 0; z-index: 40; background: rgba(5, 4, 3, .6); opacity: 0; transition: opacity var(--t2) var(--ease); }
.veu.ativo { opacity: 1; }
.folha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh;
  display: flex; flex-direction: column; margin: 0 auto; max-width: 560px;
  background: var(--preto-2); border-radius: 24px 24px 0 0; overflow: hidden;
  /* a última sombra preenche o vão do overshoot da mola */
  box-shadow: 0 -1px 0 rgba(204, 142, 34, .22), 0 -30px 80px -20px rgba(0, 0, 0, .8), 0 60px 0 0 var(--preto-2);
  transform: translateY(102%); transition: transform .26s var(--ease-in); will-change: transform;
}
@supports (max-height: 92dvh) { .folha { max-height: 92dvh; } }
.folha.aberta { transform: none; transition: transform .46s var(--mola); }
.folha.arrasta { transition: none; }
.folha__alca { position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: rgba(245, 236, 218, .32); z-index: 3; }
.folha__fechar {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 8, 6, .5); border: 1px solid var(--vidro-borda);
  transition: transform var(--t1) var(--ease);
}
.folha__fechar:active { transform: scale(.9); }
.folha__fechar svg { width: 15px; height: 15px; stroke: var(--creme); stroke-width: 1.8; stroke-linecap: round; }
.folha__rolagem { position: relative; z-index: 1; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.folha__pe {
  position: relative; z-index: 2; flex: 0 0 auto; display: flex; gap: 10px; padding: 12px 16px calc(12px + var(--sb));
  background: var(--preto-2); border-top: 1px solid var(--linha-fraca);
}
/* conteúdo da folha entra junto, discreto */
.folha.aberta .folha__rolagem > * { animation: sobe var(--t3) var(--ease) .06s both; }

.det__midia { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--preto-3); }
.det__midia > img, .det__midia > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.det__midia::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(19, 16, 9, .2) 0%, transparent 28%, transparent 62%, var(--preto-2) 100%); }
.det__midia::after { z-index: 2; }
.det__corpo { position: relative; padding: 0 20px 26px; margin-top: -10px; }
.det__corpo .selos { margin-bottom: 10px; }
.det__nome { margin: 0; font: 600 26px/1.12 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.det__desc { margin: 8px 0 0; color: var(--creme-2); font-size: 15px; line-height: 1.55; }
.det__meta { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.det__preco { font: 700 21px/1 var(--sans); letter-spacing: -.02em; color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.det__serve { font: 500 13px/1 var(--sans); color: var(--creme-3); }
.det__serve:not(:empty)::before { content: "· "; }

.grupo { margin-top: 24px; }
.grupo__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--linha-fraca); }
.grupo__titulo { margin: 0; font: 600 16px/1.2 var(--sans); letter-spacing: -.015em; color: var(--creme); }
.grupo__info { flex: 0 0 auto; font: 600 11px/1 var(--sans); color: var(--creme-3);
  padding: 6px 9px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--linha-fraca); transition: background var(--t2), color var(--t2); }
.grupo__info--obg { color: var(--ouro-claro); box-shadow: inset 0 0 0 1px var(--linha); }
.grupo__info--ok { color: var(--preto); background: var(--ouro); box-shadow: none; }
.grupo.treme { animation: treme .4s var(--ease); }
.grupo.treme .grupo__info { color: var(--preto); background: var(--ouro-claro); }
@keyframes treme { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.opcao { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 2px; border-bottom: 1px solid var(--linha-fraca); cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao__marca { flex: 0 0 auto; width: 22px; height: 22px; border: 1.5px solid rgba(245, 236, 218, .36); border-radius: 50%;
  display: grid; place-items: center; transition: border-color var(--t1), background var(--t1); }
.opcao__marca::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--preto); transform: scale(0); transition: transform var(--t2) var(--mola); }
.opcao--multi .opcao__marca { border-radius: 7px; }
.opcao--multi .opcao__marca::after { width: 11px; height: 6px; border-radius: 0; background: none; border: solid var(--preto); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); margin-top: -3px; }
.opcao input:checked + .opcao__marca { border-color: var(--ouro); background: var(--ouro); }
.opcao input:checked + .opcao__marca::after { transform: scale(1); }
.opcao--multi input:checked + .opcao__marca::after { transform: rotate(-45deg) scale(1); }
.opcao input:focus-visible + .opcao__marca { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }
.opcao input:disabled ~ * { opacity: .4; }
.opcao__nome { flex: 1; font-size: 15px; }
.opcao__preco { font: 600 13.5px/1 var(--sans); color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.campo {
  width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(245, 236, 218, .05);
  border: 1px solid rgba(245, 236, 218, .12); font-size: 15px; outline: none; transition: border-color var(--t2), background var(--t2);
}
.campo::placeholder { color: rgba(245, 236, 218, .34); }
.campo:focus { border-color: var(--ouro); background: rgba(245, 236, 218, .07); }
.campo--area { resize: none; line-height: 1.45; }
.campo.erro { border-color: var(--pimenta); animation: treme .4s var(--ease); }

/* carrinho */
.car__cab { padding: 30px 20px 4px; }
.car__titulo { margin: 8px 0 0; font: 600 28px/1.08 var(--sans); letter-spacing: -.03em; }
.car__lista { list-style: none; margin: 8px 0 0; padding: 0 20px; }
.car__item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linha-fraca); }
.car__item.sai { animation: itemSai .28s var(--ease-in) forwards; }
@keyframes itemSai { to { opacity: 0; transform: translateX(24px); } }
.car__thumb { position: relative; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: var(--preto-3); }
.car__thumb > img { width: 100%; height: 100%; object-fit: cover; }
.car__nome { margin: 0; font: 600 15.5px/1.25 var(--sans); letter-spacing: -.015em; }
.car__ops { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--creme-3); }
.car__obs { margin: 3px 0 0; font: 400 13px/1.4 var(--sans); color: var(--creme-2); }
.car__linha { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.car__linha .passo { height: 36px; }
.car__linha .passo__btn { width: 36px; height: 36px; font-size: 18px; }
.car__linha .passo__num { font-size: 14px; }
.car__sub { font: 600 15px/1 var(--sans); color: var(--creme); font-variant-numeric: tabular-nums; }
.car__vazio { padding: 40px 20px 30px; text-align: center; color: var(--creme-3); }
.car__vazio img { margin: 0 auto 16px; opacity: .5; }
.car__vazio p { margin: 0 0 6px; font: 500 16px/1.4 var(--sans); }
.car__form { padding: 4px 20px 24px; }
.car__campos { display: grid; grid-template-columns: 1fr 88px; gap: 12px; margin-top: 18px; }
.rotulo { display: block; font: 600 12px/1 var(--sans); color: var(--creme-3); }
.rotulo em { font-style: normal; font-weight: 400; }
.campo--mesa { text-align: center; font: 700 20px/1 var(--sans); color: var(--ouro-claro); padding: 11px 8px; font-variant-numeric: tabular-nums; }
.car__resumo { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--linha-fraca); }
.car__total { display: flex; justify-content: space-between; align-items: baseline; }
.car__total span:first-child { font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.car__total span:last-child { font: 700 22px/1 var(--sans); letter-spacing: -.02em; color: var(--ouro-claro); font-variant-numeric: tabular-nums; }
.car__nota { margin: 10px 0 0; font-size: 13px; color: var(--creme-3); }

/* ===================== Status do pedido ===================== */
.status {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 20px calc(24px + var(--sb));
  background: radial-gradient(110% 60% at 50% 32%, #20170b 0%, var(--preto) 66%);
  opacity: 0; transition: opacity var(--t3) var(--ease); overflow-y: auto;
}
.status::before { content: ""; position: absolute; inset: 0; background: var(--grao); opacity: .05; pointer-events: none; }
.status.aberta { opacity: 1; }
.status__moldura { position: absolute; inset: calc(env(safe-area-inset-top) + 12px) 12px calc(var(--sb) + 12px); border-radius: 4px;
  border: 1px solid var(--linha); outline: 1px solid rgba(204, 142, 34, .12); outline-offset: -6px; pointer-events: none; }
.status__miolo { position: relative; width: 100%; max-width: 360px; text-align: center; }
.status.aberta .status__miolo > * { animation: sobe .4s var(--ease) both; }
.status.aberta .status__miolo > :nth-child(2) { animation-delay: .3s; }
.status.aberta .status__miolo > :nth-child(3) { animation-delay: .35s; }
.status.aberta .status__miolo > :nth-child(4) { animation-delay: .4s; }
.status.aberta .status__miolo > :nth-child(5) { animation-delay: .46s; }
.status.aberta .status__miolo > :nth-child(6) { animation-delay: .52s; }
.status.aberta .status__miolo > :nth-child(7) { animation-delay: .58s; }
.selo-ok { width: 96px; height: 96px; margin: 0 auto 22px; }
.selo-ok svg { width: 100%; height: 100%; overflow: visible; }
.selo-ok__anel { fill: rgba(204, 142, 34, .08); stroke: var(--ouro); stroke-width: 2; stroke-dasharray: 327; stroke-dashoffset: 327; transform: rotate(-90deg); transform-origin: center; }
.selo-ok__check { fill: none; stroke: var(--ouro-claro); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 64; stroke-dashoffset: 64; }
.status.aberta .selo-ok__anel { animation: traco .7s var(--ease) .05s forwards; }
.status.aberta .selo-ok__check { animation: traco .36s var(--ease) .55s forwards; }
.status.aberta .selo-ok { animation: seloPop .5s var(--mola) both; }
@keyframes traco { to { stroke-dashoffset: 0; } }
@keyframes seloPop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.status__titulo { margin: 10px 0 0; font: 600 30px/1.08 var(--sans); letter-spacing: -.03em; }
.status__numero { margin: 12px 0 0; color: var(--creme-3); font: 500 13px/1 var(--sans); }
.status__numero strong { font: 700 26px/1 var(--sans); letter-spacing: -.01em; color: var(--ouro-claro); vertical-align: -4px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.trilha { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; padding: 0; position: relative; }
.trilha::before, .trilha::after { content: ""; position: absolute; top: 8px; left: 16.66%; right: 16.66%; height: 2px; border-radius: 2px; }
.trilha::before { background: rgba(245, 236, 218, .12); }
.trilha::after { background: linear-gradient(90deg, var(--ouro-escuro), var(--ouro-claro)); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); transition: transform .6s var(--ease); }
.trilha li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trilha__ponto { width: 18px; height: 18px; border-radius: 50%; background: var(--preto); border: 2px solid rgba(245, 236, 218, .22); transition: background var(--t3), border-color var(--t3); }
.trilha__rot { font: 600 12px/1 var(--sans); color: var(--creme-3); transition: color var(--t3); }
.trilha li.feito .trilha__ponto { background: var(--ouro); border-color: var(--ouro); }
.trilha li.atual .trilha__ponto { background: var(--ouro-claro); border-color: var(--ouro-claro); box-shadow: 0 0 0 6px rgba(204, 142, 34, .18); }
.trilha li.feito .trilha__rot, .trilha li.atual .trilha__rot { color: var(--creme); }
.status__frase { margin: 26px 0 0; min-height: 3em; font: 400 16px/1.5 var(--sans); color: var(--creme-2); }
.status__frase.troca { animation: sobe var(--t3) var(--ease); }
.status__acoes { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 24px; }
.status__acoes .btn-ouro { width: 100%; flex: none; }

/* ===================== Aviso (toast) ===================== */
.aviso {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 102px); z-index: 90; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 14px; background: var(--creme); color: var(--preto);
  font: 600 13.5px/1.35 var(--sans); text-align: center; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: transform var(--t3) var(--ease), opacity var(--t2) var(--ease);
}
.aviso.ativo { transform: translate(-50%, 0); opacity: 1; }
.aviso.erro { background: #2a120a; color: #ffd9c9; box-shadow: 0 0 0 1px rgba(224, 96, 58, .5), 0 18px 40px -14px rgba(0, 0, 0, .8); }

/* ===================== Telas maiores ===================== */
@media (min-width: 700px) {
  .card__info { max-width: 560px; }
}

/* ===================== Movimento reduzido ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .card.ativo .card__midia > img.kb { animation: none; }
  .carregando::after { animation: none; }
  .ponto-vivo::after { display: none; }
  .abertura__logo { opacity: 1; transform: none; }
}
