/* ---------- tokens ---------- */
:root {
  --fundo: #f5f6f8;
  --fundo-2: #eceef2;
  --papel: #ffffff;
  --tinta: #1a2133;
  --tinta-2: #4f5a6e;
  --tinta-3: #7a8497;
  --linha: #e1e4ea;
  --linha-forte: #cfd4dc;
  --cobalto: #3150f0;
  --cobalto-escuro: #2238c4;
  --cobalto-claro: #eef1ff;
  --whats: #128c4a;
  --whats-escuro: #0d7139;

  --fonte-titulo: 'Inter', system-ui, sans-serif;
  --fonte: 'Bricolage Grotesque', system-ui, sans-serif;
  --t-1: clamp(2.6rem, 5.6vw, 4.75rem);
  --t-2: clamp(1.9rem, 3.4vw, 2.75rem);
  --t-3: 1.25rem;
  --t-corpo: 1.0625rem;
  --t-pequeno: 0.875rem;

  --largura: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --raio-g: 28px;
  --raio: 18px;
  --raio-p: 10px;
  --sombra-flutuante: 0 1px 2px rgba(26, 33, 51, .06), 0 16px 40px -12px rgba(26, 33, 51, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font-family: var(--fonte); font-size: var(--t-corpo); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalto-escuro); }
h1, h2, h3 { font-family: var(--fonte-titulo); margin: 0; color: var(--tinta); font-feature-settings: 'ss01', 'cv11'; }
h1 { font-size: var(--t-1); font-weight: 800; line-height: 1.0; letter-spacing: -0.045em; }
h2 { font-size: var(--t-2); font-weight: 750; line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: var(--t-3); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalto); outline-offset: 2px; border-radius: 6px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.conteiner { max-width: var(--largura); margin: 0 auto; padding-inline: var(--gutter); }
.secao { padding-block: clamp(64px, 9vw, 120px); }
.secao-titulo { max-width: 36ch; margin-bottom: clamp(28px, 4vw, 48px); }
.secao-titulo p { color: var(--tinta-2); margin-top: 14px; max-width: 56ch; font-size: 1.1rem; }

/* ---------- botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.975rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.botao svg { width: 20px; height: 20px; flex: none; }
.botao-primario { background: var(--cobalto); color: #fff; }
.botao-primario:hover { background: var(--cobalto-escuro); }
.botao-whats { background: var(--whats); color: #fff; }
.botao-whats:hover { background: var(--whats-escuro); }
.botao-linha { border-color: var(--linha-forte); color: var(--tinta); background: var(--papel); }
.botao-linha:hover { border-color: var(--tinta); }
.botao-largo { width: 100%; }

/* ---------- topo: pílula flutuante ---------- */
.topo { position: sticky; top: 0; z-index: 10; padding-top: 12px; }
.topo-pilula {
  display: flex; align-items: center; gap: 24px; min-height: 60px;
  padding: 8px 8px 8px 24px; margin-inline: -12px;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid var(--linha); border-radius: 999px;
  transition: box-shadow .2s;
}
.topo.rolou .topo-pilula { box-shadow: var(--sombra-flutuante); }
.marca { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; color: var(--tinta); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--tinta-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--tinta); background: var(--fundo-2); }
.topo .botao { padding: 10px 18px; font-size: 0.925rem; }
@media (max-width: 760px) {
  .nav { display: none; }
  .topo-pilula { padding-left: 18px; margin-inline: 0; }
  .topo .botao span { display: none; }
  .topo .botao { padding: 10px; }
}

