/* LS Resistências — folha de estilo do site
   Conceito: ficha técnica. Tipografia condensada nos títulos, valores em fonte mono,
   o verde do raio da marca LS e um único acento "incandescente" reservado ao que
   aquece (o fio da resistência). */

:root {
  --bg: #f2f5f3;
  --surface: #ffffff;
  --surface-2: #e7ede9;
  --line: #d1dbd4;
  --ink: #122019;
  --ink-2: #465a4e;
  --ink-3: #5e7266;
  --brand: #13803c;
  --brand-hover: #0e6830;
  --brand-soft: #dcefe2;
  --on-brand: #ffffff;
  --heat: #e0561b;
  --heat-2: #ffad4a;
  --band: #0d2617;
  --band-ink: #e4f0e8;
  --band-ink-2: #a5c2ae;
  --band-line: #23452f;
  --photo-bg: #ffffff;
  --shadow: 0 10px 30px rgba(10, 34, 20, 0.12);
  --font-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1410;
    --surface: #121d17;
    --surface-2: #19271f;
    --line: #273a2e;
    --ink: #e2ece5;
    --ink-2: #a3b7a9;
    --ink-3: #829789;
    --brand: #4cc070;
    --brand-hover: #6fd18c;
    --brand-soft: #133621;
    --on-brand: #04200e;
    --heat: #ff7438;
    --heat-2: #ffc069;
    --band: #0e2417;
    --band-ink: #e4f0e8;
    --band-ink-2: #9fbca8;
    --band-line: #21412c;
    --photo-bg: #f4f6f5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c1410;
  --surface: #121d17;
  --surface-2: #19271f;
  --line: #273a2e;
  --ink: #e2ece5;
  --ink-2: #a3b7a9;
  --ink-3: #829789;
  --brand: #4cc070;
  --brand-hover: #6fd18c;
  --brand-soft: #133621;
  --on-brand: #04200e;
  --heat: #ff7438;
  --heat-2: #ffc069;
  --band: #0e2417;
  --band-ink: #e4f0e8;
  --band-ink-2: #9fbca8;
  --band-line: #21412c;
  --photo-bg: #f4f6f5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.2rem; font-stretch: 90%; font-weight: 720; line-height: 1.2; letter-spacing: -0.005em; }

.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.prose { display: grid; gap: 14px; max-width: 68ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }

.label {
  font: 500 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label a { text-decoration: none; }
.label a:hover { color: var(--brand); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.78rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--heat);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--heat) 22%, transparent);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-light { background: var(--band-ink); color: var(--band); }
.btn-light:hover { background: #ffffff; }
.btn-outline-light { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.btn-outline-light:hover { border-color: var(--band-ink-2); }
.btn-sm { min-height: 42px; padding: 8px 14px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .icon { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: 70px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark .mark-bg { fill: var(--brand); }
.brand-mark .mark-bolt { fill: var(--on-brand); }
.brand-logo { height: 56px; width: auto; display: block; flex: none; }
.footer-brand .brand { justify-self: start; }
.footer-brand .brand-logo { height: 72px; }
/* Logotipo: versão clara ou escura conforme o tema (a escura só existe se houver logo-escuro.*) */
.brand-logo.logo-escuro { display: none; }
:root[data-theme="dark"] .brand-logo.logo-claro { display: none; }
:root[data-theme="dark"] .brand-logo.logo-escuro { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.logo-claro { display: none; }
  :root:not([data-theme="light"]) .brand-logo.logo-escuro { display: block; }
}
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-weight: 780;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  margin-top: 5px;
  font: 500 0.66rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.nav { display: flex; gap: 2px; }
.nav a {
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink-3); }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter-r) 20px var(--gutter);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head > div { display: grid; gap: 12px; max-width: 720px; }
.section-head > p { max-width: 52ch; color: var(--ink-2); }
.rule { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-note { font-size: 0.95rem; color: var(--ink-3); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.hero-figure {
  display: grid;
  gap: 4px;
  padding: 18px 18px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.figure-head { display: flex; justify-content: space-between; gap: 12px; }
.coil { width: 100%; height: auto; display: block; }
.coil .back { fill: none; stroke: var(--ink-3); stroke-width: 2; opacity: 0.55; }
.coil .front { fill: none; stroke: url(#fio-quente); stroke-width: 3.4; stroke-linecap: round; }
.coil .lead-wire { fill: none; stroke: var(--ink-2); stroke-width: 3; stroke-linecap: round; }
.coil .terminal { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 2; }
.coil .dim { fill: none; stroke: var(--ink-3); stroke-width: 1.3; }
.coil .dim-text { fill: var(--ink-2); font: 500 15px var(--font-mono); }
.coil .dim-bg { fill: var(--surface); }
.coil .glow { fill: var(--heat); opacity: 0.32; animation: brasa 3.6s ease-in-out infinite; }
.coil .axis { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 10 4 2 4; opacity: 0.7; }
@keyframes brasa { 0%, 100% { opacity: 0.22; } 50% { opacity: 0.42; } }

.figure-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -18px;
  border-top: 1px solid var(--line);
}
.figure-specs > div { padding: 14px 18px; display: grid; gap: 4px; }
.figure-specs > div + div { border-left: 1px solid var(--line); }
.figure-specs b { font: 500 clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem)/1.1 var(--font-mono); font-variant-numeric: tabular-nums; }
.figure-specs .label { white-space: nowrap; }
@media (max-width: 480px) {
  .figure-specs > div { padding: 12px; }
  .figure-specs .label { letter-spacing: 0.06em; font-size: 0.66rem; }
}
.figure-foot {
  margin: 0 -18px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.figure-foot a { color: var(--brand); font-weight: 600; }

/* ---------- Fatos ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.fact { background: var(--surface); padding: 20px clamp(16px, 2vw, 24px); min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-content: start; }
.fact .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.fact strong { font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.fact span { color: var(--ink-2); font-size: 0.94rem; }

/* ---------- Ilustrações ---------- */
.art { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art .hot { stroke: var(--heat); }
.art .glowline { stroke: var(--heat-2); stroke-width: 8; opacity: 0.35; }
.art .back { stroke: var(--ink-3); stroke-width: 1.5; opacity: 0.6; }
.art .soft { fill: var(--surface); }
.art .ground { fill: var(--surface-2); }
.art .dimline { stroke: var(--ink-3); stroke-width: 1.2; }
.art .tube { stroke-width: 9; stroke: var(--ink-2); }
.art .tube-core { stroke-width: 2.2; stroke: var(--heat); }
.art text { fill: var(--ink-2); stroke: none; font: 500 11px var(--font-mono); }
.art .seg { fill: var(--heat); font: 500 22px var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Linhas ---------- */
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.line-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.line-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.line-art { background: var(--surface-2); aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink-2); padding: 12px 18%; max-width: 100%; }
.line-body { padding: 18px 18px 20px; display: grid; gap: 8px; align-content: start; }
.line-body p { color: var(--ink-2); font-size: 0.95rem; }
.line-body .count { font: 500 0.78rem/1 var(--font-mono); color: var(--ink-3); letter-spacing: 0.06em; margin-top: 4px; }

.line-card.featured {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-rows: 1fr;
  background: var(--band);
  color: var(--band-ink);
  border-color: var(--band);
}
.line-card.featured .line-art { background: color-mix(in srgb, var(--band) 70%, #000 30%); color: var(--band-ink-2); aspect-ratio: auto; height: 100%; padding: 24px 12%; }
.line-card.featured .line-art .art text { fill: var(--band-ink-2); }
.line-card.featured .line-art .soft { fill: var(--band); }
.line-card.featured .line-body { padding: 24px; align-content: center; gap: 12px; }
.line-card.featured .label { color: var(--heat-2); }
.line-card.featured p { color: var(--band-ink-2); }
.line-card.featured .more { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.line-card.featured:hover { border-color: var(--heat); }

@media (max-width: 1000px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lines { grid-template-columns: minmax(0, 1fr); }
  .line-art { aspect-ratio: 16 / 9; padding: 8px 26%; }
  .line-card.featured { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .line-card.featured .line-art { aspect-ratio: 16 / 9; height: auto; padding: 8px 26%; }
}

/* ---------- Produtos ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .products { grid-template-columns: minmax(0, 1fr); } }

.p-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.p-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.p-art {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  padding: 10px 24%;
  overflow: hidden;
}
.p-art.has-photo { padding: 0; }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-art .chip { position: absolute; left: 12px; bottom: 12px; }
.p-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.p-name { font-size: 1.12rem; }
.p-sum { color: var(--ink-2); font-size: 0.94rem; }
.p-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--brand); font-size: 0.95rem; }
.p-more .icon { width: 17px; height: 17px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 0.74rem/1.2 var(--font-mono);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Faixa escura ---------- */
.band { background: var(--band); color: var(--band-ink); }
.band .label { color: var(--heat-2); }
.band .lead, .band p { color: var(--band-ink-2); }
.band h2, .band h3 { color: var(--band-ink); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--band-line);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
}
.step { background: var(--band); padding: 24px 22px; display: grid; gap: 10px; align-content: start; }
.step-n { font: 500 0.8rem/1 var(--font-mono); color: var(--heat-2); letter-spacing: 0.1em; }
.band-grid { display: grid; gap: 32px; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Variante clara dos passos (páginas internas) */
.steps.light { background: var(--line); border-color: var(--line); }
.steps.light .step { background: var(--surface); }
.steps.light .step-n { color: var(--heat); }
.steps.light p { color: var(--ink-2); }

/* ---------- Segmentos ---------- */
.grid-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
}
.grid-lines > * { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.grid-lines p { color: var(--ink-2); font-size: 0.95rem; }
.grid-lines.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-lines.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid-lines, .grid-lines.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-lines, .grid-lines.cols-2, .grid-lines.cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.2rem/1 var(--font-mono); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

/* ---------- Chamada final ---------- */
.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 18px;
  background: var(--brand-soft);
}
.cta-box > div { display: grid; gap: 10px; }
.cta-box p { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 760px) { .cta-box { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Páginas internas ---------- */
.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 32px; align-items: center; }
.page-head-art { color: var(--ink-2); max-width: 320px; justify-self: end; width: 100%; }
@media (max-width: 760px) { .page-head-grid { grid-template-columns: minmax(0, 1fr); } .page-head-art { display: none; } }
.page-head .prose { font-size: 1.05rem; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; font-size: 0.88rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* Catálogo */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.search { position: relative; display: block; width: min(100%, 340px); }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search input[type="search"] { padding-left: 42px; }
.count-line { font: 500 0.82rem/1 var(--font-mono); color: var(--ink-3); margin-bottom: 18px; letter-spacing: 0.04em; }
.empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--ink-2); }

/* Formulários */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field .opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="search"], input[type="number"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.form-note { font-size: 0.88rem; color: var(--ink-3); }
.form-note a { color: var(--brand); }

.panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  min-width: 0;
}

/* Produto */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-block: 20px clamp(40px, 5vw, 72px); }
.product-media {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 96px);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14%;
  color: var(--ink-2);
}
.product-media.has-photo { padding: 0; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .chip { position: absolute; left: 16px; top: 16px; }
.product-info { display: grid; gap: 20px; min-width: 0; }
.product-info h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.price-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price { font-family: var(--font-display); font-stretch: 85%; font-weight: 760; font-size: 1.7rem; line-height: 1.1; }
.price-note { font-size: 0.9rem; color: var(--ink-2); max-width: 32ch; }
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product-media { position: relative; top: auto; aspect-ratio: 4 / 3; padding: 10% 22%; }
}

.details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .details { grid-template-columns: minmax(0, 1fr); } }
.details h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); margin-bottom: 14px; }
.details section { display: grid; gap: 0; }
.details-col { display: grid; gap: 40px; min-width: 0; }

.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.spec-table th { width: 40%; padding-right: 16px; font-weight: 500; color: var(--ink-2); font-size: 0.95rem; }
.spec-table td { font-family: var(--font-mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.checklist .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 2px; }
.checklist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .checklist.two { grid-template-columns: minmax(0, 1fr); } }

.callout {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--heat) 40%, var(--line));
  background: color-mix(in srgb, var(--heat) 7%, var(--surface));
  color: var(--ink-2);
  font-size: 0.95rem;
}
.callout strong { color: var(--ink); }
.callout ul { list-style: none; display: grid; gap: 6px; }

.var-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; list-style: none; }
.var-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.pick {
  flex: none;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--brand);
  font: 600 0.82rem/1 var(--font-body);
  cursor: pointer;
}
.pick:hover { border-color: var(--brand); }

