/* JG Elétrica e Hidráulica — design tokens (gerado de tokens/tokens.json; não editar à mão) */

:root, :root[data-theme="light"] {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #eceeea;
  --ink: #0b0b0b;
  --ink-muted: #5c5f66;
  --border: #d9dbdf;
  --border-strong: #8e939b;
  --brand: #f0521d;
  --brand-strong: #c93f0e;
  --on-brand: #0b0b0b;
  --brand-tint: #fde7dd;
  --water: #0080c8;
  --water-strong: #0067a3;
  --water-tint: #dceffa;
  --success: #1e7b34;
  --warning: #9a5b00;
  --danger: #b3261e;
  --focus: #0067a3;
  --chart-1: #f0521d;
  --chart-2: #0080c8;
  --chart-3: #6b6f76;
  --chart-4: #1e7b34;
  --chart-5: #8a4fbf;
  --shadow-card: 0 1px 2px rgba(11,11,11,0.06);
  --shadow-raised: 0 8px 24px rgba(11,11,11,0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1c1f;
    --surface-2: #22252a;
    --ink: #f2f2f0;
    --ink-muted: #a2a6ad;
    --border: #2e3237;
    --border-strong: #6c727b;
    --brand: #ff6a3d;
    --brand-strong: #ff8a63;
    --on-brand: #0b0b0b;
    --brand-tint: #3a2017;
    --water: #3da9f5;
    --water-strong: #6cc0fa;
    --water-tint: #122a3b;
    --success: #5fcf7a;
    --warning: #f0b44a;
    --danger: #ff7b72;
    --focus: #6cc0fa;
    --chart-1: #ff6a3d;
    --chart-2: #3da9f5;
    --chart-3: #9ea3ab;
    --chart-4: #5fcf7a;
    --chart-5: #b58ae6;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-raised: 0 8px 24px rgba(0,0,0,0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #1a1c1f;
  --surface-2: #22252a;
  --ink: #f2f2f0;
  --ink-muted: #a2a6ad;
  --border: #2e3237;
  --border-strong: #6c727b;
  --brand: #ff6a3d;
  --brand-strong: #ff8a63;
  --on-brand: #0b0b0b;
  --brand-tint: #3a2017;
  --water: #3da9f5;
  --water-strong: #6cc0fa;
  --water-tint: #122a3b;
  --success: #5fcf7a;
  --warning: #f0b44a;
  --danger: #ff7b72;
  --focus: #6cc0fa;
  --chart-1: #ff6a3d;
  --chart-2: #3da9f5;
  --chart-3: #9ea3ab;
  --chart-4: #5fcf7a;
  --chart-5: #b58ae6;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-raised: 0 8px 24px rgba(0,0,0,0.6);
  color-scheme: dark;
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.display-xl { font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; }

.display { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; }

.title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }

.body { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 400; }

.body-strong { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; }

.small { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 400; }

.label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.numeral-xl { font-family: var(--font-sans); font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }

.numeral { font-family: var(--font-sans); font-size: 24px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

.numeral-sm { font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "kern" 1; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* JG Elétrica e Hidráulica — component classes. Built ONLY on tokens/tokens.css.
   Include order: tokens/tokens.css, then styles.css. Never hard-code a colour here. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.jg-num { font-variant-numeric: tabular-nums lining-nums; }
.jg-muted { color: var(--ink-muted); }
.jg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- logo ---------- */
.jg-logo { display: inline-block; height: 40px; width: auto; vertical-align: middle; }
.jg-logo--sm { height: 28px; } .jg-logo--md { height: 40px; } .jg-logo--lg { height: 64px; } .jg-logo--xl { height: 96px; }
.jg-logo-dark-only { display: none; }
:root[data-theme="dark"] .jg-logo-light-only { display: none; }
:root[data-theme="dark"] .jg-logo-dark-only { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jg-logo-light-only { display: none; }
  :root:not([data-theme="light"]) .jg-logo-dark-only { display: inline-block; }
}

/* ---------- header ---------- */
.jg-header { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface); border-bottom: 1px solid var(--border); }
.jg-header__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; margin: 0; }
.jg-header__spacer { flex: 1; }

/* ---------- card ---------- */
.jg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }
.jg-card__title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; margin: 0 0 var(--space-1); }
.jg-card__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-3); }
.jg-card--flush { padding: 0; overflow: hidden; }

/* ---------- delta ---------- */
.jg-delta { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--ink-muted); }
.jg-delta::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.jg-delta--up { color: var(--success); } .jg-delta--up::before { border-bottom: 7px solid currentColor; }
.jg-delta--down { color: var(--danger); } .jg-delta--down::before { border-top: 7px solid currentColor; }
.jg-delta--flat::before { width: 10px; height: 2px; border: 0; background: currentColor; }

