/* ============================================================
   FOCUS SALES EXPERTS — CATÁLOGO BR — produto.css
   Página de produto: galeria, info, especificações, vídeo,
   relacionados, barra fixa mobile. Página inteira em --paper (§8.2).
   ============================================================ */

.produto-topo { display: grid; gap: clamp(28px, 4vw, 56px); }
/* Sem isto a trilha 1fr cresce até o min-content da fileira de miniaturas (8 × 68px)
   e a página de produto fica com 634px de largura num celular de 390px: a foto
   principal sai da tela. Achado na F7.0; já estava no ar. */
.produto-topo > * { min-width: 0; }
@media (min-width: 900px) { .produto-topo { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Galeria ---------- */
.galeria-principal {
  aspect-ratio: 4 / 3;
  background: var(--photo-bg);
  border: 1px solid var(--line-on-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}
.galeria-principal img { width: 100%; height: 100%; object-fit: contain; padding: 16px; view-transition-name: produto-foto-principal; }
.galeria-miniaturas { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.galeria-miniaturas button {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  background: var(--photo-bg);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.galeria-miniaturas button img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.galeria-miniaturas button[aria-current="true"] { border-color: var(--signal-on-paper); }
html.no-js .galeria-miniaturas { display: none; }
/* sem JS: fotos empilhadas, cada uma visível (§4.4) */
html.no-js .galeria-empilhada { display: flex; flex-direction: column; gap: 12px; }
html.js .galeria-empilhada .galeria-principal ~ .galeria-item { display: none; }
.galeria-item { aspect-ratio: 4/3; background: var(--photo-bg); border: 1px solid var(--line-on-paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.galeria-item img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

/* ---------- Info ---------- */
.produto-info-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.produto-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.produto-info .lead { margin-bottom: 20px; }
.produto-comercial { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; padding: 16px 18px; background: var(--paper-card); border: 1px solid var(--line-on-paper); }
.produto-comercial .row { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.produto-comercial .row b { color: var(--ink); font-weight: 600; }
.produto-comercial .row span:first-child { color: var(--ink-muted); }

/* ---------- Form de cotação na ficha (F7.2) ---------- */
.produto-form {
  margin: 8px 0 0;
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--card);
  border: 1px solid var(--border);
}
.produto-form-titulo {
  font-size: 1.12rem;
  font-stretch: 100%;
  line-height: 1.25;
  margin-bottom: 6px;
}
.produto-form-lead {
  font-size: .9rem;
  color: var(--fg-2);
  margin-bottom: 18px;
  max-width: none;
}
.produto-form .btn { width: 100%; }
.produto-form-privacidade {
  font-size: .82rem;
  color: var(--fg-2);
  margin-top: 12px;
  line-height: 1.45;
}
.produto-form-privacidade a { color: var(--accent-fg); text-decoration: underline; }
.produto-lista-acao { margin-top: 14px; }
.produto-fabricante {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line-on-paper);
}
.produto-fabricante img { width: 64px; height: auto; flex: 0 0 auto; }
.produto-fabricante span { display: block; font-family: var(--font-label); font-size: .68rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.produto-fabricante b { color: var(--ink); font-stretch: 100%; }

/* ---------- Seções abaixo ---------- */
/* Fundo e cor vêm do [data-surface="paper"] (base.css) — produto-secao não leva a
   classe .section (padding próprio, diferente), mas o seletor é o atributo. */
.produto-secao { padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line-on-paper); }
.produto-secao h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.produto-descricao :is(p, ul) { color: var(--ink-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 16px; max-width: 68ch; }
.produto-descricao ul { padding-left: 20px; list-style: disc; }
.produto-descricao li { margin-bottom: 8px; }
.produto-descricao strong { color: var(--ink); }

/* ---------- Tabela de especificações ---------- */
.specs-table { width: 100%; border-collapse: collapse; max-width: 68ch; }
.specs-table tr { border-bottom: 1px solid var(--line-on-paper); }
.specs-table th, .specs-table td { text-align: left; padding: 12px 16px 12px 0; vertical-align: top; }
.specs-table th {
  font-family: var(--font-label);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  width: 46%;
}
.specs-table td {
  /* Akt, nunca Data — valores têm R$, ×, °, hífen (§8.3) */
  font-family: var(--font-body);
  color: var(--ink);
  font-size: .95rem;
}

.aplicacoes-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.aplicacoes-lista li { padding: 8px 14px; background: var(--paper-card); border: 1px solid var(--line-on-paper); font-size: .86rem; color: var(--ink-muted); }

/* ---------- Vídeo (lite embed) ---------- */
.video-lite { position: relative; aspect-ratio: 16/9; background: var(--void); max-width: 68ch; cursor: pointer; overflow: hidden; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-lite .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-lite .play span {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease);
}
.video-lite:hover .play span { transform: scale(1.08); }
.video-lite .play svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.no-js .video-lite .play { display: none; }

/* ---------- Nota de rodapé de especificações ---------- */
.nota-especificacoes { font-size: .84rem; color: var(--ink-muted); font-style: italic; max-width: 60ch; margin-top: 18px; }

/* ---------- Relacionados ---------- */
.relacionados-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
