/* ---------- Fontes ---------- */
@font-face { font-family: 'Anton'; src: url('../assets/fontes/anton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('../assets/fontes/barlow-sc-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('../assets/fontes/barlow-sc-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --amarelo: #ffe600;
  --amarelo-2: #ffc400;
  --carvao: #0b0a09;
  --texto: #f4f1ec;
  --texto-2: #cfc9c0;
  --brasa: 228, 106, 18;
  --h-topo: 88px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--h-topo) + 12px); background: var(--carvao); }
body {
  margin: 0;
  color: var(--texto);
  font: 500 1.0625rem/1.4 'Barlow SC', 'Arial Narrow', Arial, sans-serif;
  background: var(--carvao) url('../assets/textura/chapa.webp');
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- Cabeçalho ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: #080706;
  border-bottom: 2px solid var(--amarelo);
  height: var(--h-topo);
}
.topo__interno {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 clamp(14px, 4vw, 48px);
  display: flex; align-items: center; gap: clamp(14px, 3vw, 54px);
}
.marca { flex: none; position: relative; z-index: 1; }
.marca img { width: 96px; height: 96px; transform: translateY(5px); }
.menu { display: flex; gap: clamp(14px, 3.4vw, 54px); margin-left: auto; font-weight: 600; font-size: 1.25rem; }
.menu a { position: relative; padding: 8px 0; color: #fff; transition: color .16s ease; }
.menu a.ativo { color: var(--amarelo); }
.menu a.ativo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--amarelo); }

.btn-pedido {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.15em; border-radius: 12px;
  background: var(--amarelo); color: #0b0a09;
  font-weight: 600; font-size: 1.3125rem; white-space: nowrap;
  transition: transform .14s var(--ease-out), background-color .16s ease;
}
.btn-pedido:active { transform: scale(.97); }

