/* Pulsatti · Composição dos produtos (DCB)
   Tipografia, cores e componentes espelham o site www.pulsatti.com.br.
   Sem JavaScript: tudo aqui é CSS puro. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --texto: #201f1f;
  --texto-2: #606060;
  --rosa: #ef476f;            /* rosa da marca: detalhes, linhas, foco */
  --acao: #d23e62;            /* rosa para texto e botões (contraste 4,5:1 sobre branco) */
  --acao-hover: #b7304f;
  --barra: #606060;           /* barra cinza do topo */
  --sup-1: #f2f2f2;           /* fundo das fotos */
  --sup-2: #f6f6f6;           /* rodapé */
  --sup-3: #f7f7f7;           /* caixas */
  --linha: #efefef;
  --raio: 5px;
  --largura: 1120px;
  --fonte: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--acao); }
a:hover { color: var(--acao-hover); }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.pular {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: #fff; color: var(--texto); font-weight: 600;
  border-radius: 0 0 var(--raio) 0;
}
.pular:focus { left: 0; }

/* ---------- barra cinza do topo ---------- */
.barra { background: var(--barra); color: #fff; font-size: 12px; line-height: 1.4; }
.barra .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.barra a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.barra a:hover { color: #fff; text-decoration: underline; }

/* ---------- cabeçalho ---------- */
.topo { position: relative; background: #fff; box-shadow: 0 2px 8px rgba(32, 31, 31, 0.06); }
.topo__linha { display: flex; justify-content: center; padding-top: 16px; padding-bottom: 16px; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 48px; width: auto; }

.menu { border-top: 1px solid var(--linha); }
.menu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.menu a {
  display: block; padding: 13px 18px 10px; border-bottom: 3px solid transparent;
  font-size: 14px; font-weight: 700; color: var(--texto); text-decoration: none;
}
.menu a:hover { color: var(--acao); border-bottom-color: var(--rosa); }

/* ---------- migalhas ---------- */
.migalhas { padding-top: 18px; padding-bottom: 6px; font-size: 12px; color: var(--texto-2); }
.migalhas ol { display: flex; gap: 4px 6px; }
.migalhas li { flex: none; }
.migalhas li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.migalhas li + li::before { content: "›"; margin-right: 6px; color: #8c8c8c; }
.migalhas a { color: var(--texto-2); text-decoration: none; }
.migalhas a:hover { color: var(--acao); text-decoration: underline; }
.migalhas [aria-current] { color: var(--texto); font-weight: 600; }

/* ---------- página de produto ---------- */
.produto { display: grid; gap: 28px; padding-top: 14px; }

.produto__foto {
  width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1;
  background: var(--sup-1); border-radius: var(--raio); overflow: hidden;
}
.produto__foto img { width: 100%; height: 100%; object-fit: cover; }

.produto__cat, .card__cat {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acao);
}
.produto h1 { margin-top: 6px; font-size: clamp(26px, 6.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
.produto__sub { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--texto-2); }

.composicao {
  margin-top: 26px; padding: 22px 22px 24px;
  background: var(--sup-3); border: 1px solid var(--linha); border-left: 4px solid var(--rosa); border-radius: var(--raio);
}
.composicao h2 { font-size: 20px; font-weight: 700; }
.composicao__legenda { margin-top: 4px; margin-bottom: 14px; font-size: 12px; color: var(--texto-2); }
.composicao__texto { font-size: 16px; line-height: 1.75; overflow-wrap: break-word; hyphens: none; }
.nb { white-space: nowrap; }

.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--raio);
  font: 700 15px/1 var(--fonte); text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primario { background: var(--acao); color: #fff; }
.btn--primario:hover { background: var(--acao-hover); color: #fff; }
.btn--contorno { background: #fff; color: var(--texto); border-color: var(--texto); }
.btn--contorno:hover { background: var(--texto); color: #fff; }

/* ---------- páginas de texto (índice, 404) ---------- */
.intro { max-width: 640px; padding-top: 40px; padding-bottom: 30px; text-align: center; }
.intro h1 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.intro p { margin-top: 12px; color: var(--texto-2); }
.intro .acoes { justify-content: center; }

/* ---------- cartões de produto ---------- */
.outros { margin-top: 60px; }
.outros h2 { margin-bottom: 26px; text-align: center; font-size: clamp(20px, 4.4vw, 26px); font-weight: 700; }
.lista { padding-bottom: 8px; }

.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; }
.card { width: calc(50% - 7px); }
.card a { display: block; color: var(--texto); text-decoration: none; }
.card__foto { display: block; aspect-ratio: 1 / 1; background: var(--sup-1); border-radius: var(--raio); overflow: hidden; }
.card__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.card a:hover .card__foto img { transform: scale(1.03); }
.card__cat { display: block; margin-top: 12px; font-size: 11px; }
.card__nome { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.card__ver { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--acao); }
.card a:hover .card__ver { text-decoration: underline; }

/* ---------- rodapé ---------- */
.rodape { margin-top: 64px; background: var(--sup-2); border-top: 1px solid var(--linha); font-size: 14px; }
.rodape__grid { display: grid; gap: 30px; padding-top: 38px; padding-bottom: 34px; }
.rodape h2 { margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.rodape li + li { margin-top: 8px; }
.rodape a { color: var(--texto); text-decoration: none; }
.rodape a:hover { color: var(--acao); text-decoration: underline; }
.social a { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 22px; height: 22px; flex: none; }
.rodape__copy { padding-top: 16px; padding-bottom: 22px; border-top: 1px solid #e4e4e4; font-size: 12px; line-height: 1.7; color: var(--texto-2); text-align: center; }

/* ---------- telas maiores ---------- */
@media (min-width: 640px) {
  .card { width: 220px; }
  .cards { gap: 26px 20px; }
}

@media (min-width: 560px) {
  .rodape__grid { grid-template-columns: 1fr 1fr; gap: 32px 36px; }
}

@media (min-width: 880px) {
  .rodape__grid { grid-template-columns: 0.8fr 1.5fr 1.2fr 1fr; }
  .logo img { height: 62px; }
  .topo__linha { padding-top: 20px; padding-bottom: 20px; }
  .menu a { padding: 15px 22px 12px; font-size: 15px; }
  .barra { font-size: 13px; }
  .produto { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 60px; align-items: start; padding-top: 20px; }
  .produto__foto { margin: 0; }
  .produto__info { padding-top: 6px; }
}

/* ---------- impressão ---------- */
@media print {
  .barra, .menu, .acoes, .outros, .rodape, .pular, .migalhas { display: none; }
  .topo { box-shadow: none; }
  .composicao { background: #fff; border-color: #999; }
  body { font-size: 12pt; }
}
