/* ==========================================================================
   AK Corporation — design system

   Same architecture as the A K Enterprises storefront (the client asked for the
   same kind of site) with a different skin, taken from AK Corporation's own logo
   and its trade: near-black chrome instead of navy, the logo red, and an electric
   yellow conversion CTA instead of the two oranges — the colours of switchgear
   and cable drums rather than a general store. Corners are softer than the
   sister site's, and the wholesale surface is promoted rather than tucked away,
   because this side of the business sells to contractors and dealers.
   ========================================================================== */

:root {
  /* chrome: near-black header, from the logo's black-and-red mark */
  --brand: #16181d;
  --brand-700: #0d0f13;
  --brand-600: #2a2e36;
  --brand-100: #d2d5da;
  --brand-50: #f0f1f3;

  --red: #d81f26;          /* the logo red — accents, active states, urgency */
  --red-50: #fdecec;

  --cta: #ffc61a;          /* add to cart — live-wire yellow, dark text on it */
  --cta-600: #ecb200;
  --cta-50: #fff8e2;
  --buy: #d81f26;          /* buy now */
  --buy-600: #b3161d;

  --gold: #9a6a00;         /* wholesale / B2B surfaces */
  --gold-50: #fdf6e4;
  --gold-100: #ecd9a8;

  --ok: #1f8a4c;
  --ok-50: #e9f6ee;
  --warn: #d81f26;

  --ink: #16181d;
  --ink-2: #3b414b;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --line: #e4e6ea;
  --line-2: #eff1f4;
  --bg: #f2f3f5;
  --card: #ffffff;

  /* Sharp and technical rather than the sister site's soft marketplace tiles.
     Depth comes from hairline borders and flat bands, not drop shadows — that
     one change does more to separate the two sites than any colour swap. */
  --r-sm: 2px;
  --r: 3px;
  --r-lg: 4px;
  --r-pill: 999px;

  --sh-1: none;
  --sh-2: none;
  --sh-3: 0 12px 34px rgba(13, 15, 19, .26);   /* dropdowns and modals only */
  --line-hard: #d3d7dd;

  --wrap: 1280px;
  --head-h: 118px;

  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* rates, sizes and quantities are set in tabular mono so a column of prices
     lines up and reads like a rate card */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ atoms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: .16s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(0); }
