/* ==========================================================================
   Chase Hardware — Trade Portal
   Design system built pixel-perfect from Figma
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --c-brand:        #00bbf1;   /* logo accent */
  --c-accent:       #0088cc;   /* primary blue (links, search, CTAs) */
  --c-accent-d:     #0077b5;
  --c-accent-l:     #4fb3e6;   /* light accent (on dark) */

  /* Ink / neutrals */
  --c-ink:          #16181c;   /* primary text + dark buttons */
  --c-ink-2:        #6b7077;   /* secondary text */
  --c-ink-3:        #9ca0a6;   /* muted / placeholder */
  --c-line:         #e7e7e3;   /* hairline borders */
  --c-line-2:       #d7d7d2;   /* stronger border (secondary btn) */
  --c-surface:      #f4f4f2;   /* app background / inputs */
  --c-white:        #ffffff;

  /* Dark panels */
  --c-night:        #05131c;   /* darkest navy (header utility, footer) */
  --c-night-2:      #16202e;   /* email signup band */
  --c-night-3:      #21293c;   /* avatar / chips */
  --c-night-line:   #1c2738;
  --c-night-text:   #9aa4b2;   /* muted text on dark */
  --c-night-text-2: #c4cbd4;
  --c-night-text-3: #5c6678;

  /* Status */
  --c-success-bg:   #eaf6ef;
  --c-success:      #1f7a45;
  --c-success-dot:  #22a45d;
  --c-error:        #b3261e;   /* already the theme's red elsewhere */
  --c-error-bg:     #fdecea;

  /* Accent tints */
  --c-accent-tint:  #e6f3fa;

  /* Radii */
  --r-xs: 6px;  --r-sm: 8px;  --r-md: 10px;  --r-lg: 12px;  --r-xl: 14px;  --r-pill: 999px;

  /* Shadows */
  --sh-card:  0 1px 2px rgba(16,24,40,.04);
  --sh-pop:   0 18px 50px -12px rgba(5,19,28,.28);
  --sh-soft:  0 10px 30px -14px rgba(16,24,40,.20);

  /* Layout */
  --maxw: 1440px;
  --gutter: 40px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Entrance timing. One duration for every reveal on the site — was .7s,
     which felt sluggish once several fired in sequence down a page. */
  --anim-dur: .32s;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.chase {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; }
.px { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1; border: 0; border-radius: var(--r-lg);
  padding: 16px 22px; transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap; cursor: pointer; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.btn--blue { background: var(--c-accent); color: #fff; border-radius: var(--r-md); }
.btn--blue:hover { background: var(--c-accent-d); box-shadow: 0 10px 24px -12px rgba(0,136,204,.7); }
.btn--ghost { background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-line-2); }
.btn--ghost:hover { border-color: var(--c-ink); background: #fff; }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--r-md); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--full { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; border-radius: var(--r-md); }

/* ---- Form fields -------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-weight: 600; font-size: 13px; color: var(--c-ink); }
.input, input[type=text].input, input[type=email].input, input[type=password].input,
input[type=tel].input, select.input, textarea.input {
  width: 100%; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 15px 16px; font-size: 15px; color: var(--c-ink);
  font-family: inherit; transition: border-color .2s, background .2s, box-shadow .2s; }
.input::placeholder { color: var(--c-ink-3); }
.input:focus { outline: 0; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(0,136,204,.10); }

/* ---- Pills / badges ----------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 11.5px; padding: 5px 10px; }
.pill--stock { background: var(--c-success-bg); color: var(--c-success); }
.pill--stock .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success-dot);
  box-shadow: 0 0 0 0 rgba(34,164,93,.5); animation: pulse 2.4s infinite; }
.pill--brand { background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,164,93,.45); } 70% { box-shadow: 0 0 0 6px rgba(34,164,93,0); } 100% { box-shadow: 0 0 0 0 rgba(34,164,93,0); } }

.tag-trade { display: inline-flex; background: rgba(0,136,204,.16); border: 1px solid rgba(0,136,204,.45);
  color: var(--c-accent-l); font-weight: 600; font-size: 12px; letter-spacing: 1.4px;
  padding: 8px 14px; border-radius: var(--r-pill); }

/* ==========================================================================
   ENTRANCE ANIMATIONS

   One motion, used everywhere: a quick opacity fade with no movement.

   The templates still carry data-anim="up" / "left" / "right" / "down" /
   "scale" from the original build. Those directions are deliberately NOT
   honoured any more — elements sliding in from four different directions read
   as busy and, on a long page, faintly nauseating. Collapsing them here rather
   than editing 111 template attributes keeps the change in one place and makes
   it trivial to revisit.

   To reintroduce a subtle lift, add to the [data-anim] rule below:
       transform: translateY(6px);
   and to .is-in:  transform: none;  plus transform to the transition.
   Anything past ~8px starts to feel like movement again.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* No will-change: the old rule hinted `transform, opacity` on 100+ elements,
     which costs real memory on mobile. A plain opacity fade doesn't need the
     hint — browsers composite it cheaply either way. */
  [data-anim] { opacity: 0; }

  [data-anim].is-in {
    opacity: 1;
    transition: opacity var(--anim-dur) var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
}
/* Reveal grouping — children stagger handled via inline --d in JS */

@keyframes floatIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; }
.site-header.is-stuck .header-row { box-shadow: var(--sh-soft); }

.utility-bar { background: var(--c-night); color: var(--c-night-text); font-size: 12px; }
.utility-bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px var(--gutter); }
.utility-bar a:hover { color: #fff; }
.utility-bar .u-links { display: flex; gap: 18px; }
.utility-bar .u-mid { color: var(--c-night-text); }

.header-row { background: #fff; transition: box-shadow .3s; }
.header-row .wrap { display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); }
.brand-logo { display: block; width: 138px; flex-shrink: 0; }
.brand-logo svg, .brand-logo img { width: 100%; height: auto; display: block; }

.header-search { flex: 1; display: flex; align-items: center; gap: 12px; height: 52px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 0 6px 0 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.header-search:focus-within { border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(0,136,204,.08); }
.header-search svg { width: 19px; height: 19px; color: var(--c-ink-3); flex-shrink: 0; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--c-ink); padding: 0; }
.header-search input::placeholder { color: var(--c-ink-3); }
.header-search input:focus { outline: 0; }
.header-search .search-go { background: var(--c-accent); color: #fff; border: 0; border-radius: var(--r-sm);
  padding: 11px 22px; font-size: 14px; font-weight: 600; transition: background .2s; }
.header-search .search-go:hover { background: var(--c-accent-d); }

.acct-chip { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.acct-chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--c-night-3); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.acct-chip > span:last-child { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.acct-chip .a-name { display: block; font-size: 12.5px; font-weight: 600; color: var(--c-ink); }
.acct-chip .a-sub { display: block; font-size: 11px; color: var(--c-ink-2); }
.acct-chip:hover .a-name { color: var(--c-accent); }

.basket-btn { display: flex; align-items: center; gap: 10px; background: var(--c-ink); color: #fff;
  border-radius: var(--r-pill); padding: 12px 18px; font-size: 14px; font-weight: 600; flex-shrink: 0;
  transition: transform .2s var(--ease), background .2s; }
.basket-btn:hover { background: #000; transform: translateY(-1px); }
.basket-btn svg { width: 16px; height: 16px; }
.basket-btn .count { background: var(--c-accent); color: #fff; border-radius: var(--r-pill);
  min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }

/* Primary nav */
.main-nav { background: #fff; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.main-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a { display: block; padding: 17px 0 14px; font-size: 13.5px; font-weight: 500; color: var(--c-ink);
  position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease); border-radius: 2px; }
.nav-list > li > a:hover::after, .nav-list > li.is-active > a::after { transform: scaleX(1); }
.nav-list > li.is-active > a { color: var(--c-accent); font-weight: 600; }
.nav-secondary { display: flex; gap: 26px; }
.nav-secondary a { font-size: 13.5px; font-weight: 500; color: var(--c-ink-2); }
.nav-secondary a:hover { color: var(--c-ink); }

/* Mega menu */
.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line);
  box-shadow: var(--sh-pop); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; z-index: 50; }
