:root {
  --mel: #e39b12;
  --mel-escuro: #a86a05;
  --mel-claro: #fdf0d2;
  --creme: #fbf6ec;
  --papel: #ffffff;
  --tinta: #2b2118;
  --suave: #7a6a58;
  --borda: #ecdfc6;
  --mato: #4f6b3a;
  --mato-claro: #e6eedc;
  --perigo: #b3412e;
  --perigo-claro: #f8e1dc;
  --azul: #2f5d7c;
  --azul-claro: #dfeaf2;
  --sombra: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 18px rgba(60, 40, 10, .07);
  --raio: 16px;
  --titulo: 'Fraunces', Georgia, serif;
  --corpo: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--creme);
  color: var(--tinta);
  font: 16px/1.45 var(--corpo);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--titulo); font-weight: 650; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--mel-escuro); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--mel); color: #2b1a00; font-weight: 800; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.bloco { width: 100%; }
.btn.sec { background: var(--papel); color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--borda); }
.btn.verde { background: var(--mato); color: #fff; }
.btn.zap { background: #1fa855; color: #fff; }
.btn.perigo { background: var(--perigo-claro); color: var(--perigo); }
.btn.peq { min-height: 38px; padding: 0 14px; font-size: .92rem; }

.campo { display: grid; gap: 6px; margin-bottom: 14px; }
.campo > span { font-size: .85rem; font-weight: 700; color: var(--suave); }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--borda); background: var(--papel); outline: none;
}
.campo textarea { min-height: 84px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--mel); box-shadow: 0 0 0 3px var(--mel-claro); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--borda); font-weight: 700; white-space: nowrap;
}
.chip.ativo { background: var(--tinta); color: #fff; box-shadow: none; }
.chip .n { display: inline-block; margin-left: 6px; min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--mel); color: #2b1a00; font-size: .8rem; }

.cartao { background: var(--papel); border-radius: var(--raio); box-shadow: var(--sombra); }

/* folha que sobe de baixo */
.fundo {
  position: fixed; inset: 0; background: rgba(30, 20, 5, .45); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; animation: surge .18s ease;
}
.folha {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--creme);
  border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  animation: sobe .22s cubic-bezier(.2, .8, .2, 1);
}
.folha::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--borda); margin: 0 auto 14px; }
.folha h2 { font-size: 1.4rem; margin-bottom: 16px; }
.folha .acoes { display: grid; gap: 10px; margin-top: 8px; }
@keyframes surge { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) {
  .fundo { align-items: center; }
  .folha { border-radius: 22px; }
}

.aviso {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 80;
  font-weight: 700; box-shadow: var(--sombra); max-width: calc(100% - 32px); text-align: center; animation: surge .2s;
}
.aviso.erro { background: var(--perigo); }

.foto-vazia {
  display: grid; place-items: center; font-size: 2.6rem;
  background: linear-gradient(135deg, var(--mel-claro), #f7dfae);
}
.foto-vazia.tenebrio { background: linear-gradient(135deg, #efe6d6, #d9c7a5); }
.foto-vazia.frango { background: linear-gradient(135deg, var(--mato-claro), #cbdab8); }

.vazio { text-align: center; color: var(--suave); padding: 48px 24px; }
.vazio b { display: block; font-size: 2.4rem; margin-bottom: 8px; }
.mudo { color: var(--suave); }
.preco { font-weight: 800; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* controles usados na loja e no editor de pedido */
.qtd { display: flex; align-items: center; gap: 2px; background: var(--creme); border-radius: 999px; padding: 3px; }
.qtd button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--papel); font-size: 1.25rem; font-weight: 800; cursor: pointer; box-shadow: var(--sombra); }
.qtd button.mais { background: var(--mel); }
.qtd output { min-width: 26px; text-align: center; font-weight: 800; }
.total-final { display: flex; justify-content: space-between; font-size: 1.25rem; padding: 12px 0 18px; font-family: var(--titulo); }
