/* Loja online (cardápio, finalizar, Pix e acompanhamento). Mesmo visual da página de entrada:
   verde com brilho radial e granulado, creme, vermelho com bevel, Fraunces + Galano Grotesque, folhas. */
@font-face {
  font-family: 'Galano Grotesque';
  src: url('/assets/galano.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --fundo: #24390f;   /* verde escuro */
  --texto: #f5f4da;   /* creme */
  --detalhe: #810606; /* vermelho */
  --vidro: rgba(70, 96, 38, .30);
  --borda: rgba(245, 244, 218, .22);
  --bevel-blur: 15px;
  --bevel-op: .34;
  --galano: 'Galano Grotesque', system-ui, sans-serif;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--texto);
  background: #182607;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 96px; /* espaço da barra fixa */
}
/* fundo: brilho radial + granulado em overlay (como o card da entrada), fixo atrás de tudo */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; }
body::before { background: radial-gradient(120% 70% at 50% 30%, #659831 0%, #253a0f 100%); }
body::after {
  z-index: -1;
  background: url('/assets/noise.jpg') repeat; background-size: 130px 130px;
  mix-blend-mode: overlay; opacity: .33;
}
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* folhas de manjericão nos cantos (recortadas pela tela, sem rolagem) */
.folhas { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.folha { position: absolute; height: auto; opacity: .9; }
.folha--cima { top: -92px; right: -120px; width: 260px; transform: rotate(2deg); }
.folha--baixo { bottom: -150px; left: -170px; width: 340px; transform: rotate(6deg); }

.topo { position: relative; z-index: 1; display: flex; justify-content: center; padding: 18px 16px 0; }
.topo__logo img { display: block; width: 96px; height: auto; }

.pagina { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px 24px; }
.etapa { animation: up .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.titulo { font-size: 30px; font-weight: 600; line-height: 1.1; text-align: center; margin: 10px 0 6px; overflow-wrap: anywhere; }
.sub { font-family: var(--galano); font-size: 14px; opacity: .85; text-align: center; line-height: 1.45; margin-bottom: 14px; }
.status {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%;
  margin: 6px auto 4px; padding: 7px 16px; border-radius: 999px;
  font-family: var(--galano); font-size: 13px; letter-spacing: .06em;
  background: var(--vidro); border: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9fd36a; box-shadow: 0 0 8px #9fd36a; flex: none; }
.status.fechado::before { background: #e05a4a; box-shadow: 0 0 8px #e05a4a; }

.faixa {
  margin: 8px 0 12px; padding: 12px 16px; border-radius: 18px; text-align: center;
  font-family: var(--galano); font-size: 14px; line-height: 1.45;
  background: rgba(124, 17, 17, .55); border: 1px solid rgba(245, 244, 218, .28);
}
.faixa a { color: var(--texto); font-weight: 600; margin-left: 4px; }

/* ===== cardápio ===== */
.secao { margin-top: 18px; }
.secao__titulo {
  font-family: var(--galano); font-weight: 400; font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  text-align: center; opacity: .8; margin-bottom: 10px;
}
.lista { display: flex; flex-direction: column; gap: 12px; }
.sabor {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 10px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 50%), var(--vidro);
  border: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(9px) saturate(155%); backdrop-filter: blur(9px) saturate(155%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 26px rgba(0, 0, 0, .22);
}
.sabor__foto { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; background: var(--fundo); display: block; }
.sabor__corpo { min-width: 0; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.sabor__nome { font-size: 18px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.sabor__desc {
  font-family: var(--galano); font-size: 13px; line-height: 1.4; opacity: .82; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sabor__pe { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sabor__preco { font-size: 17px; font-weight: 600; white-space: nowrap; }
.esgotado {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  font-family: var(--galano); font-size: 11px; letter-spacing: .04em;
  background: rgba(129, 6, 6, .7); border: 1px solid rgba(245, 244, 218, .3);
}
.passo { display: flex; align-items: center; gap: 6px; }
.passo__n { min-width: 22px; text-align: center; font-family: var(--galano); font-size: 16px; }
.redondo {
  width: 40px; height: 40px; flex: none; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 22px/1 var(--galano); color: var(--texto);
  border: 1px solid rgba(245, 244, 218, .3);
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--bevel-op) * .6)) 0%, rgba(255, 255, 255, 0) 54%), rgba(124, 17, 17, 1);
  background-blend-mode: overlay, normal;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, var(--bevel-op)), inset 0 -6px 8px rgba(0, 0, 0, .2), 0 6px 14px rgba(124, 17, 17, .4);
  -webkit-tap-highlight-color: transparent;
}
.redondo--claro { background: rgba(245, 244, 218, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.redondo:active { transform: scale(.95); }

/* ===== botões (como os da entrada) ===== */
.botao {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 50px; padding: 10px 20px; margin-top: 12px; border-radius: 34px; cursor: pointer;
  color: var(--texto); text-decoration: none;
  font-family: var(--galano); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25;
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--bevel-op) * .6)) 0%, rgba(255, 255, 255, 0) 54%), var(--vidro);
  background-blend-mode: overlay, normal;
  -webkit-backdrop-filter: blur(9px) saturate(155%); backdrop-filter: blur(9px) saturate(155%);
  border: 1px solid var(--borda);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(var(--bevel-op) * .45)),
    inset 0 2px calc(var(--bevel-blur) + 1px) rgba(255, 255, 255, var(--bevel-op)),
    inset 0 calc(var(--bevel-blur) * -1) var(--bevel-blur) rgba(0, 0, 0, .16),
    0 10px 26px rgba(0, 0, 0, .30);
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, opacity .18s ease;
}
.botao--principal {
  background: linear-gradient(180deg, rgba(255, 255, 255, calc(var(--bevel-op) * .6)) 0%, rgba(255, 255, 255, 0) 54%), rgba(124, 17, 17, 1);
  background-blend-mode: overlay, normal;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, calc(var(--bevel-op) * .45)),
    inset 0 2px calc(var(--bevel-blur) + 1px) rgba(255, 255, 255, var(--bevel-op)),
    inset 0 calc(var(--bevel-blur) * -1) var(--bevel-blur) rgba(0, 0, 0, .20),
    0 12px 30px rgba(124, 17, 17, .42);
}
.botao:active { transform: translateY(-1px) scale(.99); }
.botao:disabled { opacity: .55; cursor: progress; }
.voltar {
  background: none; border: 0; color: var(--texto); cursor: pointer; opacity: .85;
  font-family: var(--galano); font-size: 14px; letter-spacing: .06em; padding: 6px 0;
}
.barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(24, 38, 7, 0) 0%, rgba(24, 38, 7, .92) 40%);
}
.barra .botao { max-width: 488px; margin: 0 auto; letter-spacing: .08em; text-transform: none; font-size: 16px; }