.main-nav { position: relative; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
/* Shop mega — departments rail (left) + subcategory pane (right) */
.mega--shop .wrap { display: grid; grid-template-columns: 252px 1fr; gap: 0; padding: 0; min-height: 360px; align-items: stretch; }
.mega-rail { border-right: 1px solid var(--c-line); padding: 16px; display: flex; flex-direction: column; gap: 2px; background: #fcfcfb; }
.mega-rail__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--c-ink); transition: background .15s, color .15s; }
.mega-rail__item svg { width: 16px; height: 16px; opacity: .4; transition: opacity .15s, transform .15s; }
.mega-rail__item:hover, .mega-rail__item.is-active { background: var(--c-accent-tint); color: var(--c-accent); }
.mega-rail__item.is-active svg { opacity: 1; transform: translateX(2px); }
.mega-rail__all { margin-top: auto; padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--c-accent); border-top: 1px solid var(--c-line); }
.mega-content { position: relative; padding: 28px 32px; display: grid; grid-template-columns: 1fr 248px; gap: 28px; }
.mega-pane { display: none; grid-column: 1; }
.mega-pane.is-active { display: block; animation: floatIn .16s var(--ease-out); }
.mega-pane__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.mega-pane__head h4 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.mega-pane__head a { font-size: 13px; font-weight: 600; color: var(--c-accent); white-space: nowrap; }
.mega-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 24px; }
.mega-sub-grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--c-ink); transition: color .15s, padding .15s; }
.mega-sub-grid a span { font-size: 11px; color: var(--c-ink-3); }
.mega-sub-grid a:hover { color: var(--c-accent); padding-left: 4px; }
.mega-sub-grid a:hover span { color: var(--c-accent); }
/* Three-level departments: subcategory list, hover one to show its children */
.mega-flyout { display: grid; grid-template-columns: 236px 1fr; gap: 0 24px; }
.mega-flyout__subs { display: flex; flex-direction: column; gap: 1px; border-right: 1px solid var(--c-line); padding-right: 12px; }
.mega-flyout__sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--c-ink); transition: background .15s, color .15s; }
.mega-flyout__sub svg { width: 14px; height: 14px; flex: none; opacity: .35; transition: opacity .15s, transform .15s; }
.mega-flyout__sub:hover, .mega-flyout__sub.is-active { background: var(--c-accent-tint); color: var(--c-accent); }
.mega-flyout__sub.is-active svg { opacity: 1; transform: translateX(2px); }
.mega-flyout__kids { display: none; grid-template-columns: repeat(2, 1fr); gap: 0 24px; align-content: start; }
.mega-flyout__kids.is-active { display: grid; animation: floatIn .16s var(--ease-out); }
.mega-flyout__kids a { padding: 7px 0; font-size: 13.5px; line-height: 1.35; color: var(--c-ink); transition: color .15s, padding .15s; }
.mega-flyout__kids a:hover { color: var(--c-accent); padding-left: 4px; }
.mega-feature { grid-column: 2; align-self: start; background: var(--c-night); border-radius: var(--r-lg); padding: 22px; color: #fff; }
.mega-feature h5 { font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin: 12px 0 6px; line-height: 1.2; }
.mega-feature p { font-size: 12.5px; color: var(--c-night-text); margin-bottom: 14px; line-height: 1.5; }

/* Burger button (mobile only) */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-md); color: var(--c-ink); flex-shrink: 0;
  transition: background .2s, border-color .2s; }
.nav-toggle:hover { background: var(--c-surface); }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(5,19,28,.45); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s; z-index: 90; }
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; left: 0; height: 100%; width: 308px; max-width: 86vw; background: #fff;
  z-index: 100; transform: translateX(-100%); transition: transform .34s var(--ease-out); display: flex; flex-direction: column;
  box-shadow: var(--sh-pop); overflow-y: auto; }
.mobile-drawer.is-open { transform: none; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; background: #fff; }
.mobile-drawer__head .brand-logo { width: 120px; }
.drawer-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--c-line); background: #fff; border-radius: 50%; color: var(--c-ink); }
.drawer-close svg { width: 18px; height: 18px; }
.mobile-drawer__body { padding: 8px 12px 24px; }
.mobile-drawer__body h4 { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; padding: 18px 12px 6px; }
.mobile-drawer__body > a { display: block; padding: 12px; border-radius: var(--r-md); font-size: 15px; font-weight: 500; color: var(--c-ink); transition: background .15s; }
.mobile-drawer__body > a:hover, .mobile-drawer__body > a:active { background: var(--c-surface); color: var(--c-accent); }
.mobile-drawer__support { margin: 18px 12px 0; padding: 16px; background: var(--c-surface); border-radius: var(--r-lg); }
.mobile-drawer__support span { font-size: 12px; color: var(--c-ink-2); }
.mobile-drawer__support .phone { display: block; font-size: 20px; font-weight: 800; color: var(--c-accent); letter-spacing: -.3px; margin-top: 2px; }
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 468px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,19,28,.96) 0%, rgba(5,19,28,.62) 55%, rgba(5,19,28,.12) 100%); }
.hero__inner { position: relative; padding: 56px 0 56px 64px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__tag { display: inline-flex; background: rgba(0,136,204,.18); color: var(--c-accent-l); font-weight: 700;
  font-size: 11px; letter-spacing: 1px; padding: 6px 12px; border-radius: var(--r-pill); }
.hero h1 { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; max-width: 560px; margin: 18px 0 0; }
.hero p.sub { color: var(--c-night-text); font-size: 16px; line-height: 1.5; max-width: 520px; margin: 18px 0 0; }
.hero .hero__cta { display: flex; gap: 12px; margin-top: 26px; }

/* ---- Hero slider ---- */
.hero--slider { display: block; overflow: visible; position: relative; }
.hero__slides { position: relative; min-height: 468px; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; min-height: 468px; display: flex; align-items: center; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s; }
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__slide .hero__inner { padding: 56px 0 80px 64px; }
/* The tag, heading, body and buttons used to rise in on four separate delays
   (.15s → .45s), so the slide was still assembling itself most of a second
   after it appeared — and it replayed on every rotation. One fade instead. */
.hero__slide.is-active .hero__inner { animation: heroIn .4s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }

.hero__nav { position: absolute; left: 64px; bottom: 28px; z-index: 5; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; backdrop-filter: blur(4px); }
.hero__arrow:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.hero__arrow:active { transform: scale(.94); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__nums { display: flex; align-items: center; gap: 4px; }
.hero__num { position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: rgba(255,255,255,.55);
  font-size: 14px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: color .2s; }
.hero__num span { position: relative; z-index: 2; }
.hero__num:hover { color: #fff; }
.hero__num.is-active { color: #fff; }
.hero__ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); opacity: 0; transition: opacity .2s; }
.hero__num.is-active .hero__ring { opacity: 1; }
.hero__ring-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 2; }
.hero__ring-fg { fill: none; stroke: var(--c-accent-l); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }

/* ==========================================================================
   SECTIONS / GRIDS
   ========================================================================== */
main.app { background: var(--c-surface); }
.section { padding: 28px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.section + .section { padding-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--c-ink); }
.section-head .link-blue { color: var(--c-accent); font-weight: 600; font-size: 13.5px; }
.section-head .link-blue:hover { text-decoration: underline; }

/* Quick action tiles */
.quick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 28px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.qtile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 13px 14px; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.qtile:hover { transform: translateY(-3px); box-shadow: var(--sh-soft); border-color: #dfe3e0; }
.qtile .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--c-accent-tint); color: var(--c-accent);
  display: grid; place-items: center; flex-shrink: 0; }
.qtile .ico svg { width: 17px; height: 17px; }
.qtile .t { font-size: 13.5px; font-weight: 600; color: var(--c-ink); }
.qtile .s { font-size: 11.5px; color: var(--c-ink-2); }

/* Department cards */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dept-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s; }
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--sh-soft); }
.dept-card__img { height: 328px; overflow: hidden; }
.dept-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.dept-card:hover .dept-card__img img { transform: scale(1.05); }
.dept-card__foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; }
.dept-card__foot .t { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.dept-card__foot .s { font-size: 11.5px; color: var(--c-ink-2); }
.dept-card__foot .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--c-surface);
  display: grid; place-items: center; transition: background .2s, transform .2s; }
.dept-card:hover .dept-card__foot .arrow { background: var(--c-accent); color: #fff; transform: translateX(2px); }
.dept-card__foot .arrow svg { width: 16px; height: 16px; }

/* Product cards */
.prod-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto;
  scroll-snap-type: x proximity; scroll-padding-left: 0; padding-bottom: 4px; scrollbar-width: none; }
.prod-scroller::-webkit-scrollbar { display: none; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden;
  position: relative; display: flex; flex-direction: column; scroll-snap-align: start;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .2s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--sh-soft); border-color: #dfe3e0; }