/* ---------- palco 3D ---------- */
.palco {
  position: relative; border-radius: var(--raio-g); overflow: hidden;
  background-color: #f9fafb;
  background-image:
    radial-gradient(70% 60% at 50% 42%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(rgba(26, 33, 51, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 33, 51, .045) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  background-position: center, center, center;
  border: 1px solid var(--linha);
  touch-action: none;
}
.palco canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.palco canvas:active { cursor: grabbing; }
.palco-status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tinta-2); font-size: var(--t-pequeno); pointer-events: none; }
.palco-status[hidden] { display: none; }
.palco-dica {
  position: absolute; left: 16px; top: 16px; font-size: 0.8rem; color: var(--tinta-2); pointer-events: none;
  background: rgba(255,255,255,.8); border: 1px solid var(--linha); padding: 4px 12px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero-grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { font-size: 1.2rem; color: var(--tinta-2); margin-top: 24px; max-width: 40ch; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-provas { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; color: var(--tinta-2); font-size: 0.975rem; }
.hero-provas li { display: flex; align-items: center; gap: 10px; }
.hero-provas li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--cobalto-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233150f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero-visual { position: relative; }
.palco-hero { aspect-ratio: 1 / 1.04; }

/* barra de personalização flutuando dentro do palco */
.configurador {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center;
  padding: 14px 14px 14px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--linha); box-shadow: var(--sombra-flutuante);
}
.configurador[hidden] { display: none; }
.configurador label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--tinta-2); margin-bottom: 6px; }
.configurador .campo-texto { padding: 10px 14px; font-size: 1rem; }
.configurador .amostras { gap: 6px; max-width: 238px; }
.configurador .amostra { width: 28px; height: 28px; }
.configurador .ajuda { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero-grade { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .palco-hero { aspect-ratio: 4 / 3.8; }
  .hero-provas { margin-top: 28px; }
}
@media (max-width: 560px) {
  /* no celular a barra sai de cima do modelo e vai para baixo do palco */
  .configurador { position: relative; left: auto; right: auto; bottom: auto; grid-template-columns: 1fr; margin: -28px 10px 0; }
  .configurador .amostras { max-width: none; }
  .configurador .ajuda { display: none; }
}

/* ---------- formulário ---------- */
.campo-texto {
  width: 100%; font: inherit; font-family: var(--fonte-titulo); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 16px; border-radius: var(--raio-p); border: 1px solid var(--linha-forte); background: var(--papel); color: var(--tinta);
}
.campo-texto::placeholder { color: var(--tinta-3); font-weight: 500; }
.campo-texto:focus { border-color: var(--cobalto); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalto) 16%, transparent); }
.ajuda { font-size: var(--t-pequeno); color: var(--tinta-2); margin-top: 8px; }

.amostras { display: flex; flex-wrap: wrap; gap: 8px; }
.amostra {
  width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--cor); border: 3px solid var(--papel); box-shadow: 0 0 0 1px var(--linha-forte);
  transition: box-shadow .12s, transform .12s;
}
.amostra.silk { background: linear-gradient(135deg, color-mix(in srgb, var(--cor) 65%, #fff) 0%, var(--cor) 45%, color-mix(in srgb, var(--cor) 72%, #000) 100%); }
.amostra:hover { transform: scale(1.08); }
.amostra[aria-checked="true"] { box-shadow: 0 0 0 2px var(--cobalto); }
@media (prefers-reduced-motion: reduce) { .amostra:hover { transform: none; } }

/* ---------- como funciona ---------- */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); counter-reset: passo; position: relative; }
.passos li { counter-increment: passo; position: relative; }
.passos li::before {
  content: counter(passo); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--fonte-titulo); font-size: 1.05rem; font-weight: 700; color: var(--cobalto);
  background: var(--papel); border: 1px solid var(--linha-forte); margin-bottom: 22px; position: relative; z-index: 1;
}
.passos li:not(:last-child)::after { content: ''; position: absolute; top: 22px; left: 56px; right: -12px; height: 1px; background: var(--linha-forte); }
.passos p { color: var(--tinta-2); margin-top: 8px; max-width: 34ch; }
@media (max-width: 760px) {
  .passos { grid-template-columns: 1fr; gap: 28px; }
  .passos li { padding-left: 64px; }
  .passos li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .passos li:not(:last-child)::after { top: 48px; bottom: -24px; left: 22px; right: auto; width: 1px; height: auto; }
}

