/* Rovetta Confeitaria — folha de estilos
   Paleta: verde musgo, folha de sálvia, papel claro e texto oliva escuro. Títulos em Yeseva One, texto em Figtree. */

:root {
  --papel: #F6F7F0;
  --texto: #2B2E1E;
  --texto-suave: #5A5E47;
  --musgo: #4E5D2C;
  --musgo-escuro: #3A4620;
  --musgo-noite: #2C3419;
  --salvia: #DDE3CB;
  --salvia-clara: #EDF0E2;
  --branco: #FFFFFF;
  --linha: rgba(43, 46, 30, 0.14);
  --linha-forte: rgba(43, 46, 30, 0.28);

  --f-titulo: "Yeseva One", "Didot", Georgia, serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-foto: 20px;
  --r-caixa: 14px;
  --r-controle: 10px;

  --larg: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --topo-h: 68px;
  --nav-baixo-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font: 400 1rem/1.5 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sem-rolagem { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--musgo-escuro); text-underline-offset: 3px; }
a:hover { color: var(--musgo); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--f-titulo); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--musgo);
  outline-offset: 3px;
  border-radius: 4px;
}

.pular {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--texto); color: var(--papel); padding: 10px 16px; border-radius: var(--r-controle);
}
.pular:focus { top: 12px; color: var(--papel); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.dica { font-size: 0.875rem; line-height: 1.45; color: var(--texto-suave); }
.opcional { font-weight: 400; color: var(--texto-suave); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--f-texto);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--cheio { background: var(--musgo); color: var(--branco); }
.btn--cheio:hover { background: var(--musgo-escuro); color: var(--branco); }
.btn--contorno { border-color: var(--texto); color: var(--texto); background: transparent; }
.btn--contorno:hover { background: var(--texto); color: var(--papel); }
.btn--texto { background: transparent; color: var(--texto); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.btn--texto:hover { color: var(--musgo); }
.btn--largo { width: 100%; }

/* ---------- Topo ---------- */

.topo {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--papel) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo__in {
  max-width: var(--larg); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--topo-h);
  display: flex; align-items: center; gap: 24px;
}

.marca { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--texto); }
.marca:hover { color: var(--texto); }
.marca__nome { font-family: var(--f-titulo); font-size: 1.6rem; line-height: 1; color: var(--musgo); }
.marca__sub { font-size: 0.9375rem; font-weight: 500; color: var(--texto-suave); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px;
  color: var(--texto); text-decoration: none; font-weight: 500;
}
.nav a:hover, .nav__chat:hover { background: var(--salvia-clara); color: var(--texto); }
.nav__chat {
  padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: var(--texto); font: 500 1rem var(--f-texto);
}

.btn-sacola {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--texto); border-radius: 999px;
  background: transparent; color: var(--texto);
  font: 600 0.9375rem var(--f-texto); cursor: pointer;
}
.btn-sacola:hover { background: var(--texto); color: var(--papel); }
.contador {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--musgo); color: var(--branco);
  font-size: 0.8125rem; font-weight: 700;
}
.contador[hidden] { display: none; }

/* no celular os atalhos do topo vão para a barra de baixo */
@media (max-width: 820px) {
  .nav, .btn-sacola { display: none; }
  .topo__in { justify-content: center; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--larg); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.06;
  max-width: 14ch;
}
.hero__lead { margin-top: 18px; font-size: 1.125rem; line-height: 1.55; max-width: 44ch; color: var(--texto-suave); }

.hero__acoes { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__foto { margin: 0; position: relative; }
.hero__foto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-foto) var(--r-foto) var(--r-foto) 140px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero__foto { order: -1; }
  .hero__foto img { aspect-ratio: 16 / 11; border-radius: var(--r-foto) var(--r-foto) var(--r-foto) 72px; }
}

/* ---------- Cabeçalho de seção ---------- */

.secao-cab { max-width: 640px; margin-bottom: clamp(24px, 4vw, 40px); }
.secao-cab p { margin-top: 12px; color: var(--texto-suave); font-size: 1.0625rem; }

/* ---------- Montador ---------- */