.btn-cta { background: var(--cta); color: #1a1a1a; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn-cta:hover { background: var(--cta-600); }
.btn-buy { background: var(--buy); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn-buy:hover { background: var(--buy-600); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c31d23; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-700); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #92400e; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100);
}
.chip-gold { background: var(--gold-50); color: var(--gold); border-color: var(--gold-100); }
.chip-ok { background: var(--ok-50); color: var(--ok); border-color: #c7ecd4; }
.chip-cta { background: var(--cta-50); color: var(--cta-600); border-color: #ffd9bd; }

.sect { padding: 28px 0; }
/* marketplace convention: white content bands on a grey page, not floating cards */
.band { background: #fff; padding: 20px 0 26px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
/* Alternating dark bands. The sister site is white top to bottom; breaking the
   page with two near-black sections changes its rhythm at a glance. */
.band-dark { background: var(--brand-700); color: #fff; padding: 26px 0 30px; margin-bottom: 12px; }
.band-dark .pcard { background: var(--brand-600); border-color: #3a4049; }
.band-dark .pcard:hover { border-color: var(--cta); }
.band-dark .pc-name { color: #e7e9ec; }
.band-dark .pc-media { background: #fff; }
.band-dark .cat-card { background: var(--brand-600); border-color: #3a4049; color: #fff; }
.band-dark .cat-card span { color: #9aa1ad; }
.sect-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.sect-head h2 {
  font-size: clamp(16px, 1.8vw, 20px); text-transform: uppercase; letter-spacing: .04em;
}
.sect-head h2::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 9px;
  background: var(--red); vertical-align: -1px;
}
.sect-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.sect-head a {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 2px solid var(--cta); padding-bottom: 2px;
}
.sect-head a:hover { color: var(--red); border-bottom-color: var(--red); }
.band-dark .sect-head { border-bottom-color: rgba(255, 255, 255, .22); }
.band-dark .sect-head h2, .band-dark .sect-head a { color: #fff; }
.band-dark .sect-head p { color: #9aa1ad; }

/* ----------------------------------------------------------------- header */
.topbar { background: var(--red); color: #ffe3e4; font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar strong { color: #fff; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-links { display: flex; gap: 18px; }
.topbar a:hover { color: #fff; }

/* The whole chrome block sticks. The negative offset lets the thin topbar
   scroll away while the logo row + category nav stay pinned; sticking .head
   alone fails because its #site-head wrapper is the scroll container. */
#site-head { position: sticky; top: -34px; z-index: 60; }
.head { background: var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.head-main { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* The client's badge unstacked into a row (scripts/build_logo.py), in the light
   ink so it sits straight on the near-black chrome with no white chip behind it. */
.logo-img { height: 44px; width: auto; }
.logo-txt {
  padding-left: 11px; border-left: 1px solid var(--line);
  font-size: 10px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.5; white-space: nowrap;
}
/* The footer has room for the whole lockup, tagline and all. */
.logo-foot { display: inline-block; }
.logo-foot .logo-img { height: 104px; }
.f-tag { font-size: 12.5px; color: #99a1ad; margin-top: 10px; letter-spacing: .02em; }

.search { flex: 1; position: relative; max-width: 760px; }
.search input {
  width: 100%; padding: 11px 90px 11px 38px; border: 1px solid transparent;
  border-radius: var(--r-sm); background: #fff; font-size: 14px;
}
.search input:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 159, 0, .55); }
.search .s-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .s-go {
  position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 18px; border-radius: 3px;
  background: var(--cta); color: #1a1a1a; font-weight: 800; font-size: 13px; text-transform: uppercase;
}
.search .s-go:hover { background: var(--cta-600); }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); overflow: hidden; z-index: 30; max-height: 400px; overflow-y: auto;
}
.suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.on { background: var(--brand-50); }
.suggest img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.suggest .sg-n { font-size: 13px; font-weight: 600; }
.suggest .sg-m { font-size: 11.5px; color: var(--muted); }

/* margin-left pins the actions to the right edge of the header row so wide
   screens don't leave a gap after the cart icon */
.head-acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iact {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px;
  border-radius: var(--r-sm); font-size: 11px; font-weight: 600; color: var(--ink-2); position: relative;
}
.iact { color: #fff; }
.iact:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.iact .badge {
  position: absolute; top: 1px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--cta); color: #1a1a1a; border-radius: var(--r-pill); font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--brand);
}
.burger { display: none; color: #fff; }

/* Utility bar. The sister site runs a white strip of every department across
   the full width; here the departments collapse into one "All departments"
   button with a drop panel, and the bar itself is dark and carries the trade
   links and the phone number instead. */
.nav { background: var(--brand-600); border-top: 1px solid rgba(255, 255, 255, .08); }
.nav .wrap { display: flex; align-items: stretch; gap: 2px; }
.nav a {
  display: flex; align-items: center; padding: 0 14px; font-size: 13px; font-weight: 600;
  color: #d3d7dd; white-space: nowrap; border-bottom: 3px solid transparent;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a.on { color: #fff; border-bottom-color: var(--cta); }
.nav a.nav-b2b { color: var(--cta); font-weight: 800; }
.nav .nav-phone { margin-left: auto; font-family: var(--mono); letter-spacing: -.02em; color: #fff; }

.deptbtn {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  background: var(--cta); color: #16181d; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.deptbtn:hover { background: var(--cta-600); }
.deptwrap { position: relative; display: flex; }
.deptpanel {
  position: absolute; top: 100%; left: 0; z-index: 40; width: min(92vw, 620px);
  background: #fff; border: 1px solid var(--line-hard); box-shadow: var(--sh-3);
  padding: 8px; display: none; grid-template-columns: 1fr 1fr; gap: 2px;
}
.deptwrap.open .deptpanel { display: grid; }
.deptpanel a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--ink);
  font-size: 13.5px; font-weight: 600; border-bottom: 0;
}
.deptpanel a:hover { background: var(--brand-50); color: var(--red); }
.deptpanel img { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.deptpanel i {
  margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.deptpanel .dp-all {
  grid-column: 1 / -1; justify-content: center; background: var(--brand); color: #fff;
  text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-top: 6px;
}
.deptpanel .dp-all:hover { background: var(--brand-700); color: #fff; }

/* mobile drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 90; opacity: 0; pointer-events: none; transition: .2s; }
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 320px); background: #fff; z-index: 95;
  transform: translateX(-100%); transition: .25s cubic-bezier(.4, 0, .2, 1); overflow-y: auto; padding-bottom: 40px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.drawer nav a:hover { background: var(--brand-50); }
.drawer .d-foot { padding: 16px; display: grid; gap: 8px; }

/* ------------------------------------------------------------------- hero */
.hero { background: #fff; }
/* The sister site puts the slider on the left and two stacked promo cards on
   the right. Here a department rail runs down the left — the shape a trade
   catalogue site takes — and the slider gets the rest. */
.hero-grid { display: grid; grid-template-columns: 244px 1fr; gap: 16px; padding: 16px 0; align-items: stretch; }
.hero-rail { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.hero-rail h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono);
  padding: 11px 13px; background: var(--brand); color: #fff; font-weight: 700;
}
.hero-rail a {
  display: flex; align-items: center; gap: 9px; padding: 0 13px; flex: 1;
  font-size: 13px; font-weight: 600; color: var(--ink-2); border-top: 1px solid var(--line-2);
}
.hero-rail a:hover { background: var(--cta-50); color: var(--red); padding-left: 17px; }
.hero-rail a i { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.hero-rail .hr-all { background: var(--brand-50); font-weight: 800; color: var(--brand); flex: 0 0 auto; padding: 11px 13px; }

/* three promo cards in a row under the trust bar, instead of two stacked
   beside the hero */
.promo3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo3 .side-card { min-height: 190px; }
.slider { position: relative; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; background: var(--brand-50); box-shadow: var(--sh-1); }
/* Above the two-column breakpoint nothing sets an aspect ratio, so the slider
   was exactly min-height and the copy filled it to the pixel — the buttons ended
   up 2px off the bottom edge. Give it room for the tallest slide instead. */
@media (min-width: 1081px) {
  .slider { min-height: 392px; }
}
.slides { position: absolute; inset: 0; display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.slide { min-width: 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 76% center; }
/* Vertical padding matters as much as horizontal: without it the copy block is
   free to run to the very top and bottom of the picture. */
.slide-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(22px, 4%, 38px) clamp(22px, 5%, 58px); max-width: 54%;
}
/* The banners are photographs now, and some of them (the solar rooftop) have a
   bright sky exactly where the headline sits — so the slide carries its own
   left-edge scrim rather than relying on the picture being dark. Only where the
   copy actually overlays: the phone layout stacks it underneath instead. */
@media (min-width: 768px) {
  .slide::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(13, 15, 19, .92) 0%, rgba(13, 15, 19, .78) 34%,
                rgba(13, 15, 19, .34) 56%, rgba(13, 15, 19, 0) 72%);
  }
  .slide-copy { z-index: 2; }
}

.slide-copy .chip { align-self: flex-start; margin-bottom: 10px; background: #fff; }
.slide-copy h2 { font-size: clamp(19px, 2.7vw, 34px); color: #fff; text-shadow: 0 1px 18px rgba(13, 15, 19, .5); max-width: 15ch; }
/* Three lines is the most the box can take at the smallest desktop width
   without pushing the buttons into the bottom edge. */
.slide-copy p {
  margin: 10px 0 18px; color: rgba(255, 255, 255, .88); font-size: clamp(12px, 1.2vw, 14.5px);
  max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-copy .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.slide-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* Arrows ride the right edge at mid height and the dots sit under them in the
   bottom-right corner. Both used to live along the bottom-left, which is where
   the slide's own buttons are — they collided on every slide. */
.sl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(22, 24, 29, .12);
  display: grid; place-items: center; color: var(--ink);
}
.sl-nav:hover { background: #fff; border-color: var(--ink); }
.sl-prev { right: 68px; } .sl-next { right: 22px; }
/* Top-right, clear of both the arrows (mid-right) and the slide's own buttons
   (bottom-left). Bottom-right put them a thumb-width from the arrows. */
.dots { position: absolute; top: 18px; right: 22px; z-index: 3; display: flex; gap: 7px; }
.dots i {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(13, 15, 19, .25); transition: .2s; cursor: pointer;
}
.dots i.on { width: 22px; border-radius: var(--r-pill); background: var(--cta); }

.hero-side { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; align-self: stretch; }
.side-card {
  border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden;
}
/* photo sits behind the copy; the wash keeps the text readable over it */
.side-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-card > *:not(.side-bg) { position: relative; z-index: 2; }
.side-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .97) 58%, rgba(255, 255, 255, .84) 80%, rgba(255, 255, 255, .45));
}
.side-card h3 { font-size: 17px; }
.side-card p { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }
.side-b2b { background: linear-gradient(150deg, var(--gold-50), #fff); border-color: var(--gold-100); }
.side-b2b h3 { color: var(--gold); }
.side-quote { background: linear-gradient(150deg, var(--brand-50), #fff); border-color: var(--brand-100); }
.side-quote h3 { color: var(--brand); }
.side-help { background: linear-gradient(150deg, var(--cta-50), #fff); border-color: #f0dcae; }
.side-help h3 { color: #8a6a00; }

/* -------------------------------------------------------------- trust bar */
.trust { background: var(--brand); border-top: 3px solid var(--cta); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 0; }
.trust-item { display: flex; gap: 11px; align-items: center; padding: 4px 8px; }
.trust-item .ti-ico { width: 34px; height: 34px; border-radius: 0; background: rgba(255, 255, 255, .1); color: var(--cta); display: grid; place-items: center; flex-shrink: 0; }
.trust-item b { display: block; font-size: 13px; color: #fff; }
.trust-item span { font-size: 11.5px; color: #9aa1ad; }

/* ------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: .18s; display: flex; flex-direction: column;
}
.cat-card:hover { border-color: var(--ink); }
.cat-card .cc-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cc-body { padding: 12px 14px 14px; }
.cat-card b { font-size: 14.5px; display: block; }
.cat-card span { font-size: 12px; color: var(--muted); }
.cat-card .cc-n { font-size: 11.5px; color: var(--brand); font-weight: 700; margin-top: 6px; display: block; }

/* ------------------------------------------------------------ product card */
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 14px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; position: relative; transition: .16s;
}
.pcard:hover { border-color: var(--ink); }
.pc-media {
  position: relative; aspect-ratio: 5 / 4; background: #fff; padding: 9px;
  border-bottom: 1px solid var(--line-2);
}
/* The link is absolutely placed so the photo cannot drive the box height —
   otherwise aspect-ratio is ignored and cards end up ragged. */
.pc-media > a { position: absolute; inset: 9px; display: block; }
.pc-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: .25s; }
.pcard:hover .pc-media img { transform: scale(1.06); }
.pc-tag {
  position: absolute; top: 8px; left: 0; padding: 3px 9px 3px 8px; border-radius: 0;
  font-size: 10.5px; font-weight: 800; background: var(--red); color: #fff; letter-spacing: .02em;
}
.pc-tag.t-q { background: var(--gold); }
.pc-tag.t-oos { background: var(--muted); }
.pc-wish {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint);
}
.pc-wish:hover, .pc-wish.on { color: var(--cta-600); }
.pc-body { padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pc-brand { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pc-sub { font-size: 11px; color: var(--faint); }
.pc-name { font-size: 13.4px; font-weight: 500; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pc-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pc-price b { font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pc-price del { font-family: var(--mono); font-size: 12px; color: var(--faint); }
/* the unit matters more than the price on a cable card — ₹6,450 means nothing
   without "per 90 m coil" next to it */
.pc-unit { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: -.01em; }
.pc-price i { font-size: 12.5px; font-style: normal; font-weight: 700; color: var(--ok); }
.pc-quote { font-size: 13.5px; font-weight: 800; color: var(--gold); }
.pc-b2b { font-family: var(--mono); font-size: 10.5px; color: var(--ink); font-weight: 700; background: var(--cta-50); border-left: 3px solid var(--cta); border-radius: 0; padding: 4px 8px; align-self: stretch; letter-spacing: -.01em; }
.pc-acts { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 6px; padding-top: 4px; }
.pc-acts .btn { padding: 9px 10px; font-size: 12.5px; }
.pc-bulk {
  border: 1px solid var(--gold-100); background: var(--gold-50); color: var(--gold);
  border-radius: var(--r-sm); padding: 0 11px; font-weight: 800; font-size: 12px; display: grid; place-items: center;
}
/* circular category strip — mobile only; on desktop the sticky nav already
   lists every department and two copies read as a bug */
.cat-strip-band { display: none; }
.cat-strip { display: flex; gap: clamp(10px, 3vw, 34px); overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { display: grid; justify-items: center; gap: 8px; min-width: 76px; flex-shrink: 0; }
.cat-strip span.cs-img {
  width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--brand-50);
  border: 1px solid var(--line); display: block;
}
.cat-strip img { width: 100%; height: 100%; object-fit: cover; transition: .25s; }
.cat-strip a:hover img { transform: scale(1.08); }
.cat-strip b { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; max-width: 92px; }
.cat-strip a:hover b { color: var(--red); }
.pc-bulk:hover { background: var(--gold-100); }

/* horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(198px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ----------------------------------------------------------- b2b band/deal */
.b2b-band {
  background: linear-gradient(115deg, var(--brand-700) 0%, var(--brand) 58%, var(--brand-600) 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 38px); position: relative; overflow: hidden;
}
.b2b-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b2b-band > *:not(.b2b-bg) { position: relative; z-index: 2; }
.b2b-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(13, 15, 19, .95) 40%, rgba(13, 15, 19, .76) 66%, rgba(13, 15, 19, .48));
}
.b2b-band h2 { font-size: clamp(21px, 3vw, 32px); max-width: 20ch; }
.b2b-band p { color: #cfd3da; margin: 10px 0 18px; max-width: 52ch; font-size: 14px; }
.b2b-slabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; position: relative; z-index: 2; }
.slab { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); padding: 13px; }
.slab b { display: block; font-size: 20px; color: var(--cta); }
.slab span { font-size: 12px; color: #cfd3da; }
.slab small { display: block; font-size: 11px; color: #99a1ad; margin-top: 3px; }

.deal-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--brand) url("../img/promo/deal-strip.jpg") right center / cover no-repeat;
  color: #fff; border-radius: var(--r-sm); padding: 13px 16px; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.deal-strip::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 28, 51, .97) 46%, rgba(15, 28, 51, .8) 68%, rgba(15, 28, 51, .35));
}
.deal-strip > * { position: relative; z-index: 2; }
.deal-strip b { font-size: 15px; color: #fff; }
.deal-strip span { color: #cfd3da !important; }
.timer { display: flex; gap: 6px; align-items: center; }
.timer i { background: var(--cta); color: #1a1a1a; border-radius: 6px; padding: 4px 7px; font-style: normal; font-weight: 800; font-size: 13px; min-width: 30px; text-align: center; }

/* --------------------------------------------------------------- shop page */
.shop-layout { display: grid; grid-template-columns: 244px 1fr; gap: 20px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: calc(var(--head-h) + 12px); max-height: calc(100vh - var(--head-h) - 28px); overflow-y: auto; }
.f-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.f-head b { font-size: 14px; }
.f-head button { font-size: 12px; color: var(--cta-600); font-weight: 700; }
.f-grp { border-bottom: 1px solid var(--line-2); padding: 13px 15px; }
.f-grp:last-child { border-bottom: 0; }
.f-grp > b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 9px; }
.f-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.3px; cursor: pointer; }
.f-opt input { accent-color: var(--brand); width: 15px; height: 15px; }
.f-opt span.ct { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.f-price { display: flex; gap: 8px; align-items: center; }
.f-price input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-bar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; }
.applied { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.applied .chip { cursor: pointer; }
.applied .chip:hover { background: #fee2e2; color: var(--warn); border-color: #fecaca; }
.f-toggle { display: none; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 700; }
.pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager button:hover:not(.on):not([disabled]) { border-color: var(--brand); color: var(--brand); }

.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

/* ------------------------------------------------------------ product page */
.crumb { font-size: 12.5px; color: var(--muted); padding: 12px 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
/* the whole left column travels together, so a short gallery still fills the
   viewport next to the long detail column */
.pd-left { position: sticky; top: calc(var(--head-h) + 12px); display: grid; gap: 14px; align-content: start; }
/* The phone swaps the thumb-strip gallery for a swipe carousel. Only the
   mobile rule existed, so on desktop BOTH rendered and the photo appeared
   twice down the page. */
.pd-carousel { display: none; }
.pd-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
/* one photo means no thumbnail rail */
.pd-gallery.single { grid-template-columns: 1fr; }

.pd-assure {
  display: grid; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px;
}
.pd-assure li { display: flex; gap: 11px; align-items: flex-start; }
.pd-assure svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pd-assure b { display: block; font-size: 13.2px; }
.pd-assure span { font-size: 12.3px; color: var(--muted); }
.pd-assure a { color: var(--gold); font-weight: 700; }
.pd-assure a:hover { text-decoration: underline; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pd-thumbs button { position: relative; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; aspect-ratio: 1; }
.pd-thumbs button.on { border-color: var(--brand); }
.pd-thumbs img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; }
/* The photo is absolutely placed so its intrinsic size cannot override the
   square aspect-ratio — a tall source image otherwise blows the box out and
   overflows the column. */
.pd-main {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); aspect-ratio: 1; overflow: hidden;
}
.pd-main img {
  position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px);
  object-fit: contain; mix-blend-mode: multiply;
}
.pd-info h1 { font-size: clamp(19px, 2.4vw, 26px); margin: 6px 0 8px; }
.pd-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; flex-wrap: wrap; }
.pd-price b { font-size: 30px; font-weight: 800; }
.pd-price del { color: var(--faint); font-size: 16px; }
.pd-price i { font-style: normal; font-weight: 800; color: var(--ok); font-size: 15px; }
.pd-tax { font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 42px; font-size: 18px; font-weight: 700; color: var(--brand); }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 54px; height: 42px; text-align: center; border: 0; border-inline: 1px solid var(--line); font-weight: 700; }
.pd-buy { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.pd-buy .btn { flex: 1; min-width: 150px; }

.slabtab { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: var(--r); overflow: hidden; }
.slabtab th, .slabtab td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2); }
.slabtab th { background: var(--gold-50); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }
.slabtab tr:last-child td { border-bottom: 0; }
.slabtab tr.on td { background: var(--ok-50); font-weight: 700; }
.slabtab td b { color: var(--ink); }

.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.box + .box { margin-top: 14px; }
.box h3 { font-size: 14.5px; margin-bottom: 10px; }
.spec { display: grid; grid-template-columns: 132px 1fr; gap: 8px 14px; font-size: 13.3px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.usp { display: grid; gap: 9px; }
.usp li { display: flex; gap: 9px; font-size: 13.2px; align-items: flex-start; }
.usp svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------- wholesale */
.b2b-hero {
  background: linear-gradient(120deg, #14100a 0%, #4a3a17 55%, #9a6f2a 100%); color: #fff;
  border-radius: var(--r-lg); padding: clamp(24px, 5vw, 46px); position: relative; overflow: hidden; margin-top: 16px;
}
.b2b-hero > *:not(.b2b-hero-art) { position: relative; z-index: 2; }
.b2b-hero-art {
  position: absolute; right: 0; top: 0; height: 100%; width: 68%; object-fit: cover; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
  mask-image: linear-gradient(90deg, transparent, #000 42%);
}
.b2b-hero h1 { font-size: clamp(24px, 4vw, 40px); max-width: 18ch; }
.b2b-hero p { color: #f0e3c9; margin: 12px 0 20px; max-width: 58ch; }
.b2b-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.b2b-stats div b { display: block; font-size: 24px; }
.b2b-stats div span { font-size: 12px; color: #f0e3c9; }

.pad { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pad-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--gold-50); }
.pad-head h2 { font-size: 17px; color: var(--gold); }
.pad-head p { font-size: 12.5px; color: var(--ink-2); }
.pad-search { padding: 14px 18px; border-bottom: 1px solid var(--line-2); position: relative; }
.pad-rows { width: 100%; border-collapse: collapse; font-size: 13.3px; }
.pad-rows th { background: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 12px; text-align: left; }
.pad-rows td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.pad-rows .r-p { display: flex; gap: 10px; align-items: center; }
.pad-rows .r-p img { width: 42px; height: 42px; object-fit: contain; background: var(--bg); border-radius: 6px; }
.pad-rows .r-p b { display: block; font-size: 13px; }
.pad-rows .r-p span { font-size: 11.5px; color: var(--muted); }
.pad-rows input.qin { width: 76px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; text-align: center; font-weight: 700; }
.pad-rows .r-x { color: var(--faint); }
.pad-rows .r-x:hover { color: var(--warn); }
.pad-foot { padding: 16px 18px; background: var(--bg); border-top: 1px solid var(--line); }
.sum { display: grid; gap: 7px; font-size: 13.5px; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { border-top: 1px dashed var(--line); padding-top: 9px; margin-top: 4px; font-size: 17px; font-weight: 800; }
.sum .sv { color: var(--ok); font-weight: 700; }

.tier-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; position: relative;
}
.tier.on { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-50); }
.tier b.t-n { font-size: 15px; display: block; }
.tier .t-off { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1.1; margin: 6px 0; }
.tier .t-q { font-size: 12.5px; color: var(--muted); }
.tier ul { margin-top: 12px; display: grid; gap: 6px; }
.tier li { font-size: 12.5px; display: flex; gap: 7px; color: var(--ink-2); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field small { font-size: 11.5px; color: var(--muted); }
.field.err input, .field.err select { border-color: var(--warn); background: #fff5f5; }
.field .msg { font-size: 11.5px; color: var(--warn); display: none; }
.field.err .msg { display: block; }
.wide { grid-column: 1 / -1; }

/* --------------------------------------------------------------- cart etc */
.cart-layout { display: grid; grid-template-columns: 1fr 348px; gap: 20px; align-items: start; }
.citem { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.citem:last-child { border-bottom: 0; }
.citem img { width: 92px; height: 92px; object-fit: contain; background: var(--bg); border-radius: var(--r-sm); }
.citem .ci-n { font-size: 14px; font-weight: 600; }
.citem .ci-m { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.citem .ci-r { text-align: right; }
.citem .ci-r b { font-size: 16px; }
.citem .rm { font-size: 12px; color: var(--muted); margin-top: 8px; }
.citem .rm:hover { color: var(--warn); }
.side-sum { position: sticky; top: calc(var(--head-h) + 12px); }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }

.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.step.on { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.step i { width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 800; }
.step.on i { background: var(--brand); color: #fff; }

.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pay-opt + .pay-opt { margin-top: 9px; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-50); }
.pay-opt input { accent-color: var(--brand); margin-top: 3px; }
.pay-opt b { font-size: 13.5px; display: block; }
.pay-opt span { font-size: 12px; color: var(--muted); }

.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.order-card .oc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.oc-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.oc-thumbs img { width: 54px; height: 54px; object-fit: contain; background: var(--bg); border-radius: 6px; }

/* ------------------------------------------------------------------ misc */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  box-shadow: var(--sh-3); display: flex; gap: 9px; align-items: center; animation: pop .25s ease;
}
.toast.ok { background: #14532d; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }

/* Both FABs stack off one anchor so page-specific docks only move one value. */
:root { --fab-b: 18px; --fab-r: 18px; --fab-size: 54px; }
.wa-float {
  position: fixed; right: var(--fab-r); bottom: var(--fab-b); z-index: 70;
  width: var(--fab-size); height: var(--fab-size); border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--sh-3);
}
.wa-float:hover { transform: scale(1.06); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: #fff; border-top: 1px solid var(--line);
  padding: 9px 14px; display: none; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(15, 23, 42, .09);
}
.sticky-buy .sb-p b { font-size: 16px; }
.sticky-buy .btn { flex: 1; }


/* ------------------------------------------------------- mobile tab bar --- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid;
    grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px;
    font-size: 10.5px; font-weight: 600; color: var(--muted);
  }
  .tabbar a.on { color: var(--red); }
  .tabbar .tb-i { position: relative; display: block; line-height: 0; }
  .tabbar .badge {
    position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--red); color: #fff; border-radius: var(--r-pill); font-size: 10px;
    font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
  }
  body.has-tabbar { padding-bottom: 62px; }
  body.has-tabbar { --fab-b: 74px; }
}

/* --------------------------------------------- mobile sort / filter bar --- */
.list-actions { display: none; }
@media (max-width: 900px) {
  .list-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid;
    grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .1); padding-bottom: env(safe-area-inset-bottom);
  }
  .list-actions button {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px;
    font-size: 14px; font-weight: 700; color: var(--ink);
  }
  .list-actions button + button { border-left: 1px solid var(--line); }
  .list-actions .n { color: var(--red); }
  body.has-listbar { padding-bottom: 64px; }
  body.has-listbar { --fab-b: 76px; }
}

/* ---------------------------------------------------------------- footer */
.foot { background: var(--brand); color: #a9b4c6; margin-top: 30px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; padding: 40px 0 28px; }
.foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 13px; }
.foot li { padding: 2px 0; font-size: 13.3px; }
.foot a:hover { color: #fff; }
.foot .f-about p { font-size: 13.3px; margin: 12px 0; max-width: 38ch; }
.foot .logo-txt b { color: #fff; }
.foot .logo-txt span { color: #99a1ad; }
.f-contact li { display: flex; gap: 9px; align-items: flex-start; }
.f-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--cta); }
.foot-bot { border-top: 1px solid rgba(255, 255, 255, .09); padding: 15px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.3px; }
.pay-icons { display: flex; gap: 7px; flex-wrap: wrap; }
.pay-icons span { background: rgba(255, 255, 255, .1); border-radius: 3px; padding: 3px 8px; font-size: 11px; font-weight: 700; color: #dbe2ec; }

/* ------------------------------------------------------------ responsive */
/* between 900 and 1150 the eight category tabs no longer fit comfortably */
@media (max-width: 1150px) {
  .nav a { padding: 11px 9px; font-size: 12.8px; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* below the two-column breakpoint the circular strip, the drawer and the tab
     bar all list the departments already — a third copy is just noise */
  .hero-rail { display: none; }
  .promo3 { grid-template-columns: 1fr 1fr; }
  .promo3 .side-card:last-child { grid-column: 1 / -1; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .slider { aspect-ratio: 21 / 8; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-cards { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
/* inline two-column layouts used on wholesale / about / contact */
@media (max-width: 760px) {
  .promo3 { grid-template-columns: 1fr; }
  .promo3 .side-card:last-child { grid-column: auto; }
}

@media (max-width: 900px) {
  #applyGrid, #footGrid, .about-grid, .contact-grid { grid-template-columns: 1fr !important; }
  :root { --head-h: 62px; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; }
  .burger:hover { background: var(--brand-50); }
  .topbar, .nav, .head .search-row-desktop { display: none; }
  .cat-strip-band { display: block; }
  #site-head { top: 0; }
  .head-main { padding: 9px 0; gap: 10px; flex-wrap: wrap; }
  .head-main .search { order: 5; flex-basis: 100%; max-width: none; }
  .head-main .search input { padding-right: 14px; }
  .head-main .search .s-go { display: none; }
  .iact span { display: none; }
  .iact { padding: 7px; }
  .logo-txt { display: none; }
  .logo-img { height: 40px; }
  .shop-layout, .cart-layout, .pd { grid-template-columns: 1fr; }
  /* phones want name + price + buy button straight after the photo, with the
     assurance card below the fold */
  .pd-left { display: contents; }
  .pd-gallery { order: 1; }
  .pd-info { order: 2; }
  .pd-assure { order: 3; margin-top: 12px; }
  .filters { position: fixed; inset: auto 0 0 0; top: 0; z-index: 100; border-radius: 0; max-height: none; transform: translateY(100%); transition: .25s; }
  .filters.open { transform: none; }
  .f-toggle { display: inline-flex; }
  .shop-bar .f-toggle { display: none; }
  .shop-bar { padding: 9px 12px; }
  .shop-bar label { display: none !important; }
  .shop-bar #count { font-size: 12.5px; }
  .side-sum { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-slabs { grid-template-columns: repeat(2, 1fr); }
  .b2b-hero-art { display: none; }
  .hero-side { display: none; }
  .sticky-buy.show { display: flex; }
  body.pd-page { padding-bottom: 66px; }
  :root { --fab-b: 76px; --fab-r: 12px; --fab-size: 44px; }
  .wa-float svg { width: 22px; height: 22px; }
  /* denser chrome so more catalogue is visible on a phone screen */
  .logo-img { height: 34px; }
  .head-main { gap: 8px; padding: 8px 0; }
  .sect { padding: 18px 0; }
  .band { padding: 14px 0 18px; margin-bottom: 10px; }
  .sect-head { margin-bottom: 10px; }
  .sect-head h2 { font-size: 16px; }
  .sect-head a { padding: 7px 12px; font-size: 11px; }
  .crumb { padding: 6px 0; font-size: 12px; row-gap: 0; }
  .crumb a, .crumb span { display: inline-block; padding: 5px 0; }
  .box { padding: 14px; }
  .box + .box { margin-top: 10px; }
  /* rails peek the next card so the swipe is discoverable */
  .rail { grid-auto-columns: 44vw; gap: 10px; }
  .cat-strip { padding: 14px 2px 12px; }
  .cat-strip a { min-width: 68px; }
  .cat-strip span.cs-img { width: 60px; height: 60px; }
  .cat-strip b { font-size: 11px; max-width: 78px; }
  /* tap targets */
  .foot li { padding: 0; font-size: 13px; }
  .foot li a { display: inline-block; padding: 3px 0; line-height: 1.4; }
  .foot h4 { margin-bottom: 8px; }
  .f-contact li { padding: 4px 0; }
  .f-opt { padding: 9px 0; }
  .f-opt input { width: 18px; height: 18px; }
  .citem .rm, .pad-rows .r-x { min-height: 34px; display: inline-flex; align-items: center; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .sect { padding: 30px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-p { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcard { border-radius: 4px; }
  .pc-media { padding: 7px; }
  .pc-body { padding: 8px 9px 10px; gap: 4px; }
  .pc-brand { font-size: 10px; }
  .pc-name { font-size: 12.6px; min-height: 33px; }
  .pc-price b { font-size: 15.5px; }
  .pc-price del, .pc-price i { font-size: 11.5px; }
  .pc-b2b { font-size: 10px; padding: 2px 6px; }
  .pc-acts .btn { padding: 9px 6px; font-size: 11.5px; }
  .pc-bulk { padding: 0 8px; font-size: 11px; }
  .deal-strip { padding: 11px 13px; gap: 8px; }
  .deal-strip b { font-size: 14px; }
  .timer i { font-size: 12px; padding: 3px 6px; min-width: 26px; }
  .hero-side { grid-template-columns: 1fr; }
  /* Phones get a real banner card: photo on top, copy on a solid row beneath.
     The old gradient tray washed the product out and ate a third of the screen. */
  .slider { aspect-ratio: auto; min-height: 0; background: #fff; }
  .slides { position: relative; inset: auto; }
  .slide { height: auto; display: flex; flex-direction: column; }
  .slide img {
    position: static; width: 100%; height: auto; aspect-ratio: 2 / 1;
    object-fit: cover; object-position: 78% 42%;
  }
  .slide img { aspect-ratio: 2.2 / 1; }
  .slide-copy {
    position: static; inset: auto; max-width: none; background: #fff;
    display: grid; grid-template-columns: 1fr auto; align-items: start;
    gap: 4px 12px; padding: 12px 14px 22px;
  }
  .slide-copy .chip {
    grid-column: 1; justify-self: start; font-size: 9.5px; padding: 2px 8px; margin-bottom: 0;
  }
  .slide-copy h2 {
    grid-column: 1; font-size: 14.5px; line-height: 1.28; max-width: none; color: var(--ink); text-shadow: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .slide-copy p { display: none; }
  .slide-btns { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .slide-btns .btn { padding: 10px 14px; font-size: 12.5px; }
  .slide-btns .btn-ghost { display: none; }
  .sl-nav { display: none; }
  /* phones stack the copy under the picture, so the dots go back to the middle
     of the white copy row where nothing else sits */
  .dots { top: auto; bottom: 9px; right: auto; left: 50%; transform: translateX(-50%); }
  .dots i { width: 6px; height: 6px; background: rgba(22, 24, 29, .2); border-color: transparent; }
  .dots i.on { width: 16px; background: var(--ink); }
  .form-grid, .tier-cards, .foot-top { grid-template-columns: 1fr; }
  /* the B2B heroes were eating a whole phone screen before any content */
  .b2b-hero, .b2b-band { padding: 20px 18px; }
  .b2b-hero h1 { font-size: 24px; }
  .b2b-band h2 { font-size: 21px; }
  .b2b-hero p, .b2b-band p { font-size: 13.2px; margin: 8px 0 14px; }
  .b2b-hero .btn-lg, .b2b-band .btn-lg { padding: 11px 16px; font-size: 13px; }
  .b2b-stats { gap: 12px 20px; margin-top: 14px; }
  .b2b-stats div b { font-size: 19px; }
  .b2b-stats div span { font-size: 11px; }
  .slab { padding: 10px; }
  .slab b { font-size: 17px; }
  .citem { grid-template-columns: 72px 1fr; }
  .citem img { width: 72px; height: 72px; }
  .citem .ci-r { grid-column: 2; text-align: left; }
  .pad-rows { min-width: 560px; }
  #quickAdd { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  #quickAdd > * { flex-shrink: 0; }
  .pad-rows .r-p img { display: none; }
  .cat-hero-copy { background: linear-gradient(90deg, rgba(255, 255, 255, .96) 52%, rgba(255, 255, 255, .55)) !important; }
  .cat-hero-copy h1 { font-size: 19px !important; }
  .cat-hero-copy p { font-size: 12px !important; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pd-thumbs button { width: 62px; flex-shrink: 0; }
  .spec { grid-template-columns: 1fr; gap: 2px 0; }
  .spec dd { margin-bottom: 8px; }
}
@media (max-width: 400px) {
  .grid-p { gap: 7px; }
  .pc-name { font-size: 12.2px; }
  .cat-strip span.cs-img { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* ==========================================================================
   Native-app layer — everything below only shapes the phone experience.
   ========================================================================== */

/* MPA page transitions: content crossfades, chrome + dock stay put */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

@media (max-width: 900px) {
  * { -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: auto; }

  /* persistent chrome across page transitions */
  #site-head { view-transition-name: chrome; transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
  #site-head.head-hide { transform: translateY(-100%); }
  .tabbar, .sticky-buy, .list-actions { view-transition-name: dock; }
  .wa-float { view-transition-name: fab; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

  /* touch feedback */
  .pcard, .cat-card { transition: transform .12s ease; }
  .pcard:active, .cat-card:active { transform: scale(.975); }
  .btn:active { transform: scale(.96); }
  .cs-img { transition: transform .15s ease; }
  .cat-strip a:active .cs-img { transform: scale(.9); }
  .tabbar a:active .tb-i { transform: scale(.85); transition: transform .1s; }

  /* toasts float above the dock */
  .toast-wrap { bottom: 84px; left: 16px; right: 16px; transform: none; width: auto; }
  .toast { justify-content: center; }

  /* ------------------------------------------------------- bottom sheets */
  .sheet-bg {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 95;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .sheet-bg.open { opacity: 1; pointer-events: auto; }
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff;
    border-radius: 16px 16px 0 0; transform: translateY(105%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    max-height: 72vh; overflow-y: auto; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .sheet.open { transform: none; }
  .sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 4px; }
  .sheet h4 { font-size: 15px; padding: 8px 18px 12px; border-bottom: 1px solid var(--line-2); }
  .sheet .s-opt {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 15px 18px; font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--line-2);
  }
  .sheet .s-opt.on { color: var(--red); }
  .sheet .s-opt.on::after { content: "\2713"; margin-left: auto; font-weight: 800; }

  /* the filter panel becomes a bottom sheet too */
  .filters {
    top: auto; max-height: 86vh; border-radius: 16px 16px 0 0; z-index: 100;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .filters::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 2px; }

  /* --------------------------------------------------- product carousel */
  .pd-gallery { display: none !important; }
  .pd-carousel { display: block; order: 1; position: relative; margin: 0 -16px; width: 100vw; max-width: 100vw; background: #fff; overflow: hidden; }
  .pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pd-track::-webkit-scrollbar { display: none; }
  .pd-slide { position: relative; min-width: 100%; scroll-snap-align: center; aspect-ratio: 1; }
  .pd-slide img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; mix-blend-mode: multiply; }
  .pd-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
  .pd-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(15, 23, 42, .25); transition: .2s; }
  .pd-dots i.on { width: 18px; background: var(--red); }
  .pd-info { order: 2; }
  .pd-assure { order: 3; }

  /* -------------------------------------------------------- home density */
  .trust-grid {
    display: flex; grid-template-columns: none; overflow-x: auto; gap: 8px;
    padding: 10px 0; scrollbar-width: none;
  }
  .trust-grid::-webkit-scrollbar { display: none; }
  .trust-item { flex: 0 0 auto; background: var(--bg); border-radius: 8px; padding: 8px 12px; }
  .trust-item .ti-ico { width: 30px; height: 30px; }
  .trust-item b { font-size: 12px; }
  .trust-item span { font-size: 10.5px; }

  #brandGrid { display: flex !important; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  #brandGrid::-webkit-scrollbar { display: none; }
  #brandGrid .cat-card { flex: 0 0 auto; min-width: 128px; }

  .side-card { padding: 14px; }
  .side-card h3 { font-size: 15px; }
  .side-card p { font-size: 12px; margin: 5px 0 12px; }

  /* checkout: the sticky bar owns the CTA */
  #placeBtn { display: none; }
  .steps { gap: 6px; }
  .step { padding: 6px 11px; font-size: 12px; }
}

@media (max-width: 620px) {
  /* category grid: compact 3-up tiles, tagline dropped */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card .cc-img { aspect-ratio: 1; }
  .cat-card .cc-body { padding: 7px 8px 9px; }
  .cat-card b { font-size: 11.5px; line-height: 1.25; }
  .cat-card .cc-body > span:not(.cc-n) { display: none; }
  .cat-card .cc-n { font-size: 10px; margin-top: 2px; }
  .foot-top { gap: 16px; padding: 24px 0 16px; }
}

/* ==========================================================================
   AK Assistant — FAB, panel, chat bubbles
   ========================================================================== */
.ai-fab {
  position: fixed; right: var(--fab-r); bottom: calc(var(--fab-b) + var(--fab-size) + 12px);
  z-index: 70; width: var(--fab-size); height: var(--fab-size); border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-3); transition: transform .16s ease, opacity .16s;
}
.ai-fab:hover { transform: scale(1.06); }
.ai-fab.hide-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.ai-fab .ai-dot {
  position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--cta); border: 2px solid #fff;
}

.ai-bg {
  position: fixed; inset: 0; z-index: 98; background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ai-bg.open { opacity: 1; pointer-events: auto; }

.ai-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 99; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px)); background: #fff; border-radius: 14px;
  box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none;
  transition: opacity .2s, transform .22s cubic-bezier(.4, 0, .2, 1);
}
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.ai-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--brand); color: #fff; flex-shrink: 0;
}
.ai-id { display: flex; align-items: center; gap: 10px; }
.ai-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 12.5px; letter-spacing: -.02em;
}
.ai-id b { display: block; font-size: 14.5px; }
.ai-id span span { font-size: 11px; color: #a8b6cc; }
.ai-x { color: #fff; font-size: 17px; width: 32px; height: 32px; border-radius: 50%; }
.ai-x:hover { background: rgba(255, 255, 255, .12); }

.ai-log { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg); display: grid; gap: 10px; align-content: start; }

.cb-msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; font-size: 13.6px; line-height: 1.5; }
.cb-bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.cb-you { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.cb-msg b { font-weight: 800; }

.cb-typing { display: flex; gap: 4px; align-items: center; padding: 13px; }
.cb-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: cbBlink 1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; }
.cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbBlink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.cb-prods { display: grid; gap: 6px; justify-self: start; max-width: 92%; }
.cb-prod {
  display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; transition: .14s;
}
.cb-prod:hover { border-color: var(--brand); box-shadow: var(--sh-1); }
.cb-prod img { width: 42px; height: 42px; object-fit: contain; background: var(--bg); border-radius: 6px; flex-shrink: 0; }
.cb-prod b { display: block; font-size: 12.8px; line-height: 1.3; }
.cb-prod .cb-p { font-size: 11.5px; color: var(--muted); }

.cb-links { display: flex; gap: 7px; flex-wrap: wrap; justify-self: start; }
.cb-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-self: start; }
.cb-chips button {
  font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--brand-100); color: var(--brand);
}
.cb-chips button:hover { background: var(--brand-50); }

.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.ai-form input {
  flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14px; background: var(--bg);
}
.ai-form input:focus { outline: none; border-color: var(--brand); background: #fff; }
.ai-form button {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.ai-form button:hover { background: var(--brand-700); }

@media (max-width: 900px) {
  /* full-height bottom sheet, same as the sort/filter sheets */
  .ai-panel {
    right: 0; left: 0; bottom: 0; width: 100%; height: 88vh; border-radius: 16px 16px 0 0;
    transform: translateY(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .ai-panel.open { transform: none; }
  .ai-form { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cb-msg { max-width: 82%; }
}


/* ---------------------------------------------------- footer "We accept" --- */
.pay-band {
  display: grid; gap: 10px; justify-items: center; text-align: center;
  padding: 18px 0 16px; border-top: 1px solid rgba(255, 255, 255, .09);
}
.pay-title {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.pay-note { font-size: 11.5px; color: #7f8ea6; }

.pay-marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* the track holds the marks twice, so -50% lands exactly on the seam */
.pay-track { display: flex; gap: 10px; width: max-content; animation: payScroll 26s linear infinite; }
.pay-marquee:hover .pay-track { animation-play-state: paused; }
@keyframes payScroll { to { transform: translateX(-50%); } }

.pay-mark {
  display: grid; place-items: center; height: 36px; min-width: 62px; padding: 0 12px; flex-shrink: 0;
  background: #fff; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.pay-mark img { width: auto; display: block; }

.f-dev { color: #7f8ea6; }
.f-dev a { color: #cfd8e6; font-weight: 700; }
.f-dev a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 620px) {
  .pay-band { padding: 14px 0 12px; gap: 8px; }
  .pay-mark { height: 32px; min-width: 56px; padding: 0 10px; }
  .pay-mark img { transform: scale(.9); }
  .pay-note { font-size: 11px; }
  .foot-bot { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ==========================================================================
   Store gallery
   ========================================================================== */
.gal-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; }
.gal-hero img { width: 100%; height: clamp(190px, 30vw, 340px); object-fit: cover; object-position: center 42%; }
.gal-hero-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 8px; padding: 0 clamp(18px, 5%, 48px);
  background: linear-gradient(90deg, rgba(15, 28, 51, .92) 42%, rgba(15, 28, 51, .35));
  color: #fff;
}
.gal-hero-copy h1 { font-size: clamp(22px, 3.4vw, 34px); }
.gal-hero-copy p { font-size: 13.5px; color: #cbd5e6; max-width: 44ch; }
.gal-hero-copy .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; }

.gal-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.gal-filters::-webkit-scrollbar { display: none; }
.gal-filters button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.gal-filters button i { font-style: normal; font-size: 11px; color: var(--faint); }
.gal-filters button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.gal-filters button.on i { color: #9fb0cc; }

/* columns give a masonry feel without measuring anything in JS */
.gal-grid { columns: 3; column-gap: 12px; padding-bottom: 8px; }
.gal-item {
  break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: var(--r);
  overflow: hidden; background: #fff; box-shadow: var(--sh-1); cursor: zoom-in;
}
.gal-item img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff;
  font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .2s;
  background: linear-gradient(0deg, rgba(15, 28, 51, .88), rgba(15, 28, 51, 0));
}
.gal-item:hover figcaption, .gal-item:focus-visible figcaption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(9, 14, 24, .95);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1100px, 94vw); }
.lb-fig img { max-width: 100%; max-height: 78vh; border-radius: var(--r); display: block; }
.lb-fig figcaption { display: flex; gap: 12px; align-items: center; color: #dfe6f2; font-size: 13.5px; }
.lb-fig figcaption i { font-style: normal; color: #8a97ad; font-size: 12.5px; }
.lb-x, .lb-nav {
  position: absolute; display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); border-radius: 50%; backdrop-filter: blur(4px);
}
.lb-x { top: 16px; right: 16px; width: 42px; height: 42px; font-size: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .24); }

/* about page photo strip */
.about-shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.about-shots a { border-radius: var(--r); overflow: hidden; display: block; box-shadow: var(--sh-1); }
.about-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.about-shots a:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .gal-grid { columns: 2; column-gap: 8px; }
  .gal-item { margin-bottom: 8px; }
  .gal-item figcaption { opacity: 1; font-size: 11.5px; padding: 18px 9px 8px; }
  .about-shots { grid-template-columns: repeat(2, 1fr); }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-fig img { max-height: 70vh; }
  .gal-filters button { padding: 8px 13px; font-size: 12.5px; }
}

/* Values the client has not sent yet are printed in the warning colour so a
   stub is never mistaken for a real trade detail. Delete this rule once
   assets/js/app.js has the real SITE object. */
.note-pending { color: var(--gold); }


/* ------------------------------------------------------------ brand strip */
/* Logos on white tiles: half the marks are dark artwork and the band behind
   them is near-black, so a tile is the only way to show all eight honestly. */
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 14px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 10px; transition: .16s;
}
.brand-card:hover { border-color: var(--cta); }
.brand-card .bc-mark { height: 46px; display: grid; place-items: center; width: 100%; }
.brand-card .bc-mark img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; }
.brand-card .bc-mark b { font-size: 15px; color: var(--ink); }
.brand-card .bc-n {
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: -.01em;
}
.band-dark .brand-card { background: #fff; border-color: #3a4049; }


/* ------------------------------------------------------------ wide banner */
/* The photograph is a busy shot of a wire rack, so dark type on it was
   unreadable — the copy is reversed out over a gradient that runs from solid
   near-black on the left to clear on the right, which is where the shelves are. */
.wide-banner {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.wide-banner img {
  width: 100%; aspect-ratio: 1800 / 900; max-height: 320px; object-fit: cover; display: block;
}
.wide-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 19, .93) 0%, rgba(13, 15, 19, .82) 34%,
              rgba(13, 15, 19, .45) 58%, rgba(13, 15, 19, .05) 80%);
}
.wb-copy {
  position: absolute; left: clamp(18px, 5%, 52px); top: 50%; transform: translateY(-50%);
  z-index: 2; max-width: min(52%, 460px); color: #fff;
}
.wb-copy b { display: block; font-size: clamp(18px, 2.7vw, 30px); letter-spacing: -.02em; }
.wb-copy em {
  display: block; font-style: normal; margin-top: 8px; font-size: 13.5px;
  line-height: 1.5; color: #cfd3da;
}
.wb-cta {
  display: inline-block; margin-top: 14px; background: var(--cta); color: #16181d;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 800; font-size: 13.5px;
}
.wide-banner:hover .wb-cta { background: var(--cta-600); }
@media (max-width: 620px) {
  .wide-banner img { aspect-ratio: 3 / 2; max-height: 260px; }
  .wide-banner::after {
    background: linear-gradient(180deg, rgba(13, 15, 19, .55) 0%, rgba(13, 15, 19, .92) 100%);
  }
  .wb-copy { top: auto; bottom: 16px; transform: none; max-width: calc(100% - 32px); }
  .wb-copy em { display: none; }
}


/* =============================================================== trade ==
   Accounts, approval state and the pages that go with them. Ported from
   the sister site and retuned to this skin: sharp corners, hairline
   borders, no shadows. */
/* Entry points that only make sense once an account is approved. `is-trade` is
   set by syncAccountChrome() after the server confirms the role, so a stale
   value in storage cannot reveal the pad on its own. */
.trade-only { display: none; }
body.is-trade .trade-only { display: flex; }

.topbar-trade {
  background: var(--cta-50); color: var(--gold); font-weight: 700;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; margin-right: 4px;
}

.auth-page {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 18px; align-items: start; margin-bottom: 30px;
}
.auth-narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }

.auth-card { padding: 20px 22px 24px; }
.auth-head h1 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.01em; }
.auth-head p { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; max-width: 52ch; line-height: 1.55; }

.fs { border: 0; padding: 0; margin: 20px 0 0; }
.fs legend {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 0 0 9px;
}

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.f { display: block; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f > span {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink);
  margin-bottom: 5px;
}
.f > span i { font-style: normal; font-weight: 500; color: var(--muted); }

.f input, .f select, .f textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 14.5px; background: #fff;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.f textarea { resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 28, 51, .1);
}
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--red); background: #fff8f8; }

.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.err { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 5px; }
.err:empty { display: none; }

.pw { position: relative; }
.pw input { padding-right: 62px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--brand); font: inherit;
  font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 6px 8px;
}

.auth-note {
  background: #fff3f3; border: 1px solid #f3c9c9; color: #8f1d1d;
  padding: 11px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  margin-bottom: 14px;
}

/* Role picker — a real choice, so it gets more room than a radio in a row */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.role-opt { display: block; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-box {
  display: block; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 13px 14px; height: 100%; transition: border-color .15s, background .15s;
}
.role-box b { display: block; font-size: 15px; }
.role-line { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.role-detail { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.role-opt input:checked + .role-box { border-color: var(--brand); background: var(--bg); }
.role-opt input:focus-visible + .role-box { box-shadow: 0 0 0 3px rgba(15, 28, 51, .18); }

.auth-alt { font-size: 13.5px; color: var(--ink-2); text-align: center; margin-top: 14px; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.auth-alt-quiet { font-size: 12.5px; color: var(--muted); margin-top: 9px; }

.auth-aside { display: grid; gap: 14px; }
.auth-why, .auth-help { padding: 17px 18px; }
.auth-why h2, .auth-help h2 { font-size: 15px; }
.auth-why ul { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.auth-why li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.auth-why li svg { flex: none; color: var(--ok); margin-top: 2px; }
.auth-help p { font-size: 13px; color: var(--ink-2); margin: 7px 0 12px; line-height: 1.5; }
.auth-help .btn + .btn { margin-top: 8px; }
.auth-plain { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 7px 0 12px; }

/* Confirmation after the application goes in */
.auth-done { text-align: center; padding: 26px 6px 12px; }
.auth-tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok-50);
  color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px;
}
.auth-done h1 { font-size: 21px; }
.auth-done p { font-size: 13.5px; color: var(--ink-2); margin: 9px auto 0; max-width: 46ch; line-height: 1.55; }
.auth-next { color: var(--muted) !important; font-size: 13px !important; }
.auth-done-acts { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ------------------------------------------------------------- account -- */
.acct-loading { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; }

.acct-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 16px;
}
.acct-head h1 { font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.01em; }
.acct-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.acct-state { border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; border: 1px solid; }
.acct-state b { display: block; font-size: 15.5px; }
.acct-state p { font-size: 13.5px; margin-top: 7px; line-height: 1.55; max-width: 62ch; }
.acct-state-acts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 13px; }
.acct-state .btn { margin-top: 12px; }
.acct-state-acts .btn { margin-top: 0; }

.acct-state-yes { background: var(--ok-50); border-color: #b7dfc2; color: #17502b; }
.acct-state-wait { background: #fff8e8; border-color: #f0d9a8; color: #6b4a00; }
.acct-state-no { background: #fff3f3; border-color: #f3c9c9; color: #8f1d1d; }
.acct-state a { color: inherit; text-decoration: underline; }
.acct-state .btn { text-decoration: none; }

.acct-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acct-box { padding: 18px 20px; }
.acct-box h2 { font-size: 15px; margin-bottom: 4px; }

.acct-dl { margin-top: 10px; }
.acct-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2);
}
.acct-row:last-child { border-bottom: 0; }
.acct-row dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.acct-row dd { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.acct-foot { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.acct-foot a { color: var(--brand); font-weight: 600; }

/* Nudge for retail visitors on product cards — never a number, only the offer */
.pc-b2b-cta { color: var(--brand) !important; font-weight: 700 !important; }

@media (max-width: 900px) {
  .auth-page, .auth-narrow { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
  .acct-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .auth-card { padding: 16px 15px 20px; border-radius: 0; margin-inline: -14px; }
  .fgrid, .role-pick { grid-template-columns: 1fr; }
  .acct-row { grid-template-columns: 1fr; gap: 2px; }
  .acct-head { flex-direction: column; }
  .acct-head .btn { align-self: stretch; }
  /* On a phone the form is the page — the sticky header eating 130px of it
     leaves almost nothing, so it scrolls away here. */
  .auth-page .auth-card { scroll-margin-top: 80px; }
}

/* Trade panel on the product page. Replaces the old public slab table — it
   describes what an account is worth without ever printing a dealer number. */
.pd-trade {
  border: 1px solid var(--gold-100); background: var(--gold-50);
  border-radius: var(--r); padding: 15px 16px;
}
.pd-trade b { display: block; font-size: 14.5px; color: var(--gold); }
.pd-trade p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 6px 0 12px; }
.pd-trade .btn + .btn { margin-left: 8px; }
.pd-trade-on { border-color: #b7dfc2; background: var(--ok-50); }
.pd-trade-on b { color: #17502b; }

/* ========================================================= counter admin ==
   The dashboard the shop owner works from, built phone-first: cards rather
   than a table, one decision per card, tap targets that survive a thumb. It
   inherits the site's flat skin so it does not read as a bolted-on tool. */

.ad-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding: 18px 0 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.ad-head h1 { font-size: clamp(20px, 3vw, 26px); text-transform: uppercase; letter-spacing: .03em; }
.ad-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.ad-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.ad-stat {
  background: #fff; border: 1px solid var(--line); padding: 12px 10px; border-radius: var(--r);
}
.ad-stat b {
  display: block; font-family: var(--mono); font-size: 20px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.ad-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
/* A queue with something in it is the one number worth colouring. */
.ad-stat-on { border-color: var(--red); }
.ad-stat-on b { color: var(--red); }

.ad-tabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs button {
  padding: 10px 15px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  color: var(--ink-2); border-bottom: 3px solid transparent; background: none;
}
.ad-tabs button.on { color: var(--ink); border-bottom-color: var(--cta); }
.ad-tabs button i {
  font-style: normal; background: var(--red); color: #fff; border-radius: 9px;
  padding: 1px 7px; font-size: 11px; margin-left: 4px;
}

.ad-list { display: grid; gap: 12px; }
.ad-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ad-card > header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: var(--brand-50); border-bottom: 1px solid var(--line);
}
.ad-card > header b { font-size: 15px; }
.ad-role { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: -.01em; }

.ad-card dl { display: grid; grid-template-columns: 118px 1fr; margin: 0; }
.ad-card dt {
  padding: 9px 14px; font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line-2);
}
.ad-card dd {
  margin: 0; padding: 9px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line-2);
}
.ad-card dl > :nth-last-child(-n+2) { border-bottom: 0; }
.ad-ok { color: var(--ok); font-weight: 700; font-size: 12px; }
.ad-bad { color: var(--red); font-weight: 700; font-size: 12px; }

.ad-act {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: var(--cta-50); border-top: 1px solid var(--line);
}
.ad-act label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ad-act select, .ad-act input {
  padding: 9px 10px; border: 1px solid var(--line-hard); background: #fff;
  border-radius: var(--r-sm); font-size: 14px; min-height: 40px;
}
.ad-act input[type="number"] { width: 86px; font-family: var(--mono); }
.ad-act .muted { font-size: 11.5px; }

.ad-empty { padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 780px) {
  .ad-stats { grid-template-columns: repeat(3, 1fr); }
  .ad-stats .ad-stat:nth-child(4) { grid-column: span 1; }
  .ad-card dl { grid-template-columns: 96px 1fr; }
  /* One decision per row on a phone: a half-width Approve is a mis-tap away
     from Reject. */
  .ad-act { display: grid; grid-template-columns: 1fr; }
  .ad-act .btn { width: 100%; min-height: 46px; }
  .ad-act label { justify-content: space-between; }
}
@media (max-width: 460px) {
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  /* Five stats over two columns leaves the last one orphaned half-width —
     give the month's takings the whole row instead. */
  .ad-stats .ad-stat:last-child { grid-column: 1 / -1; }
  /* The strip does scroll, but a tab hidden past the edge is a tab the owner
     never finds. Tighten it until all five fit a 360px phone. */
  .ad-tabs button { padding: 9px 8px; font-size: 12px; letter-spacing: 0; }
}