/* ===== finalizar ===== */
.painel {
  margin-top: 14px; padding: 16px; border-radius: 22px;
  background: var(--vidro); border: 1px solid var(--borda);
  -webkit-backdrop-filter: blur(9px) saturate(155%); backdrop-filter: blur(9px) saturate(155%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 26px rgba(0, 0, 0, .2);
}
.painel__titulo {
  font-family: var(--galano); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .8; margin-bottom: 10px;
}
.linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.linha + .linha { border-top: 1px solid rgba(245, 244, 218, .14); }
.linha__nome { min-width: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.linha__preco { display: block; font-family: var(--galano); font-size: 13px; opacity: .8; font-weight: 400; }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcoes--coluna { grid-template-columns: 1fr; }
.opcao {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  font-family: var(--galano); font-size: 15px;
  background: rgba(245, 244, 218, .08); border: 1px solid rgba(245, 244, 218, .2);
}
.opcao:has(input:checked) { background: rgba(124, 17, 17, .75); border-color: rgba(245, 244, 218, .45); }
.opcao input { accent-color: var(--detalhe); width: 18px; height: 18px; flex: none; }
.retirada { margin-top: 12px; font-family: var(--galano); font-size: 14px; line-height: 1.5; }
.retirada .botao { margin-top: 10px; min-height: 44px; font-size: 13px; }
.agenda { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.campo { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; min-width: 0; }
.campo > span { font-family: var(--galano); font-size: 12px; letter-spacing: .08em; opacity: .85; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 14px;
  font: 16px/1.3 var(--galano); color: var(--texto);
  background: rgba(10, 20, 3, .35); border: 1px solid rgba(245, 244, 218, .25);
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texto) 50%), linear-gradient(135deg, var(--texto) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.campo select option, .campo select optgroup { background: #24390f; color: var(--texto); }
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid rgba(245, 244, 218, .6); outline-offset: 1px; }
.campo input::placeholder, .campo textarea::placeholder { color: rgba(245, 244, 218, .45); }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: #ff8a7a; }
.linha-campos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.contador { font-family: var(--galano); font-size: 12px; opacity: .65; text-align: right; margin-top: 4px; }
.erro-campo { margin-top: 6px; font-family: var(--galano); font-size: 13px; color: #ffb3a8; }
.aviso {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px;
  font-family: var(--galano); font-size: 14px; line-height: 1.45;
  background: rgba(129, 6, 6, .6); border: 1px solid rgba(245, 244, 218, .3);
}
.resumo__linha { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-family: var(--galano); font-size: 14px; }
.resumo__linha > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.resumo__linha > span:last-child { white-space: nowrap; text-align: right; }
.resumo__total { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(245, 244, 218, .2); font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 600; }
.resumo__nota { font-family: var(--galano); font-size: 12px; opacity: .7; margin-top: 4px; }
.privacidade { margin-top: 16px; font-family: var(--galano); font-size: 12.5px; line-height: 1.45; opacity: .85; text-align: center; }
.turnstile { display: flex; justify-content: center; margin-top: 12px; }
.turnstile:empty { display: none; }

/* ===== Pix ===== */
.painel--pix { text-align: center; }
.pix__valor { font-size: 32px; font-weight: 600; }
.pix__qr { width: min(240px, 100%); aspect-ratio: 1; margin: 12px auto; padding: 10px; border-radius: 18px; background: #fff; }
.pix__qr svg { display: block; width: 100%; height: 100%; }
.pix__tempo { font-family: var(--galano); font-size: 14px; opacity: .9; }
.pix__tempo strong { font-size: 16px; }
.painel--pix .campo { text-align: left; }
.painel--pix input { font-size: 13px; text-overflow: ellipsis; }

/* ===== acompanhamento ===== */
.situacao { font-size: 24px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.etapas { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.etapas li { position: relative; padding: 0 0 16px 30px; font-family: var(--galano); font-size: 14px; opacity: .55; }
.etapas li::before {
  content: ""; position: absolute; left: 4px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(245, 244, 218, .6); background: transparent;
}
.etapas li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 2px; width: 2px; background: rgba(245, 244, 218, .25); }
.etapas li.feita, .etapas li.atual { opacity: 1; }
.etapas li.feita::before { background: var(--texto); border-color: var(--texto); }
.etapas li.atual::before { background: var(--detalhe); border-color: var(--texto); box-shadow: 0 0 0 4px rgba(129, 6, 6, .35); }
.etapas li.atual { font-weight: 600; }
.itens { list-style: none; font-family: var(--galano); font-size: 15px; margin-bottom: 8px; }
.itens li { padding: 4px 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .etapa { animation: none; }
  .botao, .redondo { transition: none; }
}
@media (min-width: 600px) {
  .folha--cima { width: 360px; top: -120px; right: -110px; }
  .folha--baixo { width: 460px; }
}