.montar {
  background: var(--branco);
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
  padding: clamp(40px, 6vw, 88px) 0;
}
.montar > .secao-cab, .montador { max-width: var(--larg); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.montar > .secao-cab { margin-bottom: clamp(24px, 4vw, 40px); }

.montador {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.montador__passos { display: grid; gap: 36px; min-width: 0; }

.passo { border: 0; margin: 0; padding: 0; min-width: 0; }
.passo legend {
  display: flex; align-items: center; gap: 12px;
  padding: 0; margin-bottom: 16px;
  font: 400 1.5rem/1.2 var(--f-titulo);
}
.passo__n {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--salvia); color: var(--musgo-escuro);
  font: 700 0.9375rem var(--f-texto);
}

/* opções acessíveis: o input fica sobre o rótulo, invisível, e o foco aparece no rótulo */
.op-sabor, .op-tam, .op-ceno, .op-doce, .pilula { position: relative; cursor: pointer; }
.op-sabor input, .op-tam input, .op-ceno input, .op-doce input, .pilula input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit;
}
.op-sabor:has(input:focus-visible), .op-tam:has(input:focus-visible), .op-ceno:has(input:focus-visible),
.op-doce:has(input:focus-visible), .pilula:has(input:focus-visible) {
  outline: 3px solid var(--musgo); outline-offset: 3px;
}

/* sabores */
.op-sabores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.op-sabor {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; min-height: 76px;
  border: 1.5px solid var(--linha); border-radius: var(--r-caixa);
  background: var(--branco);
  transition: border-color .15s, background-color .15s;
}
.op-sabor:hover { border-color: var(--linha-forte); }
.op-sabor img { width: 60px; height: 60px; flex: none; object-fit: cover; border-radius: 10px; background: var(--salvia); }
.op-sabor__nome { font-weight: 600; line-height: 1.25; }
.op-sabor:has(input:checked) { border: 2px solid var(--musgo); background: var(--salvia-clara); padding: 7.5px 11.5px 7.5px 7.5px; }
.op-sabor:has(input:checked)::after {
  /* marca de selecionado sobre a foto, para não depender só da cor */
  content: ""; position: absolute; left: 50px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--musgo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 2px solid var(--branco);
}

/* tamanho */
.tamanho { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 24px; align-items: center; }
.op-tamanhos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.op-tam {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 76px; padding: 8px 4px;
  border: 1.5px solid var(--linha-forte); border-radius: var(--r-caixa);
  background: var(--papel);
  transition: border-color .15s, background-color .15s;
}
.op-tam:hover { border-color: var(--texto-suave); }
.op-tam__n { font-family: var(--f-titulo); font-size: 1.75rem; line-height: 1; }
.op-tam__u { font-size: 0.8125rem; color: var(--texto-suave); margin-top: 4px; }
.op-tam:has(input:checked) { border: 2px solid var(--musgo); background: var(--musgo); color: var(--branco); }
.op-tam:has(input:checked) .op-tam__u { color: var(--branco); }

.tamanho__ficha { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; }
.tamanho__ficha dt { font-size: 0.8125rem; color: var(--texto-suave); }
.tamanho__ficha dd { margin: 2px 0 0; font-weight: 600; }

.tamanho__desenho { margin: 0; text-align: center; }
.tamanho__desenho figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--texto-suave); }
#bolo-svg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; }
#bolo-svg .prato { fill: var(--branco); stroke: var(--linha-forte); stroke-width: 1.5; }
#bolo-svg .massa { fill: #F8F3E3; stroke: #C9C2A0; stroke-width: 1.5; }
#bolo-svg .borda { fill: none; stroke: #A9B48A; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0.1 9; }
#bolo-svg .corte { stroke: var(--texto); stroke-opacity: 0.5; stroke-width: 1.3; stroke-linecap: round; }
#bolo-svg.cortando .corte { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cortar .5s cubic-bezier(.3,.7,.3,1) forwards; }
@keyframes cortar { to { stroke-dashoffset: 0; } }

/* quantidade */
.qtd {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--linha-forte); border-radius: 999px; overflow: hidden; background: var(--branco);
}
.qtd button {
  width: 48px; min-height: 48px; border: 0; background: transparent; color: var(--texto);
  font: 600 1.375rem var(--f-texto); cursor: pointer;
}
.qtd button:hover:not(:disabled) { background: var(--salvia-clara); }
.qtd button:disabled { color: var(--linha-forte); cursor: not-allowed; }
.qtd output { min-width: 64px; display: grid; place-items: center; font: 700 1.125rem var(--f-texto); }