/* ---------- tile (KPI) ---------- */
.jg-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.jg-tile__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.jg-tile__value { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); overflow-wrap: anywhere; }
.jg-tile__value--sm { font-size: 24px; line-height: 28px; font-weight: 600; }
.jg-tile__foot { font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.jg-tile.is-hero { border: 2px solid var(--brand); background: var(--surface); }
.jg-tile.is-hero .jg-tile__label { color: var(--brand-strong); }
.jg-tile.is-hero .jg-tile__value { font-family: var(--font-display); font-size: clamp(22px, 13.5cqw, 40px); line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.jg-tile.is-hero { container-type: inline-size; }

/* ---------- button ---------- */
.jg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid transparent; font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 22px; cursor: pointer; text-decoration: none; background: transparent; color: var(--ink); }
.jg-btn--primary { background: var(--brand); color: var(--on-brand); }
.jg-btn--primary:hover { background: var(--brand-strong); }
.jg-btn--secondary { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.jg-btn--secondary:hover { background: var(--surface-2); }
.jg-btn--ghost { color: var(--water-strong); }
.jg-btn--ghost:hover { background: var(--water-tint); }
.jg-btn[disabled], .jg-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.jg-btn--sm { min-height: 32px; padding: 0 var(--space-3); font-size: 13px; }

/* ---------- pill ---------- */
.jg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--space-3) 2px 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 600; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.jg-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.jg-pill--ok::before { background: var(--success); }
.jg-pill--warning::before { background: var(--warning); }
.jg-pill--danger::before { background: var(--danger); }
.jg-pill--info { background: var(--water-tint); } .jg-pill--info::before { background: var(--water); }
.jg-pill--brand { background: var(--brand-tint); } .jg-pill--brand::before { background: var(--brand); }

/* ---------- tabs ---------- */
.jg-tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--border); overflow-x: auto; overflow-y: hidden; }
.jg-tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: var(--space-3) var(--space-1); font: 600 15px/22px var(--font-sans); color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.jg-tab:hover { color: var(--ink); }
.jg-tab[aria-selected="true"], .jg-tab.is-active { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- segmented ---------- */
.jg-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: var(--radius-pill); border: 1px solid var(--border); }
.jg-seg__btn { appearance: none; border: 0; background: transparent; padding: 6px var(--space-4); border-radius: var(--radius-pill); font: 600 13px/18px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.jg-seg__btn:hover { color: var(--ink); }
.jg-seg__btn[aria-pressed="true"], .jg-seg__btn[aria-checked="true"], .jg-seg__btn.is-active { background: var(--brand); color: var(--on-brand); }

/* ---------- table ---------- */
.jg-table-wrap { overflow: auto; max-height: 360px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.jg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums lining-nums; }
.jg-table th { position: sticky; top: 0; z-index: 1; background: var(--surface); text-align: left; padding: var(--space-2) var(--space-3); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.jg-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); }
.jg-table tbody tr:nth-child(even) td { background: var(--surface-2); }
.jg-table tbody tr.is-selected td { background: var(--brand-tint); }
.jg-table .is-num, .jg-table th.is-num { text-align: right; font-weight: 600; }
.jg-table tfoot td { font-weight: 700; border-top: 1px solid var(--border-strong); border-bottom: 0; background: var(--surface); }

/* ---------- bar (horizontal) ---------- */
.jg-bar { display: grid; grid-template-columns: minmax(70px, 140px) 1fr auto; align-items: center; gap: var(--space-3); font-size: 13px; line-height: 18px; }
.jg-bar__label { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-bar__track { display: block; height: 12px; background: var(--surface-2); border-radius: var(--radius-pill); overflow: hidden; }
.jg-bar__fill { display: block; height: 100%; width: var(--pct, 0%); background: var(--chart-1); border-radius: var(--radius-pill); }
.jg-bar--water .jg-bar__fill { background: var(--chart-2); }
.jg-bar__value { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; min-width: 4.5em; text-align: right; }
.jg-bars { display: grid; gap: var(--space-2); }

/* ---------- field ---------- */
.jg-field { display: grid; gap: var(--space-1); }
.jg-field__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.jg-field__control { width: 100%; min-height: 40px; padding: 0 var(--space-3); background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font: 400 15px/22px var(--font-sans); font-variant-numeric: tabular-nums lining-nums; }
.jg-field__control::placeholder { color: var(--ink-muted); }
.jg-field__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.jg-field.is-error .jg-field__control { border-color: var(--danger); }
.jg-field.is-error .jg-field__hint { color: var(--danger); }

/* ---------- drawer ---------- */
.jg-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-raised); display: flex; flex-direction: column; z-index: 50; transform: translateX(0); transition: transform .2s ease; }
.jg-drawer[hidden] { display: none; }
.jg-drawer--inline { position: relative; width: 100%; max-width: 420px; height: 420px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.jg-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4); border-bottom: 1px solid var(--border); }
.jg-drawer__title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; margin: 0; }
.jg-drawer__body { padding: var(--space-4); overflow: auto; flex: 1; display: grid; gap: var(--space-4); align-content: start; }
.jg-drawer__scrim { position: fixed; inset: 0; background: rgba(11,11,11,.45); z-index: 49; }
@media (prefers-reduced-motion: reduce) { .jg-drawer { transition: none; } }

