/*
 * [L3] Cardápio público. NÃO usa base.css (orçamento ≤ 60 kB HTML+CSS comprimido).
 * Estrutura comum aqui; cada tema (temas/<tema>.css, Loja::TEMAS) define as variáveis e o sotaque.
 * Cor da loja chega num <style> inline já com contraste AA (Cores::Paleta):
 *   --cor (fundo de faixas/botões), --sobre-cor (texto sobre ela), --cor-texto (cor como texto).
 * Texto na fonte do sistema (zero download); títulos dos temas Papel e Bistrô em Alegreya.
 * Sem JS: atalhos por âncora, horários em <details>, detalhe do prato numa página própria.
 */
@font-face { font-family: "Alegreya"; font-weight: 500 800; font-display: swap; src: url("/assets/alegreya-5bd90e88.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Alegreya"; font-weight: 500 800; font-display: swap; src: url("/assets/alegreya-ext-a5eb1f63.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  --fundo: #fff; --superficie: #fff; --texto: #1c2226; --suave: #5b636a; --linha: #e3e3df;
  --cor: #1e2326; --sobre-cor: #fff; --cor-texto: #1e2326;
  --fonte-texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-titulo: var(--fonte-texto);
  --raio: 12px; --raio-foto: 10px; --largura: 44rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.25rem; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1rem/1.5 var(--fonte-texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--cor-texto); outline-offset: 2px; border-radius: 4px; }
.icone { width: 1.125rem; height: 1.125rem; flex: none; }
.preco { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Capa e idioma ----------------------------------------------------------------------------- */
.cardapio { min-height: 100vh; }
.capa { position: relative; height: 8.5rem; background: var(--cor); }
.capa--com-foto { height: 12.5rem; background: var(--linha); }
/* Gradiente: idioma legível em cima; embaixo, um leve escurecido onde a logo encosta. */
.capa--com-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .35), transparent 45%, transparent 70%, rgb(0 0 0 / .22)); }
.capa__foto { width: 100%; height: 100%; object-fit: cover; }
.idiomas { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: flex; padding: 3px; border-radius: 999px; background: rgb(0 0 0 / .5); }
.idiomas a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.5rem; border-radius: 999px; color: #fff; text-decoration: none; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.idiomas a[aria-current] { background: #fff; color: #15191c; }

/* Loja ------------------------------------------------------------------------------------- */
.loja { max-width: var(--largura); margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: center; }
.loja__marca { position: relative; display: flex; justify-content: center; margin-top: -3rem; }
.loja__logo { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; border: 4px solid var(--fundo); background: var(--superficie); box-shadow: 0 2px 12px rgb(0 0 0 / .14); }
.loja__logo--iniciais { display: grid; place-items: center; background: var(--cor); color: var(--sobre-cor); font: 700 2.125rem/1 var(--fonte-titulo); letter-spacing: .02em; }
.loja__nome { margin: .75rem 0 .375rem; font: 700 clamp(1.875rem, 1.5rem + 1.6vw, 2.625rem)/1.1 var(--fonte-titulo); letter-spacing: -.01em; text-wrap: balance; }
.loja__descricao { max-width: 32rem; margin: 0 auto .625rem; color: var(--suave); text-wrap: pretty; }
.situacao { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; margin-bottom: 1rem; color: var(--suave); font-size: .9375rem; }
.situacao::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #c2412d; }
.situacao--aberta::before { background: #23a35a; box-shadow: 0 0 0 3px rgb(35 163 90 / .2); }
.situacao strong { color: var(--texto); }
.loja__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.loja__links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--linha); border-radius: 999px; background: var(--superficie); text-decoration: none; font-size: .9375rem; font-weight: 700; }
.loja__links a:hover { border-color: var(--cor-texto); }

/* Atalhos das seções (fixos ao rolar) ------------------------------------------------------ */
.atalhos { position: sticky; top: 0; z-index: 10; background: var(--fundo); background: color-mix(in srgb, var(--fundo) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--linha); }
.atalhos ul { display: flex; gap: .25rem; max-width: var(--largura); margin: 0 auto; padding: .5rem 1rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.atalhos ul::-webkit-scrollbar { display: none; }
.atalhos a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .875rem; border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--suave); font-size: .9375rem; font-weight: 700; }
.atalhos a:hover, .atalhos a:focus-visible { color: var(--texto); background: var(--superficie); }