.aviso {
  padding: 12px 16px; border-radius: var(--r-controle);
  background: var(--salvia-clara); border-left: 4px solid var(--musgo);
  font-weight: 500;
}

/* ---------- Campos ---------- */

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-weight: 600; font-size: 0.9375rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--linha-forte); border-radius: var(--r-controle);
  background: var(--branco); color: var(--texto);
  font: 400 1rem/1.4 var(--f-texto);
}
.campo textarea { resize: vertical; min-height: 76px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-suave); opacity: 0.85; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible {
  outline: none; border-color: var(--musgo); box-shadow: 0 0 0 3px rgba(78, 93, 44, 0.28);
}
.campo input:user-invalid, .campo select:user-invalid { border-color: var(--musgo-escuro); background: var(--salvia-clara); }

/* ---------- Etiqueta (resumo) ---------- */

/* o resumo é desenhado como a etiqueta de papel amarrada na caixa do bolo */
.etiqueta {
  position: sticky; top: calc(var(--topo-h) + 20px);
  /* contorno que acompanha os cantos cortados da etiqueta */
  filter: drop-shadow(1.5px 0 0 var(--linha-forte)) drop-shadow(-1.5px 0 0 var(--linha-forte))
          drop-shadow(0 1.5px 0 var(--linha-forte)) drop-shadow(0 -1.5px 0 var(--linha-forte));
}
.etiqueta__corpo {
  position: relative;
  padding: 48px 24px 24px;
  background: var(--papel);
  border-radius: 0 0 var(--r-caixa) var(--r-caixa);
  clip-path: polygon(16% 0, 84% 0, 100% 44px, 100% 100%, 0 100%, 0 44px);
}
.etiqueta__corpo::before {
  /* furo do barbante */
  content: ""; position: absolute; top: 14px; left: 50%; translate: -50% 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--branco); border: 1.5px solid var(--linha-forte);
}
.etiqueta__marca {
  font-family: var(--f-titulo); font-size: 1.375rem; color: var(--musgo); text-align: center;
  padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1.5px dashed var(--linha-forte);
}
.etiqueta__linhas { margin: 0; }
.etiqueta__linhas > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.etiqueta__linhas dt { font-size: 0.875rem; color: var(--texto-suave); }
.etiqueta__linhas dd { margin: 0; font-weight: 600; line-height: 1.35; }
.etiqueta__previsao { margin-top: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--musgo-escuro); }
.etiqueta__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.etiqueta__total span { font-weight: 600; }
.etiqueta__total strong { font-family: var(--f-titulo); font-weight: 400; font-size: 2.25rem; line-height: 1; }
.etiqueta__unit { min-height: 1.3em; text-align: right; font-size: 0.875rem; color: var(--texto-suave); margin-bottom: 14px; }
.etiqueta__mini { margin-top: 12px; font-size: 0.8125rem; color: var(--texto-suave); text-align: center; }

.barra-pedido { display: none; }

@media (max-width: 1060px) {
  .montador { grid-template-columns: 1fr; }
  .etiqueta { position: static; max-width: 440px; }
  .tamanho { grid-template-columns: 1fr; }
  .tamanho__desenho { order: -1; }
  #bolo-svg { max-width: 220px; }
}