.prod-card__img { aspect-ratio: 1; overflow: hidden; background: #faf9f7; }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.prod-card:hover .prod-card__img img { transform: scale(1.04); }
.prod-card__brand { position: absolute; top: 11px; left: 11px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-pill); padding: 5px 10px; font-size: 11.5px; font-weight: 600; color: var(--c-ink); }
.prod-card__body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.prod-card__title { font-size: 13.5px; font-weight: 600; line-height: 1.28; color: var(--c-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.56em; }
.prod-card__body .pill, .prod-card__body .locked-price { align-self: flex-start; max-width: 100%; }
.prod-card__price { display: flex; align-items: baseline; gap: 6px; }
.prod-card__price .amt { font-size: 17px; font-weight: 800; letter-spacing: -.3px; color: var(--c-ink); }
.prod-card__price .unit { font-size: 11px; color: var(--c-ink-2); }
.prod-gallery { display: flex; gap: 6px; }
.prod-gallery span { flex: 0 0 calc((100% - 30px) / 6); height: 40px; border: 1px solid var(--c-line); border-radius: var(--r-xs); overflow: hidden; }
.prod-gallery img { width: 100%; height: 100%; object-fit: cover; }
.prod-card__add { width: 100%; background: var(--c-ink); color: #fff; border: 0; border-radius: var(--r-md);
  padding: 11px; font-size: 13.5px; font-weight: 600; transition: background .2s, transform .15s; }
.prod-card__add:hover { background: #000; }
.prod-card__add.is-added { background: var(--c-success); }
.locked-price { color: var(--c-ink-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.locked-price svg { width: 13px; height: 13px; }

.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--c-line);
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .2s; }
.carousel-nav button:hover { border-color: var(--c-ink); transform: translateY(-1px); }
.carousel-nav button svg { width: 18px; height: 18px; }

/* ==========================================================================
   EMAIL SIGNUP BAND
   ========================================================================== */
.signup-band { background: var(--c-night-2); }
.signup-band .wrap { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 64px; }
.signup-band .left { display: flex; align-items: center; gap: 18px; }
.signup-band .badge { width: 48px; height: 48px; border-radius: var(--r-lg); background: rgba(0,136,204,.16); color: var(--c-accent-l); display: grid; place-items: center; flex-shrink: 0; }
.signup-band .badge svg { width: 22px; height: 22px; }
.signup-band h3 { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.4px; }
.signup-band p { font-size: 14px; color: var(--c-night-text); margin-top: 4px; }
.signup-band form { display: flex; gap: 10px; }
.signup-band input { width: 300px; height: 48px; border: 0; border-radius: var(--r-md); padding: 0 16px; font-size: 14px; }
.signup-band input::placeholder { color: var(--c-ink-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--c-night); color: var(--c-night-text); }
.site-footer .main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 56px var(--gutter) 48px; max-width: var(--maxw); margin: 0 auto; }
.footer-about { max-width: 300px; display: flex; flex-direction: column; gap: 18px; }
.footer-about .flogo { width: 129px; }
.footer-about p { font-size: 13.5px; line-height: 1.55; color: var(--c-night-text); }
.footer-about address { font-style: normal; font-size: 12.5px; line-height: 1.5; color: var(--c-night-text-3); }
.footer-cols { display: flex; gap: 56px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--c-night-text); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--c-night-text-2); padding: 5.5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col .phone { font-size: 22px; font-weight: 800; color: var(--c-accent); letter-spacing: -.3px; padding: 4px 0; }
.footer-col .email { font-size: 13.5px; font-weight: 600; color: var(--c-accent); }
.footer-bar { border-top: 1px solid var(--c-night-line); display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.footer-bar .copy { font-size: 12px; color: var(--c-night-text-3); }
.footer-bar .pays { display: flex; align-items: center; gap: 14px; }
.footer-bar .pays .terms { font-size: 12px; font-weight: 500; color: var(--c-night-text); }

/* ==========================================================================
   AUTH (Login / Register split screen)
   ========================================================================== */
.auth { display: flex; min-height: 100vh; background: #fff; }
.auth__form { width: 620px; max-width: 48%; display: flex; flex-direction: column; justify-content: space-between; padding: 64px 96px 48px; }
.auth--wide .auth__form { width: 700px; }
.auth__form .alogo { width: 166px; }
.auth__center { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 508px; }
.auth h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; color: var(--c-ink); }
.auth .lead { font-size: 15px; color: var(--c-ink-2); margin-top: 8px; }
.auth__copy { font-size: 12px; color: var(--c-ink-3); }
.auth__aside { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 80px 64px; overflow: hidden; }
.auth__aside .bg { position: absolute; inset: 0; }
.auth__aside .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(11px); transform: scale(1.06); }
.auth__aside .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(137deg, rgba(5,19,28,.9) 14%, rgba(33,41,60,.82) 85%); }
.auth__aside > * { position: relative; }
.auth__aside h2 { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.12; }
.auth__aside .a-sub { color: var(--c-night-text); font-size: 16px; line-height: 1.55; max-width: 560px; margin-top: 24px; }
.auth__feats { display: flex; flex-direction: column; gap: 18px; }
.auth__feat { display: flex; gap: 14px; align-items: center; }
.auth__feat .tick { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,136,204,.18); color: var(--c-accent-l);
  display: grid; place-items: center; flex-shrink: 0; }
.auth__feat .tick svg { width: 16px; height: 16px; }
.auth__feat .ft { color: #fff; font-size: 16px; font-weight: 600; }
.auth__feat .fs { color: var(--c-night-text); font-size: 13px; }
.auth__divider { display: flex; align-items: center; gap: 14px; }
.auth__divider::before, .auth__divider::after { content:""; flex: 1; height: 1px; background: var(--c-line); }
.auth__divider span { font-size: 13px; color: var(--c-ink-3); }
.remember-row { display: flex; align-items: center; justify-content: space-between; }
.remember-row label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-ink-2); cursor: pointer; }
.remember-row .link { font-size: 14px; font-weight: 600; color: var(--c-accent); }
.cbx { width: 20px; height: 20px; border-radius: var(--r-xs); border: 1.5px solid var(--c-line-2); background: #fff;
  display: grid; place-items: center; appearance: none; cursor: pointer; transition: background .15s, border-color .15s; }
.cbx:checked { background: var(--c-ink); border-color: var(--c-ink); }
.cbx:checked::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 700; }

@media (max-width: 980px) {
  .auth__aside { display: none; }
  .auth__form { width: 100%; max-width: 100%; padding: 40px 24px; }
}

/* ==========================================================================
   BREADCRUMB / PAGE HEAD
   ========================================================================== */
.breadcrumb { padding: 18px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; font-size: 12.5px; color: var(--c-ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
/* More breathing room on department/category pages where a hero follows */
.breadcrumb:has(+ .dept-hero) { padding: 22px var(--gutter) 22px; }
.breadcrumb + .dept-hero { margin-top: 4px; }
.breadcrumb a { color: var(--c-ink-2); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb .sep { color: var(--c-ink-3); }
.breadcrumb .current { color: var(--c-ink); font-weight: 500; }

.shop-head { padding: 14px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.shop-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; color: var(--c-ink); }
.shop-head .count { font-size: 13.5px; color: var(--c-ink-2); margin-top: 4px; }

/* ==========================================================================
   SHOP LAYOUT (category listing)
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 248px 1fr; gap: 28px; padding: 22px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; align-items: start; }
.filters { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px; position: sticky; top: 196px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__head h3 { font-size: 15px; font-weight: 700; }
.filters__head .clear { font-size: 12.5px; color: var(--c-accent); font-weight: 600; cursor: pointer; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--c-line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group h4 { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--c-ink-2); font-weight: 700; margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--c-ink); cursor: pointer; }
.filter-opt input { accent-color: var(--c-accent); width: 16px; height: 16px; }
.filter-opt .c { margin-left: auto; color: var(--c-ink-3); font-size: 12px; }

.shop-main__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shop-main__bar .res { font-size: 13px; color: var(--c-ink-2); }
.sort-select { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--c-ink); }
.sort-select select { border: 0; background: transparent; font: inherit; color: inherit; font-weight: 600; }
.sort-select select:focus { outline: 0; }

.prod-grid--3 { grid-template-columns: repeat(3, 1fr); }
.prod-card__sku { font-size: 11px; color: var(--c-ink-3); letter-spacing: .2px; margin-top: -2px; }

/* Pagination */
.chase-pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0 8px; }
.chase-pagination a, .chase-pagination span { min-width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-md); border: 1px solid var(--c-line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--c-ink); padding: 0 8px; }
.chase-pagination a:hover { border-color: var(--c-ink); }
.chase-pagination .current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* Guest gate banner (screens 07 & 10) */
.gate-banner { display: flex; align-items: center; gap: 16px; background: var(--c-night); color: #fff;
  border-radius: var(--r-xl); padding: 20px 24px; margin: 22px var(--gutter) 0; max-width: calc(var(--maxw) - 0px); }
.gate-banner .g-ic { width: 44px; height: 44px; border-radius: var(--r-lg); background: rgba(0,136,204,.18); color: var(--c-accent-l); display: grid; place-items: center; flex-shrink: 0; }
.gate-banner .g-ic svg { width: 22px; height: 22px; }
.gate-banner h3 { font-size: 16px; font-weight: 700; }
.gate-banner p { font-size: 13.5px; color: var(--c-night-text); margin-top: 2px; }
.gate-banner .g-cta { margin-left: auto; display: flex; gap: 10px; }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 22px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; align-items: start; }
.pdp-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 14px; position: sticky; top: 196px; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp-thumbs button { width: 72px; height: 72px; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: #faf9f7; padding: 0; cursor: pointer; transition: border-color .2s; }
.pdp-thumbs button.is-active { border-color: var(--c-ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-stage { border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; background: #faf9f7; aspect-ratio: 1; }
.pdp-stage img { width: 100%; height: 100%; object-fit: cover; }

.pdp-summary .brandline { font-size: 12.5px; font-weight: 600; color: var(--c-accent); letter-spacing: .3px; }
.pdp-summary h1 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin: 8px 0; }
.pdp-summary .sku { font-size: 13px; color: var(--c-ink-2); }
.pdp-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.pdp-price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.pdp-price .unit { font-size: 13px; color: var(--c-ink-2); }
.pdp-block { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px; margin-top: 18px; }
.pdp-finish__label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); font-family: inherit; border-radius: var(--r-pill); padding: 7px 14px 7px 9px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, transform .15s; }
.swatch.is-active { cursor: default; }
.swatch:hover { border-color: var(--c-ink-2); }
.swatch:active { transform: scale(.97); }
.swatch.is-active { border-color: var(--c-ink); background: #fff; }
.swatch .dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.qty button { width: 42px; height: 48px; border: 0; background: #fff; display: grid; place-items: center; color: var(--c-ink); }
.qty button:hover { background: var(--c-surface); }
.qty input { width: 52px; height: 48px; border: 0; border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line); text-align: center; font-size: 15px; font-weight: 600; }
.qty input:focus { outline: 0; }
.pdp-add { flex: 1; height: 48px; border-radius: var(--r-md); font-size: 15px; }
.pdp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pdp-meta .m { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-ink-2); }
.pdp-meta .m svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; margin-top: 1px; }
.pdp-meta .m b { color: var(--c-ink); display: block; font-size: 13px; }

