/* Tokens e base compartilhados (ver DESIGN.md) */
:root {
  --creme: #FAF7F5;
  --creme-2: #F1E6E2;
  --linha: #E8DAD5;
  --branco: #FFFFFF;
  --verde: #3F5A3E;
  --verde-escuro: #2F452E;
  --rosa: #C97A8A;
  --rosa-2: #B8697A;
  --rosa-claro: #FBEEF1;
  --cafe: #2B2422;
  --cafe-2: #4A3A37;
  --suave: #7A6A66;
  --whats: #25D366;
  --perigo: #B4453A;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 18px;
  --raio-campo: 12px;
  --sombra: 0 10px 30px rgba(43, 36, 34, .08);
  --sombra-forte: 0 18px 50px rgba(43, 36, 34, .18);
  --largura: 1180px;

  /* Movimento: ease-out forte, sem "quicar" (equivalente a uma mola criticamente amortecida) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --raio-grande: 24px;
  --raio-medio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--verde);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Foco: anel café com halo branco, visível em fundo claro e escuro, sem deformar botões redondos */
:focus-visible { outline: 3px solid var(--cafe); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
html { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.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;
}

.rotulo {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .35s var(--ease);
}
/* Resposta no instante do toque (não só ao soltar) */
.btn:active { transform: scale(.97); transition-duration: .1s; }
:where(.link-detalhe, .detalhe-fechar, .aba, .seta, .voltar):active { transform: scale(.96); transition-duration: .1s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-rosa { background: var(--rosa); color: var(--cafe); } /* letra café: contraste 4,8:1 (branca dava 3,2) */
.btn-rosa:hover { background: var(--rosa); filter: brightness(1.06); }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-escuro); }
.btn-claro { background: var(--branco); color: var(--cafe); border-color: var(--linha); }
.btn-claro:hover { border-color: var(--rosa); color: var(--cafe); }
.btn-fantasma { background: transparent; color: var(--verde); border-color: var(--linha); }
.btn-fantasma:hover { border-color: var(--verde); }
.btn-perigo { background: transparent; color: var(--perigo); border-color: #E7C3BE; }
.btn-perigo:hover { background: #FBEDEB; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--cafe); color: #fff; padding: .85rem 1.25rem; border-radius: 14px;
  box-shadow: var(--sombra-forte); font-weight: 500; z-index: 100; max-width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: var(--perigo); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn:active, :where(.link-detalhe, .detalhe-fechar, .aba, .seta, .voltar, .chip):active { transform: none; }
  .toast, .toast.visivel { transform: translate(-50%, 0); }
}