/* ---------- toast / banner / empty ---------- */
.jg-toast { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-left: 4px solid var(--water); border-radius: var(--radius-sm); box-shadow: var(--shadow-raised); font-size: 15px; line-height: 22px; max-width: 420px; }
.jg-toast--ok { border-left-color: var(--success); } .jg-toast--warning { border-left-color: var(--warning); } .jg-toast--danger { border-left-color: var(--danger); }
.jg-toast__title { font-weight: 600; }
.jg-banner { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); background: var(--surface-2); border: 1px solid var(--warning); border-radius: var(--radius-sm); font-size: 14px; line-height: 20px; color: var(--ink); }
.jg-banner__tag { color: var(--warning); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.jg-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--ink-muted); display: grid; gap: var(--space-2); justify-items: center; }
.jg-empty__title { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; color: var(--ink); }

/* ---------- theme toggle ---------- */
.jg-theme-toggle { appearance: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.jg-theme-toggle:hover { background: var(--surface-2); }

/* ---------- chart helpers (SVG) ---------- */
.jg-chart { width: 100%; height: auto; display: block; }
.jg-chart .grid { stroke: var(--border); stroke-width: 1; }
.jg-chart .axis { fill: var(--ink-muted); font: 400 11px var(--font-sans); font-variant-numeric: tabular-nums lining-nums; }
.jg-chart .s1 { stroke: var(--chart-1); } .jg-chart .s2 { stroke: var(--chart-2); } .jg-chart .s3 { stroke: var(--chart-3); stroke-dasharray: 4 4; }
.jg-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jg-chart .dot { stroke: var(--surface); stroke-width: 2; }
.jg-legend { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--ink); }
.jg-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ---------- print: black on white, no chrome ---------- */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --ink: #000; --ink-muted: #333; --border: #bbb; --border-strong: #666; --brand-tint: #eee; --water-tint: #eee; --shadow-card: none; --shadow-raised: none; }
  body { background: #fff; color: #000; }
  .jg-theme-toggle, .jg-btn, .jg-tabs, .jg-seg, .jg-drawer, .jg-drawer__scrim, .jg-toast, .jg-banner, .jg-header .jg-header__spacer, .jg-noprint { display: none !important; }
  .jg-card, .jg-tile, .jg-table-wrap { box-shadow: none; break-inside: avoid; }
  .jg-table-wrap { max-height: none; overflow: visible; }
  .jg-table th { position: static; }
  .jg-table tbody tr:nth-child(even) td { background: #f2f2f2; }
}
@media print { .jg-logo-dark-only { display: none !important; } .jg-logo-light-only { display: inline-block !important; } }

/* chart tooltip (host needs position: relative via .jg-chart-host) */
.jg-chart-host { position: relative; }
.jg-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-raised); padding: var(--space-2) var(--space-3); font-size: 13px; line-height: 18px; white-space: nowrap; }
.jg-tip[hidden] { display: none; }
.jg-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* JG catalogue skin. Loaded after the design-system-jg tokens/components: it re-points the tokens to the
   catalogue palette (white + warm off-white, near-black ink, the logo orange as the ONE accent) and restyles
   the few DS components the site uses. Layout is hairline-divided, not floating boxes. */

/* ---------- fonts: self-hosted, OFL (assets/fonts/OFL-*.txt). Variable woff2 trimmed to the weights
   used; latin covers Portuguese, latin-ext only downloads if a page has such a character. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/inter-latin.fc978f4ce1.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/inter-latin-ext.71cb72847b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/space-grotesk-latin.e84fc2cc9a.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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/space-grotesk-latin-ext.7c3ef24bd3.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/jetbrains-mono-latin.c2a8d0f372.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00B7, U+00C0-00FF; }
/* metric-matched fallback: less layout shift while Inter loads */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }

