/* Delícias da Rô: encomendas de Natal
   Folha de cardápio creme com moldura dourada sobre veludo bordô. */

:root {
  --veludo: #5e0b1a;
  --veludo-claro: #7a1426;
  --veludo-escuro: #43060f;
  --cereja: #a8172b;
  --ouro: #c9a04e;
  --ouro-claro: #ebcb86;
  --papel: #fdf4e6;
  --papel-escuro: #f4e4c9;
  --chocolate: #3a1c14;
  --chocolate-suave: #6b4a3f;
  --pinho: #1f5a3d;
  --pinho-escuro: #17462f;

  --script: "Yesteryear", "Brush Script MT", cursive;
  --texto: "Libre Caslon Text", Georgia, "Times New Roman", serif;

  /* Escala tipográfica clássica (Bringhurst) */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-21: 1.3125rem;
  --t-24: 1.5rem;
  --t-36: 2.25rem;
  --t-48: 3rem;

  --raio-pilula: 999px;
  --foco: 0 0 0 3px var(--papel), 0 0 0 5.5px var(--pinho);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  scroll-padding-bottom: 96px;
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: var(--t-16);
  line-height: 1.6;
  color: var(--papel);
  background-color: var(--veludo);
  /* veludo: brilho das dobras + grão fino */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E"),
    radial-gradient(120% 60% at 15% 0%, rgba(160, 32, 54, 0.55), transparent 60%),
    radial-gradient(90% 50% at 100% 45%, rgba(122, 20, 38, 0.6), transparent 70%),
    radial-gradient(110% 60% at 0% 100%, rgba(67, 6, 15, 0.9), transparent 70%);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--foco);
  border-radius: 6px;
}

/* no veludo o anel de foco é ouro (pinho sobre bordô quase não aparece) */
.topo,
.sobre,
.rodape,
.barra,
.pular {
  --foco: 0 0 0 3px var(--veludo), 0 0 0 5.5px var(--ouro-claro);
}

.leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pular {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--papel);
  color: var(--chocolate);
  border-radius: var(--raio-pilula);
  text-decoration: none;
}
.pular:focus {
  top: 12px;
}

/* Cantos recortados das molduras do cardápio */
.entalhe {
  --n: 18px;
  -webkit-mask:
    radial-gradient(circle var(--n) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  mask:
    radial-gradient(circle var(--n) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
    radial-gradient(circle var(--n) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
}

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--raio-pilula);
  font-family: var(--texto);
  font-weight: 700;
  font-size: var(--t-16);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.botao:active {
  transform: translateY(1px) scale(0.99);
}
.botao--papel {
  background: var(--papel);
  color: var(--veludo);
  box-shadow: inset 0 0 0 1.5px var(--ouro), inset 0 0 0 4px var(--papel), inset 0 0 0 5px rgba(201, 160, 78, 0.55);
}
.botao--papel:hover {
  background: #fff9ef;
}
.botao--papel:focus-visible,
.barra:focus-visible {
  box-shadow: var(--foco);
  border-radius: var(--raio-pilula);
}
.botao--whats {
  width: 100%;
  min-height: 58px;
  background: var(--pinho);
  color: #fff;
  font-size: var(--t-18);
}
.botao--whats:hover {
  background: var(--pinho-escuro);
}
.botao--whats[aria-disabled="true"] {
  background: #8e9f95;
  cursor: not-allowed;
}

/* ---------- Topo ---------- */
.topo {
  position: relative;
  padding: 20px 20px 0;
  max-width: 1120px;
  margin: 0 auto;
}

.topo__marca {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topo__logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ouro), 0 6px 18px rgba(30, 2, 8, 0.45);
}
.topo__onde {
  margin: 0;
  font-size: var(--t-14);
  line-height: 1.45;
  color: var(--ouro-claro);
  font-style: italic;
}

.topo__texto {
  margin-top: 20px;
}

.titulo {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}
.titulo__pre {
  display: block;
  font-style: italic;
  font-size: var(--t-24);
  color: var(--ouro-claro);
  margin-left: 0.15em;
}
.titulo__script {
  display: block;
  font-family: var(--script);
  font-size: clamp(4.75rem, 25vw, 10.5rem);
  line-height: 0.95;
  margin-top: -0.05em;
  /* folga à esquerda para a perna do N não ser cortada pelo background-clip */
  padding: 0 0.1em 0.12em 0.15em;
  margin-left: -0.15em;
  background: linear-gradient(176deg, #fbe7b4 18%, #e3bd6c 52%, #b98b39 78%, #e8c77e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(43, 4, 11, 0.55));
}

.topo__lead {
  max-width: 34em;
  margin: 10px 0 20px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #f8e6d8;
}

/* Bilhetes de prazo */
.bilhetes {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 520px;
}
.bilhete {
  --furo: 9px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 12px 16px;
  background: rgba(253, 244, 230, 0.07);
  border: 1px dashed rgba(235, 203, 134, 0.6);
  border-radius: 6px;
  -webkit-mask: radial-gradient(circle var(--furo) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--furo) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--furo) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--furo) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  font-size: var(--t-14);
  line-height: 1.45;
  color: #f3dccb;
}
.bilhete__nome {
  font-family: var(--script);
  font-size: clamp(1.75rem, 8.5vw, 2.25rem);
  white-space: nowrap;
  line-height: 1;
  color: var(--papel);
  margin-bottom: 6px;
}
.bilhete__linha strong {
  color: var(--papel);
}
.bilhete__conta {
  margin-top: 8px;
  font-style: italic;
  color: var(--ouro-claro);
}
/* Aviso de encomenda avulsa, logo abaixo dos bilhetes */
.topo__avulsa {
  max-width: 520px;
  margin: -8px 0 22px;
  font-size: var(--t-14);
  line-height: 1.5;
  color: #f8e6d8;
}
.topo__avulsa strong {
  color: var(--ouro-claro);
  white-space: nowrap;
}