.pdp-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; }
.spec-table h3, .pdp-about h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.spec-table tr { border-bottom: 1px solid var(--c-line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 13px 18px; font-size: 13.5px; }
.spec-table td:first-child { color: var(--c-ink-2); width: 45%; }
.spec-table td:last-child { color: var(--c-ink); font-weight: 500; }
.pdp-about p { font-size: 14px; line-height: 1.6; color: var(--c-ink-2); margin-bottom: 12px; }

/* ==========================================================================
   CART
   ========================================================================== */
.cart-page { padding: 14px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.cart-page h1 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.cart-page .subcount { font-size: 13.5px; color: var(--c-ink-2); margin: 4px 0 18px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--c-line); padding: 16px 18px; }
.cart-line:first-child { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.cart-line + .cart-line { border-top: 0; }
.cart-line:last-of-type { border-radius: 0 0 var(--r-xl) var(--r-xl); }
.cart-line__img { width: 64px; height: 64px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-line); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__meta .brand { font-size: 11px; color: var(--c-ink-3); letter-spacing: .2px; }
.cart-line__meta .name { font-size: 14px; font-weight: 600; color: var(--c-ink); margin: 2px 0 6px; }
.cart-line__links { display: flex; gap: 14px; }
.cart-line__links a { font-size: 12.5px; color: var(--c-ink-2); }
.cart-line__links a:first-child:hover { color: #b3261e; }
.cart-line__links a.save:hover { color: var(--c-accent); }
.cart-line__unit { font-size: 12.5px; color: var(--c-ink-2); white-space: nowrap; }
.cart-line__total { font-size: 16px; font-weight: 800; white-space: nowrap; }
.cart-line .qty button { width: 34px; height: 38px; }
.cart-line .qty input { width: 44px; height: 38px; }

.cart-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.delivery-opt { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.delivery-opt.is-active { border-color: var(--c-accent); background: rgba(0,136,204,.04); }
.delivery-opt input { accent-color: var(--c-accent); margin-top: 2px; width: 18px; height: 18px; }
.delivery-opt > span { display: flex; flex-direction: column; gap: 2px; }
.delivery-opt .t { display: block; font-size: 14px; font-weight: 600; }
.delivery-opt .s { display: block; font-size: 12.5px; color: var(--c-ink-2); }
.po-ref { margin-top: 14px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px; }
.po-ref label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }

.order-summary { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 22px; position: sticky; top: 196px; }
.order-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.os-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; color: var(--c-ink-2); }
.os-row .v { color: var(--c-ink); font-weight: 600; }
.os-row .free { color: var(--c-success); font-weight: 700; }
.os-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; margin-top: 8px; border-top: 1px solid var(--c-line); }
.os-total .l { font-size: 15px; font-weight: 700; }
.os-total .v { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.os-terms { display: flex; align-items: center; gap: 8px; background: var(--c-success-bg); color: var(--c-success);
  border-radius: var(--r-md); padding: 10px 12px; font-size: 12.5px; font-weight: 600; margin: 14px 0; }
.os-terms svg { width: 15px; height: 15px; }
.order-summary .hint { font-size: 12px; color: var(--c-ink-2); margin-top: 12px; line-height: 1.5; }
.order-summary .hint a { color: var(--c-accent); font-weight: 600; }

/* ==========================================================================
   CHECKOUT
   ========================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; padding: 14px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; align-items: start; }
.checkout-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 24px; margin-bottom: 16px; }
.checkout-card > h3, .checkout-summary__title { font-size: 16px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.checkout-card > h3 .n, .checkout-summary__title .n { width: 24px; height: 24px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.checkout-summary { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 24px; position: sticky; top: 196px; }

/* ---- WooCommerce checkout field styling ---- */
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--c-ink-2); margin: 4px 0 14px; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 8px; }
.woocommerce-checkout .col2-set, .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 { width: 100%; float: none; }

.woocommerce form .form-row { margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; line-height: 1.3; }
.woocommerce form .form-row label .required { color: var(--c-accent); text-decoration: none; border: 0; }
.woocommerce form .form-row label .optional { color: var(--c-ink-3); font-weight: 400; }
.woocommerce form .form-row .woocommerce-input-wrapper { width: 100%; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout select,
.woocommerce form .form-row .select2-container { width: 100%; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout select {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  height: 50px; padding: 0 15px; font-size: 14px; font-family: inherit; color: var(--c-ink);
  transition: border-color .2s, background .2s, box-shadow .2s; }
.woocommerce form .form-row textarea { height: auto; min-height: 92px; padding: 13px 15px; line-height: 1.5; resize: vertical; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-checkout select:focus { outline: 0; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 4px rgba(0,136,204,.1); }
.woocommerce form .form-row input.input-text::placeholder, .woocommerce form .form-row textarea::placeholder { color: var(--c-ink-3); }

/* Two-up name row on wider screens */
@media (min-width: 560px) {
  .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1; }
  .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 2; }
  .woocommerce-billing-fields__field-wrapper .form-row-wide,
  .woocommerce-billing-fields__field-wrapper #billing_country_field,
  .woocommerce-billing-fields__field-wrapper #billing_address_1_field,
  .woocommerce-billing-fields__field-wrapper #billing_address_2_field { grid-column: 1 / -1; }
}

/* Select2 (country) */
.select2-container--default .select2-selection--single { height: 50px; border: 1px solid var(--c-line) !important; background: var(--c-surface); border-radius: var(--r-lg); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 15px; color: var(--c-ink); font-size: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; right: 10px; }
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--c-accent) !important; }
.select2-dropdown { border-color: var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--c-accent); }
.select2-container--default .select2-search--dropdown .select2-search__field { border-radius: var(--r-sm); border-color: var(--c-line); }

/* "Ship to a different address" + checkboxes */
.woocommerce-shipping-fields h3 label { font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--c-ink); display: inline-flex; align-items: center; gap: 10px; }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--c-line); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #e2574c; }
input#ship-to-different-address-checkbox, .woocommerce-form__input-checkbox { width: 18px; height: 18px; accent-color: var(--c-accent); }

.checkout-po { margin-top: 6px; }
.checkout-po label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

