/* Chirag Electricals — industrial catalogue look.
   White pages, blue-black bands, electric blue for actions and accents. Single light theme by design. */
:root {
  --ink: #111827;
  --ink-2: #141B26;
  --text: #374151;
  --muted: #5B6472;
  --line: #E2E7EF;
  --line-2: #CBD3DF;
  --bg: #FFFFFF;
  --paper: #F6F8FB;
  --tint: #EDF1F7;
  --blue: #111827;       /* accent = near-black: the site is white and black, orange only in the logo */
  --blue-hover: #374151;
  --blue-bright: #D1D5DB;
  --blue-soft: #F3F4F6;
  --on-dark: #C7CEDA;
  --on-dark-muted: #8A93A3;
  --f-head: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-body: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --max: 1160px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(11,15,23,.04), 0 8px 24px -12px rgba(11,15,23,.14);
  --shadow-lg: 0 2px 4px rgba(11,15,23,.04), 0 18px 40px -16px rgba(11,15,23,.22);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-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: 30; background: var(--bg); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; line-height: 1.4; letter-spacing: 0; }
p { margin: 0; }
.accent { color: var(--blue); }
.label { display: inline-flex; align-items: center; font: 500 .85rem/1.5 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.kv .label, label .label { color: var(--muted); }
.kv .label::before { display: none; }
.icon { width: 18px; height: 18px; flex: none; }
.lead { font-size: 1.125rem; line-height: 1.6; max-width: 60ch; }
.muted { color: var(--muted); }
.link-arrow { color: var(--blue); text-decoration: none; font: 500 .95rem/1.4 var(--f-head); }
.link-arrow:hover { color: var(--blue-hover); }
.link-arrow::after { content: " →"; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font: 500 1rem/1 var(--f-head); padding: 15px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(17,24,39,.6); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-plain { border-color: var(--line-2); color: var(--ink); background: var(--bg); }
.btn-plain:hover { border-color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.22); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Utility bar */
.util { background: var(--ink); color: var(--on-dark); font-size: .875rem; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 8px; flex-wrap: wrap; }
.util a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.util a:hover { color: #fff; }
.util .icon { width: 15px; height: 15px; color: var(--blue-bright); }
.util ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 760px) { .util .hide-sm { display: none; } .util .wrap { justify-content: center; } }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; position: relative; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 42px; height: 42px; display: block; object-fit: contain; }
.logo span { font: 700 1.28rem/1 var(--f-head); color: var(--ink); letter-spacing: .02em; text-transform: uppercase; }
.caps { text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 400px) { .logo span { font-size: 1.05rem; } .logo img { width: 36px; height: 36px; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { text-decoration: none; color: var(--text); font: 500 .95rem/1 var(--f-head); padding: 10px 12px; border-radius: 6px; position: relative; }
.nav a.link:hover { color: var(--ink); background: var(--tint); }
.nav a.link[aria-current="page"] { color: var(--ink); }
.nav a.link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--blue); }
.nav .btn { padding: 11px 18px; font-size: .92rem; margin-left: 10px; }
.menu { display: none; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; width: 44px; height: 44px; display: grid; place-items: center; }
  .menu summary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menu .i-close, .menu[open] .i-open { display: none; }
  .menu[open] .i-close { display: block; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { border-color: var(--ink); }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0,0,0,.18);
    padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); display: grid; }
  .menu-panel a { text-decoration: none; color: var(--ink); font: 500 1.05rem/1 var(--f-head); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .menu-panel a[aria-current="page"] { color: var(--blue); }
  .menu-panel .btn { margin-top: 16px; justify-content: center; border-bottom: 0; color: #fff; }
}

/* Blueprint grid used behind heroes */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 20%, transparent 75%); opacity: .7; }