/* Campo do dia, aparece ao escolher "Outra data" */
.outra-data {
  margin-top: 14px;
}
.campo__texto--dia {
  max-width: 260px;
}

.bilhete.is-fechado {
  opacity: 0.55;
}
.bilhete.is-fechado .bilhete__nome {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.topo__foto {
  margin: 18px -20px 0;
  pointer-events: none;
}
.topo__foto img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
}

/* Entrada do topo: o único movimento que não depende de toque */
@media (prefers-reduced-motion: no-preference) {
  .titulo__pre,
  .topo__lead,
  .bilhetes,
  .topo__avulsa,
  .topo__texto > .botao,
  .topo__foto {
    animation: surge 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .titulo__script {
    animation: escreve 1.1s cubic-bezier(0.55, 0.1, 0.25, 1) 0.15s both;
  }
  .topo__lead { animation-delay: 0.75s; }
  .bilhetes,
  .topo__avulsa { animation-delay: 0.85s; }
  .topo__texto > .botao { animation-delay: 0.95s; }
  .topo__foto { animation-delay: 0.5s; animation-duration: 1.1s; }
}
@keyframes escreve {
  from { clip-path: inset(-30% 100% -30% -20%); }
  to { clip-path: inset(-30% -20% -30% -20%); }
}
@keyframes surge {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Folha do cardápio ---------- */
.folha {
  position: relative;
  z-index: 1;
  margin: -26px auto 0;
  max-width: 1100px;
  padding: 0 8px;
}
.folha__papel {
  /* papel + filete dourado duplo com cantos recortados, desenhados num SVG só */
  border: 26px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Cpath d='M22 0H74A22 22 0 0 0 96 22V74A22 22 0 0 0 74 96H22A22 22 0 0 0 0 74V22A22 22 0 0 0 22 0Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M22 0H74A22 22 0 0 0 96 22V74A22 22 0 0 0 74 96H22A22 22 0 0 0 0 74V22A22 22 0 0 0 22 0Z' fill='%23FDF4E6'/%3E%3Cpath d='M22 0H74A22 22 0 0 0 96 22V74A22 22 0 0 0 74 96H22A22 22 0 0 0 0 74V22A22 22 0 0 0 22 0Z' fill='none' stroke='%23C9A04E' stroke-width='3.2' clip-path='url(%23c)'/%3E%3Cpath d='M27.35 6H68.65A28 28 0 0 0 90 27.35V68.65A28 28 0 0 0 68.65 90H27.35A28 28 0 0 0 6 68.65V27.35A28 28 0 0 0 27.35 6Z' fill='none' stroke='%23C9A04E' stroke-width='1.1'/%3E%3C/svg%3E") 32 fill / 26px stretch;
  color: var(--chocolate);
  padding: 4px 4px 12px;
  /* sombra só embaixo, sem filtro (folha alta pesa no celular) */
  box-shadow: 0 40px 60px -34px rgba(25, 1, 6, 0.75);
}

.como {
  text-align: center;
  padding: 6px 0 8px;
}
.como__titulo {
  margin: 0;
  font-size: var(--t-24);
  font-style: italic;
  font-weight: 400;
  color: var(--cereja);
}
.como__passos {
  list-style: none;
  counter-reset: passo;
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 900px;
  text-align: left;
}
.como__passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  font-size: var(--t-16);
  line-height: 1.5;
}
.como__passos li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ouro);
  font-family: var(--script);
  font-size: var(--t-24);
  line-height: 1;
  color: var(--cereja);
  padding-top: 2px;
}