/* ---- Order review table ---- */
.checkout-summary .shop_table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.checkout-summary .shop_table thead th { text-align: left; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; padding: 0 0 10px; border-bottom: 1px solid var(--c-line); }
.checkout-summary .shop_table thead th.product-total { text-align: right; }
.checkout-summary .shop_table td, .checkout-summary .shop_table tbody th { padding: 13px 0; font-size: 13.5px; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.checkout-summary .shop_table .cart_item .product-name { color: var(--c-ink); font-weight: 600; line-height: 1.35; }
.checkout-summary .shop_table .cart_item .product-name .product-quantity { display: block; color: var(--c-ink-2); font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.checkout-summary .shop_table .cart_item .product-total { text-align: right; font-weight: 700; white-space: nowrap; }
.checkout-summary .shop_table tfoot th { text-align: left; font-weight: 500; color: var(--c-ink-2); font-size: 13.5px; padding: 9px 0; border: 0; }
.checkout-summary .shop_table tfoot td { text-align: right; font-weight: 600; color: var(--c-ink); font-size: 13.5px; padding: 9px 0; border: 0; }
.checkout-summary .shop_table tfoot tr.cart-subtotal th, .checkout-summary .shop_table tfoot tr.cart-subtotal td { padding-top: 14px; }
.checkout-summary .shop_table tfoot tr.order-total { border-top: 1px solid var(--c-line); }
.checkout-summary .shop_table tfoot tr.order-total th { font-size: 15px; font-weight: 700; color: var(--c-ink); padding-top: 14px; }
.checkout-summary .shop_table tfoot tr.order-total td { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--c-ink); padding-top: 14px; }
.checkout-summary .shop_table tfoot tr.order-total .includes_tax, .checkout-summary small.includes_tax { color: var(--c-ink-3); font-weight: 400; font-size: 11px; }

/* Shipping methods inside review — stack label on top, methods full-width below */
.checkout-summary .shop_table tfoot tr.woocommerce-shipping-totals { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.checkout-summary .shop_table tfoot tr.woocommerce-shipping-totals th { display: block; padding: 0 0 10px; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; }
.checkout-summary .shop_table tfoot tr.woocommerce-shipping-totals td { display: block; text-align: left; padding: 0; }
.checkout-summary #shipping_method, .woocommerce-shipping-totals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkout-summary #shipping_method li, .woocommerce-shipping-totals ul li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-md); font-size: 13.5px; transition: border-color .2s, background .2s; }
.checkout-summary #shipping_method li:has(input:checked), .woocommerce-shipping-totals ul li:has(input:checked) { border-color: var(--c-accent); background: rgba(0,136,204,.04); }
.checkout-summary #shipping_method li input, .woocommerce-shipping-totals ul li input { accent-color: var(--c-accent); width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
.checkout-summary #shipping_method li label, .woocommerce-shipping-totals ul li label { margin: 0; font-weight: 600; font-size: 13.5px; color: var(--c-ink); cursor: pointer; }
.checkout-summary #shipping_method li .woocommerce-Price-amount { font-weight: 700; }

/* ---- Payment ---- */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 18px; }
.woocommerce-checkout #payment > .form-row { padding: 0; }
.woocommerce-checkout #payment ul.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.woocommerce-checkout #payment ul.wc_payment_methods li { background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-lg); padding: 14px 16px; transition: border-color .2s, background .2s; }
.woocommerce-checkout #payment ul.wc_payment_methods li:has(input:checked) { border-color: var(--c-accent); background: rgba(0,136,204,.04); }
.woocommerce-checkout #payment ul.wc_payment_methods li label { display: inline; font-size: 14px; font-weight: 600; color: var(--c-ink); margin: 0; cursor: pointer; }
.woocommerce-checkout #payment ul.wc_payment_methods li input[type=radio] { accent-color: var(--c-accent); margin-right: 10px; width: 16px; height: 16px; vertical-align: -2px; }
.woocommerce-checkout #payment .payment_box { background: var(--c-surface); border-radius: var(--r-md); padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--c-ink-2); margin-top: 12px; }
.woocommerce-checkout #payment .payment_box::before { display: none; }
.woocommerce-checkout #payment .payment_box p { margin: 0; }

/* Place order */
.woocommerce-checkout #payment .form-row.place-order { padding: 0; margin: 4px 0 0; }
.woocommerce-checkout #place_order { width: 100%; background: var(--c-ink); color: #fff; border: 0; border-radius: var(--r-md);
  padding: 16px; font-size: 15px; font-weight: 600; min-height: 54px; height: auto; cursor: pointer; float: none; transition: background .2s, transform .15s; }
.woocommerce-checkout #place_order:hover { background: #000; }
.woocommerce-checkout #place_order:active { transform: translateY(1px); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 12px; }
.woocommerce-privacy-policy-text { font-size: 11.5px; color: var(--c-ink-3); line-height: 1.5; margin: 4px 0 12px; }
.woocommerce-privacy-policy-text a { color: var(--c-accent); }

/* ==========================================================================
   WOOCOMMERCE NOTICES

   The theme drops WooCommerce's own stylesheet, so every notice it emits —
   "… removed. Undo?", coupon errors, login prompts — used to render as raw
   unstyled text running the full width of the page. Only the checkout had a
   rule, so the basket, shop, and account pages all showed bare text.

   Markup WooCommerce produces (classic templates):
     success  <div class="woocommerce-message" role="alert">      + optional <a class="restore-item">
     error    <ul  class="woocommerce-error" role="alert"><li>…
     info     <div class="woocommerce-info" role="status">        + optional <a class="button">
   all optionally inside <div class="woocommerce-notices-wrapper">.
   ========================================================================== */

/* The wrapper sits outside the page container, so align it to the same
   gutter or the notice runs edge to edge under the nav. */
.woocommerce-notices-wrapper { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* Leading icon, tinted per state via currentColor on a masked SVG. */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: center / 18px 18px no-repeat;
  mask: center / 18px 18px no-repeat;
}

.woocommerce-message {
  background: var(--c-success-bg);
  border-color: rgba(31,122,69,.22);
  color: var(--c-success);
}
.woocommerce-message::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.5 2.5L16 9.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.5 2.5L16 9.5'/%3E%3C/svg%3E");
}

.woocommerce-error {
  background: var(--c-error-bg);
  border-color: rgba(179,38,30,.22);
  color: var(--c-error);
  flex-direction: column;
  gap: 4px;
}
/* An error list can carry several messages; the icon belongs to the box. */
.woocommerce-error::before { display: none; }
.woocommerce-error li { display: flex; align-items: flex-start; gap: 11px; }
.woocommerce-error li::before {
  content: "";
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px;
  background: currentColor;
  -webkit-mask: center / 18px 18px no-repeat;
  mask: center / 18px 18px no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M12 16.2v.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M12 16.2v.1'/%3E%3C/svg%3E");
}

.woocommerce-info {
  background: var(--c-accent-tint);
  border-color: rgba(0,136,204,.22);
  color: var(--c-accent-d);
}
.woocommerce-info::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.8v.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.8v.1'/%3E%3C/svg%3E");
}

/* "Undo?" and any inline link inherit the notice colour. */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover { text-decoration: none; }

/* Notices can carry a WooCommerce .button ("View basket"). Push it to the
   right and give it the theme's pill treatment instead of a bare link. */
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
  flex: none;
  align-self: center;
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  color: #fff;
}
/* Set the background explicitly — `currentColor` would resolve against the
   colour declared on this same rule, painting the label onto itself. */
.woocommerce-message .button { background: var(--c-success); }
.woocommerce-message .button:hover { background: #176035; }
.woocommerce-info .button { background: var(--c-accent); }
.woocommerce-info .button:hover { background: var(--c-accent-d); }

@media (max-width: 600px) {
  .woocommerce-notices-wrapper { padding: 0 18px; }
  .woocommerce-message, .woocommerce-info { flex-wrap: wrap; }
  .woocommerce-message .button, .woocommerce-info .button { margin-left: 29px; }
}

/* ==========================================================================
   MY ACCOUNT
   ========================================================================== */
.account-page { padding: 14px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.account-page h1 { font-size: 28px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 18px; }
.account-grid { display: grid; grid-template-columns: 248px 1fr; gap: 24px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 10px; position: sticky; top: 196px; }
.account-nav__user { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 8px; }
.account-nav__user .av { width: 38px; height: 38px; border-radius: 50%; background: var(--c-night-3); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.account-nav__user .nm { font-size: 13.5px; font-weight: 700; }
.account-nav__user .ac { font-size: 11.5px; color: var(--c-ink-2); }
.account-nav ul { list-style: none; margin: 0; padding: 0; }
.account-nav li a { display: block; padding: 10px 12px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 500; color: var(--c-ink); transition: background .15s, color .15s; }
.account-nav li a:hover { background: var(--c-surface); }
.account-nav li.is-active a, .woocommerce-MyAccount-navigation-link--dashboard.is-active a { background: var(--c-accent-tint); color: var(--c-accent); font-weight: 600; }
.account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--c-ink-2); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 18px; }
.stat-card .lbl { font-size: 12px; color: var(--c-ink-2); font-weight: 600; }
.stat-card .val { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 8px 0 4px; }
.stat-card .val.blue { color: var(--c-accent); }
.stat-card .sub { font-size: 11.5px; color: var(--c-ink-3); }

.acct-block { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 22px; }
.acct-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.acct-block__head h2 { font-size: 16px; font-weight: 700; }
.acct-block__head a { font-size: 13px; color: var(--c-accent); font-weight: 600; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.orders-table td { padding: 14px 10px; border-bottom: 1px solid var(--c-line); font-size: 13.5px; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table .ord-no { font-weight: 700; }
.orders-table .ord-po { font-size: 11.5px; color: var(--c-ink-3); }
.orders-table td.total { font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-processing { background: #fff5e6; color: #b56a00; }
.status-on-hold { background: #fff5e6; color: #b56a00; }
.status-completed, .status-delivered { background: var(--c-success-bg); color: var(--c-success); }
.status-dispatched, .status-shipped { background: #e6f0fb; color: #1f6fb2; }
.status-cancelled, .status-failed { background: #fdeceb; color: #b3261e; }
.status-pending { background: var(--c-surface); color: var(--c-ink-2); }

/* Account content header (sub-pages) */
.acct-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.acct-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.acct-head p { font-size: 13.5px; color: var(--c-ink-2); margin-top: 3px; max-width: 480px; }
.acct-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-pill); padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--c-ink-2); }
.chip.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.chip--select { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); }
.chip--select select { border: 0; background: transparent; font: inherit; font-weight: 600; }
.orders-table .reorder { color: var(--c-accent); font-weight: 600; font-size: 13px; }
.orders-table td.actions { text-align: right; }

/* Order detail */
.order-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px 22px; margin-bottom: 16px; }
.order-detail-head h2 { font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; gap: 12px; }
.order-detail-head .meta { font-size: 13px; color: var(--c-ink-2); margin-top: 6px; }
.order-detail-head .acts { display: flex; gap: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-ink-2); font-weight: 500; margin-bottom: 14px; }
.back-link:hover { color: var(--c-accent); }
.order-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.order-lines { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px; }
.order-lines h3, .order-side h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.order-line { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--c-line); }
.order-line:first-of-type { border-top: 0; }
.order-line img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: cover; border: 1px solid var(--c-line); }
.order-line .brand { font-size: 11px; color: var(--c-ink-3); }
.order-line .nm { font-size: 13.5px; font-weight: 600; }
.order-line .q { font-size: 12.5px; color: var(--c-ink-2); white-space: nowrap; }
.order-line .lt { font-size: 14px; font-weight: 700; white-space: nowrap; }
.order-side .card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px; margin-bottom: 16px; }
.order-side address { font-style: normal; font-size: 13px; line-height: 1.6; color: var(--c-ink-2); }