@media (max-width: 640px) {
  .op-tamanhos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-sabores { grid-template-columns: 1fr; }
  .tamanho__ficha { grid-template-columns: 1fr 1fr; }
  .etiqueta .btn { display: none; } /* no celular o botão fica na barra fixa */

  .barra-pedido {
    position: fixed; left: 0; right: 0; bottom: calc(var(--nav-baixo-h) + env(safe-area-inset-bottom)); z-index: 25;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    background: var(--branco); border-top: 1px solid var(--linha-forte);
    box-shadow: 0 -6px 24px rgba(43, 46, 30, 0.1);
    transition: translate .25s;
  }
  body:not(.ve-montador) .barra-pedido { translate: 0 calc(100% + var(--nav-baixo-h) + env(safe-area-inset-bottom)); }
  .barra-pedido__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .barra-pedido__txt span { font-size: 0.8125rem; color: var(--texto-suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barra-pedido__txt strong { font-family: var(--f-titulo); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
  .barra-pedido .btn { flex: none; padding: 12px 18px; }
  .montar { padding-bottom: 110px; }
  html { scroll-padding-bottom: calc(110px + var(--nav-baixo-h)); }
  .passo__btn { display: none; } /* no celular o botão fica na barra fixa */
  .op-cenos { grid-template-columns: 1fr 1fr; }
  .op-doces { grid-template-columns: 1fr; }
}

/* ---------- Cardápio ---------- */

.cardapio { max-width: var(--larg); margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gutter); }
.cardapio__grade { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cardapio__linha {
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--texto);
  font: 400 1.625rem/1.2 var(--f-titulo);
}
.cardapio__lista { list-style: none; margin: 0; padding: 0; }
.tabela-precos table { width: 100%; border-collapse: collapse; }
.tabela-precos th { text-align: left; font-size: 0.875rem; font-weight: 600; color: var(--texto-suave); padding: 10px 0; border-bottom: 1px solid var(--linha-forte); }
.tabela-precos td { padding: 14px 0; border-bottom: 1px solid var(--linha); vertical-align: baseline; }
.tabela-precos td:first-child { font-family: var(--f-titulo); font-size: 1.25rem; white-space: nowrap; padding-right: 16px; }
.tabela-precos td:nth-child(2) { color: var(--texto-suave); font-size: 0.9375rem; padding-right: 12px; }
.tabela-precos th:last-child, .tabela-precos td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.prato-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--linha);
}
.prato-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: var(--salvia); }
.prato-item h4 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.prato-item p { margin-top: 4px; font-size: 0.9375rem; color: var(--texto-suave); max-width: 42ch; }
.link-pedir {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-weight: 600; white-space: nowrap;
}

@media (max-width: 860px) {
  .cardapio__grade { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .prato-item { grid-template-columns: 72px 1fr; }
  .prato-item img { width: 72px; height: 72px; }
  .link-pedir { grid-column: 2; justify-self: start; }
}

/* ---------- Dúvidas ---------- */

.duvidas { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gutter); }
.duvidas__lista { border-top: 1px solid var(--linha-forte); }
.duvidas details { border-bottom: 1px solid var(--linha-forte); }
.duvidas summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; min-height: 44px;
  font-weight: 600; font-size: 1.0625rem;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--musgo); border-bottom: 2px solid var(--musgo);
  rotate: 45deg; translate: 0 -3px; transition: rotate .2s;
}
.duvidas details[open] summary::after { rotate: -135deg; translate: 0 3px; }
.duvidas details p { padding: 0 0 22px; max-width: 64ch; color: var(--texto-suave); }

/* ---------- Rodapé ---------- */

