/* Cardápio digital — visual padrão neutro (serve para qualquer restaurante).
   A cor principal vem do painel de cada loja: <body style="--cor: #...">. */
:root {
  --cor: #ea1d2c;
  --cor-esc: color-mix(in srgb, var(--cor) 82%, black);
  --cor-claro: color-mix(in srgb, var(--cor) 10%, white);
  --fundo: #f5f5f7; --papel: #ffffff; --tinta: #1d1d1f; --suave: #6e6e73; --linha: #e8e8ed;
  --verde: #12823b; --laranja: #b25e09;
  --raio: 14px; --sombra: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; padding-bottom: 96px; -webkit-font-smoothing: antialiased; }
body.travado { overflow: hidden; }
h1, h2 { margin: 0; letter-spacing: -.015em; }
a { color: var(--cor); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; color: inherit; }

/* capa + cartão da loja */
.capa { position: relative; padding: 0 16px; }
.capa-fundo { height: 168px; margin: 0 -16px; background: var(--capa, linear-gradient(135deg, color-mix(in srgb, var(--cor) 35%, #2b2b30), #2b2b30)) center/cover; }
.loja-info { position: relative; max-width: 760px; margin: -48px auto 0; display: flex; gap: 14px; align-items: flex-start; background: var(--papel); border-radius: 18px; padding: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.logo { flex: none; width: 76px; height: 76px; margin-top: -40px; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); display: grid; place-items: center; font-size: 34px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.loja-info > div:last-child { flex: 1; min-width: 0; }
.capa h1 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.slogan { margin: 2px 0 0; color: var(--suave); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--fundo); color: var(--tinta); font-size: 12.5px; font-weight: 600; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.aberto { background: #e8f6ee; color: var(--verde); }
.chip.fechado { background: #fff1e0; color: var(--laranja); }
.aviso-loja { max-width: 760px; margin: 12px auto 0; padding: 11px 14px; border-radius: 12px; background: var(--cor-claro); color: var(--cor-esc); font-size: 14px; font-weight: 600; }
.aviso-loja.fechado { background: #fff1e0; color: var(--laranja); }
@media (max-width: 792px) { .aviso-loja { margin: 12px 16px 0; } }

/* busca + categorias */
.busca { display: block; max-width: 760px; margin: 16px auto 0; padding: 0 16px; }
.busca input { width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid var(--linha); background: var(--papel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 14px 50%/18px no-repeat; font: inherit; color: var(--tinta); }
.busca input:focus { outline: 2px solid var(--cor); outline-offset: 0; border-color: transparent; }
.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; padding: 0 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 14px 12px 12px; color: var(--suave); text-decoration: none; font-weight: 600; font-size: 14.5px; border-bottom: 3px solid transparent; }
.cats a:hover, .cats a:focus-visible, .cats a.ativa { color: var(--tinta); border-bottom-color: var(--cor); }
@media (min-width: 792px) { .cats { justify-content: center; } }

/* lista de produtos */
.cardapio { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.cat { padding-top: 24px; }
.cat h2 { font-size: 19px; font-weight: 800; }
.cat-dica { margin: 2px 0 0; color: var(--suave); font-size: 13px; }
.grade { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 680px) { .grade { grid-template-columns: 1fr 1fr; } }
.prod { display: flex; gap: 12px; align-items: stretch; text-align: left; width: 100%; padding: 12px; border: 1px solid var(--linha); border-radius: var(--raio); background: var(--papel); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.prod:hover { box-shadow: var(--sombra); border-color: #d9d9e0; }
.prod:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
.prod.esgotado { opacity: .55; cursor: not-allowed; }
.prod-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prod-txt b { font-size: 15px; font-weight: 700; }
.desc { color: var(--suave); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preco { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; color: var(--tinta); }
.preco small { font-weight: 500; font-size: 12px; color: var(--suave); }
.preco.esgot { color: var(--laranja); font-size: 13px; }
.prod-img { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--fundo); display: grid; place-items: center; font-size: 34px; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.vazio { padding: 40px 0; text-align: center; color: var(--suave); }

.rodape { max-width: 760px; margin: 34px auto 0; padding: 18px 16px; color: var(--suave); font-size: 13.5px; border-top: 1px solid var(--linha); text-align: center; }
.rodape p { margin: 4px 0; }
.rodape a { font-weight: 600; text-decoration: none; }

/* barra da sacola */
.barra-sacola { position: fixed; z-index: 10; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(728px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 0; border-radius: 14px; background: var(--cor); color: #fff; font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 28px color-mix(in srgb, var(--cor) 35%, transparent); cursor: pointer; }
.barra-sacola b { margin-left: auto; }
.barra-sacola .qtd { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 13px; }
.barra-sacola.pulso { animation: pulso .45s ease; }
@keyframes pulso { 40% { transform: translateX(-50%) scale(1.03); } }

/* janela (bottom sheet) */
.folha { position: fixed; inset: 0; z-index: 20; }
.folha-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s; }
.folha-caixa { position: absolute; left: 50%; bottom: 0; width: min(600px, 100%); max-height: 92vh; overflow-y: auto; transform: translate(-50%, 100%); transition: transform .22s ease; background: var(--papel); border-radius: 22px 22px 0 0; padding: 20px 16px 0; overscroll-behavior: contain; }
.folha.aberta .folha-fundo { opacity: 1; }
.folha.aberta .folha-caixa { transform: translate(-50%, 0); }
@media (min-width: 700px) { .folha-caixa { bottom: 50%; border-radius: 20px; transform: translate(-50%, 60%); opacity: 0; transition: transform .22s, opacity .2s; max-height: 88vh; } .folha.aberta .folha-caixa { transform: translate(-50%, 50%); opacity: 1; } }
.fechar { position: sticky; top: 0; float: right; z-index: 2; width: 34px; height: 34px; margin: -6px -4px 0 0; border: 0; border-radius: 50%; background: var(--fundo); font-size: 21px; line-height: 1; cursor: pointer; }
.folha h2 { font-size: 20px; font-weight: 800; padding-right: 40px; outline: none; }
.folha-img { display: block; width: calc(100% + 32px); margin: -20px -16px 14px; aspect-ratio: 16/10; object-fit: cover; }
.folha-desc { color: var(--suave); margin: 6px 0 0; font-size: 14px; }
.grupo { border: 0; margin: 18px 0 0; padding: 0; }
.grupo legend, .grupo.obs > span { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 12px; margin-bottom: 4px; background: var(--fundo); border-radius: 10px; font-weight: 700; font-size: 14px; }
.grupo legend em { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--suave); }
.grupo legend em.obrig { color: #fff; background: var(--tinta); padding: 2px 8px; border-radius: 99px; }
.grupo.obs { display: block; }
.grupo textarea, .campo input, .campo select, .campo textarea, .checkout textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--linha); border-radius: 10px; font: inherit; background: #fff; color: var(--tinta); }
.grupo textarea:focus, .campo :is(input, select, textarea):focus, .checkout textarea:focus { outline: 2px solid var(--cor); outline-offset: 0; border-color: transparent; }
.opcao { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--linha); cursor: pointer; }
.opcao:last-child { border-bottom: 0; }
.opcao input { width: 20px; height: 20px; accent-color: var(--cor); flex: none; }
.opcao.off { opacity: .45; cursor: not-allowed; }
.op-nome { flex: 1; display: flex; flex-direction: column; font-size: 14.5px; }
.op-nome small { color: var(--suave); font-size: 12.5px; }
.op-preco { font-weight: 600; color: var(--suave); white-space: nowrap; font-size: 14px; }
.nota { color: var(--suave); font-size: 13px; margin: 8px 0 0; }
.nota.alerta { color: var(--laranja); }
.erro-campo { color: #c81e1e; font-weight: 600; margin: 10px 0 0; }
.erro-campo:empty { margin: 0; }
.folha-rodape { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linha); }
.passo { display: flex; align-items: center; border: 1px solid var(--linha); border-radius: 12px; }
.passo button { width: 42px; height: 46px; border: 0; background: none; font-size: 20px; color: var(--cor); cursor: pointer; }
.passo.pequeno button { width: 32px; height: 32px; font-size: 16px; }
.qtd-num { min-width: 22px; text-align: center; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--cor); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cor-esc); }
.btn:disabled { background: #c7c7cc; cursor: not-allowed; }
.btn.grande { flex: 1; justify-content: space-between; padding: 14px 18px; font-size: 15px; }
.btn.sec { background: #fff; color: var(--tinta); border: 1px solid var(--linha); }
.link { border: 0; background: none; color: var(--cor); font-weight: 600; cursor: pointer; padding: 4px 0; }
.link.mais { margin-top: 8px; }

/* sacola */
.itens { list-style: none; margin: 14px 0 0; padding: 0; }
.itens li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-txt small { color: var(--suave); font-size: 12.5px; }
.item-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.item-preco { font-weight: 700; white-space: nowrap; }
.totais { margin-top: 14px; padding: 12px 14px; background: var(--fundo); border-radius: 12px; }
.totais p { display: flex; justify-content: space-between; margin: 4px 0; font-size: 14.5px; }
.totais .total { font-size: 17px; font-weight: 700; padding-top: 8px; border-top: 1px dashed #d2d2d7; margin-top: 8px; }

/* finalizar */
.checkout h2 { margin-bottom: 4px; }
.campo { display: block; margin-top: 12px; }
.campo > span { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.campo > small { display: block; margin-top: 4px; }
.linha { display: flex; gap: 10px; }
.linha .campo:first-child { flex: 1; }
.linha .campo:last-child { width: 96px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 12px 8px; text-align: center; border: 1.5px solid var(--linha); border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg input:checked + span { border-color: var(--cor); background: var(--cor-claro); color: var(--cor-esc); }
.seg input:focus-visible + span { outline: 2px solid var(--cor); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--cor); flex: none; margin: 0; }

/* acompanhar pedido */
.pg-pedido { padding-bottom: 30px; }
.pedido { max-width: 560px; margin: 0 auto; padding: 18px 16px; }
.voltar a { text-decoration: none; font-weight: 600; }
.pedido h1 { font-size: 26px; font-weight: 800; margin-top: 8px; }
.sub { color: var(--suave); margin: 4px 0 0; }
.status-card { margin-top: 16px; padding: 18px; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.status-atual { font-size: 22px; font-weight: 800; margin: 0; color: var(--cor); }
[data-status="entregue"] .status-atual { color: var(--verde); }
[data-status="cancelado"] .status-atual { color: var(--suave); }
.status-motivo { margin: 4px 0 0; color: var(--suave); }
.linha-tempo { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.linha-tempo li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--suave); }
.linha-tempo i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linha); background: #fff; flex: none; z-index: 1; }
.linha-tempo li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 26px; bottom: -10px; width: 2px; background: var(--linha); }
.linha-tempo li.feito { color: var(--tinta); }
.linha-tempo li.feito i { background: var(--verde); border-color: var(--verde); }
.linha-tempo li.feito::after { background: var(--verde); }
.linha-tempo li.atual { color: var(--tinta); font-weight: 700; }
.linha-tempo li.atual i { border-color: var(--cor); background: var(--cor); box-shadow: 0 0 0 5px var(--cor-claro); }
.resumo { margin-top: 18px; }
.resumo h2 { font-size: 17px; font-weight: 800; }
.pag { margin: 10px 0 0; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.vp-feito { margin-top: 14px !important; font-size: 12px; }
.vp-feito a { color: var(--suave); font-weight: 500 !important; }
.vp-feito em { font-style: normal; color: #4f46e5; }