/* Saved lists */
.saved-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.saved-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 18px; }
.saved-card h3 { font-size: 15px; font-weight: 700; }
.saved-card .sub { font-size: 12px; color: var(--c-ink-2); margin: 3px 0 12px; }
.saved-thumbs { display: flex; gap: 6px; margin-bottom: 12px; }
.saved-thumbs span { width: 46px; height: 46px; border: 1px solid var(--c-line); border-radius: var(--r-sm); overflow: hidden; }
.saved-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.saved-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.saved-card .total { font-size: 15px; font-weight: 800; }
.saved-card .foot .acts { display: flex; gap: 8px; }

/* Quote requests */
.quote-feature { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(0,136,204,.06); border: 1px solid rgba(0,136,204,.25); border-radius: var(--r-xl); padding: 18px 22px; margin-bottom: 16px; }
.quote-feature .qf-title { font-size: 15px; font-weight: 700; color: var(--c-accent); display: inline-flex; align-items: center; gap: 10px; }
.quote-feature .qf-meta { font-size: 12.5px; color: var(--c-ink-2); margin-top: 4px; }
.quote-feature .qf-right { display: flex; align-items: center; gap: 18px; }
.quote-feature .qf-total .l { font-size: 11.5px; color: var(--c-ink-2); }
.quote-feature .qf-total .v { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.status-quoted { background: #e6f0fb; color: #1f6fb2; }
.status-awaiting, .status-pending { background: #fff5e6; color: #b56a00; }

/* WooCommerce form niceties inside account */
.woocommerce-MyAccount-content { font-size: 14px; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce .button, .woocommerce-Button { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--c-ink); color: #fff; border: 0; border-radius: var(--r-md); padding: 13px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.woocommerce .button:hover { background: #000; }

/* ==========================================================================
   ORDER CONFIRMATION (thank you)
   ========================================================================== */
.confirm-hero { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 40px; text-align: center; margin-bottom: 16px; }
.confirm-hero .tick-big { width: 56px; height: 56px; border-radius: 50%; background: var(--c-success-bg); color: var(--c-success); display: grid; place-items: center; margin: 0 auto 18px; }
.confirm-hero .tick-big svg { width: 28px; height: 28px; }
.confirm-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.confirm-hero p { font-size: 14px; color: var(--c-ink-2); margin: 10px auto 20px; max-width: 520px; }
.confirm-hero .acts { display: flex; gap: 10px; justify-content: center; }
.confirm-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.next-steps { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 22px; margin-top: 16px; }
.next-steps h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.next-step { display: flex; gap: 14px; padding: 10px 0; }
.next-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--c-accent-tint); color: var(--c-accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.next-step .t { font-size: 14px; font-weight: 600; }
.next-step .s { font-size: 12.5px; color: var(--c-ink-2); }

/* ==========================================================================
   QUICK ORDER
   ========================================================================== */
.quick-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.quick-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 20px; }
.quick-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.quick-card textarea { width: 100%; min-height: 150px; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--r-lg); padding: 14px 16px; font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.7; resize: vertical; color: var(--c-ink); }
.quick-card textarea:focus { outline: 0; border-color: var(--c-accent); background: #fff; }
.quick-card .acts { display: flex; gap: 10px; margin-top: 14px; }
.quick-rows { margin-top: 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; }
.quick-rows table { width: 100%; border-collapse: collapse; }
.quick-rows th { text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--c-ink-3); font-weight: 700; padding: 12px 18px; border-bottom: 1px solid var(--c-line); }
.quick-rows th:nth-child(2), .quick-rows th:nth-child(3), .quick-rows th:nth-child(4) { text-align: right; }
.quick-rows td { padding: 14px 18px; border-bottom: 1px solid var(--c-line); font-size: 13.5px; vertical-align: middle; }
.quick-rows tr:last-child td { border-bottom: 0; }
.quick-rows .sku { font-weight: 700; }
.quick-rows .nm { font-size: 12px; color: var(--c-ink-2); }
.quick-rows td.r { text-align: right; }
.quick-rows td.lt { text-align: right; font-weight: 700; }
.quick-rows .qty { float: right; }

/* ==========================================================================
   FAQ / HELP CENTRE
   ========================================================================== */
.help-hero { background: linear-gradient(136deg, #05131c 14%, #16202e 85%); padding: 56px var(--gutter); text-align: center; }
.help-hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.help-hero p { color: var(--c-night-text); font-size: 14px; margin: 10px 0 22px; }
.help-search { max-width: 520px; margin: 0 auto; display: flex; gap: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; height: 50px; }
.help-search svg { width: 18px; height: 18px; color: var(--c-ink-3); align-self: center; margin-left: 16px; }
.help-search input { flex: 1; border: 0; padding: 0 14px; font-size: 14px; }
.help-search input:focus { outline: 0; }
.help-search button { background: var(--c-accent); color: #fff; border: 0; padding: 0 22px; font-weight: 600; font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic-card { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px 18px; transition: transform .25s var(--ease), box-shadow .25s; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--sh-soft); }
.topic-card .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--c-accent-tint); color: var(--c-accent); display: grid; place-items: center; flex-shrink: 0; }
.topic-card .ico svg { width: 18px; height: 18px; }
.topic-card .t { font-size: 14px; font-weight: 600; }
.topic-card .s { font-size: 12px; color: var(--c-ink-2); }
.faq-accordion { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; }
.faq-item { border-top: 1px solid var(--c-line); }
.faq-item:first-child { border-top: 0; }
.faq-q { width: 100%; text-align: left; background: #fff; border: 0; padding: 18px 22px; font-size: 14.5px; font-weight: 600; color: var(--c-ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq-q svg { width: 18px; height: 18px; color: var(--c-ink-3); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; font-size: 13.5px; line-height: 1.6; color: var(--c-ink-2); }
.help-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--c-night); color: #fff; border-radius: var(--r-xl); padding: 22px 26px; }
.help-cta h3 { font-size: 16px; font-weight: 700; }
.help-cta p { font-size: 13px; color: var(--c-night-text); margin-top: 3px; }
.help-cta .acts { display: flex; gap: 10px; }

/* ==========================================================================
   CATALOGUES
   ========================================================================== */
/* Four across with A4 covers, matching how the client presents these today. */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-soft); }
/* Whole tile is the click target. One real anchor stretched over the card
   rather than a wrapping <a>, which would nest the button illegally and lose
   the keyboard focus ring.
   Explicit offsets, not `inset: 0` — where the shorthand is unsupported the
   pseudo-element collapses to 0x0 and the tile silently stops being clickable.
   `.cat-card--linked` is set in PHP rather than using :has(), for the same
   reason. main.js carries a fallback for anything that still misses this. */
.cat-card--linked { cursor: pointer; }
.cat-card__body a.btn::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: inherit; }
.cat-card:hover .cat-card__body a.btn { background: var(--c-accent); border-color: var(--c-accent); }
.cat-card__body a.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* A4 portrait — PDF front pages come out 2117x2993, so nothing gets cropped. */
.cat-card__cover { aspect-ratio: 1 / 1.414; background: var(--c-surface); position: relative; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--c-line); }
.cat-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__cover .doc-badge { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.cat-card__cover .doc-badge svg { width: 46px; height: 46px; }
.cat-card__body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-card__body .t { font-size: 14px; font-weight: 600; }
.cat-card__body .s { font-size: 11.5px; color: var(--c-ink-2); margin-top: 2px; }

/* ==========================================================================
   DEPARTMENT HERO (top-level category landing)
   ========================================================================== */
.dept-hero { position: relative; min-height: 240px; display: flex; align-items: flex-end; overflow: hidden; }
.dept-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dept-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,19,28,.94), rgba(5,19,28,.55) 70%, rgba(5,19,28,.32)); }
.dept-hero__inner { position: relative; z-index: 2; padding: 0 var(--gutter) 28px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.dept-hero h1 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.7px; }
.dept-hero p { color: rgba(255,255,255,.82); font-size: 14px; max-width: 540px; margin-top: 8px; }
.subcat-chips { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px var(--gutter) 0; max-width: var(--maxw); margin: 0 auto; }
.subcat-chip { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--c-ink); transition: all .2s; }
.subcat-chip:hover { border-color: var(--c-ink); transform: translateY(-1px); }

