/* ==========================================================================
   Kohinoor Electrical & Sanitary — storefront
   Direction: showroom editorial. Warm ivory paper, oxblood accent (brand
   maroon), Instrument Serif display type, Inter for text. Hairlines, not
   shadows. Nothing moves on hover.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f2eb;
  --paper-2: #ede6da;
  --white: #ffffff;
  --ink: #1b1714;
  --ink-2: #3d3531;
  --muted: #74695f;
  --faint: #a1958a;
  --line: #e2d9cc;
  --line-2: #cfc3b3;
  --brand: #7a1f2b;
  --brand-deep: #5c1620;
  --brand-tint: #f2e6e3;
  --brass: #94733f;
  --wa: #1e7a4c;
  --wa-deep: #155c39;
  --ok: #2f6b45;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", sans-serif;
  --r: 2px;
  --wrap: 1280px;
  --gutter: 16px;
  --header-h: 128px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); padding-bottom: 64px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* type roles */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 9vw, 4.9rem); line-height: .98; letter-spacing: -.012em; }
.display em, .h2 em { font-style: italic; color: var(--brand); }
.h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6.5vw, 3.4rem); line-height: 1.02; letter-spacing: -.01em; }
.h2 { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -.008em; }
.h3 { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.lead { font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.arrow-link:hover { color: var(--brand); border-color: var(--brand); }
.arrow-link .ico { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--r); border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #000; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-deep); border-color: var(--wa-deep); }
.btn.light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn .ico { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--brand); }

/* ---------- utility bar + header ---------- */
.utility { background: var(--ink); color: #e6ddd2; font-size: 12px; letter-spacing: .02em; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 34px; }
.utility a { color: #fff; text-decoration: none; }
.utility .sep { color: #6e635c; margin: 0 10px; }
.utility .u-long { display: none; }
.utility .wrap > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility .wrap > span:last-child { flex: none; }
.utility .u-offer { color: #fff; }
.utility .u-offer b { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f0c8c8; margin-right: 8px; }
.utility .u-offer:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 242, 235, .97); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo basket" "search search"; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 10px; }
.header-row .wordmark { grid-area: logo; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; width: max-content; }
.wordmark .wm-name { font-family: var(--serif); font-size: 27px; letter-spacing: .14em; margin-right: -.14em; }
.wordmark .wm-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .3em; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.wordmark .wm-sub::before { content: ""; width: 14px; height: 1px; background: var(--brass); }
.main-nav { display: none; }
.header-actions { display: contents; }
.header-actions .basket-link { grid-area: basket; justify-self: end; }
.search { grid-area: search; position: relative; }
.search .ico { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { width: 100%; height: 40px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0 4px 0 28px; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.basket-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.basket-link .label { display: none; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.count.zero { background: var(--line-2); color: var(--ink-2); }
.dept-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter) 10px; max-width: var(--wrap); margin: 0 auto; }
.dept-nav::-webkit-scrollbar { display: none; }
.dept-nav a, .main-nav a { flex: none; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.dept-nav a:hover, .main-nav a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.dept-nav a.on, .main-nav a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- bottom bar (phones) ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; position: relative; }
.bottom-bar a.on { color: var(--brand); }
.bottom-bar .bb-wa { color: var(--wa); }
.bottom-bar .count { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; font-size: 10px; }
.bottom-bar .count.zero { display: none; }
.wa-float { display: none; }

/* ---------- main + generic page ---------- */
main { min-height: 60vh; min-height: 60svh; outline: none; }
.loading { text-align: center; padding: 96px 16px; color: var(--muted); }
.spinner { width: 28px; height: 28px; margin: 0 auto 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page { padding-top: 22px; padding-bottom: 56px; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-head { margin-bottom: 26px; display: grid; gap: 10px; }
.page-head .meta { color: var(--muted); font-size: 14px; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head .titles { display: grid; gap: 10px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 32px; padding-top: 34px; padding-bottom: 40px; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 12.5px; color: var(--muted); }
.hero-note { column-gap: 16px; }
@media (min-width: 640px) { .hero-note { column-gap: 0; } .hero-note span + span::before { content: "·"; margin: 0 10px; color: var(--faint); } }
.ml { font-size: 13px; color: var(--muted); }
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / .92; }
.collage a { position: relative; display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.collage a:first-child { grid-row: span 2; }
.collage img, .collage .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10% 10% 18%; }
.collage .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collage a:hover { border-color: var(--line-2); }

/* ---------- facts strip ---------- */
.facts-strip { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.facts-strip > div { padding: 20px 16px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.facts-strip > div:nth-child(2n) { border-right: 0; }
.facts-strip > div:nth-child(-n+2) { border-top: 0; }
.facts-strip b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: -.01em; }
.facts-strip span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- departments ---------- */
.depts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; }
.depts ul { display: none !important; }
.dept { display: grid; gap: 14px; align-content: start; }
.dept .pic { position: relative; aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; }
.dept .pic img, .dept .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.dept .pic:hover { border-color: var(--line-2); }
.dept .no { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.05rem; }
.dept .h3 a { text-decoration: none; }
.dept .h3 a:hover { color: var(--brand); }
.dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dept ul a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.dept ul a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- brand directory ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brand-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 15px; background: transparent; }
.brand-grid a small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.brand-grid a:hover { background: var(--white); color: var(--brand); }
.brand-grid.home a:nth-child(n+13) { display: none; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--brass); }
.steps strong { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 14px; }

/* ---------- bands ---------- */
.band-tiles { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tiles .wrap { display: grid; gap: 28px; padding-top: 52px; padding-bottom: 52px; }
.band-tiles .copy { display: grid; gap: 16px; align-content: center; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.swatches span { aspect-ratio: 1; border-radius: 1px; }
.swatches span:nth-child(1) { background: #e9e2d6; } .swatches span:nth-child(2) { background: #d9cdbb; } .swatches span:nth-child(3) { background: #b9a58a; } .swatches span:nth-child(4) { background: #f3efe8; }
.swatches span:nth-child(5) { background: #8e7d6b; } .swatches span:nth-child(6) { background: #ece6dc; } .swatches span:nth-child(7) { background: #cdbfae; } .swatches span:nth-child(8) { background: #5d5149; }
.swatches span:nth-child(9) { background: #f6f3ee; } .swatches span:nth-child(10) { background: #a8957f; } .swatches span:nth-child(11) { background: #e1d7c9; } .swatches span:nth-child(12) { background: #c4b39c; }
.swatch-cap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.band-trade { background: var(--ink); color: #efe8df; }
.band-trade .wrap { display: grid; gap: 22px; padding-top: 56px; padding-bottom: 56px; }
.band-trade .eyebrow { color: #c9a873; }
.band-trade p { color: #c8bdb2; max-width: 56ch; }
.band-trade .h2 em { color: #e2b4a6; }
.visit { display: grid; gap: 28px; }
.visit .addr { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-list li span:first-child { color: var(--muted); }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--brand); }

/* ---------- category index (department page) ---------- */
.cat-index { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); margin-bottom: 40px; }
.cat-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.cat-index a strong { font-weight: 500; font-size: 15px; }
.cat-index a small { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cat-index a:hover strong { color: var(--brand); }
.cat-index a .tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); font-weight: 600; }

/* ---------- listing ---------- */
.list-layout { display: grid; gap: 24px; }
.filters { display: none; }
.filters h4 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.filters .group + .group { margin-top: 28px; }
.filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.filters button small { color: var(--faint); font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--ink); }
.filters button.on { color: var(--brand); font-weight: 600; }
.filters ul a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.filters ul a small { color: var(--faint); font-variant-numeric: tabular-nums; }
.filters ul a:hover { color: var(--ink); }
.filters ul a.on { color: var(--brand); font-weight: 600; }
.mobile-filters { display: grid; gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 18px; background: transparent; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--faint); margin-left: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.on small { color: #bfb4aa; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar .count-note { color: var(--muted); font-size: 13.5px; }
.select { height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 32px 0 12px; background: transparent; font-size: 13.5px; max-width: 100%; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.empty { text-align: center; padding: 56px 20px; border: 1px solid var(--line); background: var(--white); display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card .pic { position: relative; display: block; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card .pic:hover { border-color: var(--line-2); }
.card .pic img, .card .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card .pic img { padding: 10%; }
.card .body { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; flex: 1; }
.card .brand { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .name { font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .name:hover { color: var(--brand); }
.card .spec { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.tag-on-pic { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; background: var(--paper); border-radius: 1px; }
.tag-on-pic.out { color: var(--brand); }
.tag-on-pic.order { color: var(--brass); }
.tag-on-pic.in { color: var(--ok); }
.tag-on-pic.offer { background: var(--brand); color: #fff; }
.price { display: grid; gap: 1px; min-width: 0; }
.price .now { font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.price .unit { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.price .was { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .was s { text-decoration-thickness: 1px; }
.price .off { color: var(--brand); font-weight: 600; margin-left: 6px; }
.price .ask { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.add { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.add:hover { background: var(--ink); color: var(--paper); }
.add .ico { width: 16px; height: 16px; stroke-width: 1.8; }
.qty { flex: none; display: inline-flex; align-items: center; height: 36px; border: 1px solid var(--ink); border-radius: 18px; }
.qty button { width: 30px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink); }
.qty button:hover { color: var(--brand); }
.qty input { width: 30px; text-align: center; border: 0; background: transparent; font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.big { height: 48px; border-radius: var(--r); }
.qty.big button { width: 44px; font-size: 18px; }
.qty.big input { width: 44px; font-size: 15px; }

/* placeholder for products without a photo */
.ph { display: grid; place-items: center; background: var(--white); color: var(--line-2); }
.ph svg { width: 34%; max-width: 72px; height: auto; fill: none; stroke: currentColor; stroke-width: 1; }

/* ---------- product page ---------- */
.pdp { display: grid; gap: 26px; }
.pdp .gallery { position: relative; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pdp .gallery img, .pdp .gallery .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp .gallery img { padding: 8%; }
.pdp .gallery .rep { position: absolute; left: 14px; bottom: 12px; font-size: 11px; color: var(--muted); }
.pdp .info { display: grid; gap: 18px; align-content: start; }
.pdp .brand-link { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); text-decoration: none; }
.pdp .brand-link:hover { color: var(--brand); }
.pdp .title { display: grid; gap: 10px; }
.pdp .spec { color: var(--muted); }
.pdp .price-block { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp .price-block .now { font-size: 2rem; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pdp .price-block .now .unit { font-size: 14px; font-weight: 400; color: var(--muted); }
.pdp .price-block .was { font-size: 13.5px; color: var(--muted); }
.pdp .price-block .off { color: var(--brand); font-weight: 600; margin-left: 8px; }
.pdp .price-block .ask { font-size: 1.25rem; font-weight: 500; }
.pdp .price-block .note { font-size: 12.5px; color: var(--muted); }
.pdp .price-block .offer-note { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 4px 8px; border-radius: 1px; }
.pdp .buy { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp .buy .grow { flex: 1 1 220px; display: grid; }
.pdp .ask-wa { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--wa); text-decoration: none; }
.pdp .ask-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.stock-line { font-size: 13px; font-weight: 600; }
.stock-line.out { color: var(--brand); }
.stock-line.order { color: var(--brass); }
.stock-line.in { color: var(--ok); }
.spec-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--line); font-size: 14px; }
.spec-list dt, .spec-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); padding-right: 24px; }
.spec-list a { color: var(--ink); }
.calc { padding: 14px; background: var(--white); border: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.calc input { width: 110px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 10px; background: var(--paper); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; background: var(--white); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brand-tint); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; gap: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; width: max-content; max-width: 100%; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 10px 16px; font-size: 14px; background: var(--white); }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.check { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }

/* ---------- basket ---------- */
.basket { display: grid; gap: 28px; }
.lines { border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line .pic { position: relative; width: 76px; height: 76px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.line .pic img, .line .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.line .pic img { padding: 8%; }
.line .brand { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.line .name { display: block; font-weight: 500; font-size: 15px; text-decoration: none; margin: 2px 0; }
.line .name:hover { color: var(--brand); }
.line .meta { font-size: 13px; color: var(--muted); }
.line .ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.line .sum { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary { display: grid; gap: 18px; align-content: start; }
.summary .tot { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary .tot span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.summary .tot strong { font-size: 1.75rem; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.summary .note { font-size: 12.5px; color: var(--muted); }
.ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; background: var(--paper-2); padding: 2px 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d9d0c6; margin-top: 0; }
.site-footer .wrap { display: grid; gap: 34px; padding-top: 52px; padding-bottom: 40px; }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark .wm-sub { color: #a3978d; }
.site-footer p { font-size: 14px; color: #bdb2a8; line-height: 1.7; }
.site-footer h4 { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9a873; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #ece4da; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { border-top: 1px solid #3a322e; }
.site-footer .legal .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 16px; padding-bottom: 18px; font-size: 12px; color: #988c82; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #f0c8c8; font-weight: 600; text-underline-offset: 3px; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
  .facts-strip { grid-template-columns: repeat(4, 1fr); }
  .facts-strip > div { border-top: 0; border-right: 1px solid var(--line) !important; padding: 26px 22px; }
  .facts-strip > div:last-child { border-right: 0 !important; }
  .depts { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .depts ul { display: grid !important; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .cat-index { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .brand-grid.home a:nth-child(n+13) { display: flex; }
  .utility .u-long { display: inline; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 112px; }
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px; border-radius: 25px; background: var(--wa); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 6px 20px rgba(27, 23, 20, .18); }
  .wa-float:hover { background: var(--wa-deep); }
  body[data-route="basket"] .wa-float, body[data-route="contractors"] .wa-float { display: none; }
  .facts-strip > div:first-child { padding-left: 0; }
  .wa-float .ico { width: 22px; height: 22px; }
  .toast { bottom: 96px; }
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav actions"; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
  .main-nav { grid-area: nav; display: flex; justify-content: center; gap: 30px; }
  .dept-nav { display: none; }
  .header-actions { grid-area: actions; display: flex; align-items: center; gap: 18px; }
  .header-actions .search, .header-actions .basket-link { grid-area: auto; }
  .header-actions .search { width: 230px; }
  .basket-link .label { display: inline; }
  .wordmark .wm-name { font-size: 30px; }
  .hero .wrap { grid-template-columns: 1.02fr 1fr; gap: 64px; padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
  .depts { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .brand-grid { grid-template-columns: repeat(6, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 40px; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; gap: 14px; }
  .band-tiles .wrap { grid-template-columns: 1.1fr 1fr; gap: 72px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
  .band-trade .wrap { grid-template-columns: 1fr auto; align-items: end; padding-top: 72px; padding-bottom: 72px; gap: 48px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 72px; }
  .cat-index { grid-template-columns: repeat(3, 1fr); }
  .list-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; }
  .mobile-filters { display: none; }
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .pdp .gallery { position: sticky; top: calc(var(--header-h) + 20px); }
  .basket { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 56px; align-items: start; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
  .site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-top: 72px; }
}
@media (min-width: 1200px) {
  .grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* ---------- offer popup ---------- */
html.promo-open { overflow: hidden; }
.promo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px 16px; background: rgba(27, 23, 20, .66); opacity: 0; transition: opacity .2s; }
.promo.show { opacity: 1; }
/* width follows the screen height too, so the whole 4:5 poster and its buttons always fit */
.promo-box { position: relative; display: grid; gap: 12px; width: min(100%, 440px, calc((100vh - 150px) * .8)); transform: translateY(10px); transition: transform .2s; }
@supports (height: 100dvh) { .promo-box { width: min(100%, 440px, calc((100dvh - 150px) * .8)); } }
.promo.show .promo-box { transform: none; }
.promo-pic { display: block; line-height: 0; border-radius: var(--r); overflow: hidden; background: #1f1c1a; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.promo-pic img { width: 100%; height: auto; }
.promo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.promo-actions .btn { min-height: 46px; padding: 0 12px; font-size: 14px; }
.promo-actions .btn:only-child { grid-column: 1 / -1; }
.promo-x { position: absolute; top: -12px; right: -10px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.promo-x .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.promo-x:hover { background: #fff; }
.promo-x:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

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