/* ---------- catálogo ---------- */
.catalogo { background: var(--papel); border-block: 1px solid var(--linha); }
.catalogo-topo { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.catalogo-topo .secao-titulo { margin-bottom: 0; }
.filtros { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fundo-2); }
.filtro {
  font: inherit; font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--tinta-2);
}
.filtro:hover { color: var(--tinta); }
.filtro[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 2px rgba(26,33,51,.08), 0 0 0 1px var(--linha); }
.nicho-descricao { color: var(--tinta-2); margin: -16px 0 28px; min-height: 1.6em; }
.nicho-descricao:empty { display: none; }
@media (max-width: 760px) {
  .filtros { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 16px; scrollbar-width: none; max-width: 100%; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro { flex: none; }
}

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(32px, 3.4vw, 44px) clamp(16px, 2.2vw, 24px); }
.produto { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.produto-foto {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--raio); overflow: hidden; display: grid; place-items: center; margin-bottom: 12px;
  background: radial-gradient(75% 65% at 50% 45%, #ffffff 0%, var(--fundo) 100%);
  border: 1px solid var(--linha);
  transition: border-color .2s;
}
.produto-foto img { width: 86%; height: 86%; object-fit: contain; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.produto:hover .produto-foto { border-color: var(--linha-forte); }
.produto:hover .produto-foto img { transform: scale(1.05) rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) { .produto-foto img { transition: none; } .produto:hover .produto-foto img { transform: none; } }
.produto-foto .sem-foto { color: var(--tinta-2); font-size: var(--t-pequeno); }
.produto-foto .selo-texto { position: absolute; left: 12px; top: 12px; }
.produto h3 { font-size: 1.1rem; }
.produto p { color: var(--tinta-2); font-size: 0.95rem; line-height: 1.5; }
.selos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.selo { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fundo-2); color: var(--tinta-2); }
.selo-texto { background: var(--cobalto); color: #fff; }
.vazio { color: var(--tinta-2); padding: 40px 0; }

/* ---------- duas colunas: título à esquerda, conteúdo à direita ---------- */
.dividida { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.dividida .secao-titulo { margin-bottom: 0; position: sticky; top: 104px; }
@media (max-width: 860px) { .dividida { grid-template-columns: 1fr; } .dividida .secao-titulo { position: static; } }

.fatos { display: grid; }
.fatos div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding-block: 24px; border-top: 1px solid var(--linha-forte); }
.fatos div:last-child { border-bottom: 1px solid var(--linha-forte); }
.fatos strong { font-family: var(--fonte-titulo); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; }
.fatos p { color: var(--tinta-2); }
@media (max-width: 560px) { .fatos div { grid-template-columns: 1fr; } }

/* ---------- dúvidas ---------- */
.duvidas details { border-top: 1px solid var(--linha-forte); }
.duvidas details:last-child { border-bottom: 1px solid var(--linha-forte); }
.duvidas summary {
  cursor: pointer; list-style: none; position: relative; padding: 22px 44px 22px 0;
  font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--fundo-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2133' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas details p { color: var(--tinta-2); padding-bottom: 24px; max-width: 62ch; }

/* ---------- chamada final / rodapé ---------- */
.chamada-painel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--raio-g);
  background-color: var(--cobalto-claro);
  background-image:
    linear-gradient(rgba(49, 80, 240, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 80, 240, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid color-mix(in srgb, var(--cobalto) 18%, transparent);
}
.chamada-painel h2 { max-width: 18ch; }
.chamada-painel p { color: var(--tinta-2); margin-top: 12px; max-width: 44ch; }
.rodape { color: var(--tinta-2); font-size: var(--t-pequeno); border-top: 1px solid var(--linha); background: var(--papel); }
.rodape .conteiner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 28px; }
.rodape a { color: var(--tinta); }
.rodape a:hover { color: var(--cobalto); }

.flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 56px; height: 56px; padding: 0; border-radius: 50%; box-shadow: 0 10px 28px -6px rgba(18, 140, 74, .5); }
.flutuante svg { width: 28px; height: 28px; }
@media (max-width: 760px) { .flutuante { display: none; } }   /* no celular o topo já mostra o WhatsApp */

/* ---------- página de produto ---------- */
.trilha { font-size: var(--t-pequeno); color: var(--tinta-2); padding-top: 28px; }
.trilha a { color: var(--tinta-2); text-decoration: none; }
.trilha a:hover { color: var(--tinta); text-decoration: underline; }
.produto-pagina { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding-block: 20px 88px; align-items: start; }
.produto-pagina .palco { aspect-ratio: 1 / 1; position: sticky; top: 96px; }
.painel h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.04em; }
.painel .resumo { color: var(--tinta-2); margin-top: 14px; font-size: 1.1rem; }
.painel .medidas { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--tinta-2); margin-top: 16px; padding: 4px 12px; border-radius: 999px; background: var(--fundo-2); }
.painel .medidas:empty { display: none; }
#controles { margin-top: 28px; display: grid; gap: 12px; }
.bloco { padding: 20px; border-radius: var(--raio); background: var(--papel); border: 1px solid var(--linha); }
.painel > .bloco { margin-top: 12px; }
.bloco > .rotulo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--fonte-titulo); font-weight: 650; letter-spacing: -0.015em; margin-bottom: 14px; }
.bloco > .rotulo small { font-family: var(--fonte); font-weight: 400; letter-spacing: 0; color: var(--tinta-2); font-size: var(--t-pequeno); }
.linha-cor + .linha-cor { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linha); }
.linha-cor .nome { font-size: 0.95rem; margin-bottom: 10px; color: var(--tinta-2); }
.linha-cor .nome b { font-weight: 600; color: var(--tinta); }
.alternar { display: inline-flex; border-radius: 999px; padding: 4px; background: var(--fundo-2); }
.alternar button { font: inherit; font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.9rem; border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--tinta-2); }
.alternar button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 2px rgba(26,33,51,.08), 0 0 0 1px var(--linha); }
.quantidade { display: flex; align-items: center; gap: 12px; }
.quantidade input { width: 140px; }
.pedido { margin-top: 20px; display: grid; gap: 12px; }
.pedido .botao { padding-block: 16px; font-size: 1.02rem; }
.copiar { background: none; border: 0; font: inherit; font-size: 0.95rem; color: var(--cobalto-escuro); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; justify-self: center; }
.pedido .ajuda { text-align: center; }
.relacionados { background: var(--papel); border-top: 1px solid var(--linha); }
@media (max-width: 900px) {
  .produto-pagina { grid-template-columns: 1fr; }
  .produto-pagina .palco { position: relative; top: 0; aspect-ratio: 4 / 3.6; }
}