/* Page heads + sections */
.page-head { padding-block: clamp(52px, 7vw, 92px) clamp(40px, 5vw, 60px); background: var(--paper); border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: right -1px top -1px; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 85%); mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
.page-head h1 { margin-top: 16px; max-width: 24ch; }
.page-head .lead { margin-top: 18px; }
section.block { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.page-head + section.block { border-top: 0; }
section.block.alt { background: var(--paper); }
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split > header { display: grid; gap: 14px; align-content: start; }
@media (min-width: 821px) { .split > header { position: sticky; top: 110px; align-self: start; } }
.split > header p { color: var(--muted); font-size: .98rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 12px; max-width: 56ch; color: var(--muted); }

/* Home hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 16ch; margin-top: 18px; font-weight: 600; }
.hero .lead { margin-top: 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-art { justify-self: end; max-width: 100%; }
.hero-art img { display: block; height: clamp(360px, 40vw, 480px); width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } }

.stats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.stats li { padding: 18px 16px 0 0; display: grid; gap: 2px; }
.stats li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.stats b { font: 600 1.6rem/1.15 var(--f-head); color: var(--ink); letter-spacing: -.01em; }
.stats span { font-size: .9rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats li:nth-child(3) { padding-left: 0; border-left: 0; } .stats li:nth-child(n+3) { padding-top: 14px; } }

/* Brand marquee */
.marquee-band { border-block: 1px solid var(--line); background: var(--paper); padding-block: 22px; overflow: hidden; }
.marquee-band .wrap { display: flex; align-items: center; gap: 32px; }
.marquee-band .label { flex: none; color: var(--muted); }
.marquee-band .label::before { display: none; }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 44px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee ul { align-items: center; gap: 20px; }
.marquee li { flex: none; position: relative; width: 132px; height: 64px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.marquee img { position: absolute; inset: 10px 16px; width: calc(100% - 32px); height: calc(100% - 20px); object-fit: contain; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 700px) { .marquee-band .label { display: none; } }

/* Category cards (home) */
.cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-grid a { display: grid; gap: 8px; align-content: start; height: 100%; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat-grid a:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-grid .ci { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; transition: background .2s, color .2s; }
.cat-grid .ci svg { width: 22px; height: 22px; }
.cat-grid a:hover .ci { background: var(--blue); color: #fff; }
.cat-grid p { color: var(--muted); font-size: .93rem; line-height: 1.5; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: "0" counter(s); font: 700 .85rem/1 var(--f-head); color: var(--blue); letter-spacing: .08em; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .97rem; }

/* Sector chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font: 500 .95rem/1 var(--f-head); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; }

/* Category list (products/about) */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }
.cats li { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); min-width: 0; position: relative; transition: border-color .2s; }
.cats li::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); opacity: 0; transition: opacity .2s; }
.cats li:hover { border-color: var(--line-2); }
.cats li:hover::before { opacity: 1; }
.cats p { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* Products */
.range-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--blue-soft); border: 1px solid #E5E7EB; border-radius: var(--r); padding: 18px 20px; margin-bottom: 36px; }
.range-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 9px; box-shadow: 0 0 0 4px rgba(17,24,39,.15); }
.range-note p { color: var(--ink); }
.range-note p span { color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--tint); padding: 4px; border-radius: 999px; }
.tab { font: 500 .9rem/1 var(--f-head); color: var(--text); background: transparent; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 2px 6px -2px rgba(0,0,0,.3); }
@media (max-width: 560px) { .tabs { border-radius: 12px; } }
.prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.prods.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .prods, .prods.four { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .prods, .prods.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.prod { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.prod:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.prod > :not(.ph) { margin-inline: 6px; }
.ph { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--tint); border-radius: 7px; overflow: hidden; margin-bottom: 14px; }
.ph img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.prod:hover .ph img { transform: scale(1.05); }
.pb { font: 500 .8125rem/1.4 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.prod h3 { font-size: 1.02rem; }
.pm { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Home: swipeable product range */
.feat { padding-block: clamp(44px, 6vw, 80px); background: var(--paper); border-top: 1px solid var(--line); }
.feat .section-head { margin-bottom: 20px; }
.feat-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.feat-nav { display: flex; gap: 8px; flex: none; }
.fbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.fbtn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.prods.carousel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 272px; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.carousel .prod { scroll-snap-align: start; }
.carousel .prod:hover { transform: none; }
.carousel .pr { display: none; }
.feat-foot { margin-top: 18px; display: flex; justify-content: center; }
.hide-sm { }
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .feat-nav { display: none; }
  .feat-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; border-radius: 999px; }
  .feat-tabs::-webkit-scrollbar { display: none; }
  .feat-tabs .tab { flex: none; }
  .prods.carousel { grid-auto-columns: 74%; gap: 12px; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .feat-foot .btn { width: 100%; }
}

/* Phones: tidier header, hero and lists */
@media (max-width: 560px) {
  .top .wrap { gap: 10px; padding-block: 10px; }
  .logo { gap: 9px; }
  .logo img { width: 36px; height: 36px; }
  .top .logo span { white-space: normal; font-size: 1rem; line-height: 1.05; max-width: 7.5em; }
  .util { font-size: .8rem; }
  .util .wrap { padding-block: 6px; }
  .qlink-m { padding: 0 10px; gap: 6px; }
  .qlink-m .qtext { display: none; }
  .home-hero { padding-block: 36px 40px; }
  .hero h1 { margin-top: 14px; }
  .intro { font-size: 1.04rem; margin-top: 16px; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stats { margin-top: 30px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-grid a { padding: 14px; gap: 4px; }
  .cat-grid .ci { width: 38px; height: 38px; margin-bottom: 4px; }
  .cat-grid h3 { font-size: .95rem; }
  .cat-grid p { display: none; }
  .section-head { margin-bottom: 24px; }
  /* Products page: one compact row per product (photo left, details right) */
  .prods:not(.carousel) { grid-template-columns: 1fr; gap: 10px; }
  .prods:not(.carousel) .prod { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-content: start; padding: 10px; }
  .prods:not(.carousel) .prod > * { grid-column: 2; margin-inline: 0; }
  .prods:not(.carousel) .ph { grid-column: 1; grid-row: 1 / span 5; margin: 0; align-self: start; }
  .prods:not(.carousel) .card-actions { grid-column: 1 / -1; padding-top: 10px; }
  .prods:not(.carousel) .pr, .prods:not(.carousel) .pm + .pm { display: none; }
  .prods:not(.carousel) .vars { margin-top: 6px; }
  .prods:not(.carousel) .var { padding: 6px 8px; }
  .prods:not(.carousel) .add { flex: 1; justify-content: center; padding: 11px 12px; }
}

/* Quote list: header counter, add buttons, toast */
.qlink { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--text); font: 500 .95rem/1 var(--f-head); padding: 9px 10px; border-radius: 6px; white-space: nowrap; }
.qlink:hover { color: var(--ink); background: var(--tint); }
.qlink .icon { width: 19px; height: 19px; }
.qcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--muted); font: 700 .74rem/1 var(--f-head); }
.qlink.has .qcount { background: var(--blue); color: #fff; }
.qlink-m { display: none; }
.nav a.link, .logo span { white-space: nowrap; }
@media (max-width: 1200px) { .nav { gap: 2px; } .nav a.link { padding: 10px 9px; } .nav .qlink .qtext { display: none; } .nav .btn { margin-left: 6px; } }
@media (max-width: 1000px) { .qlink-m { display: inline-flex; margin-left: auto; border: 1px solid var(--line-2); border-radius: 8px; height: 44px; padding: 0 12px; } }
@media (max-width: 400px) { .qlink-m .qtext { display: none; } }
.card-actions { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-actions .ask { margin-top: 0; padding-top: 0; }
.add { font: 500 .9rem/1 var(--f-head); color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 7px; padding: 10px 12px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; display: inline-flex; align-items: center; gap: 6px; }
.add::before { content: "+"; font-size: 1.05rem; line-height: 0; }
.add:hover { background: var(--blue); border-color: var(--blue); }
.add.in { background: var(--blue-soft); color: var(--blue); border-color: #E5E7EB; }
.add.in::before { content: "✓"; font-size: .9rem; }
.add.in:hover { border-color: var(--blue); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 14px 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; font-size: .92rem;
  width: max-content; max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; background: var(--blue); border-radius: 6px; padding: 8px 12px; text-decoration: none; font: 500 .9rem/1 var(--f-head); white-space: nowrap; }
@media (max-width: 820px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* Quote list on the contact page */
.req { color: var(--blue); font-weight: 700; }
.lbl { display: block; }
.lbl small { font: 400 .875rem var(--f-body); color: var(--muted); }
.err { color: #B42318; font: 500 .875rem/1.3 var(--f-body); min-height: 0; }
.err:empty { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #D92D20; background: #FFF6F5; }
.qlist-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 14px; display: grid; gap: 10px; }
.qlist-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qlist-title { font: 600 .86rem/1.2 var(--f-head); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.qlist-title .qcount { background: var(--blue); color: #fff; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qlist:empty { display: none; }
.qlist li { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, .9fr) auto; gap: 10px; align-items: end; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.qi-main { display: grid; gap: 2px; align-self: center; min-width: 0; }
.qi-brand { font: 500 .72rem/1.3 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.qi-main b { font: 600 .95rem/1.3 var(--f-head); color: var(--ink); }
.qi-var { font-size: .875rem; color: var(--muted); line-height: 1.35; }
.qlist label { font-size: .78rem; gap: 4px; color: var(--muted); }
.qlist input { padding: 8px 10px; font-size: .92rem; background: var(--bg); }
.qi-del { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.qi-del:hover { color: #B42318; border-color: #B42318; }
.qlist-empty { font-size: .9rem; color: var(--muted); }
.qlist-empty a { color: var(--blue); font-weight: 600; }
@media (max-width: 560px) { .qlist li { grid-template-columns: 76px minmax(0, 1fr) auto; } .qi-main { grid-column: 1 / -1; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.finder { display: grid; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: -12px 0 24px; box-shadow: var(--shadow); }
.search { position: relative; display: block; font: inherit; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input { font-size: 1.02rem; padding: 15px 16px 15px 48px; border-radius: 10px; background: var(--paper); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.frow { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.flabel { font: 500 .76rem/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 64px; }
.fmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9rem; color: var(--muted); }
#count { font-weight: 600; color: var(--ink); }
.clear { font: 500 .9rem/1 var(--f-head); color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.clear:hover { color: var(--blue-hover); }
.no-results { text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 44px 20px; background: var(--bg); display: grid; gap: 8px; justify-items: center; }
.no-results[hidden] { display: none; }
.no-results p { color: var(--muted); max-width: 52ch; }
.no-results a { color: var(--blue); font-weight: 600; }
@media (max-width: 560px) { .range-note p span { display: none; } .range-note { margin-bottom: 20px; } .finder { padding: 14px; } .flabel { min-width: 0; width: 100%; } .frow .tabs { border-radius: 12px; } }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.var { font: 500 .875rem/1 var(--f-head); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.var:hover { border-color: var(--ink); color: var(--ink); }
.var[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.spec { font: 500 .9rem/1.45 var(--f-body); color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
.pr { font-size: .875rem; color: var(--ink); line-height: 1.45; background: var(--paper); border-left: 2px solid var(--blue); padding: 6px 9px; border-radius: 0 4px 4px 0; margin-top: 6px; }
.prod p.d { font-size: .94rem; color: var(--muted); line-height: 1.5; margin-top: 6px; }
.ask { margin-top: auto; padding-top: 14px; font: 500 .9rem/1 var(--f-head); color: var(--blue); text-decoration: none; align-self: flex-start; display: inline-flex; gap: 6px; }
.ask:hover { color: var(--blue-hover); }
.ask::after { content: "→"; transition: transform .15s; }
.ask:hover::after { transform: translateX(3px); }
@media (max-width: 520px) { .prod p.d { display: none; } .prod { padding: 8px 8px 14px; } .prod > :not(.ph) { margin-inline: 4px; } }
.fine { margin-top: 32px; font-size: .875rem; color: var(--muted); max-width: 70ch; }

/* Brands */
.logo-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 36px); box-shadow: var(--shadow); display: grid; place-items: center; }
.logo-strip { display: block; width: 100%; max-width: 820px; height: auto; }
.brand-names { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-names li { font: 500 .95rem/1.3 var(--f-head); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--bg); }
@media (max-width: 760px) { .brand-names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 460px) { .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-grid li { position: relative; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s, transform .2s; }
.logo-grid li:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.logo-grid img { position: absolute; inset: 18% 14%; width: 72%; height: 64%; object-fit: contain; }

/* About */
.prose { display: grid; gap: 18px; max-width: 62ch; }
.prose p { font-size: 1.06rem; }
.prose p:first-child { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: f; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.facts li { counter-increment: f; display: grid; gap: 8px; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.facts li::before { content: "0" counter(f); font: 700 .85rem/1 var(--f-head); color: var(--blue); letter-spacing: .08em; margin-bottom: 10px; }
.facts p { color: var(--muted); font-size: .97rem; }
.kv { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.kv > div { display: grid; gap: 4px; padding: 18px 22px; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv .v { color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.kv .v a { text-decoration: none; }
.kv .v a:hover { color: var(--blue); }
.kv .v .wa { color: var(--blue); font-weight: 600; }

/* CTA band */
.cta { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 96px); position: relative; isolation: isolate; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 65%); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { margin-top: 12px; max-width: 52ch; }
.cta .label { color: var(--blue-bright); }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Quote form */
.quote { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
form.q { display: grid; gap: 20px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 8px; font: 500 .9rem/1.2 var(--f-head); color: var(--ink); min-width: 0; }
label small { font: 400 .875rem var(--f-body); color: var(--muted); }
input, textarea { font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder, textarea::placeholder { color: #A3A8AE; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { outline: none; background: var(--bg); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,24,39,.14); }
.q-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.q-hint { font-size: .875rem; color: var(--muted); }
.q-hint[data-warn] { color: var(--blue); }

/* Footer */
footer { background: var(--ink); color: var(--on-dark-muted); font-size: .92rem; }
.cta + footer .cols { border-top: 1px solid rgba(255,255,255,.08); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { font-size: .85rem; margin-bottom: 14px; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
footer h3.caps { font-size: 1.05rem; letter-spacing: .03em; }
footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .brand img { width: 44px; height: 44px; padding: 7px; box-sizing: border-box; object-fit: contain; background: #fff; border-radius: 50%; }
footer .brand h3 { margin: 0; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .bar { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; }

.fab { position: fixed; z-index: 25; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: none; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
@media (max-width: 820px) { .fab { display: inline-flex; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; } .scrolled .fab { opacity: 1; pointer-events: auto; transform: none; } footer .bar { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

/* Home hero */
.home-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.home-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
.intro { margin-top: 20px; font-size: 1.125rem; line-height: 1.6; max-width: 56ch; }
.home-hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: 1.1; max-width: 100%; text-decoration: none; position: relative; }
.hero-grid .t { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow); }
.hero-grid .t.tall { grid-row: span 2; background: var(--tint); }
.hero-grid .t img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.hero-grid .t.tall img { inset: 6% 10%; width: 80%; height: 88%; }
.hero-grid .t:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.hero-grid .t:hover img { transform: scale(1.05); }
.hero-badge { position: absolute; left: -18px; bottom: 22px; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font: 600 .9rem/1.25 var(--f-head); }
.hero-badge b { font-size: 1.5rem; color: var(--blue-bright); letter-spacing: -.01em; }
.hero-badge > span { display: grid; gap: 2px; }
.hero-badge small { color: var(--on-dark); font-weight: 500; font-size: .85rem; }
@media (max-width: 860px) { .home-hero .wrap { grid-template-columns: 1fr; } .hero-grid { display: none; } }

/* Price lists */
.pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.pl li:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pl li::before { content: "PDF"; flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font: 700 .7rem/52px var(--f-head); letter-spacing: .08em; text-align: center;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.pl-info { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pl-info .muted { font-size: .88rem; }
.pl .btn { padding: 10px 16px; font-size: .9rem; flex: none; }
@media (max-width: 520px) { .pl li { flex-wrap: wrap; } .pl .btn { width: 100%; } }

/* SEO pages: breadcrumbs, category links, FAQ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }
.catlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.prods + .catlinks { margin: 28px 0 0; }
.catlinks a { font: 500 .9rem/1 var(--f-head); color: var(--ink); text-decoration: none; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 14px; transition: border-color .15s, color .15s; }
.catlinks a:hover { border-color: var(--blue); color: var(--blue); }
.catlinks a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.catlinks .flabel { min-width: 0; margin-right: 4px; }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font: 500 1rem/1.4 var(--f-head); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--line-2); }
.faq-a { padding: 0 18px 16px; color: var(--text); }
.faq-a a { color: var(--blue); }
/* Card actions: keep "Add to quote" and "WhatsApp" on one centred line; matched pair of buttons on phones */
.card-actions { align-items: center; }
.card-actions .ask { align-self: center; line-height: 1; }
@media (max-width: 560px) {
  .card-actions { flex-wrap: nowrap; gap: 8px; }
  .card-actions .add, .card-actions .ask { flex: 1 1 0; min-width: 0; height: 44px; justify-content: center; align-items: center; border-radius: 8px; padding: 0 10px; white-space: nowrap; }
  .card-actions .ask { display: inline-flex; border: 1px solid var(--line-2); background: var(--bg); color: var(--blue); font-weight: 500; }
  .card-actions .ask:hover, .card-actions .ask:active { border-color: var(--blue); }
  .prods:not(.carousel) .card-actions .add { flex: 1 1 0; padding: 0 10px; }
}
/* White & black theme: small labels in grey for hierarchy; light buttons on the dark sections */
.label, .pb, .qi-brand, .flabel { color: var(--muted); }
.cta .label { color: var(--blue-bright); }
.cta .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta .btn-primary:hover { background: #E5E7EB; }
.toast a { background: #fff; color: var(--ink); }
.toast a:hover { background: #E5E7EB; }
.link-arrow, .ask, .clear, .faq-a a, .qlist-empty a, .no-results a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-arrow:hover, .ask:hover, .clear:hover { text-decoration: underline; }
