/* ==========================================================================
   Wave Nine — base: tokens (specs/design.md), reset, tipografia, botões, campos.
   Fonte única: Montserrat (design §3, 2026-11-18).
   ========================================================================== */

:root {
  /* Cores da marca (design §2) */
  --cor-branco: #FFFFFF;
  --cor-nevoa: #DFDCD7;
  --cor-preto: #000000;
  /* Adaptações funcionais */
  --cor-texto-suave: #5E5B57;
  --cor-divisor: rgb(0 0 0 / .15);
  --cor-campo: #F4F3F1;
  --cor-sucesso: #3F6B4A;
  --cor-erro: #9E2B25;
  --cor-aviso: #8A6A1F;

  /* Tipografia (design §3–4) */
  --fonte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fonte-titulo: var(--fonte);
  --fonte-rotulo: var(--fonte);
  --fonte-texto: var(--fonte);
  --fs-display: clamp(40px, 5.6vw, 80px);
  --fs-h1: clamp(32px, 3.9vw, 56px);
  --fs-h2: clamp(26px, 2.8vw, 40px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-body-lg: clamp(18px, 1.3vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: clamp(12px, .9vw, 13px);

  /* Espaçamentos (design §5) */
  --esp-1: 4px; --esp-2: 8px; --esp-3: 12px; --esp-4: 16px; --esp-5: 24px;
  --esp-6: 32px; --esp-7: 48px; --esp-8: 64px; --esp-9: 96px; --esp-10: 128px;

  /* Layout */
  --margem: 16px;            /* margem lateral (celular) */
  --largura: 1440px;         /* container padrão */
  --largura-larga: 1680px;   /* vitrine, Loja, Produto, cabeçalho (2026-11-18/20) */
  --largura-texto: 720px;
  --raio: 2px;
  --sombra: 0 8px 24px rgb(0 0 0 / .08);
  --curva: cubic-bezier(.2, .7, .2, 1);
  --cab-altura: 64px;
}
@media (min-width: 600px)  { :root { --margem: 32px; } }
@media (min-width: 1024px) { :root { --margem: 48px; --cab-altura: 72px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cor-branco);
  color: var(--cor-preto);
  font: 400 var(--fs-body)/1.6 var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
:where(ul, ol)[class]:where(:not(.wp-block-list)) { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--fonte-titulo); font-weight: 600; line-height: 1.1; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
hr { border: 0; border-top: 1px solid var(--cor-divisor); margin: var(--esp-6) 0; }

/* Foco sempre visível (design §2): preto em fundo claro, branco em fundo preto */
:focus-visible { outline: 2px solid var(--cor-preto); outline-offset: 3px; }
.fundo-preto :focus-visible, .rod :focus-visible { outline-color: var(--cor-branco); }
main:focus { outline: none; }

/* ---------- Utilidades ---------- */
.sr, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: absolute; left: var(--esp-4); top: -100px; z-index: 1000;
  padding: var(--esp-3) var(--esp-4); background: var(--cor-preto); color: var(--cor-branco);
  font-size: var(--fs-small); font-weight: 600; text-decoration: none;
}
.pular:focus { top: var(--esp-4); outline-color: var(--cor-branco); }

.wrap { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--margem); }
.wrap--largo { max-width: var(--largura-larga); }
@media (min-width: 1024px) { .wrap--largo { padding-inline: 24px; } }

.rotulo { font: 500 var(--fs-label)/1.4 var(--fonte-rotulo); letter-spacing: .2em; text-transform: uppercase; }
.suave { color: var(--cor-texto-suave); }
.fundo-nevoa { background: var(--cor-nevoa); }
.fundo-preto { background: var(--cor-preto); color: var(--cor-branco); }

/* ---------- Botões (design §8) ---------- */
.btn, .button, button.button, a.button, input[type="submit"].button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--esp-2);
  min-height: 52px; padding: 0 32px;
  border: 1px solid var(--cor-preto); border-radius: var(--raio);
  background: var(--cor-preto); color: var(--cor-branco);
  font: 500 14px/1 var(--fonte-rotulo); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--curva), color 200ms var(--curva);
}
.btn:hover, .button:hover { background: var(--cor-branco); color: var(--cor-preto); }
.btn--sec { background: transparent; color: var(--cor-preto); }
.btn--sec:hover { background: var(--cor-preto); color: var(--cor-branco); }
.fundo-preto .btn { background: var(--cor-branco); color: var(--cor-preto); border-color: var(--cor-branco); }
.fundo-preto .btn:hover { background: transparent; color: var(--cor-branco); }
.btn:disabled, .btn[aria-disabled="true"], .button:disabled, .button.disabled {
  background: var(--cor-nevoa); color: var(--cor-texto-suave); border-color: var(--cor-nevoa); cursor: not-allowed;
}
.btn--total { width: 100%; }

/* ---------- Campos ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], select, textarea {
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--cor-preto); border-radius: var(--raio); background: var(--cor-branco);
}
textarea { min-height: 140px; resize: vertical; }
label { font-size: var(--fs-small); }

/* ---------- Caminho (breadcrumb): Produto, Sobre e páginas de conteúdo ---------- */
.migalha { padding-block: var(--esp-4); font-size: 12px; color: var(--cor-texto-suave); }
.migalha a { color: inherit; text-decoration: none; }
.migalha a:hover { text-decoration: underline; }

/* ---------- Avisos do WooCommerce (o CSS padrão dele não carrega nas páginas da loja) ----------
   Cor de feedback sempre junto do texto (design §2). */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-2) var(--esp-4);
  margin: 0 0 var(--esp-5); padding: var(--esp-3) var(--esp-4); list-style: none;
  border: 1px solid var(--cor-divisor); border-left: 3px solid var(--cor-preto); font-size: 14px;
}
.woocommerce-error { flex-direction: column; align-items: stretch; }
.woocommerce-error li { margin: 0; }
.woocommerce-message { border-left-color: var(--cor-sucesso); }
.woocommerce-error { border-left-color: var(--cor-erro); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 44px; padding-inline: var(--esp-5); font-size: 12px; }

/* ---------- Ícones e botões de ícone (alvo ≥ 44px) ---------- */
.ic { width: 24px; height: 24px; flex: none; }
.icone {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; text-decoration: none;
}
.icone__qtd {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--cor-preto); color: var(--cor-branco);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

/* ---------- Páginas de texto (provisório até a etapa 6) ---------- */
.pagina { padding-block: var(--esp-6) var(--esp-9); }
.pagina__titulo { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: 0; margin-bottom: var(--esp-5); }
.texto { max-width: var(--largura-texto); }
.texto :where(h2) { font-size: 20px; margin: var(--esp-6) 0 var(--esp-2); }
.texto :where(p, li) { line-height: 1.7; }
.lista-posts li { padding-block: var(--esp-3); border-top: 1px solid var(--cor-divisor); }
.pagina--404 { text-align: left; }

/* ---------- Movimento reduzido (design §12) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