/* Abas fixas */
.abas {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 22px -14px 0;
  padding: 10px 14px;
  background: rgba(253, 244, 230, 0.96);
  border-bottom: 1px solid rgba(201, 160, 78, 0.45);
}
.abas__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.abas__lista::-webkit-scrollbar {
  display: none;
}
.abas__lista a {
  display: block;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--raio-pilula);
  border: 1px solid rgba(168, 23, 43, 0.35);
  text-decoration: none;
  font-size: var(--t-14);
  color: var(--cereja);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.abas__lista a[aria-current="true"] {
  background: var(--cereja);
  border-color: var(--cereja);
  color: var(--papel);
}

/* Categorias */
.categoria {
  padding-top: 36px;
}
.categoria__topo {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 26px;
}
.arabesco {
  display: block;
  width: 180px;
  height: 18px;
  margin: 0 auto 12px;
  color: var(--ouro);
}
.categoria__titulo {
  margin: 0;
  font-size: var(--t-36);
  font-weight: 400;
  font-family: var(--script);
  line-height: 1.05;
  color: var(--cereja);
}
.categoria__texto {
  margin: 8px 0 0;
  font-style: italic;
  color: var(--chocolate-suave);
}

.doces {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

.doce__foto {
  --n: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--papel-escuro);
}
.doce__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doce__nome {
  margin: 16px 0 0;
  font-weight: 400;
  line-height: 1.05;
}
.doce__pre {
  display: block;
  font-style: italic;
  font-size: var(--t-16);
  color: var(--chocolate-suave);
}
.doce__script {
  font-family: var(--script);
  font-size: var(--t-36);
  color: var(--cereja);
}
.doce__pos {
  font-style: italic;
  font-size: var(--t-21);
  color: var(--chocolate);
  margin-left: 0.25em;
}
.doce__desc {
  margin: 8px 0 0;
  font-size: var(--t-16);
  line-height: 1.55;
  color: var(--chocolate);
  max-width: 34em;
}