.rodape { background: var(--musgo-noite); color: #E6EAD8; padding: 56px var(--gutter) 28px; }
.rodape__in { max-width: var(--larg); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.rodape p { line-height: 1.6; }
.rodape a { color: var(--branco); }
.rodape a:hover { color: var(--salvia); }
.marca--rodape { margin-bottom: 10px; }
.marca--rodape .marca__nome { color: var(--salvia); }
.marca--rodape .marca__sub { color: #C9D0B5; }
.rodape__tit { font: 700 0.9375rem var(--f-texto); color: var(--salvia); margin-bottom: 10px; }
.rodape__fim { max-width: var(--larg); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.875rem; color: #BFC6A9; }

@media (max-width: 760px) { .rodape__in { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rodape { padding-bottom: 28px; } }

/* ---------- Sacola ---------- */

.sacola { position: fixed; inset: 0; z-index: 50; }
.sacola__fundo { position: absolute; inset: 0; background: rgba(43, 46, 30, 0.5); opacity: 0; transition: opacity .25s; }
.sacola__painel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  display: flex; flex-direction: column;
  background: var(--papel);
  translate: 100% 0; transition: translate .26s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; overscroll-behavior: contain;
}
.sacola.is-aberta .sacola__fundo { opacity: 1; }
.sacola.is-aberta .sacola__painel { translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .sacola__fundo, .sacola__painel, .barra-pedido { transition: none; }
}

.sacola__cab {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--papel); border-bottom: 1px solid var(--linha);
}
.sacola__cab h2 { font-size: 1.75rem; }
.sacola__fechar {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--linha-forte); border-radius: 50%; background: transparent; color: var(--texto); cursor: pointer;
}
.sacola__fechar:hover { background: var(--salvia-clara); }

.sacola__vazia { padding: 40px 20px; display: grid; gap: 20px; justify-items: start; }
.sacola__cheia { padding: 8px 20px 28px; }

.sacola__itens { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.item__txt { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; color: var(--texto-suave); }
.item__txt strong { font-size: 1rem; color: var(--texto); }
.item__fim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.item__preco { font-weight: 700; }
.item__remover {
  min-height: 44px; min-width: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--musgo-escuro); font: 500 0.875rem var(--f-texto); text-decoration: underline; text-underline-offset: 3px;
}

.checkout { display: grid; gap: 16px; margin-top: 20px; }
.checkout__receber { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checkout__receber legend { font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; padding: 0; }
.pilula {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--linha-forte); border-radius: 999px; background: var(--branco); font-weight: 500;
}
.pilula:has(input:checked) { border-color: var(--musgo); background: var(--salvia-clara); color: var(--musgo-escuro); font-weight: 700; }

.checkout__totais { margin: 4px 0 0; border-top: 1px solid var(--linha-forte); }
.checkout__totais > div { display: flex; justify-content: space-between; padding: 8px 0; }
.checkout__totais dt { color: var(--texto-suave); }
.checkout__totais dd { margin: 0; font-weight: 600; }
.checkout__totais .checkout__total { border-top: 1px solid var(--linha); padding-top: 12px; align-items: baseline; }
.checkout__total dt { color: var(--texto); font-weight: 700; }
.checkout__total dd { font-family: var(--f-titulo); font-weight: 400; font-size: 1.875rem; line-height: 1; }

.checkout__nota { font-size: 0.8125rem; color: var(--texto-suave); text-align: center; }
.checkout__ok { padding: 12px 14px; border-radius: var(--r-controle); background: var(--salvia); font-weight: 600; }

/* ---------- Passos extras do montador ---------- */

.passo__sub { margin: 4px 0 12px; font-weight: 700; font-size: 1.0625rem; }
.passo__sub + .op-sabores { margin-bottom: 28px; }
.passo__dica { margin: -6px 0 14px; max-width: 60ch; font-size: 0.9375rem; }
.passo__btn { min-width: 240px; }
.campo--obs { margin-top: 24px; max-width: 560px; }

.sim-nao { display: flex; flex-wrap: wrap; gap: 8px; }
.bloco-extra { margin-top: 18px; }

.op-cenos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.op-ceno {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 8px 12px; border: 1.5px solid var(--linha); border-radius: var(--r-caixa); background: var(--branco);
  transition: border-color .15s, background-color .15s;
}
.op-ceno:hover { border-color: var(--linha-forte); }
.op-ceno img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: var(--salvia); }
.op-ceno__icone {
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 6px; border-radius: 10px;
  display: grid; place-items: center; color: var(--musgo);
  background: var(--salvia-clara); border: 1.5px dashed var(--linha-forte);
}
.op-ceno__nome { font-weight: 600; line-height: 1.25; padding: 0 4px; }
.op-ceno__preco { font-size: 0.875rem; color: var(--texto-suave); padding: 0 4px; }
.op-ceno:has(input:checked) { border: 2px solid var(--musgo); background: var(--salvia-clara); padding: 7.5px 7.5px 11.5px; }

.foto-exemplo {
  margin-top: 14px; padding: 16px; border-radius: var(--r-caixa);
  background: var(--salvia-clara); display: grid; gap: 10px; max-width: 520px;
}
.foto-exemplo__campo { display: grid; gap: 2px; }
.foto-exemplo__tit { font-weight: 700; }
.foto-exemplo input[type=file] { font: 500 0.9375rem var(--f-texto); min-height: 44px; }
.foto-exemplo input[type=file]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 0 18px; border: 1.5px solid var(--musgo); border-radius: 999px;
  background: var(--branco); color: var(--musgo-escuro); font: 600 0.9375rem var(--f-texto); cursor: pointer;
}
.foto-exemplo__previa { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }

