@font-face { font-family: "Lilita One"; src: url(/fontes/lilita-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fontes/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --preto: #1c1712; --fundo: #faf4e8; --papel: #fff; --linha: #eadfca; --suave: #685d4f;
  --amarelo: #ffc21a; --amarelo-claro: #ffe7a3; --vermelho: #c01a2b; --verde: #22702f;
  --titulo: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sombra: 0 1px 2px #3b240a14, 0 8px 24px #3b240a12;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 130px; }
body { margin: 0; background: var(--fundo); color: var(--preto); font: 16px/1.45 Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 110px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1559b8; outline-offset: 2px; }
h1, h2 { font-family: var(--titulo); font-weight: 400; letter-spacing: .005em; text-wrap: balance; }

/* ---------- Topo ---------- */
.topo { background: var(--amarelo); position: relative; overflow: hidden; }
.topo-dentro, main, .aviso, .acompanhar { max-width: 1320px; margin-inline: auto; padding-inline: 16px; }
.topo-dentro { position: relative; padding-block: 14px 18px; }
.linha-topo { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; }
.selo { padding: 5px 12px; border-radius: 99px; background: var(--vermelho); color: #fff; font-weight: 700; font-size: .85rem; }
.selo.aberto { background: var(--verde); }
.conta { margin-left: auto; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 99px; background: var(--preto); color: #fff; font-weight: 700; }
h1 { margin: 8px 0 4px; font-size: clamp(2.7rem, 13vw, 3.6rem); line-height: .9; }
h1 span { color: var(--vermelho); display: block; }
.frase { margin: 10px 0 0; font-weight: 600; max-width: 15em; text-wrap: balance; }
.infos { list-style: none; margin: 12px 0 0; padding: 0; font-size: .85rem; }
.pratos { position: absolute; right: -44px; top: 70px; width: 164px; height: 164px; }
.prato { position: absolute; inset: 0; padding: 0; border: 6px solid #fff; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 10px 24px #6b450055; }
.prato img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prato:not(:nth-child(2)) { display: none; }
.prato:not(:nth-child(2)) img { transform: scale(1.3); transform-origin: center 85%; }
.xadrez { height: 20px; background: conic-gradient(var(--preto) 25%, #fff 0 50%, var(--preto) 0 75%, #fff 0) 0 0 / 20px 20px; }
.interno .pratos, .interno .frase, .interno .infos { display: none; }
.interno h1 { font-size: 2rem; margin: 0; }
.interno h1 span { display: inline; }
.aviso { max-width: none; background: var(--vermelho); color: #fff; padding-block: 12px; margin-block: 0; font-weight: 700; text-align: center; }
.acompanhar { display: block; max-width: none; padding-block: 13px; background: var(--preto); color: var(--amarelo); font-weight: 700; text-align: center; text-decoration: none; }

/* ---------- Categorias ---------- */
.barra { position: sticky; top: 0; z-index: 2; background: var(--papel); margin-inline: -16px; box-shadow: 0 1px 0 var(--linha), 0 6px 16px #3b240a0d; }
#abas { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 10px 12px 8px; scrollbar-width: none; }
#abas a { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--suave); text-decoration: none; font-size: .78rem; line-height: 1.15; font-weight: 600; text-align: center; }
#abas i { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--linha); transition: border-color .15s, transform .15s; }
#abas img { width: 100%; height: 100%; object-fit: cover; display: block; }
#abas .ativa { color: var(--preto); font-weight: 800; }
#abas .ativa i { border: 4px solid var(--amarelo); transform: scale(1.05); }

/* ---------- Lista ---------- */
input:not([type=radio], [type=checkbox]), textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cbbd9f; border-radius: 12px; background: #fff; }
textarea { resize: vertical; }
#busca { margin-top: 16px; border-radius: 99px; padding: 13px 20px; border-color: var(--linha); box-shadow: var(--sombra); }
section > h2 { font-size: 1.75rem; line-height: 1; margin: 30px 0 6px; }
section > h2::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 3px; background: var(--amarelo); margin-top: 8px; }
.nota, .desc { color: var(--suave); font-size: .9rem; margin: 6px 0; }
.grade { display: grid; gap: 12px; margin-top: 14px; }
.item { position: relative; display: flex; gap: 12px; width: 100%; text-align: left; background: var(--papel); border: 0; border-radius: 18px; padding: 0; min-height: 128px; overflow: hidden; box-shadow: var(--sombra); }
.item > span:not(.mais-um) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 0 14px 16px; }
.item b { font-size: 1.08rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.item small { color: var(--suave); font-size: .85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item em, .preco { font: 400 1.2rem/1.2 var(--titulo); color: var(--vermelho); margin: 0; }
.item em { margin-top: auto; }
.item img, .item.sem-foto::after { width: 128px; flex: none; object-fit: contain; background: #fff; align-self: stretch; height: auto; min-height: 128px; }
.item img { position: relative; max-height: 168px; }
.item img.preenche { object-fit: cover; object-position: center 60%; }
.item.sem-foto::after { content: ""; background: var(--amarelo-claro) url(/sem-foto.svg) center / 70px no-repeat; }
.mais-um { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--vermelho); color: #fff; font: 400 1.4rem/1 var(--titulo); box-shadow: 0 2px 8px #0004; }
.vazio { text-align: center; color: var(--suave); padding: 36px 0; }

/* ---------- Botões ---------- */
.flutuante, .principal { background: var(--vermelho); color: #fff; border: 0; border-radius: 99px; font-weight: 800; min-height: 52px; padding: 12px 20px; }
.flutuante { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; box-shadow: 0 8px 26px #7a0a1866; }
.flutuante.pulo { animation: pulo .35s; }
@keyframes pulo { 40% { transform: scale(1.05); } }
.principal { flex: 1; }
.principal:disabled { background: #8b8072; cursor: not-allowed; }
.remover { border: 0; background: none; color: var(--vermelho); text-decoration: underline; min-height: 44px; padding: 4px 0; font-weight: 600; }
.recado { position: fixed; z-index: 4; left: 50%; translate: -50%; top: 14px; margin: 0; padding: 12px 20px; border-radius: 99px; background: var(--preto); color: #fff; font-weight: 700; box-shadow: 0 8px 24px #0005; max-width: calc(100vw - 32px); }

/* ---------- Janelas ---------- */
dialog { width: 100%; max-width: 560px; max-height: 94dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--fundo); color: var(--preto); overflow: hidden; }
dialog[open] { animation: sobe .22s ease-out; }
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } }
dialog::backdrop { background: #1c1712b3; }
dialog form { display: flex; flex-direction: column; max-height: 94dvh; position: relative; }
.rolagem { overflow-y: auto; margin-top: 60px; padding: 0 18px 20px; overscroll-behavior: contain; }
.rolagem h2 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.05; }
.fechar { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px #0003; font-weight: 700; }
#item-foto { width: 100%; height: 230px; object-fit: contain; border-radius: 18px; background: #fff; margin-bottom: 14px; }
#item-foto.preenche { object-fit: cover; object-position: center 60%; }
#dlg-item .preco { font-size: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
legend { font-weight: 800; padding: 0; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
legend small { font-weight: 600; font-size: .8rem; color: var(--suave); }
legend .falta { color: #fff; background: var(--vermelho); padding: 2px 10px; border-radius: 99px; }
.opcao { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; background: #fff; border: 1px solid var(--linha); margin-top: -1px; }
.opcao:first-of-type { border-radius: 16px 16px 0 0; }
.opcao:last-of-type { border-radius: 0 0 16px 16px; }
.opcao:first-of-type:last-of-type, #idade { border-radius: 16px; }
#idade { margin-top: 16px; }
.opcao:has(input:checked) { background: #fff6da; }
.opcao > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opcao input { width: 22px; height: 22px; accent-color: var(--vermelho); flex: none; margin: 0; }
.opcao .mais { color: var(--suave); white-space: nowrap; font-size: .9rem; }
.passo { display: flex; align-items: center; gap: 4px; }
.passo button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amarelo); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.passo button:disabled { background: #efe6d4; color: #a89b86; cursor: default; }
.passo output { min-width: 28px; text-align: center; font-weight: 800; }
.campo { display: block; margin-top: 16px; font-weight: 700; }
.campo > * { margin-top: 6px; font-weight: 400; }
.campo > strong { font-weight: 700; }
.fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.ficha { position: relative; display: grid; }
.ficha input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ficha span { display: grid; place-items: center; text-align: center; min-height: 54px; padding: 8px 10px; border: 2px solid var(--linha); border-radius: 14px; background: #fff; font-weight: 700; line-height: 1.2; }
.ficha input:checked + span { background: var(--amarelo); border-color: var(--preto); }
.ficha input:focus-visible + span { outline: 3px solid #1559b8; outline-offset: 2px; }
.fichas.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reais { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.reais input { min-width: 0; font-weight: 400; }
.combinar { margin-top: 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--linha); border-radius: 14px; }
.combinar .nota { margin: 0 0 4px; }
.parte input { padding-inline: 10px !important; }
.parte { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-weight: 700; }
.resto { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 99px; background: var(--amarelo); font-weight: 700; font-size: .88rem; }
.situacao { margin: 8px 0 0; padding: 9px 14px; border-radius: 12px; background: #fff3c4; font-weight: 700; }
.situacao.certo { background: #dff0e0; color: #154a1e; }
.troco-conta.ruim { background: #fde2e4; color: #7d0a1d; }
.troco-conta { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #dff0e0; color: #154a1e; font-weight: 700; }
.rodape { display: flex; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linha); background: #fff; }
.erro { margin: 0; padding: 11px 18px; background: #fde2e4; color: #7d0a1d; font-weight: 700; }

/* ---------- Comanda ---------- */
.comanda { background: var(--papel); padding: 16px 18px 34px; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; border-top: 8px solid var(--preto); }
.comanda h2 { margin: 0 0 4px; font-size: 1.6rem; }
.linha { padding: 13px 0; border-bottom: 2px dashed var(--linha); }
.par { display: flex; justify-content: space-between; gap: 12px; }
.par > :last-child:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.adic { margin: 4px 0 0; padding: 0 0 0 14px; margin-left: 4px; border-left: 3px solid var(--amarelo); list-style: none; font-size: .92rem; color: #51473a; }
.linha .acoes { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; font-weight: 700; padding-top: 16px; }
.total strong { font: 400 1.7rem/1 var(--titulo); }
#lateral { display: none; }

/* ---------- Pedido ---------- */
.estreita { max-width: 680px; }
.titulo { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.titulo h2 { margin: 0; font-size: 1.9rem; }
.cartao { background: #fff; border-radius: 20px; padding: 18px; margin-top: 18px; box-shadow: var(--sombra); }
.cartao h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.1; }
.cartao.destaque { background: var(--amarelo-claro); }
.cartao.status { background: var(--preto); color: #fff; padding: 22px; }
.cartao.status h2 { color: var(--amarelo); font-size: 2.1rem; margin: 2px 0 0; }
.cartao.status.pronto { background: var(--verde); }
.cartao.status .nota, .cartao.status .etapas li { color: #d9cfbf; }
.destaque .desc { color: var(--preto); margin-bottom: 14px; }
.cartao .principal, .vazio + .principal { width: 100%; }
.estreita .comanda { margin-top: 18px; }
.etapas { list-style: none; margin: 18px 0 10px; padding: 0; }
.etapas li { padding: 0 0 18px 36px; position: relative; }
.etapas li:last-child { padding-bottom: 0; }
.etapas li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8b8072; background: var(--preto); z-index: 1; }
.etapas li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 12px; bottom: -4px; width: 2px; margin-left: -1px; background: #6b6256; }
.etapas .feito::before { background: var(--amarelo); border-color: var(--amarelo); }
.etapas .feito:has(+ .feito)::after { background: var(--amarelo); }
.cartao.status .etapas .feito { color: #fff; }
.etapas .atual { font-weight: 800; }
.etapas .atual::before { box-shadow: 0 0 0 0 #ffc21acc; animation: pulsa 1.6s infinite; }
@keyframes pulsa { to { box-shadow: 0 0 0 12px #ffc21a00; } }
.linha-pedido { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: inherit; text-decoration: none; }
.linha-pedido span { display: flex; flex-direction: column; }
.linha-pedido span:last-child { text-align: right; }
.linha-pedido small { color: var(--suave); }
.voltar { display: inline-block; padding: 18px 0; color: var(--vermelho); font-weight: 700; }

@media (max-width: 359px) { .pratos { right: -52px; top: 62px; width: 116px; height: 116px; } .prato { border-width: 4px; } .item img, .item.sem-foto::after { width: 104px; } }
@media (min-width: 700px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  dialog { margin: auto; border-radius: 24px; }
  dialog:not(.pequeno) .fichas.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pratos { right: 24px; top: 70px; width: 190px; height: 190px; }
  .frase { max-width: 22em; }
}
@media (min-width: 1000px) {
  html { scroll-padding-top: 140px; }
  body { padding-bottom: 60px; }
  .topo-dentro, main:not(.estreita) { padding-inline: 32px; }
  .topo-dentro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: 380px; padding-block: 26px 34px; }
  .chamada { position: relative; z-index: 1; }
  .conta { position: absolute; right: 32px; top: 26px; z-index: 3; }
  .linha-topo { min-height: 0; justify-content: flex-start; }
  .chamada { position: static; }
  .conta:hover { background: var(--vermelho); }
  h1 { font-size: clamp(4.6rem, 8.2vw, 7rem); line-height: .86; margin: 16px 0 0; }
  .frase { font-size: 1.25rem; margin-top: 18px; }
  .infos { font-size: .98rem; margin-top: 16px; display: grid; gap: 2px; }
  .pratos { position: relative; inset: auto; width: 100%; height: 330px; }
  .prato:nth-child(n) { display: block; inset: auto; width: 224px; height: 224px; border-width: 8px; transition: transform .2s; }
  .prato:nth-child(1) { left: 2%; top: 92px; }
  .prato:nth-child(2) { left: 50%; translate: -50%; top: 14px; width: 272px; height: 272px; z-index: 1; }
  .prato:nth-child(3) { right: 2%; left: auto; top: 98px; }
  .prato:hover { transform: rotate(-4deg) scale(1.04); z-index: 2; }
  .interno .topo-dentro { display: block; min-height: 0; padding-block: 22px; }
  .interno h1 { font-size: 2.6rem; margin-top: 10px; }
  .xadrez { height: 28px; background-size: 28px 28px; }
  #tela-cardapio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; align-items: start; }
  .barra { grid-column: 1 / -1; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
  #abas { justify-content: safe center; gap: 10px; padding: 12px 0 10px; }
  #abas a { width: 104px; font-size: .85rem; }
  #abas i { width: 62px; height: 62px; }
  #abas a:hover { color: var(--preto); }
  #abas a:hover i { transform: scale(1.07); }
  #busca { margin-top: 26px; font-size: 1.05rem; }
  section > h2 { font-size: 2.4rem; margin-top: 44px; }
  section:first-child > h2 { margin-top: 30px; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 18px; }
  .item { flex-direction: column-reverse; justify-content: flex-end; gap: 0; border-radius: 22px; transition: transform .18s, box-shadow .18s; }
  .item:hover { transform: translateY(-5px); box-shadow: 0 18px 38px #3b240a2b; }
  .item img, .item.sem-foto::after { width: 100%; height: 200px; min-height: 0; max-height: none; align-self: auto; }
  .item.sem-foto::after { background-size: 92px; }
  .item > span:not(.mais-um) { width: 100%; padding: 16px 18px 18px; gap: 5px; }
  .item b { font-size: 1.15rem; }
  .item em { font-size: 1.4rem; padding-top: 8px; }
  .mais-um { right: 14px; bottom: 14px; width: 42px; height: 42px; font-size: 1.6rem; transition: transform .15s; }
  .item:hover .mais-um { transform: rotate(90deg); }
  #lateral { display: flex; flex-direction: column; position: sticky; top: 138px; margin-top: 26px; max-height: calc(100vh - 160px); }
  #lat-linhas { overflow-y: auto; min-height: 0; }
  #lateral .principal { flex: none; margin-top: 14px; }
  .principal:hover:not(:disabled) { background: #960f20; }
  .flutuante { display: none; }
  .pequeno { max-width: 430px; }
  .recado { top: auto; bottom: 24px; }
  #dlg-item.com-foto { max-width: 940px; }
  #dlg-item.com-foto .rolagem { display: grid; grid-template-columns: 370px minmax(0, 1fr); column-gap: 28px; align-content: start; padding-inline: 28px; }
  #dlg-item.com-foto .rolagem > * { grid-column: 2; }
  #dlg-item.com-foto #item-foto { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 0; height: 400px; }
}
@media (min-width: 1280px) {
  #tela-cardapio { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 36px; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.campo .rotulo { font-weight: 700; }
#conta-trocar:not([hidden]) + #conta-esqueci { margin-left: 18px; }

/* Página de privacidade */
.privacidade { margin: 0 auto; padding: 20px 18px 40px; }
.privacidade h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
.privacidade h2 { margin-top: 26px; }
.privacidade li { margin-bottom: 8px; }
.infos a, .nota a { color: inherit; }