/* ---------- tokens (same selectors as tokens.css, so these win by order) */
:root, :root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --tile: #f4f4f5;
  --ink: #0a0a0a;
  --ink-muted: #525252;
  --ink-soft: #6b6b6b;
  --border: #e5e5e5;
  --line-2: #d4d4d4;
  --border-strong: #8a8a8a;
  --brand: #f0521d;
  --brand-strong: #b83a0c;
  --on-brand: #0a0a0a;
  --brand-tint: #fdede6;
  --success: #15803d;
  --focus: #b83a0c;
  --btn-bg: #0a0a0a;
  --btn-fg: #ffffff;
  --btn-hover: #2b2b2b;
  --ph-line: #e7e7e9;
  --ph-ink: #a1a1aa;
  --foot-bg: #0a0a0a;
  --shadow-card: 0 1px 3px rgba(0,0,0,.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg-alt: #121212; --surface: #121212; --surface-2: #1c1c1c; --tile: #1a1a1a;
    --ink: #f5f5f5; --ink-muted: #a3a3a3; --ink-soft: #9a9a9a;
    --border: #262626; --line-2: #383838; --border-strong: #737373;
    --brand: #ff6a3d; --brand-strong: #ff8a63; --on-brand: #0a0a0a; --brand-tint: #2a1710;
    --success: #4ade80; --focus: #ff8a63;
    --btn-bg: #f5f5f5; --btn-fg: #0a0a0a; --btn-hover: #d4d4d4;
    --ph-line: #242424; --ph-ink: #6b6b6b; --foot-bg: #121212;
    --shadow-card: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-alt: #121212; --surface: #121212; --surface-2: #1c1c1c; --tile: #1a1a1a;
  --ink: #f5f5f5; --ink-muted: #a3a3a3; --ink-soft: #9a9a9a;
  --border: #262626; --line-2: #383838; --border-strong: #737373;
  --brand: #ff6a3d; --brand-strong: #ff8a63; --on-brand: #0a0a0a; --brand-tint: #2a1710;
  --success: #4ade80; --focus: #ff8a63;
  --btn-bg: #f5f5f5; --btn-fg: #0a0a0a; --btn-hover: #d4d4d4;
  --ph-line: #242424; --ph-ink: #6b6b6b; --foot-bg: #121212;
  --shadow-card: none;
  color-scheme: dark;
}
:root {
  --font-display: "Space Grotesk", "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 6px;
  --gutter: 16px;
  --header-h: 112px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: 160ms;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 760px) { :root { --header-h: 72px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* ---------- base */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "kern" 1, "calt" 1;
  font-variant-numeric: normal; /* the DS sets tabular-nums on body; Inter's tnum also widens the hyphen ("curto - circuito") */ }
.dep__c, .list-head__n, .facts dd, .pager { font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease); }
a:hover { color: var(--brand-strong); text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.1; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--brand-tint); color: var(--ink); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; padding-bottom: 56px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: 8px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.overline { font: 600 11px/16px var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.num { font-family: var(--font-mono); font-size: .92em; font-variant-numeric: tabular-nums slashed-zero; letter-spacing: 0; }
.jg-muted { color: var(--ink-muted); }
.note { color: var(--ink-muted); font-size: 13px; line-height: 1.45; margin: 0; }
.credit { font-size: 12px; line-height: 1.45; color: var(--ink-soft); margin: 0; }

/* ---------- buttons, fields, pills (DS components, catalogue look) */
.jg-btn { min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); font: 600 14.5px/1.2 var(--font-sans); letter-spacing: -0.005em;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.jg-btn:active { transform: scale(.98); }
.jg-btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.jg-btn--primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.jg-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.jg-btn--secondary:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.jg-btn--ghost { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.jg-btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.jg-btn--sm { min-height: 44px; padding: 0 12px; font-size: 13px; }
.jg-field__label { font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }
.jg-field__control { min-height: 44px; border-radius: var(--radius-sm); border-color: var(--border-strong); font-family: var(--font-sans); font-size: 16px;
  transition: border-color var(--t) var(--ease); }
.jg-field__control:hover { border-color: var(--ink-muted); }
.jg-field__control:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
.jg-pill { background: transparent; border: 1px solid var(--border); color: var(--ink-muted); font-weight: 500; padding: 3px 10px 3px 9px; }
.jg-pill--ok::before { background: var(--success); }
.jg-empty { text-align: left; justify-items: start; padding: 32px 0; color: var(--ink-muted); }
.jg-empty__title { font-family: var(--font-display); letter-spacing: -0.02em; }
.jg-theme-toggle { width: 44px; height: 44px; border-radius: var(--radius-sm); border-color: var(--border); background: var(--surface); flex: none;
  transition: border-color var(--t) var(--ease); }
.jg-theme-toggle:hover { background: var(--surface); border-color: var(--ink); }

/* ---------- header */
.cat-header { display: block; padding: 0; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: inset 0 2px 0 var(--brand); }
.cat-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
.cat-brand { display: inline-flex; flex: 1 1 0; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; min-height: 44px; }
.cat-brand:hover { color: var(--ink); }
.cat-brand .jg-logo { height: 34px; }
.cat-brand .jg-header__title { font: 600 17px/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-search { position: relative; display: flex; gap: 8px; flex: 1 1 100%; order: 3; min-width: 0; margin: 0; }
.cat-search .jg-field__control { flex: 1; min-width: 0; padding-left: 38px; background: var(--surface-2); border-color: transparent; }
.cat-search .jg-field__control:hover { border-color: var(--line-2); }
.cat-search .jg-field__control:focus { background: var(--surface); border-color: var(--ink); }
.cat-search__icon { position: absolute; left: 12px; top: 13px; color: var(--ink-soft); pointer-events: none; }
.cot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; flex: none;
  transition: border-color var(--t) var(--ease); }
.cot-link:hover { border-color: var(--ink); color: var(--ink); }
.cot-link svg { flex: none; }
.cot-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font: 600 12px/1 var(--font-mono); }
@media (max-width: 379px) { .cot-link svg { display: none; } }
@media (min-width: 760px) {
  .cat-header__in { flex-wrap: nowrap; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .cat-brand { flex: 0 1 auto; }
  .cat-brand .jg-logo { height: 40px; }
  .cat-brand .jg-header__title { font-size: 18px; white-space: nowrap; display: block; }
  .cat-search { order: 0; flex: 1 1 auto; max-width: 620px; margin-left: auto; }
}

/* departments bar */
.cat-nav { border-bottom: 1px solid var(--border); background: var(--surface); }
.cat-nav__in { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.cat-nav__in::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.cat-nav a:last-child { padding-right: 32px; }
.cat-nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--line-2); }
.cat-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
/* scroll containers clip the vertical axis too: draw the keyboard focus ring inside */
.cat-nav a:focus-visible, .chips--scroll .chip:focus-visible { outline-offset: -2px; }
/* desktop: every department visible (wraps to a second line instead of hiding behind the fade) */
@media (min-width: 960px) {
  .cat-nav__in { flex-wrap: wrap; column-gap: 22px; row-gap: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .cat-nav a:last-child { padding-right: 0; }
}

/* breadcrumbs */
.crumbs { font-size: 13px; line-height: 18px; color: var(--ink-soft); padding: 16px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--ink-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); display: inline-block; padding: 4px 0; }

/* ---------- sections */
.sec { margin-top: 48px; border-top: 1px solid var(--ink); padding-top: 16px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; }
.sec__sub { margin: 0; color: var(--ink-muted); font-size: 14px; }
@media (min-width: 960px) {
  .sec { margin-top: 72px; }
  .sec--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
  .sec--split .sec__head { flex-direction: column; justify-content: flex-start; margin: 0; }
}

/* home hero */
.hero { display: grid; gap: 32px; padding: 32px 0 8px; }
.hero__main { display: grid; gap: 14px; align-content: start; }
.hero h1 { font-size: clamp(34px, 7.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.hero__lead { margin: 0; color: var(--ink-muted); font-size: 16px; max-width: 52ch; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero__cta .jg-btn { min-height: 48px; padding: 0 22px; }
.facts { margin: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts dt { font: 600 11px/20px var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 14px; }
@media (max-width: 479px) { .hero__cta .jg-btn { flex: 1 1 100%; } }
@media (max-width: 759px) { .facts .facts__stat { display: none; } .hero { gap: 24px; padding-top: 24px; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; padding: 56px 0 8px; align-items: end; }
}

/* departments: hairline grid */
.deps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.deps > li { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dep { display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 88px; padding: 12px 14px 14px; color: var(--ink); text-decoration: none; transition: background-color var(--t) var(--ease); }
.dep:hover { background: var(--bg-alt); color: var(--ink); }
.dep:active { transform: scale(.99); }
.dep__n { font: 500 11px/16px var(--font-mono); color: var(--ink-soft); margin-bottom: auto; padding-bottom: 8px; }
.dep strong { font: 600 16px/1.25 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dep__c { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 640px) { .deps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .deps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dep { min-height: 128px; padding: 18px 20px 20px; } .dep strong { font-size: 18px; } }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:active { transform: scale(.98); }
.chip[aria-current="true"] { border-color: var(--brand); background: var(--brand-tint); }
.chip small { font: 500 11.5px/1 var(--font-mono); color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .chip { min-height: 36px; } }
@media (max-width: 759px) {
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
}

/* steps (how it works): numbered rows split by hairlines */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; border-top: 1px solid var(--border); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 500 12px/22px var(--font-mono); color: var(--brand-strong); }
.steps strong { font: 600 15px/22px var(--font-display); letter-spacing: -0.01em; }
.steps span { color: var(--ink-muted); font-size: 14px; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; padding: 16px 20px 20px; border-left: 1px solid var(--border); }
  .steps li:first-child { border-left: 0; padding-left: 0; }
  .steps li::before { grid-row: auto; margin-bottom: 8px; }
}

/* home "visit us" band */
.visit { display: grid; gap: 12px; background: var(--bg-alt); border: 1px solid var(--border); border-top: 2px solid var(--brand); padding: 24px 20px; }
.visit h2 { font-size: 24px; margin-top: 4px; }
.visit__addr { margin: 0; color: var(--ink-muted); }
.visit p:last-child { margin: 0; }
@media (min-width: 760px) { .visit { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; gap: 32px; padding: 32px; } }

/* ---------- listing pages */
.list-head { display: grid; gap: 6px; padding: 16px 0 20px; }
.list-head__n { margin: 0; color: var(--ink-muted); font-size: 14px; }
.list-head + .chips { margin-bottom: 20px; }

/* product grid: hairline cells (container draws top/left, cells right/bottom) */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.grid > li { display: flex; flex-direction: column; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); min-width: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cp { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 12px; color: var(--ink); text-decoration: none; transition: background-color var(--t) var(--ease); }
.cp:hover { color: var(--ink); background: var(--bg-alt); }
.cp__img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--tile); border-radius: 2px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.cp:hover .cp__img { opacity: .94; }
.cp:active .cp__img { transform: scale(.98); }
.cp__img img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cp__img svg { width: 100%; height: 100%; display: block; }
.cp__body { display: grid; gap: 4px; padding: 0 2px; min-width: 0; }
.cp__m { font: 600 10.5px/15px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp__t { font-weight: 500; font-size: 14px; line-height: 1.38; letter-spacing: -0.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cp:hover .cp__t { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cp__c { font: 400 11.5px/16px var(--font-mono); color: var(--ink-soft); font-variant-numeric: tabular-nums slashed-zero; }
@media (min-width: 960px) { .cp { padding: 14px 14px 16px; gap: 14px; } .cp__t { font-size: 14.5px; } }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface); color: var(--ink);
  font: 600 10px/14px var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
/* photo-less tile: initial over a faint technical grid */
/* drawn by the stylesheet, not per card: the 48 tiles of a page cost one tiny SVG each */
.phbox { background-color: var(--tile);
  background-image: radial-gradient(circle closest-side, var(--tile) calc(48% - 1px), var(--ph-line) calc(48% - 1px), var(--ph-line) 48%, transparent calc(48% + .5px)),
    linear-gradient(90deg, var(--ph-line) 1px, transparent 1px), linear-gradient(var(--ph-line) 1px, transparent 1px);
  background-size: 100% 100%, 25% 25%, 25% 25%; background-position: center, -1px -1px, -1px -1px; }
.ph text { font: 500 26px var(--font-sans); text-anchor: middle; fill: var(--ph-ink); letter-spacing: -0.02em; }
/* dark: product photos keep their white background, inset like a print */
:root[data-theme="dark"] .cp__img img, :root[data-theme="dark"] .prod__img img { mix-blend-mode: normal; background: #fff; border-radius: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp__img img, :root:not([data-theme="light"]) .prod__img img { mix-blend-mode: normal; background: #fff; border-radius: 2px; } }

/* quote toggle inside a card */
.grid .cot-add { margin: 0 10px 10px; font-size: 12.5px; font-weight: 600; padding: 0 8px; gap: 6px; }
@media (min-width: 960px) { .grid .cot-add { margin: 0 14px 14px; } }
.cot-add::before { content: ""; width: 10px; height: 10px; flex: none; background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat; }
.cot-add.is-in { background: var(--brand-tint); border-color: var(--brand); }
.cot-add.is-in::before { width: 10px; height: 6px; background: none; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.cot-badge[hidden], .cot-add[hidden], .cot-link[hidden] { display: none; }

/* pagination */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: border-color var(--t) var(--ease); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager [aria-current="page"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
.pager .pager__gap { border-color: transparent; background: none; min-width: 20px; padding: 0; }

/* ---------- product page */
.prod { display: grid; gap: 24px; margin-top: 16px; }
.prod__gal { min-width: 0; }
.prod__img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--tile); border-radius: 2px; }
.prod__img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; mix-blend-mode: multiply; }
.prod__img svg { width: 100%; height: 100%; display: block; }
.prod__img .badge { top: 12px; left: 12px; }
.prod__cap { display: grid; gap: 2px; padding-top: 10px; }
.credit--ilu { color: var(--ink-muted); font-weight: 500; }
.prod__info { display: grid; gap: 20px; align-content: start; min-width: 0; }
.prod__head { display: grid; gap: 10px; }
.prod__head h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; overflow-wrap: anywhere; }
.prod__meta a { color: inherit; text-decoration: none; }
.prod__meta a:hover { color: var(--brand-strong); text-decoration: underline; }
.prod__codes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.prod__codes .num { color: var(--ink); }
.prod__cta { display: grid; gap: 10px; }
.wa { min-height: 52px; font-size: 16px; width: 100%; text-align: center; }
.wa + .wa { min-height: 48px; font-size: 15px; }
.wa svg { flex: none; }
.desc { margin: 0; max-width: 65ch; overflow-wrap: anywhere; }
/* accordions */
.acc { border-top: 1px solid var(--border); }
.acc:last-of-type { border-bottom: 1px solid var(--border); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { font-size: 16px; letter-spacing: -0.015em; }
.acc summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border: solid var(--ink-muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease); }
.acc[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.acc summary:hover h2 { color: var(--brand-strong); }
.acc__body { display: grid; gap: 8px; padding-bottom: 16px; }
.ficha { width: 100%; border-collapse: collapse; }
.ficha th, .ficha td { text-align: left; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.ficha tr:first-child th, .ficha tr:first-child td { border-top: 0; }
.ficha th { width: 44%; padding-right: 12px; font-weight: 500; color: var(--ink-muted); font-size: 13px; }
/* manufacturer documents (PDF links) */
.docs { display: grid; gap: 8px; }
.docs h2 { font-size: 16px; letter-spacing: -0.015em; }
.docs__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.docs__list li { border-bottom: 1px solid var(--border); }
.docs__link { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 12px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.docs__link:hover { color: var(--ink); background: var(--bg-alt); }
.docs__ic { flex: none; margin-top: 1px; color: var(--brand-strong); }
.docs__txt { display: grid; gap: 1px; min-width: 0; }
.docs__link strong { font-weight: 600; font-size: 14px; }
.docs__link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.docs__title { font-size: 14px; color: var(--ink-muted); }
.docs__src { font: 400 11.5px/16px var(--font-mono); color: var(--ink-soft); }

/* no real photo, phone: small tile beside the title so the CTAs stay on the first screen */
@media (max-width: 759px) {
  .prod__img { aspect-ratio: 4 / 3; } /* shorter stage on phones: the CTAs come up */
  .prod--ph { grid-template-columns: 76px minmax(0, 1fr); gap: 16px 14px; align-items: start; }
  .prod--ph > .prod__gal { grid-column: 1; grid-row: 1; }
  .prod--ph .prod__info { display: contents; }
  .prod--ph .prod__info > * { grid-column: 1 / -1; }
  .prod--ph .prod__info > .prod__head { grid-column: 2; grid-row: 1; }
  .prod--ph .prod__img { aspect-ratio: 1 / 1; }
  .prod--ph .ph text { font-size: 34px; }
}
@media (min-width: 760px) {
  .prod { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; margin-top: 20px; align-items: start; }
  .prod--ph { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .prod__gal, .prod__info { position: sticky; top: calc(var(--header-h) + 16px); } /* the shorter column follows the scroll */
}
@media (min-width: 1100px) { .prod { gap: 64px; } }

/* ---------- search page */
.searchbar { display: flex; gap: 8px; margin-bottom: 12px; max-width: 720px; }
.searchbar .jg-field__control { flex: 1; min-width: 0; min-height: 52px; font-size: 17px; }
#resultados { list-style: none; padding: 0; margin: 16px 0 0; display: grid; border-top: 1px solid var(--border); }
#resultados > li { display: grid; gap: 4px; padding: 4px 0 12px; border-bottom: 1px solid var(--border); }
#resultados .cot-add { justify-self: start; }
.res { display: grid; gap: 2px; padding: 10px 0 4px; text-decoration: none; color: var(--ink); }
.res:hover { color: var(--ink); }
.res:hover .res__t { text-decoration: underline; text-underline-offset: 3px; }
.res__t { font-weight: 500; overflow-wrap: anywhere; }
.res__m { font-size: 13px; }

/* ---------- store page */
.loja { display: grid; gap: 32px; }
.loja__dl { margin: 0; border-top: 1px solid var(--ink); }
.loja__dl > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.loja__dl dt { font: 600 11px/16px var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); }
.loja__dl dd { margin: 0; font-size: 16px; }
.loja__panel { background: var(--bg-alt); border: 1px solid var(--border); padding: 24px 20px; align-self: start; }
.loja__panel p { color: var(--ink-muted); }
.loja__cta { display: grid; gap: 10px; }
@media (min-width: 760px) {
  .loja { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .loja__dl > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
  .loja__dl dt { line-height: 26px; }
  .loja__panel { padding: 28px; }
}

/* ---------- quote (cotacao) page */
main > h1 { padding: 24px 0 16px; }
.cq { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; border-top: 1px solid var(--border); }
.cq__item { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cq__info { display: grid; gap: 2px; min-width: 0; }
.cq__t { font-weight: 500; overflow-wrap: anywhere; }
.cq__c { font: 400 12px/16px var(--font-mono); }
.cq__item .jg-btn { justify-self: start; min-height: 44px; }
@media (min-width: 640px) { .cq__item { grid-template-columns: minmax(0, 1fr) 180px auto; align-items: end; } .cq__item .jg-btn { justify-self: end; } }
.cq__city { max-width: 360px; margin-bottom: 20px; }
.cq__sent p { margin: 0 0 8px; font-weight: 600; }
.cq__sent p:empty { display: none; }
.cq__send { display: grid; gap: 8px; margin-bottom: 12px; }
@media (min-width: 760px) { .cq__send { justify-items: start; } .cq__send .wa { width: auto; padding: 0 28px; } }
.cq__more { display: flex; gap: 8px; flex-wrap: wrap; }
.cq__contact { border: 1px solid var(--border); border-radius: 0; padding: 16px; margin: 0 0 20px; max-width: 460px; display: grid; gap: 10px; background: var(--bg-alt); }
.cq__contact legend { padding: 0 6px; }
.cq__contact p { margin: 0; }
.cq__auth { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.cq__auth input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--btn-bg); }
.cq__contact .note:empty { display: none; }

/* ---------- footer */
.foot { margin-top: 32px; background: var(--foot-bg); color: #d4d4d4; padding: 40px 0 24px; font-size: 14px; border-top: 1px solid var(--border); }
.foot__grid { display: grid; gap: 28px; }
.foot h2 { font: 600 11px/16px var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: #a3a3a3; margin-bottom: 10px; }
.foot__store h2 { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.02em; text-transform: none; color: #fafafa; }
.foot p { margin: 0; color: #c4c4c4; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: #fafafa; text-decoration: none; }
.foot a:hover { color: #fafafa; text-decoration: underline; text-decoration-color: var(--brand); }
.foot a:focus-visible { outline-color: #ff8a63; }
.foot .foot__note { margin-top: 28px; padding-top: 16px; border-top: 1px solid #2a2a2a; font-size: 12px; color: #a3a3a3; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; } .foot a { min-height: 32px; } }

/* ---------- motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .jg-btn:active, .chip:active, .dep:active, .cp:active .cp__img { transform: none; }
}
@media print { .cat-header, .cat-nav, .foot, .wa, .cot-add { display: none; } .prod__info { position: static; } }

/* Mobile: WhatsApp always one tap away (fixed bar). Product pages link to that product; the quote page has its own send button. */
.wa-bar { display: none; }
@media (max-width: 759px) {
  .wa-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--border); }
  .wa-bar .jg-btn { width: 100%; min-height: 48px; font-size: 16px; justify-content: center; gap: 8px; }
  body:has(.wa-bar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wa-bar[data-wa-auto] { transform: translateY(110%); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .wa-bar[data-wa-auto].wa-bar--on { transform: none; visibility: visible; transition: transform var(--t) var(--ease); }
}
@media print { .wa-bar { display: none; } }

/* Large and ultrawide screens: use the width instead of a narrow 1240 px column. Product grids go to 6 and 8
   columns (both divide the 48 items per page, so the last row is full); departments to 6. */
@media (min-width: 1600px) {
  .wrap { max-width: 1520px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .deps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--rel > li:nth-child(n+7) { display: none; } /* 6 columns: show one full row of related */
}
@media (min-width: 2200px) {
  .wrap { max-width: 2040px; }
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid--destaques { grid-template-columns: repeat(6, minmax(0, 1fr)); } /* 12 featured = 2 full rows */
  .grid--rel > li:nth-child(n+7) { display: flex; } /* 8 related = 1 full row */
  .hero h1 { font-size: 76px; }
  .cat-search { max-width: 760px; }
}
@media (min-width: 2800px) {
  .wrap { max-width: 2560px; }
  body { font-size: 17px; }
}