.opcoes {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.opcao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(201, 160, 78, 0.4);
}
.opcao:last-child {
  border-bottom: 1px solid rgba(201, 160, 78, 0.4);
}
.opcao__info {
  flex: 1 0 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.opcao .passo {
  margin-left: auto;
}
.opcao__rotulo {
  font-size: var(--t-16);
}
.opcao__pontos {
  flex: 1;
  min-width: 14px;
  border-bottom: 2px dotted rgba(107, 74, 63, 0.45);
  transform: translateY(-4px);
}
.opcao__preco {
  font-weight: 700;
  font-size: var(--t-16);
  color: var(--cereja);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.opcao__preco--consulta {
  font-weight: 400;
  font-style: italic;
  color: var(--chocolate-suave);
}

/* Contador: "Adicionar" vira  − 1 +  */
.passo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border-radius: var(--raio-pilula);
}
.passo__add {
  height: 44px;
  min-width: 120px;
  padding: 0 18px;
  border: 1.5px solid var(--cereja);
  border-radius: var(--raio-pilula);
  background: transparent;
  color: var(--cereja);
  font-weight: 700;
  font-size: var(--t-14);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.passo__add:hover {
  background: var(--cereja);
  color: var(--papel);
}
.passo__mais,
.passo__menos {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--papel);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.passo__qtd {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  color: var(--papel);
  font-variant-numeric: tabular-nums lining-nums;
}
.passo__controle {
  display: none;
  align-items: center;
  min-width: 120px;
  justify-content: space-between;
  background: var(--cereja);
  border-radius: var(--raio-pilula);
}
.passo.tem .passo__add {
  display: none;
}
.passo.tem .passo__controle {
  display: inline-flex;
}
.passo__mais:hover,
.passo__menos:hover {
  background: rgba(253, 244, 230, 0.16);
}
.passo__qtd.pula {
  animation: pula 0.28s ease;
}
@keyframes pula {
  50% { transform: scale(1.35); }
}
.passo :focus-visible {
  box-shadow: 0 0 0 2px var(--papel), 0 0 0 4.5px var(--pinho);
}

/* ---------- Comanda ---------- */
.encomenda {
  padding: 56px 14px 16px;
}
.comanda-sombra {
  max-width: 580px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 26px rgba(30, 2, 8, 0.5));
}
.comanda {
  --dente: 11px;
  position: relative;
  padding: 26px 22px 52px;
  background:
    linear-gradient(rgba(201, 160, 78, 0.5), rgba(201, 160, 78, 0.5)) top 10px left 14px / calc(100% - 28px) 1px no-repeat,
    linear-gradient(rgba(201, 160, 78, 0.5), rgba(201, 160, 78, 0.5)) top 14px left 14px / calc(100% - 28px) 1px no-repeat,
    var(--papel);
  color: var(--chocolate);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente)) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--dente) - 0.5px), #0000 var(--dente)) bottom / calc(var(--dente) * 2) var(--dente) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--dente)) no-repeat,
    radial-gradient(circle at 50% 0, #000 calc(var(--dente) - 0.5px), #0000 var(--dente)) bottom / calc(var(--dente) * 2) var(--dente) repeat-x;
}
.comanda__topo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 18px;
  border-bottom: 2px dotted rgba(107, 74, 63, 0.4);
}
.comanda__topo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--ouro);
}
.comanda__titulo {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.25rem, 10.5vw, 3rem);
  line-height: 1;
  color: var(--cereja);
}

.comanda__vazia {
  padding: 22px 0 6px;
  text-align: center;
  font-style: italic;
  color: var(--chocolate-suave);
}
.comanda__vazia p {
  margin: 0;
}
.comanda__vazia a {
  color: var(--cereja);
  font-style: normal;
  font-weight: 700;
}