/* ==========================================================================
   PACK / BOX QUANTITIES
   Trade buyers order by the box. Shown on cards, the PDP, grouped child rows,
   basket lines and quick-order results so the same fact reads the same way
   everywhere.
   ========================================================================== */
.pack-line,
.prod-card__pack,
.pdp-group__meta .pack,
.cart-line__meta .pack,
.quick-table .pack {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xs);
  padding: 2px 7px;
  line-height: 1.5;
  white-space: nowrap;
}
.prod-card__pack { margin: 4px 0 2px; }
.cart-line__meta .pack { margin-left: 6px; }

/* PDP spec strip */
.pdp-pack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 2px;
  padding: 0;
}
.pdp-pack > div {
  flex: 1 1 120px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 9px 12px;
}
.pdp-pack dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 2px;
}
.pdp-pack dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--c-ink); }

/* ==========================================================================
   GROUPED PRODUCT — child rows on the PDP
   A grouped product can't be bought directly; its children can. Each row is
   priced and added independently.
   ========================================================================== */
.pdp-group { margin-top: 4px; }
.pdp-group__lead { font-size: 13px; font-weight: 600; color: var(--c-ink-2); margin-bottom: 10px; }
.pdp-group__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 8px;
}
.pdp-group__row.is-oos { opacity: .6; }
.pdp-group__meta { min-width: 0; }
.pdp-group__meta .nm { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink); line-height: 1.35; }
.pdp-group__meta .sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.pdp-group__meta .sku { font-size: 11.5px; color: var(--c-ink-3); font-family: ui-monospace, Menlo, monospace; }
.pdp-group__price { font-size: 15px; font-weight: 800; color: var(--c-ink); white-space: nowrap; }
.pdp-group__oos { font-size: 12.5px; font-weight: 600; color: var(--c-ink-3); white-space: nowrap; }
.pdp-group__row .qty { flex: none; }
.pdp-group__row .btn { white-space: nowrap; }

.pdp-unavailable {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 14px 16px; font-size: 13.5px; color: var(--c-ink-2); line-height: 1.55;
}

/* Card label where "Add" would be, for products that must be opened first. */
.prod-card__add--options {
  background: #fff !important;
  color: var(--c-ink) !important;
  border: 1.5px solid var(--c-line-2);
}

@media (max-width: 560px) {
  .pdp-group__row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .pdp-group__meta { grid-column: 1 / -1; }
}

/* ==========================================================================
   ADD-TO-BASKET CONFIRMATION MODAL
   Ported from the Ironmongery Now build so both stores behave identically;
   colours come from this theme's tokens rather than IMN's.
   ========================================================================== */
.atc-modal { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 20px; }
.atc-modal.is-open { display: flex; }
.atc-modal__overlay { position: absolute; inset: 0; background: rgba(5,19,28,.5); animation: floatIn .2s ease; }
.atc-modal__panel { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--sh-pop); padding: 22px; animation: modalPop .3s var(--ease-out); max-height: 90vh; overflow-y: auto; }
/* Dim while a quantity write is in flight, so a double-tap reads as pending. */
.atc-modal.is-busy .atc-modal__panel { opacity: .75; }
.atc-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.atc-modal__tick { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -.2px; color: var(--c-ink); }
.atc-modal__tick .ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-success-bg); color: var(--c-success); }
.atc-modal__tick .ic svg { width: 15px; height: 15px; stroke-width: 2.4; }
.atc-modal__x { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--c-line);
  background: #fff; border-radius: 50%; color: var(--c-ink); cursor: pointer; }
.atc-modal__x svg { width: 15px; height: 15px; }
.atc-modal__x:hover { border-color: var(--c-ink); }

.atc-modal__item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center;
  margin: 18px 0 0; padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.atc-modal__thumb { width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; background: #fff; display: block; }
.atc-modal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.atc-modal__meta .nm { display: block; font-size: 14px; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.atc-modal__meta .nm:hover { color: var(--c-accent-d); }
.atc-modal__meta .sku { font-size: 12px; color: var(--c-ink-2); margin-top: 3px; }
.atc-modal__meta .price { font-size: 13px; color: var(--c-ink-2); margin-top: 4px; }
.atc-modal__meta .price span { font-size: 12px; }
.atc-modal__line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--c-line); padding-top: 12px; }
.atc-modal__line .lt { font-size: 15px; font-weight: 800; color: var(--c-ink); }

.atc-qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.atc-qty button { width: 36px; height: 40px; border: 0; background: #fff; font-size: 17px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.atc-qty button:hover { background: var(--c-surface); color: var(--c-accent-d); }
.atc-qty input { width: 46px; height: 40px; border: 0; border-left: 1px solid var(--c-line); border-right: 1px solid var(--c-line);
  text-align: center; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--c-ink); -moz-appearance: textfield; }
.atc-qty input::-webkit-outer-spin-button, .atc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.atc-qty input:focus { outline: 0; }

.atc-modal__totals { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px 2px; font-size: 14px; color: var(--c-ink-2); }
.atc-modal__totals .ct { font-size: 13px; }
.atc-modal__totals strong { font-size: 18px; font-weight: 800; color: var(--c-ink); }
.atc-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.atc-modal__actions .btn { width: 100%; padding: 15px 16px; }
.atc-modal__checkout { display: block; text-align: center; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.atc-modal__checkout:hover { color: var(--c-accent-d); }

@media (max-width: 480px) {
  .atc-modal { padding: 0; align-items: flex-end; }
  .atc-modal__panel { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .atc-modal__actions { grid-template-columns: 1fr; }
}

/* Basket line dims while its quantity write is in flight. */
.cart-line.is-busy { opacity: .55; pointer-events: none; }

/* ==========================================================================
   ADD-TO-LIST MODAL
   ========================================================================== */
.list-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 20px; }
.list-modal.is-open { display: flex; }
.list-modal__overlay { position: absolute; inset: 0; background: rgba(5,19,28,.5); animation: floatIn .2s ease; }
.list-modal__panel { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--sh-pop); padding: 24px; animation: modalPop .3s var(--ease-out); max-height: 86vh; overflow-y: auto; }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.list-modal__head { display: flex; align-items: center; justify-content: space-between; }
.list-modal__head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.list-modal__x { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--c-line); background: #fff; border-radius: 50%; color: var(--c-ink); }
.list-modal__x svg { width: 16px; height: 16px; }
.list-modal__sub { font-size: 13px; color: var(--c-ink-2); margin: 6px 0 16px; }
.list-modal__lists { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.list-modal__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  background: #fff; border: 1.5px solid var(--c-line); border-radius: var(--r-lg); padding: 13px 16px; cursor: pointer;
  font-family: inherit; text-align: left; transition: border-color .2s, background .2s, transform .12s; }
.list-modal__row:hover { border-color: var(--c-ink); background: var(--c-surface); }
.list-modal__row:active { transform: scale(.99); }
.list-modal__row .nm { font-size: 14px; font-weight: 600; color: var(--c-ink); }
.list-modal__row .ct { font-size: 12px; color: var(--c-ink-2); }
.list-modal__row .add { color: var(--c-accent); font-weight: 700; font-size: 13px; }
.list-modal__row.is-done { border-color: var(--c-success); background: var(--c-success-bg); }
.list-modal__row.is-done .add { color: var(--c-success); }
.list-modal__empty { font-size: 13px; color: var(--c-ink-2); padding: 6px 2px 2px; }
.list-modal__new { display: flex; gap: 8px; border-top: 1px solid var(--c-line); padding-top: 16px; }
.list-modal__new input { flex: 1; min-width: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 0 14px; height: 44px; font-size: 14px; font-family: inherit; }
.list-modal__new input:focus { outline: 0; border-color: var(--c-accent); background: #fff; box-shadow: 0 0 0 3px rgba(0,136,204,.1); }
.list-modal__new .btn { white-space: nowrap; }

/* ==========================================================================
   FLOATING CALL BUTTON
   ========================================================================== */
.fab-call { display: none; }   /* mobile only — shown below */
.fab-call { position: fixed; left: 24px; bottom: 24px; z-index: 80; align-items: center; gap: 0;
  height: 58px; padding: 0; background: var(--c-accent); color: #fff; border-radius: var(--r-pill);
  box-shadow: 0 14px 34px -10px rgba(0,136,204,.6), 0 4px 10px rgba(5,19,28,.15);
  overflow: hidden; max-width: 58px; transition: max-width .35s var(--ease-out), background .2s, transform .2s;
  animation: fabIn .3s var(--ease-out) .5s both; }
.fab-call__ic { flex: 0 0 58px; display: grid; place-items: center; }
.fab-call__ic svg { width: 24px; height: 24px; }
.fab-call__label { font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; padding-right: 22px; }
.fab-call:hover, .fab-call:focus-visible { max-width: 260px; background: var(--c-accent-d); }
.fab-call:active { transform: scale(.96); }
/* pulse ring */
.fab-call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(0,136,204,.5); animation: fabPulse 2.6s var(--ease) infinite; }
@keyframes fabIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(0,136,204,.45); } 70% { box-shadow: 0 0 0 16px rgba(0,136,204,0); } 100% { box-shadow: 0 0 0 0 rgba(0,136,204,0); } }
@media (prefers-reduced-motion: reduce) { .fab-call { animation: none; } .fab-call::after { animation: none; } }
@media (max-width: 1000px) { .fab-call { display: inline-flex; } }   /* mobile only */
@media (max-width: 640px) { .fab-call { left: 16px; bottom: 16px; height: 52px; max-width: 52px; } .fab-call__ic { flex-basis: 52px; } }
/* keep it clear of the drawer + don't peek through the overlay */
body.drawer-open .fab-call { opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ==========================================================================
   CONTENT PAGES (page.php) — legal & prose documents
   Terms, About, Contact. Set on the page rather than a card: a long legal
   document reads better as a plain measured column than boxed in a panel.
   ========================================================================== */
.page-doc { max-width: 760px; margin: 0 auto; padding: 52px var(--gutter) 84px; }

.page-doc__head { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--c-line); }
.page-doc__head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.9px; line-height: 1.15; color: var(--c-ink); }
.page-doc__intro { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--c-ink-2); max-width: 60ch; }