.doces-qtd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.doces-qtd__rot { font-weight: 700; }
.doces-qtd__preco { font-weight: 700; color: var(--musgo-escuro); }
.doces-limite { margin: 12px 0 10px; font-size: 0.9375rem; color: var(--texto-suave); }
.op-doces { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.op-doce {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--linha); border-radius: var(--r-caixa); background: var(--branco); font-weight: 600;
}
.op-doce img { width: 54px; height: 54px; flex: none; object-fit: cover; border-radius: 10px; }
.op-doce:has(input:checked) { border: 2px solid var(--musgo); background: var(--salvia-clara); padding: 5.5px 11.5px 5.5px 5.5px; }
.op-doce:has(input:checked)::after {
  content: ""; margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--musgo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.op-doce.is-bloqueado { opacity: 0.45; cursor: not-allowed; }

.checkout__receber .pilula { flex: 0 1 auto; }

/* ---------- Navegação inferior (celular) ---------- */

.nav-baixo { display: none; }

@media (max-width: 820px) {
  body { padding-bottom: calc(var(--nav-baixo-h) + env(safe-area-inset-bottom)); }
  .nav-baixo {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--nav-baixo-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--branco); border-top: 1px solid var(--linha-forte);
  }
  .nav-baixo__item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; cursor: pointer; text-decoration: none;
    color: var(--texto); font: 600 0.75rem var(--f-texto);
  }
  .nav-baixo__item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-baixo__item:hover, .nav-baixo__item:active { color: var(--musgo); }
  .contador--nav { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 0.6875rem; padding: 0 5px; }
  .chat-flutuante { display: none; }
}

/* ---------- Chat ---------- */

.chat-flutuante {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--musgo); color: var(--branco);
  box-shadow: 0 8px 24px rgba(43, 46, 30, 0.25);
}
.chat-flutuante:hover { background: var(--musgo-escuro); }
body.chat-aberto .chat-flutuante { display: none; }

.chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 45;
  width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--papel); border: 1px solid var(--linha-forte); border-radius: 18px;
  box-shadow: 0 18px 48px rgba(43, 46, 30, 0.22); overflow: hidden;
}
.chat__cab {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 14px 14px 12px 18px; background: var(--musgo); color: var(--branco);
}
.chat__cab h2 { font-size: 1.375rem; }
.chat__cab p { font-size: 0.8125rem; color: #E1E7CF; margin-top: 2px; }
.chat__cab .sacola__fechar { border-color: rgba(255,255,255,.5); color: var(--branco); flex: none; }
.chat__cab .sacola__fechar:hover { background: rgba(255,255,255,.12); }
.chat__msgs { list-style: none; margin: 0; padding: 16px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.45; }
.chat__msg--loja { align-self: flex-start; background: var(--branco); border: 1px solid var(--linha); border-bottom-left-radius: 4px; }
.chat__msg--eu { align-self: flex-end; background: var(--musgo); color: var(--branco); border-bottom-right-radius: 4px; }
.chat__whats { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; }
.chat__rapidas { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.chip {
  min-height: 36px; padding: 0 14px; border: 1.5px solid var(--musgo); border-radius: 999px;
  background: var(--branco); color: var(--musgo-escuro); font: 600 0.875rem var(--f-texto); cursor: pointer;
}
.chip:hover { background: var(--salvia-clara); }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--linha); background: var(--branco); }
.chat__form input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--linha-forte); border-radius: 999px; font: 400 1rem var(--f-texto); color: var(--texto);
}
.chat__form input:focus-visible { outline: none; border-color: var(--musgo); box-shadow: 0 0 0 3px rgba(78, 93, 44, 0.28); }
.chat__form .btn { padding: 12px 18px; }

@media (max-width: 820px) {
  .chat {
    left: 0; right: 0; top: 0; bottom: calc(var(--nav-baixo-h) + env(safe-area-inset-bottom));
    width: auto; height: auto; border-radius: 0; border: 0; box-shadow: none;
  }
  .chip { min-height: 44px; }
}

/* no celular o chat abre pela barra de baixo */
@media (max-width: 820px) {
  .chat-flutuante { display: none; }
}

.pilula.is-bloqueado { opacity: 0.45; cursor: not-allowed; }