.linhas {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(107, 74, 63, 0.35);
}
.linha.nova {
  animation: realce 1.2s ease;
}
@keyframes realce {
  from { background: rgba(235, 203, 134, 0.55); }
  to { background: transparent; }
}
.linha__nome {
  font-weight: 700;
  line-height: 1.35;
}
.linha__opcao {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-14);
  color: var(--chocolate-suave);
}
.linha__preco {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.linha__preco--consulta {
  font-weight: 400;
  font-style: italic;
  color: var(--chocolate-suave);
  font-size: var(--t-14);
}
.linha__acoes {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 23, 43, 0.5);
  background: transparent;
  color: var(--cereja);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.mini:hover {
  background: rgba(168, 23, 43, 0.08);
}
.mini__qtd {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.linha__tirar {
  margin-left: auto;
  border: 0;
  background: none;
  min-height: 44px;
  padding: 8px 6px;
  color: var(--chocolate-suave);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--t-14);
  cursor: pointer;
}

.contas {
  margin: 16px 0 0;
  padding: 0;
}
.contas[hidden] {
  display: none;
}
.contas__linha {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
}
.contas__linha dt::after {
  content: "";
}
.contas__linha dd {
  margin: 0 0 0 auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}
.contas__total {
  font-size: var(--t-21);
}
.contas__total dd {
  color: var(--cereja);
}
.contas__nota {
  margin: 6px 0 0;
  font-size: var(--t-14);
  font-style: italic;
  color: var(--chocolate-suave);
}

.campo {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.campo legend,
.campo__rotulo {
  display: block;
  padding: 0;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: var(--t-18);
  color: var(--chocolate);
}
.campo__opcional {
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-14);
  color: var(--chocolate-suave);
}
.campo__ajuda {
  margin: 8px 0 0;
  font-size: var(--t-14);
  font-style: italic;
  color: var(--chocolate-suave);
}
.campo__texto {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #9a8076;
  border-radius: 10px;
  background: #fffaf2;
  color: var(--chocolate);
  font-size: var(--t-16);
  line-height: 1.45;
}
textarea.campo__texto {
  resize: vertical;
}
.campo__texto::placeholder {
  color: #84685e;
  font-style: italic;
}
.campo__texto:focus-visible {
  border-color: var(--pinho);
  box-shadow: 0 0 0 3px rgba(31, 90, 61, 0.25);
  border-radius: 10px;
}
.campo__texto[aria-invalid="true"] {
  border-color: var(--cereja);
}

.escolhas {
  display: grid;
  gap: 10px;
}
.escolhas--linha {
  grid-template-columns: repeat(3, 1fr);
}
.escolha {
  position: relative;
  display: block;
  cursor: pointer;
}
.escolha input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.escolha__caixa {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 46px;
  min-height: 52px;
  justify-content: center;
  border: 1.5px solid #9a8076;
  border-radius: 12px;
  background: #fffaf2;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.escolha__caixa::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 1.5px solid #8a6f65;
  background: #fff;
}
.escolha__nome {
  font-weight: 700;
  line-height: 1.3;
}
.escolha__info {
  font-size: var(--t-14);
  line-height: 1.4;
  color: var(--chocolate-suave);
}
.escolha input:checked + .escolha__caixa {
  border-color: var(--cereja);
  background: #fbe9e3;
}
.escolha input:checked + .escolha__caixa::before {
  border-color: var(--cereja);
  background: radial-gradient(circle, var(--cereja) 0 5px, #fff 5.5px);
}
.escolha input:focus-visible + .escolha__caixa {
  box-shadow: 0 0 0 2px var(--papel), 0 0 0 4.5px var(--pinho);
}
.escolha input:disabled + .escolha__caixa {
  opacity: 0.5;
  cursor: not-allowed;
}
.escolha--pilula .escolha__caixa {
  padding: 10px 8px;
  align-items: center;
  text-align: center;
  border-radius: var(--raio-pilula);
}
.escolha--pilula .escolha__caixa::before {
  display: none;
}
.escolha--pilula input:checked + .escolha__caixa {
  background: var(--cereja);
  color: var(--papel);
}

.erro {
  margin: 8px 0 0;
  font-size: var(--t-14);
  font-weight: 700;
  color: var(--cereja);
}
.erro--geral {
  margin-top: 22px;
  text-align: center;
}

#enviar {
  margin-top: 26px;
}
.comanda__rodape {
  margin: 12px 0 0;
  font-size: var(--t-14);
  line-height: 1.5;
  text-align: center;
  color: var(--chocolate-suave);
}
.comanda__enviado {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e6efe8;
  color: var(--pinho-escuro);
  font-size: var(--t-14);
  line-height: 1.5;
}
.comanda__enviado a {
  font-weight: 700;
}
.comanda__limpar {
  display: block;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--chocolate-suave);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--t-14);
  cursor: pointer;
}
.comanda__limpar[hidden] {
  display: none;
}

/* ---------- Sobre ---------- */
.sobre {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 20px 24px;
  display: grid;
  gap: 28px;
  align-items: center;
}
.sobre__foto {
  --n: 26px;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 585 / 760;
  overflow: hidden;
}
.sobre__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.sobre__titulo {
  margin: 0 0 14px;
  font-weight: 400;
  line-height: 1;
}
.sobre__pre {
  display: block;
  font-style: italic;
  font-size: var(--t-21);
  color: var(--ouro-claro);
}
.sobre__script {
  display: block;
  font-family: var(--script);
  font-size: 4.5rem;
  color: var(--papel);
  line-height: 0.95;
}
.sobre__texto p {
  margin: 0 0 14px;
  max-width: 34em;
  font-size: var(--t-18);
  line-height: 1.65;
  color: #f6e3d6;
}
.sobre__texto .sobre__assina {
  font-family: var(--script);
  font-size: var(--t-36);
  color: var(--ouro-claro);
  margin-top: 6px;
}