/* Prose. Scoped to .page-doc so it can't leak into product or account copy.
   Body sits at full ink, not the secondary grey — this is long-form reading. */
.page-doc .entry-content { font-size: 15.5px; line-height: 1.75; color: var(--c-ink); }
.page-doc .entry-content > :first-child { margin-top: 0; }
.page-doc .entry-content > :last-child { margin-bottom: 0; }

.page-doc .entry-content h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 700;
  letter-spacing: -.35px; line-height: 1.3; color: var(--c-ink); }
.page-doc .entry-content h3 { margin: 28px 0 10px; font-size: 16.5px; font-weight: 700; color: var(--c-ink); }
.page-doc .entry-content p { margin: 0 0 16px; }

.page-doc .entry-content ul,
.page-doc .entry-content ol { margin: 0 0 18px; padding-left: 20px; }
.page-doc .entry-content li { margin-bottom: 10px; padding-left: 4px; }
.page-doc .entry-content li:last-child { margin-bottom: 0; }
.page-doc .entry-content ul { list-style: disc; }
.page-doc .entry-content ol { list-style: decimal; }
.page-doc .entry-content li::marker { color: var(--c-accent); }

.page-doc .entry-content strong,
.page-doc .entry-content b { color: var(--c-ink); font-weight: 700; }
.page-doc .entry-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.page-doc .entry-content a:hover { color: var(--c-accent-d); }
.page-doc .entry-content hr { border: 0; border-top: 1px solid var(--c-line); margin: 34px 0; }
.page-doc .entry-content blockquote { margin: 0 0 18px; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--c-line-2); color: var(--c-ink-2); }
.page-doc .entry-content img { max-width: 100%; height: auto; border-radius: var(--r-md); }

/* Tables scroll rather than forcing the page sideways on mobile. */
.page-doc .entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.page-doc .entry-content th,
.page-doc .entry-content td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.page-doc .entry-content th { background: var(--c-surface); color: var(--c-ink); font-weight: 700; }

/* Utilities */
.muted { color: var(--c-ink-2); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .dept-grid, .prod-grid, .prod-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  :root { --gutter: 20px; }
  html, body.chase { overflow-x: hidden; }          /* kill accidental h-scroll */
  /* Header: logo (left) + account & basket grouped (right) on row 1,
     full-width search on row 2. The logo's <a> takes the auto margin so the
     account+basket group stays together at the right instead of wrapping. */
  .header-row .wrap { flex-wrap: wrap; row-gap: 14px; column-gap: 12px; }
  .nav-toggle { display: inline-flex; order: 0; }
  .header-row .wrap > a[aria-label="Chase Hardware home"] { order: 1; margin-right: auto; }
  .acct-chip { order: 2; }
  .basket-btn { order: 3; }
  .header-search { order: 4; flex: 1 1 100%; width: 100%; }
  .main-nav { display: none; }                      /* replaced by burger drawer */
  .mega { display: none !important; }
  .cart-layout, .checkout-layout, .account-grid, .shop-layout, .pdp, .pdp-info,
  .signup-band .wrap, .site-footer .main, .quick-layout, .order-detail-grid, .confirm-grid { grid-template-columns: 1fr; }
  .dept-grid, .prod-grid, .prod-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .filters, .order-summary, .checkout-summary, .account-nav, .pdp-gallery { position: static; }
  .footer-cols { flex-wrap: wrap; gap: 28px 40px; }
  .signup-band .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .signup-band form { flex-direction: column; align-items: stretch; width: 100%; }
  .signup-band input { width: 100%; }
  .order-detail-head, .acct-head, .help-cta, .quote-feature { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .quick-row, .dept-grid, .prod-grid, .prod-grid--3, .stat-cards, .cart-options,
  .topic-grid, .cat-grid, .saved-grid, .form-row, .pdp-meta { grid-template-columns: 1fr; }
  .hero h1, .dept-hero h1 { font-size: 28px; }
  .hero__inner { padding-left: var(--gutter); }
  .utility-bar .u-mid, .utility-bar .u-links { display: none; }
  .acct-chip > span:last-child { display: none; }   /* avatar only — saves width */
  .basket-btn > span:not(.count) { display: none; } /* icon + count only */
  .basket-btn { padding: 12px 14px; }
  .brand-logo { width: 124px; }
  .main-nav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-list { flex-wrap: nowrap; }
  .nav-list > li > a { white-space: nowrap; }
  /* Cart line → stack (flex): row1 image+meta, row2 qty / unit / total */
  .cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .cart-line__img { flex: 0 0 56px; }
  .cart-line__meta { flex: 1 1 calc(100% - 68px); }
  .cart-line .qty { order: 3; }
  .cart-line__unit { order: 4; margin-left: auto; }
  .cart-line__total { order: 5; }
  .header-search .search-go { padding: 11px 16px; }
  .order-line { grid-template-columns: 44px 1fr auto; }
  .order-line .q { display: none; }
  .pdp-thumbs { flex-direction: row; flex-wrap: wrap; }
  .pdp-summary h1, .pdp-price .amt { font-size: 24px; }
  .page-doc { padding: 32px var(--gutter) 56px; }
  .page-doc__head { margin-bottom: 26px; padding-bottom: 18px; }
  .page-doc__head h1 { font-size: 26px; letter-spacing: -.6px; }
  .page-doc .entry-content { font-size: 15px; }
  .page-doc .entry-content h2 { margin-top: 30px; font-size: 18px; }
}

/* Legal pages get printed and filed — drop the site chrome. */
@media print {
  .site-footer, .signup-band, .site-header, .utility-bar, .main-nav,
  .fab-call, .breadcrumb { display: none !important; }
  .page-doc { max-width: none; padding: 0; }
  .page-doc .entry-content { color: #000; font-size: 11pt; line-height: 1.5; }
  .page-doc .entry-content h2 { page-break-after: avoid; }
  .page-doc .entry-content p, .page-doc .entry-content li { page-break-inside: avoid; }
}

/* About us (template-about.php) — 1.3.8 */
.about-hero { min-height: 300px; }
.about-hero .dept-hero__inner p { max-width: 640px; }
.about-story { padding-top: 28px; padding-bottom: 8px; font-size: 16px; line-height: 1.7; color: var(--c-ink-2); }
.about-story p { max-width: 760px; }
.about-story p + p { margin-top: 14px; }
/* Ranges: one per row, 50/50, alternating image left / right. */
.about-ranges { display: grid; grid-template-columns: 1fr; gap: 20px; }
.about-range { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.about-range:hover { box-shadow: 0 10px 30px rgba(5,19,28,.08); transform: translateY(-2px); }
.about-range:nth-child(even) .about-range__img { order: 2; }
.about-range__img { background: var(--c-surface); }
.about-range__img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.about-range__body { padding: 36px 40px; align-self: center; }
.about-range__body h3 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
.about-range__body p { font-size: 14.5px; line-height: 1.7; color: var(--c-ink-2); }
.about-range__body p + p { margin-top: 10px; }
.about-range__body .link-blue { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.about-cta { padding-top: 12px; padding-bottom: 64px; }
@media (max-width: 760px) {
	.about-range { grid-template-columns: 1fr; }
	.about-range:nth-child(even) .about-range__img { order: 0; }
	.about-range__img img { min-height: 0; aspect-ratio: 16/9; }
	.about-range__body { padding: 22px 22px 26px; }
	.about-cta { padding-bottom: 40px; }
}