/* ---------- Palco do cardápio ---------- */
.palco { position: relative; overflow: clip; padding-bottom: clamp(28px, 5vw, 64px); }
.marca-dagua {
  position: absolute; left: 50%; top: clamp(170px, 21vh, 230px);
  width: min(430px, 82vw); height: auto; transform: translateX(-50%);
  opacity: .1; pointer-events: none;
}
.titulo {
  position: relative; text-align: center; font-family: 'Anton', Impact, sans-serif; font-weight: 400;
  text-transform: uppercase; line-height: 1.04; letter-spacing: .01em; word-spacing: -.08em;
  font-size: clamp(3.3rem, min(10.2vw, 14.5vh), 8.6rem);
  padding: clamp(8px, 1.6vh, 18px) 12px 0;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .7));
  transition: opacity .26s ease-out, transform .26s var(--ease-out);
}
.titulo span { display: inline-block; padding: .06em .02em 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.titulo__b { background-image: linear-gradient(180deg, #fff 45%, #bdbdbd 100%); }
.titulo__a { background-image: linear-gradient(180deg, #fff200 28%, #ffc800 66%, #ffa400 100%); }

/* ---------- Seletor e categorias ---------- */
.seletor { position: relative; display: flex; justify-content: center; padding: 6px 12px 0; transition: opacity .26s ease-out 60ms, transform .26s var(--ease-out) 60ms; }
.seletor__grupo { display: inline-flex; padding: 2px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(8, 7, 6, .84); }
.seletor__op {
  min-width: clamp(118px, 22vw, 150px); min-height: 42px; padding: 0 1.2em; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 1.1875rem;
  transition: background-color .16s ease, color .16s ease;
}
.seletor__op[aria-pressed="true"] { background: var(--amarelo); color: #0b0a09; }
.sentinela { height: 1px; margin-bottom: -1px; }
.filtros-faixa {
  position: sticky; top: var(--h-topo); z-index: 40; padding: 2px 0;
  transition: background-color .18s ease, box-shadow .18s ease, opacity .26s ease-out 90ms;
}
.filtros-faixa.fixada { background: #080706; box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
.filtros-linha { display: flex; align-items: center; gap: 4px; max-width: 1040px; margin: 0 auto; padding: 0 8px; }
.filtros {
  flex: 1; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.filtros[hidden] { display: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtro {
  flex: none; min-height: 44px; padding: 0 .72em; color: var(--texto-2); font-weight: 500; font-size: 1.0625rem; white-space: nowrap;
  transition: color .16s ease, box-shadow .16s ease;
}
.filtro:first-child { margin-left: auto; }
.filtro:nth-last-child(2) { margin-right: auto; }
.fixada .filtro:nth-last-child(2) { margin-right: 0; }
.fixada .filtro:last-child { margin-right: auto; }
.filtro[aria-pressed="true"] { color: var(--amarelo); font-weight: 600; box-shadow: inset 0 -2px 0 var(--amarelo); }
.filtro--troca { position: relative; display: none; color: #fff; }
.fixada .filtro--troca { display: block; }
.filtro--troca::before { content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: rgba(255, 255, 255, .28); }
.busca-btn[hidden] { display: none; }
.busca { flex: 1; display: flex; align-items: center; gap: 4px; }
.busca[hidden] { display: none; }
.busca input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px;
  background: #14110e; color: #fff; font: inherit; font-size: 1.0625rem; outline: none;
}
.busca input:focus { border-color: var(--amarelo); box-shadow: 0 0 0 1px var(--amarelo); }
.busca input::placeholder { color: #a39c92; opacity: 1; }
.busca input::-webkit-search-cancel-button { display: none; }
.busca-resultado { padding: 10px 16px 0; text-align: center; font-size: 1.125rem; color: var(--texto-2); }
.busca-resultado[hidden] { display: none; }

/* ---------- Vitrine ---------- */
.vitrine {
  position: relative; max-width: 1440px; min-height: 40vh; margin: 0 auto; padding: 4px clamp(10px, 1.4vw, 20px) 0;
  transition: opacity .11s ease;
}
.vitrine.trocando { opacity: 0; }
.grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(12px, 1.4vw, 20px); row-gap: clamp(34px, 4.4vw, 58px); }
.grade + .grade { margin-top: clamp(34px, 4.4vw, 58px); }
.grade--bebidas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.secao { margin-top: clamp(30px, 4vw, 52px); scroll-margin-top: calc(var(--h-topo) + 64px); }
.secao:first-child { margin-top: 10px; }
.secao__titulo {
  display: flex; align-items: center; gap: .55em; margin-bottom: clamp(10px, 1.4vw, 16px);
  font-family: 'Anton', Impact, sans-serif; font-weight: 400; letter-spacing: .018em; text-transform: uppercase;
  font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; color: var(--amarelo);
}
.secao__titulo::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 230, 0, .7), transparent); }

/* ---------- Produto ---------- */
.produto { position: relative; display: flex; flex-direction: column; min-width: 0; }
.produto__foto { position: relative; display: block; width: 100%; aspect-ratio: 1.86; margin-inline: auto; padding: 0; }
.produto__foto::before {
  content: ''; position: absolute; inset: -15% -1% 8%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 128, 28, .7), rgba(var(--brasa), .34) 68%, transparent 100%);
}
.produto__foto::after {
  content: ''; position: absolute; left: -12px; right: -12px; bottom: -13%; height: 42%; pointer-events: none;
  background: url('../assets/textura/chapa-piso.webp') center / cover;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 44%, #000 62%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 44%, #000 62%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: .55;
}
.produto__foto picture { position: absolute; inset: 0; z-index: 1; display: block; }
.produto__foto img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 9px 8px rgba(0, 0, 0, .55));
  transition: transform .22s var(--ease-out);
}
.produto__info { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; padding: clamp(8px, 1.4vh, 16px) clamp(4px, 5.5%, 76px) 0; }
/* Enquanto a foto chega, ou se ela faltar, a moldura mostra a logo discreta */
.produto__foto:not(.carregada)::before, .sem-imagem::before {
  inset: 12% 30%;
  background: url('../assets/logo/alex-marca.svg') center / contain no-repeat;
  opacity: .22;
}
.produto--bebida .produto__foto:not(.carregada)::before { inset: 22% 18%; }
.detalhe__foto:not(.carregada)::before, .detalhe__foto.sem-imagem::before { content: ''; position: absolute; }
.produto__foto img[hidden], .detalhe__foto img[hidden], .item__foto img[hidden] { display: none; }
.item__foto.sem-imagem { background: #14110e url('../assets/logo/alex-marca.svg') center / 76% no-repeat; }
.produto__foto.carregada::before { transition: opacity .2s ease-out; }
.produto__nome {
  font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .018em; line-height: 1.06;
  font-size: clamp(2.75rem, min(5.3vw, 8.6vh), 4.75rem); overflow-wrap: anywhere; -webkit-text-stroke: .01em currentColor;
}
.produto__nome button { display: block; width: 100%; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; }
.produto__nome span { display: block; }
.produto__nome .amarelo { color: var(--amarelo); font-size: .84em; line-height: 1.1; }
.produto__desc { margin-top: .28em; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.25; color: var(--texto); }
.pao { margin-top: 12px; scroll-margin: calc(var(--h-topo) + 64px) 0 96px; }
.pao__titulo { margin-bottom: 6px; font-weight: 600; font-size: 1.125rem; }
.pao__opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pao__op {
  min-height: 48px; padding: 0 .4em; border: 2px solid rgba(255, 255, 255, .32); border-radius: 10px;
  background: #100e0c; color: #fff; font-weight: 600; font-size: 1.0625rem; line-height: 1.1;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.pao__op[aria-pressed="true"] { border-color: var(--amarelo); background: var(--amarelo); color: #0b0a09; }
.pao--erro .pao__op { border-color: #ff8a75; }
.pao__erro { margin-top: 6px; font-size: 1.0625rem; font-weight: 600; color: #ffb4a4; }
.pao__erro[hidden] { display: none; }
@media (min-width: 860px) {
  .pao { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; margin-top: 8px; }
  .pao__titulo { margin-bottom: 0; }
  .pao__erro { grid-column: 1 / -1; }
  .produto__foto { width: min(100%, 59vh); }
  .produto__nome { font-size: clamp(2.75rem, min(4.7vw, 7.2vh), 4.25rem); }
}
.produto__opcao { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 1.0625rem; color: var(--texto-2); }
.produto__opcao select {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px;
  background: #171411; color: #fff; font: inherit; font-size: 1.0625rem;
}
.produto__acao { display: flex; align-items: stretch; gap: 12px; margin-top: auto; padding-top: 14px; }
.preco {
  --c: 16px;
  display: inline-flex; align-items: center; gap: .16em; flex: none; padding: .1em .5em .12em;
  background: var(--amarelo); color: #0b0a09; font-family: 'Anton', Impact, sans-serif; line-height: 1.2;
  font-size: clamp(2.3rem, min(3.8vw, 6vh), 3.5rem);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.preco__rs { font-size: .56em; }
.btn-pedir {
  flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 52px; padding: 0 .7em; border: 2px solid var(--amarelo); border-radius: 12px;
  background: #0b0a09; color: var(--amarelo); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.75rem); white-space: nowrap;
  transition: transform .14s var(--ease-out), background-color .16s ease, color .16s ease;
}
.btn-pedir:active { transform: scale(.97); }
.btn-pedir .ico { width: 1.15em; height: 1.15em; }

/* Bebidas: embalagens em pé, com a própria moldura */
.produto--bebida .produto__foto { width: 100%; aspect-ratio: auto; height: clamp(240px, 24vw, 330px); }
.produto--bebida .produto__foto::before { inset: 4% 14% 10%; }
.produto--bebida .produto__foto::after { display: none; }
.produto--bebida .produto__info { padding-inline: 2px; }
.produto--bebida .produto__nome { font-size: clamp(1.75rem, 2.5vw, 2.5rem); }
.produto--bebida .produto__nome span { display: inline; }
.produto--bebida .produto__nome .amarelo { font-size: 1em; }
.produto--bebida .produto__desc { font-size: 1.125rem; }
.produto--bebida .produto__acao { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.produto--bebida .preco { font-size: 1.875rem; --c: 12px; }
.produto--bebida .btn-pedir { flex-basis: 150px; font-size: 1.125rem; }
.produto--bebida .btn-pedir .ico { display: none; }

/* Detalhes */
.detalhe {
  width: min(680px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: visible;
  border: 1px solid rgba(255, 230, 0, .5); border-radius: 16px; color: var(--texto); background: #0e0c0a;
}
.detalhe[open] { animation: detalhe-entra .2s var(--ease-out); }
.detalhe::backdrop { background: rgba(0, 0, 0, .7); }
@keyframes detalhe-entra { from { opacity: 0; transform: translateY(10px); } }
.detalhe #detalhe-fechar { position: absolute; top: 6px; right: 6px; z-index: 3; background: rgba(8, 7, 6, .75); }
.detalhe__corpo { display: flex; flex-direction: column; max-height: calc(100dvh - 26px); padding: 14px 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.detalhe__foto { position: relative; flex: none; width: 100%; aspect-ratio: 1.86; max-height: 46vh; }
.detalhe__foto picture { position: absolute; inset: 0; display: block; }
.detalhe__foto img { width: 100%; height: 100%; object-fit: contain; }
.detalhe__foto--bebida { aspect-ratio: auto; height: min(320px, 42vh); }
.detalhe__grupo { margin-top: 10px; font-size: 1rem; color: var(--texto-2); }
.detalhe__nome { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .018em; line-height: 1.1; font-size: clamp(2rem, 6vw, 3rem); }
.detalhe__nome .amarelo { color: var(--amarelo); }
.detalhe__desc { margin-top: 6px; font-size: 1.1875rem; line-height: 1.3; }
.detalhe .produto__acao { margin-top: 0; }
.detalhe .preco { font-size: 2.5rem; }
.detalhe .btn-pedir { font-size: 1.25rem; }
.detalhe__aviso { margin-top: 10px; font-size: .9375rem; color: var(--texto-2); }

/* Entrada ao rolar */
.revelar { opacity: 0; transform: translateY(14px); transition: opacity .28s ease-out, transform .28s var(--ease-out); }
.revelar.visivel { opacity: 1; transform: none; }
@media (min-width: 760px) { .grade > .revelar:nth-child(2n) { transition-delay: 60ms; } }

/* Continuidade da abertura: título e produtos entram em sequência */
.aguardando .titulo, .aguardando .seletor { opacity: 0; transform: translateY(12px); }
.aguardando .filtros-faixa { opacity: 0; }
.aguardando .marca-dagua { opacity: 0; }
.aguardando .revelar, .aguardando .revelar.visivel { opacity: 0; transform: translateY(14px); }
.marca-dagua { transition: opacity .3s ease-out .1s; }
.entrando .grade > .revelar:nth-child(1) { transition-delay: 110ms; }
.entrando .grade > .revelar:nth-child(2) { transition-delay: 170ms; }

/* ---------- Contato e rodapé ---------- */
.contato {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(36px, 6vw, 64px) 16px clamp(40px, 6vw, 72px); text-align: center;
  scroll-margin-top: var(--h-topo);
}
.contato__titulo { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .012em; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; color: #fff; }
.contato__unidade { font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--amarelo); }
.contato__dados { display: grid; gap: 4px; font-style: normal; font-size: 1.25rem; line-height: 1.3; }
.contato__botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(100%, 640px); }
.contato__botao { flex: 1 1 170px; min-height: 56px; font-size: 1.25rem; }
.contato__trocar { min-height: 44px; font-size: 1.125rem; }
.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--amarelo); font-size: 1.125rem; color: #fff;
}
.rodape .ico { width: 34px; height: 34px; }
.rodape__barra { width: 2px; height: 26px; background: var(--amarelo); }
.rodape__aviso { flex-basis: 100%; text-align: center; font-size: .9375rem; color: var(--texto-2); }
.aviso { padding: 32px 16px; text-align: center; font-size: 1.25rem; }

@media (hover: hover) and (pointer: fine) {
  .menu a:hover { color: var(--amarelo); }
  .btn-pedido:hover { background: #fff; }
  .btn-pedir:hover { background: var(--amarelo); color: #0b0a09; }
  .seletor__op:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .12); }
  .filtro:not([aria-pressed="true"]):hover { color: #fff; }
  .produto:hover .produto__foto img { transform: scale(1.012); }
}

/* Telas baixas de notebook: mantém o preço na primeira dobra */
@media (min-width: 860px) and (max-height: 1000px) {
  .titulo { font-size: 11.6vh; padding-top: 4px; }
  .marca-dagua { top: 130px; width: 380px; }
  .produto__foto { width: min(100%, 54vh); }
  .pao__titulo { font-size: 1.0625rem; }
  .pao__op { min-height: 44px; }
  .produto__nome { font-size: clamp(2.25rem, 7.2vh, 3.25rem); }
  .produto__nome span { display: inline; }
  .produto__nome .amarelo { font-size: 1em; }
  .produto__desc { font-size: 1.125rem; }
  .preco { font-size: clamp(2rem, 6vh, 2.75rem); }
  .btn-pedir { font-size: 1.3125rem; }
  .produto__acao { padding-top: 10px; }
}

@media (min-width: 860px) and (max-height: 760px) {
  .titulo { font-size: 10.6vh; }
  .produto__foto { width: min(100%, 47vh); }
}
@media (min-width: 600px) and (max-width: 859px) {
  .produto:not(.produto--bebida) .produto__foto { width: min(100%, 66vh); }
}

/* Dois produtos por linha em telas estreitas */
@media (min-width: 860px) and (max-width: 1099px) {
  .preco { font-size: 2.125rem; }
  .btn-pedir { font-size: 1.125rem; }
  .btn-pedir .ico { display: none; }
  .produto__info { padding-inline: 4px; }
}
@media (max-width: 1179px) { .grade--bebidas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Celular ---------- */
@media (max-width: 859px) {
  :root { --h-topo: 62px; }
  .marca img { width: 66px; height: 66px; transform: translateY(3px); }
  .menu { font-size: 1.0625rem; gap: 14px; }
  .topo .btn-pedido { min-height: 44px; padding: 0 .75em; font-size: 1.0625rem; border-radius: 10px; gap: .4em; }
  .btn-sacola__texto { display: none; }
  .seletor { padding-top: 4px; }
  .filtros {
    padding-right: 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
  .filtros-linha { padding: 0 2px 0 6px; }
  .grade, .grade--bebidas { grid-template-columns: minmax(0, 1fr); }
  .produto--bebida .produto__foto { width: 100%; }
  .produto--bebida .produto__foto { height: min(70vw, 300px); }
  .marca-dagua { top: 170px; }
  .produto__nome { font-size: clamp(2.5rem, 11.6vw, 4.5rem); }
  .produto--bebida .produto__nome { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .produto__desc { font-size: 1.1875rem; }
  .preco { font-size: clamp(1.9rem, 8.8vw, 3rem); --c: 12px; }
  .btn-pedir { font-size: clamp(1.0625rem, 4.8vw, 1.25rem); }
  .produto--bebida .btn-pedir { font-size: 1.125rem; }
  .produto__acao { gap: 10px; }
  .produto__foto::before { inset: -9% 2% 12%; }
  .produto__foto::after { left: -10px; right: -10px; }
  .detalhe { width: 100%; max-width: none; margin: auto 0 0; border-width: 2px 0 0; border-radius: 18px 18px 0 0; max-height: calc(100dvh - 28px); }
  .detalhe__corpo { max-height: calc(100dvh - 30px); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 419px) {
  .topo__interno { padding: 0 10px; gap: 10px; }
  .marca img { width: 56px; height: 56px; transform: none; }
  .menu { gap: 10px; font-size: 1rem; }
  .menu a:first-child { display: none; }
  .pao { margin-top: 8px; }
  .pao__titulo { margin-bottom: 4px; }
  .produto__nome { font-size: clamp(2.375rem, 10.6vw, 2.75rem); }
  .produto__acao { padding-top: 10px; }
  .produto--bebida .produto__nome { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .topo .btn-pedido { padding: 0 .55em; font-size: 1rem; }
}
@media (max-width: 374px) {
  .btn-pedir { padding: 0 .5em; font-size: 1.0625rem; }
  .btn-pedir .ico { display: none; }
}

/* ---------- Abertura ---------- */
#abertura { display: none; }
.com-abertura #abertura, .pedir-cidade #abertura { display: block; position: fixed; inset: 0; z-index: 100; }
.com-abertura #abertura { animation: ab-seguranca 0s linear 5s forwards; }
.com-abertura .marca img, .pedir-cidade .marca img { visibility: hidden; }
.com-abertura .marca img, .com-abertura.aguardando .titulo, .com-abertura.aguardando .seletor, .com-abertura.aguardando .filtros-faixa, .com-abertura.aguardando .revelar { animation: ab-seguranca-pagina 0s linear 5s forwards; }
@keyframes ab-seguranca { to { visibility: hidden; } }
@keyframes ab-seguranca-pagina { to { visibility: visible; opacity: 1; transform: none; } }
.ab-fundo {
  position: absolute; inset: 0;
  background: radial-gradient(62% 46% at 50% 42%, rgba(var(--brasa), .2), transparent 74%), var(--carvao) url('../assets/textura/chapa.webp');
}
.ab-palco {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.8vh, 26px); padding: 20px; pointer-events: none;
}
.ab-marca { flex: none; width: min(62vmin, 320px); aspect-ratio: 1; transform-origin: 50% 50%; will-change: transform; }
.pedir-cidade .ab-marca { width: clamp(132px, 26vh, 200px); }
.ab-logo { width: 100%; height: 100%; overflow: visible; }
.ab-anel { stroke-dasharray: 1 1.2; stroke-dashoffset: 1; }
.ab-pao-t, .ab-pao-b, .ab-linhas, .ab-lanches { opacity: 0; }
.ab-traco { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1.04; }
.ab-cidade { display: none; width: min(100%, 560px); text-align: center; pointer-events: auto; opacity: 0; }
.pedir-cidade .ab-cidade { display: block; }
.ab-cidade .cidade-tela__opcoes { margin-top: clamp(14px, 2.6vh, 24px); }
.ab-pular {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; color: #fff; font-weight: 600; font-size: 1.0625rem;
}
.pedir-cidade .ab-pular { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ab-anel, .ab-traco { stroke-dashoffset: 0; }
  .ab-pao-t, .ab-pao-b, .ab-linhas, .ab-lanches, .ab-cidade { opacity: 1; }
  .titulo, .seletor, .filtros-faixa, .marca-dagua { transition: none; }
  .revelar { transform: none; transition: opacity .2s ease; }
  .aguardando .titulo, .aguardando .seletor, .aguardando .revelar, .aguardando .revelar.visivel { transform: none; }
  .btn-pedido, .btn-pedir, .produto__foto img, .cidade-opcao { transition: none; }
  .produto:hover .produto__foto img { transform: none; }
  .detalhe[open] { animation: none; }
}

/* ---------- Componentes compartilhados da loja ---------- */
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link {
  padding: 4px 2px; color: var(--amarelo); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.link--discreto { color: var(--texto-2); font-weight: 500; }
.btn-icone {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; color: #fff;
  transition: background-color .16s ease, color .16s ease;
}
.btn-icone[hidden] { display: none; }
.btn-principal {
  display: flex; align-items: center; justify-content: center; gap: .5em; width: 100%; min-height: 56px;
  padding: 0 1em; border-radius: 12px; background: var(--amarelo); color: #0b0a09;
  font-weight: 600; font-size: 1.3125rem;
  transition: transform .14s var(--ease-out), background-color .16s ease;
}
.btn-principal:active { transform: scale(.98); }
.btn-secundario {
  min-height: 52px; padding: 0 1.3em; border: 2px solid var(--amarelo); border-radius: 12px;
  color: var(--amarelo); font-weight: 600; font-size: 1.1875rem;
  transition: background-color .16s ease, color .16s ease;
}

/* ---------- Cidade no cabeçalho ---------- */
.cidade-btn {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 2px 4px; flex: none;
  font-size: 1.0625rem; font-weight: 600; color: #fff; text-align: left;
}
.cidade-btn[hidden] { display: none; }
.cidade-btn .ico { width: 1.25em; height: 1.25em; color: var(--amarelo); }
.cidade-btn__alterar { color: var(--amarelo); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.btn-sacola { position: relative; flex: none; }
.contador {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 999px; background: #0b0a09; color: var(--amarelo); font-size: 1rem; line-height: 1;
}
.contador[hidden] { display: none; }

/* ---------- Tela de cidade ---------- */
.cidade-tela {
  position: fixed; inset: 0; z-index: 110; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 20px; border: 0; color: var(--texto); overflow-y: auto;
  background:
    radial-gradient(70% 52% at 50% 44%, rgba(var(--brasa), .3), transparent 76%),
    #080706 url('../assets/textura/chapa.webp');
  transition: opacity .18s ease;
}
.cidade-tela[open] { display: flex; align-items: center; justify-content: center; animation: cidade-entra .2s ease-out; }
@keyframes cidade-entra { from { opacity: 0; } }
.cidade-tela.saindo { opacity: 0; }
.cidade-tela::backdrop { background: #080706; }
.cidade-tela__caixa { display: grid; justify-items: center; gap: clamp(18px, 3.4vh, 30px); width: min(100%, 560px); margin: auto; text-align: center; }
.cidade-tela__logo { width: clamp(132px, 25vh, 188px); height: auto; }
.cidade-tela__pergunta {
  font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .012em; line-height: 1.14;
  font-size: clamp(2.25rem, 8.6vw, 3.5rem); color: #fff; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .7));
}
.cidade-tela__pergunta:focus { outline: none; }
.cidade-tela__pergunta span { display: block; color: var(--amarelo); }
.cidade-tela__opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.cidade-opcao {
  min-height: 84px; padding: 0 .4em; border-radius: 14px; background: var(--amarelo); color: #0b0a09;
  font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.625rem, 6.4vw, 2.25rem);
  transition: transform .14s var(--ease-out), background-color .16s ease;
}
.cidade-opcao:active { transform: scale(.97); }
.cidade-opcao.confirmada { background: #fff; transform: scale(.98); }
.cidade-opcao[aria-pressed="true"] { box-shadow: 0 0 0 3px #080706, 0 0 0 5px #fff; }
.cidade-tela__cancelar { min-height: 44px; font-size: 1.125rem; }

/* ---------- Barra e confirmação ---------- */
.barra-sacola {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  background: #080706; border-top: 2px solid var(--amarelo);
  transform: translateY(110%); visibility: hidden;
  transition: transform .24s var(--ease-out), visibility 0s linear .24s;
}
.barra-sacola.visivel { transform: none; visibility: visible; transition: transform .24s var(--ease-out), visibility 0s; }
.barra-sacola__info { display: flex; flex-direction: column; line-height: 1.2; font-size: 1rem; color: var(--texto-2); }
.barra-sacola__info strong { font-size: 1.25rem; font-weight: 600; color: #fff; }
.barra-sacola__botao { min-height: 48px; padding: 0 1.3em; border-radius: 10px; background: var(--amarelo); color: #0b0a09; font-weight: 600; font-size: 1.1875rem; }
.toast {
  position: fixed; right: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 32px); z-index: 46;
  padding: 11px 16px; border: 1px solid var(--amarelo); border-radius: 10px; background: #14110e; color: #fff; font-weight: 600;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .18s ease-out, transform .18s var(--ease-out);
}
.toast.visivel { opacity: 1; transform: none; }

/* ---------- Painel da sacola ---------- */
.sacola-aberta { overflow: hidden; }
.sacola {
  position: fixed; inset: 0 0 0 auto; width: min(480px, 100%); max-width: none; height: 100vh; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0; border-left: 2px solid var(--amarelo); color: var(--texto); background: #0e0c0a;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(0.32, 0.72, 0, 1);
}
.sacola[open] { display: flex; flex-direction: column; }
.sacola.aberta { transform: none; }
.sacola::backdrop { background: rgba(0, 0, 0, 0); transition: background-color .26s ease; }
.sacola.aberta::backdrop { background: rgba(0, 0, 0, .66); }
.sacola__topo { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sacola__titulos { flex: 1; min-width: 0; }
.sacola__etapa { font-size: .9375rem; color: var(--texto-2); line-height: 1.2; }
.sacola__etapa:empty { display: none; }
.sacola__titulo {
  font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .012em;
  font-size: 1.75rem; line-height: 1.16; color: var(--amarelo); outline: none;
}
.sacola__unidade { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 18px; background: #171411; font-size: 1.0625rem; line-height: 1.2; }
.sacola__unidade[hidden] { display: none; }
.sacola__unidade strong { font-weight: 600; color: var(--amarelo); }
.sacola__unidade .link { flex: none; }
.sacola__corpo { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 18px 20px; scroll-padding: 16px; }
.sacola__rodape { flex: none; display: grid; gap: 6px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .14); background: #0b0a09; }
.sacola__rodape[hidden] { display: none; }
.sacola__rodape .btn-principal { margin-top: 6px; }
.valor { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.125rem; }
.valor strong { font-weight: 600; color: #fff; white-space: nowrap; }
.valor--pendente { color: var(--amarelo); font-weight: 600; }
.valor--total { font-size: 1.375rem; font-weight: 600; color: #fff; }
.valor--total strong { color: var(--amarelo); }
.nota { margin-top: 2px; font-size: 1rem; line-height: 1.3; color: var(--texto-2); }
.sacola-aviso {
  margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(255, 230, 0, .45); border-radius: 10px;
  background: rgba(255, 230, 0, .07); font-size: 1.0625rem; line-height: 1.3;
}
.sacola-esvaziar { margin-top: 12px; text-align: center; font-size: 1.0625rem; }
.sacola-esvaziar .link + .link { margin-left: 10px; }
.sacola-vazia { display: grid; justify-items: center; gap: 16px; padding: 56px 12px; text-align: center; font-size: 1.25rem; }
.sacola-vazia img { width: 120px; height: 120px; opacity: .3; }

/* Itens */
.itens { list-style: none; display: grid; gap: 14px; }
.item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item__foto {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 50%, rgba(var(--brasa), .34), #14110e);
}
.item__foto img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.item__foto .item__marca { padding: 8px; opacity: .55; }
.item__dados { min-width: 0; }
.item__topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.item__nome { padding-top: 2px; font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .012em; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.item__topo .btn-icone { margin: -6px -8px 0 0; color: var(--texto-2); }
.item__pao { font-weight: 600; font-size: 1.0625rem; color: var(--amarelo); }
.item__preco { font-size: 1rem; color: var(--texto-2); }
.item__controles { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.item__total { font-weight: 600; font-size: 1.1875rem; white-space: nowrap; }
.qtd { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .26); border-radius: 10px; }
.qtd button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px; color: var(--amarelo); }
.qtd button:disabled { color: rgba(255, 255, 255, .28); cursor: default; }
.qtd output { min-width: 28px; text-align: center; font-weight: 600; font-size: 1.125rem; }
.item__obs { grid-column: 1 / -1; }

/* Campos */
.campo { display: grid; gap: 4px; margin-top: 14px; }
.campo label { font-weight: 600; font-size: 1.0625rem; }
.opcional { font-weight: 500; color: var(--texto-2); }
.campo input {
  width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px;
  background: #171411; color: #fff; font: inherit; font-size: 1.0625rem; outline: none;
  transition: border-color .16s ease;
}
.campo input::placeholder { color: #a39c92; opacity: 1; }
.campo input:focus { border-color: var(--amarelo); box-shadow: 0 0 0 1px var(--amarelo); }
.campo input:disabled { opacity: .45; }
.campo input[aria-invalid="true"] { border-color: #ff8a75; }
.item__obs.campo { margin-top: 0; }
.item__obs label { font-size: 1rem; font-weight: 500; color: var(--texto-2); }
.item__obs input { min-height: 46px; }
.erro { margin-top: 2px; font-size: 1rem; line-height: 1.25; color: #ffb4a4; }
.erro[hidden] { display: none; }
.campo-numero { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: start; }
.marcar { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin-top: 41px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; }
.marcar input { width: 22px; height: 22px; accent-color: var(--amarelo); }

/* Entrega ou retirada */
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.opcao { position: relative; display: block; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.opcao__caixa {
  display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 104px; padding: 12px;
  border: 2px solid rgba(255, 255, 255, .22); border-radius: 12px; background: #14110e;
  transition: border-color .16s ease, background-color .16s ease;
}
.opcao__caixa .ico { width: 28px; height: 28px; color: var(--amarelo); }
.opcao__texto { display: grid; gap: 1px; }
.opcao__texto strong { font-weight: 600; font-size: 1.25rem; line-height: 1.15; color: #fff; }
.opcao__texto small { font-size: 1rem; line-height: 1.2; color: var(--texto-2); }
.opcao input:checked + .opcao__caixa { border-color: var(--amarelo); background: rgba(255, 230, 0, .1); }
.opcao input:focus-visible + .opcao__caixa { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.opcao input:disabled + .opcao__caixa { opacity: .5; }
.opcao:has(input:disabled) { cursor: not-allowed; }
.confirma-cidade, .local-retirada { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #171411; font-size: 1.0625rem; }
.confirma-cidade p { flex: 1; min-width: 0; }
.confirma-cidade .ico, .local-retirada .ico { width: 22px; height: 22px; color: var(--amarelo); }
.confirma-cidade strong, .local-retirada strong { font-weight: 600; color: #fff; }
.local-retirada { align-items: flex-start; }
.local-retirada p { color: var(--texto-2); line-height: 1.3; }

/* Revisão */
.rev { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.0625rem; line-height: 1.35; }
.rev:first-child { padding-top: 0; }
.rev header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rev h3 { font-weight: 600; font-size: 1rem; color: var(--texto-2); }
.rev .local-retirada { margin-top: 0; }
.rev-itens { list-style: none; display: grid; gap: 8px; }
.rev-itens li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.rev-item__valor { font-weight: 600; white-space: nowrap; }
.rev-itens small { grid-column: 1 / -1; font-size: 1rem; color: var(--texto-2); }
.rev + .nota { margin-top: 12px; }

@media (hover: hover) and (pointer: fine) {
  .btn-principal:hover, .barra-sacola__botao:hover { background: #fff; }
  .cidade-opcao:hover { background: #fff36b; transform: translateY(-2px); }
  .btn-secundario:hover { background: var(--amarelo); color: #0b0a09; }
  .btn-icone:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  .qtd button:not(:disabled):hover { background: rgba(255, 255, 255, .1); }
  .link:hover { color: #fff; }
  .cidade-btn:hover .cidade-btn__alterar { color: #fff; }
  .opcao:not(:has(input:disabled)):hover .opcao__caixa { border-color: rgba(255, 230, 0, .7); }
}

@media (max-width: 859px) {
  .tem-itens body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .barra-sacola { display: flex; }
  .toast { left: 50%; right: auto; bottom: 14px; transform: translate(-50%, 8px); white-space: nowrap; }
  .toast.visivel { transform: translate(-50%, 0); }
  .tem-itens .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cidade-btn { flex-direction: column; align-items: flex-start; gap: 0; font-size: 1rem; line-height: 1.15; }
  .cidade-btn .ico { display: none; }
  .cidade-btn__alterar { font-size: .9375rem; }
  .sacola {
    inset: auto 0 0 0; width: 100%; height: calc(100vh - 28px); height: calc(100dvh - 28px);
    border-left: 0; border-top: 2px solid var(--amarelo); border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .sacola__unidade { padding-inline: 14px; }
  .sacola__corpo { padding-inline: 14px; }
  .sacola__rodape { padding-inline: 14px; }
  .sacola__topo { padding-left: 14px; }
  .sacola__titulo { font-size: clamp(1.375rem, 6.2vw, 1.75rem); }
}
@media (max-width: 374px) {
  .opcoes { grid-template-columns: 1fr; }
  .opcao__caixa { min-height: 0; flex-direction: row; align-items: center; }
  .campo-numero { grid-template-columns: minmax(0, 1fr); }
  .marcar { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sacola, .sacola::backdrop, .toast, .barra-sacola, .barra-sacola.visivel, .cidade-tela { transition: none; }
  .cidade-tela[open] { animation: none; }
  .sacola, .barra-sacola { transform: none; }
  .toast, .toast.visivel { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 859px) {
  .toast, .toast.visivel { transform: translateX(-50%); }
}