/* ---------- Rodapé ---------- */
.rodape {
  padding: 40px 20px 120px;
  text-align: center;
  font-size: var(--t-14);
  color: #e9cfc1;
}
.rodape p {
  margin: 0 0 6px;
}
.rodape__arabesco {
  display: block;
  margin: 0 auto 16px;
  color: var(--ouro);
}
.rodape__nome {
  font-size: var(--t-16);
  color: var(--papel);
}
.rodape__links {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.rodape__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--papel);
  text-decoration: none;
  border-bottom: 1px solid rgba(235, 203, 134, 0.5);
}
.rodape__credito {
  margin-top: 18px !important;
  font-size: var(--t-12);
  color: #c9a89b;
}

/* ---------- Barra flutuante ---------- */
.barra {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(520px, calc(100% - 20px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--raio-pilula);
  background: #2b120d;
  color: var(--papel);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(235, 203, 134, 0.45), 0 12px 28px rgba(20, 2, 5, 0.5);
  transform: translateX(-50%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.barra[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 140%);
  visibility: hidden;
}
.barra__resumo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.barra__qtd {
  font-size: var(--t-14);
  color: var(--ouro-claro);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.barra__valor {
  white-space: nowrap;
  font-weight: 700;
  font-size: var(--t-18);
  font-variant-numeric: tabular-nums lining-nums;
}
.barra__acao {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--raio-pilula);
  background: var(--papel);
  color: var(--veludo);
  font-weight: 700;
  font-size: var(--t-16);
  white-space: nowrap;
  flex-shrink: 0;
}

.aviso-js {
  padding: 20px;
  text-align: center;
}

/* ---------- Telas maiores ---------- */
@media (min-width: 600px) {
  .folha__papel {
    border-width: 32px;
    border-image-width: 32px;
    padding: 12px 24px 24px;
  }
  .abas {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .comanda {
    padding: 30px 40px 60px;
  }
}

@media (min-width: 760px) {
  .topo {
    padding: 28px 32px 0;
  }
  .topo__logo {
    width: 84px;
    height: 84px;
  }
  /* no computador o topo vira a capa do cardápio: tudo centrado */
  .topo {
    text-align: center;
  }
  .topo__marca {
    flex-direction: column;
    gap: 8px;
  }
  .topo__texto {
    margin-top: 14px;
  }
  .titulo__pre {
    font-size: var(--t-36);
    margin-left: 0;
  }
  .titulo__script {
    padding: 0 0.15em 0.12em;
    margin-left: 0;
  }
  .topo__lead {
    font-size: var(--t-21);
    margin-left: auto;
    margin-right: auto;
  }
  .topo__avulsa {
    margin-left: auto;
    margin-right: auto;
  }
  .bilhetes {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .bilhete {
    padding: 16px 22px 16px 24px;
    font-size: var(--t-16);
  }
  .topo__foto {
    margin: -40px auto 0;
    max-width: 980px;
  }
  .topo__foto img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 36%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect;
  }
  .folha {
    margin-top: -64px;
    padding: 0 20px;
  }
  .como__passos {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .abas__lista {
    justify-content: center;
  }
  .doces {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
  }
  .doces--um {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
  }
  .categoria__titulo {
    font-size: var(--t-48);
  }
  .sobre {
    grid-template-columns: 340px 1fr;
    gap: 48px;
    padding-top: 80px;
  }
  .sobre__script {
    font-size: 6rem;
  }
}

@media (min-width: 1000px) {
  .titulo__script {
    font-size: 11rem;
  }
  .folha__papel {
    padding: 24px 48px 40px;
  }
  .abas {
    margin-left: -48px;
    margin-right: -48px;
    padding-left: 48px;
    padding-right: 48px;
  }
  .doces--tres {
    grid-template-columns: repeat(3, 1fr);
  }
  .categoria {
    padding-top: 52px;
  }
}

@media (max-width: 359px) {
  .barra__valor {
    font-size: var(--t-16);
  }
  .barra__acao {
    padding: 0 14px;
    font-size: var(--t-14);
  }
}

/* Encomendas encerradas: só sobra o contato */
.encerrado .passo,
.encerrado .barra,
.encerrado .linhas,
.encerrado .contas,
.encerrado .contas__nota,
.encerrado .campo,
.encerrado .comanda__vazia,
.encerrado .comanda__rodape,
.encerrado .comanda__limpar {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