/* Contato e empresa */
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; }
.contact-list li { background: var(--surface); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.contact-list .icon { grid-row: span 2; color: var(--brand); width: 22px; height: 22px; margin-top: 3px; }
.contact-list strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.02rem; overflow-wrap: anywhere; }
.contact-list a { color: inherit; }
.contact-list span { color: var(--ink-3); font-size: 0.9rem; }

.data-list { display: grid; border-top: 1px solid var(--line); }
.data-list div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--ink-2); }
.data-list dd { font-family: var(--font-mono); font-size: 0.94rem; overflow-wrap: anywhere; }

.quote-mark {
  padding: clamp(24px, 4vw, 40px);
  border-left: 3px solid var(--heat);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  gap: 10px;
}
.quote-mark p { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; text-wrap: balance; }

/* Calculadora */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 760px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.readout { display: grid; gap: 6px; padding: 18px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.readout b { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1 var(--font-mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.formula { font: 500 0.86rem/1.5 var(--font-mono); color: var(--ink-3); }

.msg-preview {
  white-space: pre-wrap;
  font: 400 0.86rem/1.55 var(--font-mono);
  color: var(--ink-2);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}

/* ---------- Rodapé ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px calc(96px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--ink-2); font-size: 0.95rem; max-width: 36ch; }
.footer-title { font: 500 0.72rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--brand); text-decoration: underline; }
.footer-contact li { color: var(--ink-2); overflow-wrap: anywhere; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.84rem; color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px 12px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(8, 36, 38, 0.32);
}
.wa-float:hover { background: var(--brand-hover); }
.wa-float .icon { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Fotos dos produtos ---------- */
.has-photo { background: var(--photo-bg); }
.p-art.has-photo, .product-media.has-photo { padding: 6%; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.has-photo .foto { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.has-photo .art-fallback { display: none; }
.art-fallback { width: 100%; display: grid; place-items: center; }
.p-art .art-fallback, .product-media .art-fallback { height: 100%; }

/* ---------- Mercado Livre ---------- */
.ml-box {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.ml-box p { color: var(--ink-2); font-size: 0.93rem; }
.ml-box ul { list-style: none; display: grid; gap: 6px; }
.ml-box a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none; }
.ml-box a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ml-box .icon { width: 16px; height: 16px; }
.ml-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.ml-strip > div { display: grid; gap: 6px; max-width: 64ch; }
.ml-strip p { color: var(--ink-2); }
.ml-strip strong { color: var(--ink); }
.footer-lema { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--ink); max-width: 30ch; }

/* ---------- Loja: preço nos cartões e no produto ---------- */
.p-price { font: 500 1.05rem/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 2px; }
.p-price span { font: 400 0.8rem var(--font-body); color: var(--ink-3); }
.added { font-size: 0.93rem; color: var(--ink-2); padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); }
.added a { color: var(--brand); font-weight: 600; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--heat);
  color: #fff;
  font: 600 0.72rem/20px var(--font-body);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Carrinho ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
.cart-main { display: grid; gap: 20px; min-width: 0; }
.cart-summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .cart-summary { position: static; }
}
.panel-title { font-size: 1.3rem; }
.cart-list { list-style: none; display: grid; }
.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cart-item:first-child { border-top: 0; padding-top: 4px; }
.ci-info { display: grid; gap: 2px; min-width: 0; }
.ci-info a { font-weight: 600; text-decoration: none; }
.ci-info a:hover { color: var(--brand); text-decoration: underline; }
.ci-versao { font: 500 0.86rem var(--font-mono); color: var(--ink-2); }
.ci-unit { font-size: 0.85rem; color: var(--ink-3); }
.ci-total { font: 500 1rem var(--font-mono); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.ci-remove { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; }
.ci-remove:hover { color: var(--heat); border-color: var(--line); }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.qty button { width: 38px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input[type="number"] { width: 48px; min-height: 40px; border: 0; border-radius: 0; padding: 0; text-align: center; background: transparent; -moz-appearance: textfield; font-family: var(--font-mono); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ci-info { grid-column: 1 / -1; }
  .qty { grid-row: 2; justify-self: start; }
  .ci-total { grid-row: 2; min-width: 0; }
  .ci-remove { grid-row: 2; }
}

.cep-row { display: grid; grid-template-columns: minmax(0, 220px) auto; gap: 12px; align-items: end; }
@media (max-width: 420px) { .cep-row { grid-template-columns: minmax(0, 1fr); } }
.ship-options { display: grid; gap: 8px; }
.ship-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}
.ship-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ship-option input { grid-row: span 2; accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.so-name { font-weight: 600; }
.so-time { grid-column: 2; font-size: 0.86rem; color: var(--ink-2); }
.so-price { grid-column: 3; grid-row: 1 / span 2; font: 500 1rem var(--font-mono); font-variant-numeric: tabular-nums; }

.field-row.three { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 420px) { .field-row.three { grid-template-columns: minmax(0, 1fr); } }
[aria-invalid="true"] { border-color: var(--heat) !important; outline-color: var(--heat); }

.totals { display: grid; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.totals dt { color: var(--ink-2); }
.totals dd { font: 500 1rem var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.totals .grand dt { color: var(--ink); font-weight: 600; }
.totals .grand dd { font-size: 1.25rem; }
.pay-note { font-size: 0.85rem; color: var(--ink-3); }
.offline-note { font-size: 0.93rem; color: var(--ink-2); padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.offline-note strong { color: var(--ink); }
.test-flag {
  font: 500 0.78rem/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--heat-2) 35%, var(--surface));
}
button:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Retorno e pedidos ---------- */
.order-id { font: 500 1.05rem var(--font-mono); color: var(--ink-2); }
.admin-login { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; max-width: 520px; }
.admin-login .field { flex: 1 1 220px; }
.admin-login input[type="password"] { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.admin-list { display: grid; gap: 16px; }
.order { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.order-date { color: var(--ink-3); font-size: 0.9rem; }
.order-total { font: 500 1.15rem var(--font-mono); }
.order-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.order-grid ul { list-style: none; display: grid; gap: 4px; margin-top: 6px; }
.order-grid p { margin-top: 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.order-grid .pre { white-space: pre-line; }
.order-grid .pick { margin-top: 8px; }
.muted { color: var(--ink-3); }
.status-pago { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.status-pagamento_recusado, .status-cancelado, .status-estornado { border-color: var(--heat); }
@media (max-width: 900px) { .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