/* Seções e pratos -------------------------------------------------------------------------- */
.secoes { max-width: var(--largura); margin: 0 auto; padding: .25rem 1rem 1rem; }
.secao { padding-top: 2rem; }
.secao__cabeca { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; padding-bottom: .5rem; border-bottom: 2px solid var(--cor-texto); }
.secao h2 { font: 700 1.5rem/1.2 var(--fonte-titulo); }
.secao__janela { display: inline-flex; align-items: center; gap: .3rem; color: var(--suave); font-size: .8125rem; font-weight: 700; }
.secao__janela .icone { width: .9rem; height: .9rem; }
.pratos { margin: 0; padding: 0; list-style: none; }
.prato { position: relative; display: grid; grid-template: "texto preco" / 1fr auto; gap: .25rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linha); }
.prato--com-foto { grid-template: "texto foto" "preco foto" / 1fr 7rem; }
.prato__texto { grid-area: texto; min-width: 0; }
.prato__nome { margin-bottom: .2rem; font: 700 1.0625rem/1.3 var(--fonte-titulo); overflow-wrap: anywhere; }
.prato__nome a { text-decoration: none; }
.prato__nome a::after { content: ""; position: absolute; inset: 0; }
.prato:hover .prato__nome a { text-decoration: underline; }
.prato__descricao { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-bottom: .375rem; color: var(--suave); font-size: .9375rem; line-height: 1.45; }
.prato__variacoes { display: flex; flex-wrap: wrap; gap: .125rem .875rem; margin: .25rem 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.prato__variacoes .preco { font-weight: 700; color: var(--cor-texto); }
.prato__preco { grid-area: preco; color: var(--cor-texto); font-weight: 700; }
.prato--com-foto .prato__preco { align-self: end; }
.prato__foto { grid-area: foto; align-self: start; }
.prato__foto img, .detalhe__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--linha); }
.prato__foto img { border-radius: var(--raio-foto); }
.prato__etiquetas { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.etiqueta { padding: 0 .5rem; border: 1px solid var(--linha); border-radius: 999px; color: var(--suave); font-size: .75rem; font-weight: 700; line-height: 1.6; }
/* Mais específico que ".tema-x .etiqueta" (papel, mercado), senão o fundo do tema apaga o texto. */
[class*="tema-"] .etiqueta.etiqueta--esgotado { border-color: var(--suave); background: var(--suave); color: var(--fundo); }
.prato--esgotado :is(.prato__nome, .prato__descricao, .preco, .prato__preco) { color: var(--suave); }
.prato--esgotado .preco { text-decoration: line-through; }
.prato--esgotado .prato__foto img, .detalhe--esgotado .detalhe__foto img { filter: grayscale(1); opacity: .55; }
@media (min-width: 60em) {
  :root { --largura: 64rem; }
  .pratos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .prato--com-foto { grid-template-columns: 1fr 8.5rem; }
}

/* Vazio, rodapé, indisponível -------------------------------------------------------------- */
.aviso-vazio { max-width: 30rem; margin: 1.5rem auto 2.5rem; padding: 2.5rem 1.25rem; border: 1px dashed var(--suave); border-radius: var(--raio); text-align: center; color: var(--suave); }
.aviso-vazio h2 { margin-bottom: .375rem; color: var(--texto); font: 700 1.5rem/1.2 var(--fonte-titulo); }
.rodape { max-width: var(--largura); margin: 0 auto; padding: 1.5rem 1rem 3rem; color: var(--suave); font-size: .9375rem; }
.rodape__info { display: grid; gap: .75rem; padding: 1rem 1.25rem; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--superficie); }
.horarios summary { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; cursor: pointer; color: var(--texto); font-weight: 700; }
.horarios dl { display: grid; gap: .125rem; margin: .25rem 0 .5rem; }
.horarios dl div { display: flex; justify-content: space-between; gap: 1rem; }
.horarios dd { margin: 0; text-align: right; }
.horarios .hoje { color: var(--texto); font-weight: 700; }
.rodape__endereco { display: flex; gap: .5rem; }
.rodape__endereco .icone { margin-top: .2rem; }
.rodape__produto { margin-top: 1.5rem; text-align: center; font-size: .8125rem; }
.indisponivel { display: grid; place-content: center; min-height: 100vh; padding: 2rem 1.25rem; text-align: center; color: #5b636a; }
.indisponivel h1 { margin-bottom: .5rem; color: #1c2226; font-size: 1.5rem; line-height: 1.25; }

/* Detalhe do prato (página própria, sem JS) ------------------------------------------------ */
.detalhe__topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .375rem .75rem .375rem .5rem; border-bottom: 1px solid var(--linha); background: var(--fundo); }
.detalhe__voltar { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; min-height: 2.75rem; padding-right: .5rem; text-decoration: none; font-weight: 700; }
.detalhe__voltar .icone { width: 1.5rem; height: 1.5rem; }
.detalhe__voltar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detalhe__topo .idiomas { position: static; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); }
.detalhe__topo .idiomas a { color: var(--suave); }
.detalhe__topo .idiomas a[aria-current] { background: var(--texto); color: var(--fundo); }
.detalhe { max-width: 46rem; margin: 0 auto; padding-bottom: 3rem; }
.detalhe__foto { margin: 0; }
.detalhe__corpo { padding: 1.25rem 1.25rem 0; }
.detalhe__secao { margin-bottom: .25rem; color: var(--cor-texto); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detalhe__nome { margin-bottom: .5rem; font: 700 clamp(1.75rem, 1.5rem + 1.2vw, 2.375rem)/1.15 var(--fonte-titulo); text-wrap: balance; }
.detalhe__preco { margin-bottom: 1rem; color: var(--cor-texto); font-size: 1.375rem; font-weight: 700; }
.detalhe__descricao { margin-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.detalhe__bloco { margin-bottom: 1.5rem; }
.detalhe__bloco h2 { margin-bottom: .5rem; color: var(--suave); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.tabela-precos { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linha); }
.tabela-precos li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linha); }
.tabela-precos .preco { color: var(--cor-texto); font-weight: 700; }
.detalhe .prato__etiquetas { margin-bottom: 1.5rem; }
.botao-voltar { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--cor); color: var(--sobre-cor); font-weight: 700; text-decoration: none; }
@media (min-width: 48em) {
  .capa { height: 11rem; }
  .capa--com-foto { height: 20rem; }
  .detalhe__foto { padding: 1.5rem 1rem 0; }
  .detalhe__foto img { border-radius: var(--raio); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
