/* ==========================================================================
   Automotion Plus: header & category navigation
   ========================================================================== */

:root {
  --navy: #002e5b;          /* brand blue */
  --navy-800: #002850;
  --navy-900: #001f3f;      /* darker blue: hovers, text on yellow */
  --amber: #ffba00;         /* brand yellow */
  --amber-600: #e0a300;
  --ink: #0f2235;
  --muted: #56687d;
  --line: #e1e6ec;
  --surface: #f4f6f9;
  --white: #fff;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --container: 1360px;
  --gutter: 24px;
  --topbar-h: 38px;          /* updated from JS to the real height */
  --masthead-h: 84px;
  --rail-h: 78px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-panel: 0 28px 48px -20px rgba(0, 31, 63, .38);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  color: var(--navy);
  transition: background-color .15s;
}
.icon-btn:hover { background: var(--surface); }

/* --------------------------------------------------------------------------
   Header shell: sticky; the top bar scrolls away, masthead + rail stay
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: calc(var(--topbar-h) * -1);
  z-index: 50;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Promotions marquee (very top of the site)
   -------------------------------------------------------------------------- */
.marquee {
  display: flex;
  align-items: center;
  height: 34px;
  overflow: hidden;
  background: var(--amber);
  color: var(--navy-900);
  font: 600 14px/1 var(--font);
}
.marquee__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { padding-inline: 20px; white-space: nowrap; }
.marquee__sep { font-weight: 700; opacity: .5; }
.marquee__code {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 9px;
  border: 1.5px dashed var(--navy-900);
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
  font-weight: 700;
  letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   Top information bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #c3d2e2;
  font-size: 13px;
  line-height: 1.3;
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 38px;
}
.topbar__contact { display: flex; align-items: center; gap: 18px; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--white);
  font-weight: 600;
  letter-spacing: .02em;
}
.topbar__phone svg { color: var(--amber); }
.topbar__phone:hover span { text-decoration: underline; text-underline-offset: 3px; }
.topbar__cities i { font-style: normal; color: #5a7896; margin-inline: 4px; }

/* Accepted payment methods: every logo sits in an identical white card */
.payments { display: flex; align-items: center; gap: 12px; }
.payments__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: #9db2c8;
  white-space: nowrap;
}
.payments__label svg { color: var(--amber); }
.payments__list { display: flex; align-items: center; gap: 6px; }
.pay {
  flex: none;
  display: block; /* block (not grid) so the img's 100% height resolves to the card */
  width: 42px; height: 26px;
  padding: 4px 6px;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}
.pay img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Google Pay / Apple Pay artwork carries its own outline: let it fill the card */
.pay--framed { padding: 2px; }
.pay--apple { padding: 0; }
.pay--apple img { object-fit: cover; } /* trims the square file's empty margin to its card frame */
.pay--amex { background: #016fd0; padding: 6px 5px; } /* white wordmark on Amex blue */
.pay--fill { padding: 0; } /* Afterpay artwork is a full badge with its own background */
.pay--fill img { object-fit: cover; }

.topbar__account { justify-self: end; display: flex; gap: 10px; color: #5a7896; }
.topbar__account a { color: #dbe5ef; font-weight: 500; }
.topbar__account a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Masthead: logo / search / actions
   -------------------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  column-gap: 40px;
  height: var(--masthead-h);
  transition: height .25s var(--ease);
}
.masthead__menu { display: none; grid-area: menu; }
.masthead__logo { grid-area: logo; }
.masthead__logo img {
  height: 54px; width: auto;
  transition: height .25s var(--ease);
}

/* Search */
.search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 720px;
  width: 100%;
  justify-self: center;
  height: 50px;
  padding: 4px;
  background: var(--surface);
  border: 1.5px solid #d3dbe4;
  border-radius: var(--radius);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search:focus-within {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(255, 186, 0, .3);
}
.search__icon { flex: none; margin-inline: 10px 8px; color: #8798ab; }
.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: 500 15.5px/1 var(--font);
  color: var(--ink);
  outline: none;
}
.search__input::placeholder { color: #8798ab; font-weight: 400; }
.search__input::-webkit-search-cancel-button { cursor: pointer; }
.search__submit {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%;
  padding-inline: 20px 16px;
  background: var(--amber);
  color: var(--navy-900);
  border-radius: 4px;
  font: 700 15px/1 var(--font);
  letter-spacing: .02em;
  transition: background-color .15s, color .15s;
}
.search__submit svg { color: var(--navy-900); transition: transform .2s var(--ease), color .15s; }
.search__submit:hover { background: var(--navy); color: var(--white); }
.search__submit:hover svg { color: var(--amber); }
.search__submit:hover svg { transform: translateX(3px); }
.search__submit:focus-visible { outline-offset: 3px; }

.search__suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: -1.5px; right: -1.5px;
  z-index: 5;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}
.search__suggest-head {
  padding: 8px 10px 6px;
  font: 600 11.5px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.suggest-item[aria-selected="true"], .suggest-item:hover { background: var(--surface); }
.suggest-item mark { background: none; color: inherit; font-weight: 700; }
.suggest-item__dept { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.suggest-item__label { font-weight: 500; font-size: 15px; }

/* Shared icon tile (amber line icons sit on navy) */
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tile, 56px);
  aspect-ratio: 1;
  background: var(--navy);
  border-radius: 4px;
  transition: background-color .2s;
}
.tile img {
  width: 64%; height: 64%;
  object-fit: contain;
}

/* Actions: every item shares one style — soft icon square + small hint + bold label,
   separated by hairlines. Trade User gets an amber square as the standout CTA. */
.actions { grid-area: actions; display: flex; align-items: center; }
.action {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 18px;
  color: var(--navy);
  white-space: nowrap;
}
.action + .action::before {
  content: "";
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--line);
}
.action:last-child { padding-right: 0; }
.action__icon {
  position: relative;
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: #edf1f6;
  border-radius: 10px;
  color: var(--navy);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.action--trade .action__icon { background: var(--amber); color: var(--navy-900); box-shadow: 0 6px 14px -8px rgba(224, 163, 0, .9); }
.action__text {
  display: grid;
  gap: 3px;
  font-size: 14.5px; font-weight: 600; line-height: 1.1;
}
.action__text small { font-size: 12px; font-weight: 500; color: var(--muted); }
.action:hover .action__icon { background: var(--navy); color: var(--amber); transform: translateY(-1px); }
.action:hover .action__text { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }
.action:hover .action__text small { text-decoration: none; }
.action:focus-visible { outline-offset: 2px; border-radius: 10px; }


/* --------------------------------------------------------------------------
   Category bar (desktop): Sale + all 13 categories
   -------------------------------------------------------------------------- */
.catnav {
  position: relative;
  background: var(--navy);
  color: var(--white);
}
/* Gold edge along the bottom of the bar: frames the header in gold (marquee above, this below) */
.catnav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--amber);
  z-index: 1;
  pointer-events: none;
}
.catnav__bar {
  position: relative;
  display: flex;
  height: var(--rail-h);
  transition: height .25s var(--ease);
}
.rail {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { display: flex; flex: 1 0 auto; }
.rail > li.rail__item--sale { flex: none; }

.rail__btn, .rail__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-inline: 10px;
  color: #e3ebf3;
  transition: color .15s, background-color .15s;
}
/* Category icon stacked above the label (always visible, including while scrolling) */
.rail__btn { flex-direction: column; gap: 5px; }
.rail__icon {
  flex: none;
  width: 26px; height: 26px;
  object-fit: contain;
  transition: height .25s var(--ease), opacity .2s, transform .2s var(--ease), margin .25s var(--ease);
}
.rail__btn:hover .rail__icon, .rail__btn[aria-expanded="true"] .rail__icon { transform: translateY(-2px); }

/* Fixed two-line label slot with the text centred in it, so every icon sits on the same
   row and every name shares the same centre line, whether it wraps to 1 or 2 lines. */
.rail__label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.16em; /* 2 lines x 1.08 line-height */
  font: 600 15px/1.08 var(--font-cond);
  letter-spacing: .015em;
  text-align: center;
  text-wrap: balance;
}
/* hairline separators */
.rail > li + li > .rail__btn::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 1px;
  background: rgba(255, 255, 255, .1);
}
/* Under the hovered / open category the gold edge thickens (grows from the centre) */
.rail__btn::after, .rail__link::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 0;
  height: 6px;
  background: var(--amber);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform .22s var(--ease);
  z-index: 2;
}
.rail__btn:hover, .rail__link:hover,
.rail__btn[aria-expanded="true"] { color: var(--amber); background: rgba(255, 255, 255, .07); }
.rail__btn:hover::after, .rail__link:hover::after,
.rail__btn[aria-expanded="true"]::after { transform: scaleX(1); }
.rail > li:has(> .rail__btn[aria-expanded="true"]) + li > .rail__btn::before { opacity: 0; }
.rail__btn:focus-visible, .rail__link:focus-visible { outline-offset: -3px; }

/* Sale badge is a wider solid graphic: same height as the icons, a touch narrower visually */
.rail__icon--sale { width: 34px; } /* same 26px-tall box as the icons; wider badge fits inside */

/* Scroll arrows, shown only when the bar overflows (narrow desktops) */
.rail-scroll {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  width: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
}
.rail-scroll--prev { left: var(--gutter); justify-items: start; padding-left: 4px; background: linear-gradient(90deg, var(--navy) 55%, rgba(0, 46, 91, 0)); }
.rail-scroll--next { right: var(--gutter); justify-items: end; padding-right: 4px; background: linear-gradient(270deg, var(--navy) 55%, rgba(0, 46, 91, 0)); }
.rail-scroll:hover { color: var(--amber); }

.rail-fallback { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 14px; }
.rail-fallback a { color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   Hover panels: category image (left) + sub-category cards (right)
   -------------------------------------------------------------------------- */
/* Every panel is the same fixed size (capped to the viewport). Only the card area on the
   right scrolls, when a category has more sub-categories than fit. */
.panel {
  --panel-h: 340px;
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: min(var(--panel-h), var(--panel-max, 70vh));
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  animation: panel-in .2s var(--ease);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.panel > .container { height: 100%; }

.panel__inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: 100%;
}

/* Left: category image + title, with a faint "gate bars" texture */
.panel__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 20px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 20px) bottom / 100% 60px no-repeat,
    var(--navy);
  color: #c3d2e2;
  overflow: hidden;
}
.panel__feature::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  height: 2px;
  background: rgba(255, 255, 255, .07);
}
.panel__visual {
  flex: none;
  display: grid;
  place-items: center;
  height: 132px;
  margin-bottom: 16px;
  background: var(--navy);
  border-radius: 4px;
  overflow: hidden;
}
.panel__visual img { width: auto; height: 60%; object-fit: contain; }
/* Category photos are white-background product shots with text baked in, in mixed
   aspect ratios: show them whole (contain) on white, never cropped or stretched. */
.panel__visual--photo { display: block; padding: 10px; background: var(--white); }
.panel__visual--photo img { width: 100%; height: 100%; object-fit: contain; }
.panel__eyebrow {
  font: 600 12px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--amber);
}
.panel__title {
  margin: 10px 0 0;
  font: 700 22px/1.08 var(--font-cond);
  color: var(--white);
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.panel__cta {
  position: relative;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  color: var(--white);
  font-weight: 600;
}
.panel__cta svg { color: var(--amber); transition: transform .2s var(--ease); }
.panel__cta:hover svg { transform: translateX(4px); }
.panel__cta:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }

/* Right: sub-category cards in a scroll area */
.panel__body {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Header row: label + close button, outside the scroll area so it never covers cards */
.panel__bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px 0 28px;
}
.panel__bar-label {
  font: 600 12px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.panel__close {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--navy);
  transition: background-color .15s, color .15s, border-color .15s;
}
.panel__close:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.panel__close:hover svg { color: var(--amber); }

.panel__main {
  flex: 1;
  min-height: 0;
  padding: 12px 24px 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c3ccd7 transparent;
}
.panel__main::-webkit-scrollbar { width: 8px; }
.panel__main::-webkit-scrollbar-thumb { background: #c3ccd7; border-radius: 4px; border: 2px solid var(--white); }
.panel__main::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Fade + hint at the bottom while there is more to scroll */
.panel__more {
  position: absolute;
  left: 0; right: 10px; bottom: 0;
  height: 64px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 70%);
  pointer-events: none;
  transition: opacity .2s;
}
.panel__more span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.panel__more svg { width: 10px; height: 10px; }
.panel__body.is-end .panel__more { opacity: 0; }

.subs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* always 5 per row on desktop */
  gap: 20px 16px;
  align-items: start;
}

/* Cards are identical in size: fixed image ratio + a 2-line name slot. */
.sub { display: flex; flex-direction: column; min-width: 0; }
.sub__link { display: block; }
/* Sub-category images are a mix of white-background product cut-outs and full photos,
   mostly square: shown whole (contain) on white so every card frame looks the same. */
.sub__media {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 6px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .2s;
}
.sub__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.sub__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: 2.6em;
  margin-top: 10px;
  font-weight: 600; font-size: 15px; line-height: 1.3;
  color: var(--ink);
}
.sub__link:hover .sub__media, .sub__link:focus-visible .sub__media { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.sub__link:hover .sub__media img { transform: scale(1.04); }
.sub__link:hover .sub__name, .sub__link:focus-visible .sub__name {
  color: var(--navy);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber);
}
.sub__link:focus-visible { outline-offset: 4px; }

/* --------------------------------------------------------------------------
   Scrim (behind mega panels and the drawer)
   -------------------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 20, 40, .42);
  animation: fade-in .2s ease-out;
}
.scrim.is-drawer { z-index: 60; }
@keyframes fade-in { from { opacity: 0; } }

/* --------------------------------------------------------------------------
   Drawer (tablet + mobile)
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 70;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 20px 0 40px -20px rgba(0, 20, 40, .5);
  animation: drawer-in .28s var(--ease);
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(-100%); } }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  padding: 0 8px 0 20px;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}
.drawer__title { font: 700 19px/1 var(--font-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--white); }
.drawer__close { color: var(--white); }
.drawer__close:hover { background: rgba(255, 255, 255, .1); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* Drill-down levels */
.dview.is-fwd { animation: dview-fwd .22s var(--ease); }
.dview.is-back { animation: dview-back .22s var(--ease); }
@keyframes dview-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes dview-back { from { opacity: 0; transform: translateX(-28px); } }

.dview__back {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600; font-size: 14px;
  color: var(--navy);
}
.dview__back-chev { width: 12px; height: 12px; transform: rotate(90deg); }
.dview__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 20px 12px;
  border-bottom: 2px solid var(--navy);
}
.dview__title { margin: 0; font: 700 23px/1.1 var(--font-cond); color: var(--navy); letter-spacing: .01em; }
.dview__shop {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--navy);
}
.dview__shop svg { color: var(--amber-600); }

.dview__list > li { border-bottom: 1px solid var(--line); }
.drow {
  --tile: 38px;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 9px 20px;
  text-align: left;
  font-weight: 600; font-size: 16px; line-height: 1.25;
  color: var(--ink);
}
.drow:active { background: var(--surface); }
.drow__count { margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.drow__chev { flex: none; width: 12px; height: 12px; color: var(--navy); transform: rotate(-90deg); }
.dview__all {
  display: inline-flex; margin: 16px 20px 12px;
  font-weight: 600; font-size: 14px; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px;
}

.drawer__util { padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer__util a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  font-weight: 600;
}
.drawer__util img { width: 32px; height: 32px; object-fit: contain; }
.drawer__util .is-sale img { width: 40px; height: 30px; }
.drawer__util .tile { --tile: 32px; }

.drawer__foot { display: grid; gap: 10px; padding: 20px; }
.drawer__phone {
  display: grid; place-items: center;
  height: 48px;
  border-radius: var(--radius);
  font-weight: 700;
}
.drawer__phone { background: var(--amber); color: var(--navy-900); }
.drawer__cities { text-align: center; font-size: 13px; color: var(--muted); }
.drawer__payments { display: grid; grid-template-columns: repeat(4, 42px); justify-content: center; padding-top: 4px; }
.drawer__payments .pay { box-shadow: 0 0 0 1px var(--line); }

/* --------------------------------------------------------------------------
   Condensed state when scrolled
   -------------------------------------------------------------------------- */
.site-header.is-condensed { --masthead-h: 66px; box-shadow: 0 8px 20px -14px rgba(0, 31, 63, .4); }
.site-header.is-condensed .masthead__logo img { height: 42px; }

/* --------------------------------------------------------------------------
   Homepage banner slider (images only, auto-scroll — see js/banners.js)
   -------------------------------------------------------------------------- */
/* Full width, edge to edge: the banners are designed with centred content and
   backgrounds that run out to the sides. */
/* Height = page width / banner shape (--hero-ratio, set from the first banner by
   js/banners.js). Width always stays 100% of the page. */
.hero { container-type: inline-size; }
.hero__viewport {
  --hero-ratio: 4.369; /* banner-1 (3421 x 783) until the image loads */
  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(100cqw / var(--hero-ratio));
  background: var(--line);
}
/* Desktop: never shorter than 350px. Narrower windows trim the plain side margins of the
   banner (object-fit: cover) instead of shrinking it; centred text stays fully visible. */
@media (min-width: 1080px) {
  .hero__viewport { height: max(350px, calc(100cqw / var(--hero-ratio))); }
}
/* Tablets and phones: taller than the banner's natural shape so its text stays readable.
   The image is zoomed (cover), trimming only the plain left/right edges. */
@media (max-width: 1079px) {
  .hero__viewport { height: max(150px, calc(100cqw / var(--hero-ratio))); }
}
@media (max-width: 360px) {
  .hero__viewport { height: 132px; } /* very small phones: less zoom, so banner text isn't trimmed */
}
.hero__track { display: flex; height: 100%; will-change: transform; }
.hero__slide { flex: 0 0 100%; height: 100%; }
.hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Shop by category (tiles rendered by js/categories.js)
   Light page background with gold accents. Gold is used as fills, lines and highlights,
   never as plain text on a light background (too low contrast to read).
   -------------------------------------------------------------------------- */
/* No overflow: hidden here: it would stop the promo column from staying in view (sticky).
   The decorative layers below sit inside the section's bounds anyway. */
.cats {
  position: relative;
  isolation: isolate;
  padding: 76px 0 88px;
  background: radial-gradient(900px 340px at 50% 0%, rgba(255, 186, 0, .11), transparent 70%);
}
/* Gold edge at the top (echoes the gold edge under the category bar) */
.cats::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--amber);
}
/* Faint vertical "gate bars" texture behind the heading, fading out downwards */
.cats::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 360px;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(0, 46, 91, .035) 0 2px, transparent 2px 30px);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}

.cats__head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.cats__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0; /* it is the section's h2: reset heading margins */
  font: 600 14.5px/1 var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.cats__eyebrow::before, .cats__eyebrow::after {
  content: "";
  width: 36px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.cats__eyebrow::after { transform: scaleX(-1); }
.cats__lead { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.cats__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}
.cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* every row the same height */
  gap: 20px;
}

/* Tile */
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0, 31, 63, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat__media {
  --pad: 14px;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3; /* identical frame for every tile */
  background: var(--white);
}
/* Absolutely placed so a tall image can never stretch its frame */
.cat__media img {
  position: absolute;
  top: var(--pad); left: var(--pad);
  width: calc(100% - var(--pad) * 2);
  height: calc(100% - var(--pad) * 1.4);
  object-fit: contain; /* product photos with text: shown whole, never cropped */
  transition: transform .45s var(--ease);
}
.cat__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}
.cat__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
  font-weight: 700; font-size: 15.5px; line-height: 1.25;
  color: var(--navy);
}
.cat__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
/* Gold arrow chip in every tile: always visible, fills solid gold on hover */
.cat__go {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 186, 0, .2);
  color: var(--navy-900);
  transition: background-color .2s, transform .25s var(--ease);
}
.cat__go svg { width: 16px; height: 16px; }
.cat__badge {
  display: inline-block;
  margin-left: 8px;
  vertical-align: 1px;
  padding: 3px 8px;
  background: #e5262d;
  color: var(--white);
  border-radius: 4px;
  font: 700 12px/1 var(--font-cond);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cat:hover, .cat:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--amber), 0 26px 44px -20px rgba(0, 31, 63, .45);
}
.cat:hover .cat__media img { transform: scale(1.06); }
.cat:hover .cat__go, .cat:focus-visible .cat__go { background: var(--amber); transform: translateX(3px); }
.cat:focus-visible { outline: none; }

/* Promo column (stays in view while the grid scrolls past) */
.cats__promos {
  position: sticky;
  top: calc(var(--masthead-h) + var(--rail-h) + 24px);
  display: grid;
  gap: 20px;
}
.promo {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 36px -18px rgba(0, 31, 63, .4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.promo img { display: block; width: 100%; height: auto; }
a.promo:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -20px rgba(0, 31, 63, .5); }
/* Two links over one image: top half Motorline, bottom half Roger */
.promo__hit { position: absolute; left: 0; right: 0; transition: background-color .2s; }
.promo__hit--top { top: 0; height: 50%; }
.promo__hit--bottom { bottom: 0; height: 50%; }
.promo__hit:hover { background: rgba(255, 255, 255, .08); }
.promo__hit:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }

@media (max-width: 1179px) {
  .cats__layout { grid-template-columns: 1fr; }
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Promos move below the grid, side by side */
  .cats__promos {
    position: static;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    align-items: start;
    margin-top: 12px;
  }
  .promo { width: 270px; }
}

@media (max-width: 720px) {
  .cats { padding: 44px 0 56px; }
  .cats__head { margin-bottom: 26px; }
  .cats__lead { font-size: 14.5px; }
  .cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat { border-radius: 12px; }
  .cat__media { --pad: 10px; }
  .cat__body { padding: 10px 12px 12px; }
  .cat__name { font-size: 14px; }
  .cat__meta { font-size: 12px; }
  .cat__go { width: 26px; height: 26px; }
  .cats__promos { grid-template-columns: 1fr; justify-items: center; }
  .promo { width: min(100%, 292px); }
}

/* --------------------------------------------------------------------------
   Latest products carousel (cards rendered by js/products.js)
   -------------------------------------------------------------------------- */
.latest { padding: 0 0 88px; }

.latest__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
/* Same label style as "Shop by category", left-aligned with a single gold line */
.latest__title {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  font: 600 14.5px/1 var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.latest__title::before { content: ""; width: 36px; height: 3px; background: var(--amber); border-radius: 2px; }
.latest__nav { display: flex; gap: 10px; }
.latest__arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-900);
  box-shadow: 0 8px 16px -10px rgba(224, 163, 0, .9);
  transition: background-color .2s, color .2s, transform .2s var(--ease), opacity .2s;
}
.latest__arrow:hover:not(:disabled) { background: var(--navy); color: var(--amber); transform: translateY(-2px); }
.latest__arrow:disabled { background: var(--line); color: #9aa8b8; box-shadow: none; cursor: default; }
.latest:not(.is-scrollable) .latest__nav { visibility: hidden; }

/* Horizontal track: 4 cards visible on desktop, snaps card by card. The padding gives
   hovered cards room to lift and show their gold outline without being clipped. */
.latest__track {
  --gap: 20px;
  --per-view: 4;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px; /* snap to the padded edge, so the first card starts at scroll 0 */
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 6px 26px;
  margin: -10px -6px -26px;
}
.latest__track::-webkit-scrollbar { display: none; }
.latest__item { scroll-snap-align: start; display: flex; }

/* Card: photo row (with the action buttons overlaid), then details */
.prod {
  container-type: inline-size; /* lets the photo height follow the card width (cqw) */
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: 100%;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0, 31, 63, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prod:hover, .prod:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--amber), 0 26px 44px -20px rgba(0, 31, 63, .45);
}

.prod__media { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; }
.prod__strip {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px;
  padding: 12px 14px 0;
}
.prod__badge {
  padding: 5px 10px;
  background: #e5262d;
  color: var(--white);
  border-radius: 999px;
  font: 700 12.5px/1 var(--font-cond);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.prod__off {
  margin-left: auto;
  padding: 5px 9px;
  background: var(--navy);
  color: var(--amber);
  border-radius: 999px;
  font: 700 13px/1 var(--font);
}
/* Photo area: card width minus 20px tall (a touch shorter than square) */
.prod__img { position: relative; display: block; height: calc(100cqw - 20px); overflow: hidden; }
.prod__img img {
  position: absolute; inset: 6px 14px 10px;
  width: calc(100% - 28px); height: calc(100% - 16px);
  object-fit: contain;
  transition: transform .45s var(--ease);
}
.prod:hover .prod__img img { transform: scale(1.05); }

/* Add to cart / Buy now: overlaid on the bottom of the photo, revealed on hover/focus */
.prod__actions {
  grid-row: 1; grid-column: 1;
  align-self: end;
  z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 28px 12px 12px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .96) 45%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s, transform .3s var(--ease);
}
.prod:hover .prod__actions, .prod:focus-within .prod__actions { opacity: 1; transform: none; }
.prod__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px;
  padding-inline: 10px;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.prod__btn--cart { background: var(--navy); color: var(--white); }
.prod__btn--cart svg { color: var(--amber); }
.prod__btn--cart:hover { background: var(--navy-900); }
.prod__btn--buy { background: var(--amber); color: var(--navy-900); }
.prod__btn--buy:hover { background: #ffc933; }
.prod__btn:active { transform: scale(.97); }

.prod__body {
  grid-row: 3;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}
.prod__sku {
  min-height: 1.3em;
  font-size: 12px; letter-spacing: .03em;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod__title {
  margin: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
  font-weight: 700; font-size: 16px; line-height: 1.25;
  color: var(--navy);
}
.prod__title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--amber); }
.prod__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  font-size: 13.5px; line-height: 1.45;
  color: var(--muted);
}
.prod__price {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-top: auto;
  min-height: 34px;
  padding-top: 6px;
}
.prod__now { font: 700 22px/1 var(--font); color: var(--navy); }
.prod__was { font-size: 14px; color: var(--muted); text-decoration-color: #e5262d; text-decoration-thickness: 1.5px; }
/* "View product": full-width gold-tint button on its own row under the price, so every
   card keeps the same layout whatever the price length */
.prod__view {
  flex-basis: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px;
  margin-top: 6px;
  background: rgba(255, 186, 0, .22);
  border-radius: 8px;
  font-weight: 700; font-size: 13.5px;
  color: var(--navy-900);
  white-space: nowrap;
  transition: background-color .2s;
}
.prod__view svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.prod__view:hover { background: var(--amber); }
.prod__view:hover svg { transform: translateX(3px); }

/* Delivery strip: replaces "View product" on products with a delivery type.
   Same slot and height as the button, so every card keeps the same layout. */
.prod__ship {
  flex-basis: 100%;
  display: flex; align-items: center; gap: 10px;
  height: 38px;
  margin-top: 6px;
  padding: 0 12px;
  border-radius: 8px;
}
.prod__ship svg { flex: none; }
.prod__ship-text { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.prod__ship strong { font-weight: 700; font-size: 13.5px; }
.prod__ship small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.prod__ship--fast { background: #e7f6ec; color: #13703a; }
.prod__ship--fast small { color: #2f7a4c; }
.prod__ship--freight { background: #e8eef6; color: var(--navy); }
.prod__ship--freight svg { color: var(--amber-600); }
.prod__ship--freight small { color: var(--muted); }

/* Touch screens (no hover): buttons always visible, below the photo */
@media (hover: none) {
  .prod__actions {
    grid-row: 2;
    opacity: 1; transform: none;
    padding: 4px 14px 14px;
    background: none;
  }
  .prod:hover, .prod:focus-within { transform: none; }
}

@media (max-width: 1079px) {
  .latest__track { --per-view: 3; --gap: 16px; }
}
@media (max-width: 720px) {
  .latest { padding-bottom: 56px; }
  .latest__track { --per-view: 1.35; --gap: 12px; } /* next card peeks in: swipe to browse */
  .latest__arrow { width: 38px; height: 38px; }
  .prod__body { padding: 12px 14px 14px; }
  .prod__title { font-size: 15px; }
  .prod__now { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Featured collections: stacking cards (depth effect from js/showcase.js)
   Each card sticks under the header; the next slides up over it, slightly lower so
   the edges of earlier cards peek out. Covered cards shrink and dim via --p (0..1).
   -------------------------------------------------------------------------- */
.showcase { padding: 0 0 96px; }
.showcase__head {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.showcase__title {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  font: 600 14.5px/1 var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.showcase__title::before { content: ""; width: 36px; height: 3px; background: var(--amber); border-radius: 2px; }

.stack {
  --stack-top: 170px;  /* set from the real header height by js/showcase.js */
  --card-h: 400px;
  --peek: 22px;        /* how much of each earlier card stays visible above the next */
  display: grid;
  gap: 32px;
  margin: 0; padding: 0;
  /* padding-bottom is set by js/showcase.js: just enough room after the last card for it
     to settle on the stack, even when nothing else follows on the page */
  list-style: none;
}
.stack__item {
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * var(--peek));
}

/* Image-only card: takes the image's own shape (--r), capped at --card-h. When the cap
   applies, the image is shown whole and the sides are filled with the image's own
   background colour (--bg), so it looks seamless. */
.stack__card {
  --p: 0;
  display: block;
  width: 100%;              /* explicit, so the height cap never narrows the card */
  aspect-ratio: var(--r);
  max-height: var(--card-h);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg, var(--white));
  box-shadow: 0 -8px 26px -18px rgba(0, 31, 63, .35), 0 26px 50px -28px rgba(0, 31, 63, .55);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * .06));
  filter: brightness(calc(1 - var(--p) * .28));
  will-change: transform;
  transition: box-shadow .3s var(--ease);
}
.stack__card img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain; /* whole image, never cropped */
}
.stack__card:hover, .stack__card:focus-visible {
  box-shadow: 0 0 0 3px var(--amber), 0 26px 50px -28px rgba(0, 31, 63, .55);
}
.stack__card:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .stack__card { transform: none; filter: none; }
}

@media (max-width: 1079px) {
  .stack { --card-h: 360px; }
}

@media (max-width: 720px) {
  .showcase { padding-bottom: 56px; }
  .stack { --peek: 14px; gap: 20px; }
  .stack__card { border-radius: 14px; }
}

/* --------------------------------------------------------------------------
   Two-up grid (Super-Intensive + Turbo Speed): image on top (exact shape, nothing
   over it) + caption bar with the name and a "Shop now" button
   -------------------------------------------------------------------------- */
.duo { padding: 0 0 96px; }
.duo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.duo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 18px 36px -22px rgba(0, 31, 63, .4);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.duo__media {
  position: relative;
  display: block;
  aspect-ratio: 600 / 282; /* both images share this shape, so nothing is cropped */
  overflow: hidden;
  isolation: isolate;
}
.duo__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
/* Light sweep across the image on hover */
.duo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .15) 54%, transparent 70%);
  transform: translateX(-110%);
  pointer-events: none;
}
.duo__card:hover .duo__media::after { transform: translateX(110%); transition: transform .9s var(--ease); }

.duo__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px 14px 22px;
  border-top: 1px solid var(--line);
}
.duo__text { display: grid; gap: 3px; min-width: 0; }
.duo__text strong { font-weight: 700; font-size: 16.5px; line-height: 1.2; color: var(--navy); }
.duo__text small {
  font-size: 13.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.duo__cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 186, 0, .22);
  color: var(--navy-900);
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background-color .25s, box-shadow .25s;
}
.duo__cta svg { transition: transform .25s var(--ease); }

.duo__card:hover, .duo__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--amber), 0 30px 50px -24px rgba(0, 31, 63, .55);
}
.duo__card:hover .duo__media img { transform: scale(1.035); }
.duo__card:hover .duo__cta, .duo__card:focus-visible .duo__cta { background: var(--amber); box-shadow: 0 8px 18px -10px rgba(224, 163, 0, .9); }
.duo__card:hover .duo__cta svg { transform: translateX(3px); }
.duo__card:focus-visible { outline: none; }

@media (hover: none) {
  .duo__card:hover { transform: none; }
}
@media (max-width: 720px) {
  .duo { padding-bottom: 56px; }
  .duo__grid { grid-template-columns: 1fr; gap: 14px; }
  .duo__card { border-radius: 12px; }
  .duo__bar { padding: 10px 12px 10px 14px; gap: 10px; }
  .duo__text strong { font-size: 15px; }
  .duo__text small { font-size: 12.5px; }
  .duo__cta { padding: 8px 11px 8px 13px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Our brands: continuously scrolling logo strip (copies added by js/brands.js)
   -------------------------------------------------------------------------- */
.brands { padding: 0 0 96px; }
.brands__viewport {
  overflow: hidden;
  padding: 10px 0 24px;          /* room for the hover lift and shadow */
  margin: -10px 0 -24px;
  /* soft fade at both ends */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands__track {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0; padding: 0;
  list-style: none;
  animation: brands-scroll var(--brands-dur, 40s) linear infinite;
}
@keyframes brands-scroll { to { transform: translateX(calc(-50% - 10px)); } } /* -10px = half a gap */
.brands__track li { flex: none; }
.brand {
  display: grid;
  place-items: center;
  width: 220px; height: 104px;
  padding: 12px 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(0, 31, 63, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand:hover, .brand:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--amber), 0 20px 36px -20px rgba(0, 31, 63, .45);
}
.brand:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .brands__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .brands__track li[aria-hidden] { display: none; }
}
@media (max-width: 720px) {
  .brands { padding-bottom: 56px; }
  .brands__track { gap: 12px; }
  @keyframes brands-scroll { to { transform: translateX(calc(-50% - 6px)); } }
  .brand { width: 160px; height: 78px; border-radius: 12px; }
}

/* --------------------------------------------------------------------------
   Footer (US retail layout): gold email band, navy main area with brand column
   (white logo) + link columns, dark legal bar with payments
   -------------------------------------------------------------------------- */
.ft { position: relative; color: #c3d2e2; font-size: 14.5px; }

/* Main area */
.ft__main {
  background:
  
    var(--navy);
}
.ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 44px;
  padding-block: 64px 60px;
}

/* Original logo (colours unchanged) on a white card */
.ft__logo {
  display: inline-block;
  padding: 16px 22px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .6);
}
.ft__logo img { display: block; width: 230px; height: auto; }

/* Secure payments (bottom of the brand column) */
.ft__secure { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ft__secure-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font: 700 14px/1 var(--font-cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.ft__secure-h svg { color: var(--amber); }
.ft__about { margin-top: 20px; max-width: 320px; line-height: 1.65; color: #b9c9da; }
.ft__phone {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 26px;
  color: var(--white);
}
.ft__phone-icon {
  flex: none;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-900);
  transition: transform .25s var(--ease);
}
.ft__phone > span:last-child { display: grid; gap: 4px; font: 700 28px/1 var(--font-cond); letter-spacing: .02em; }
.ft__phone small { font: 500 12.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #9db2c8; }
.ft__phone:hover .ft__phone-icon { transform: rotate(-12deg) scale(1.06); }
.ft__email {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: underline; text-decoration-color: rgba(255, 186, 0, .6); text-underline-offset: 4px;
}
.ft__email:hover { color: var(--amber); }
.ft__social { margin: 26px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; }
.ft__social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  color: var(--white);
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.ft__social a:hover { background: var(--amber); color: var(--navy-900); transform: translateY(-2px); }

/* Link columns */
.ft__h {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, .1);
  position: relative;
  font: 700 16px/1 var(--font-cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  list-style: none;
  cursor: default;
}
.ft__h::-webkit-details-marker { display: none; }
.ft__h::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 34px; height: 2px; background: var(--amber); }
.ft__chev { display: none; color: var(--amber); transition: transform .25s var(--ease); }

.ft__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.ft__links a {
  display: inline-block;
  line-height: 1.4;
  color: #c3d2e2;
  transition: color .15s;
}
.ft__links a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

.ft__branches { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.ft__branches li { display: flex; gap: 10px; align-items: flex-start; }
.ft__branches svg { flex: none; margin-top: 1px; color: var(--amber); }
.ft__branches strong { display: block; margin-bottom: 3px; font-weight: 700; color: var(--white); }
.ft__branches span { line-height: 1.5; color: #b9c9da; }
.ft__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 186, 0, .55);
  font-weight: 700; color: var(--amber);
  transition: background-color .2s, color .2s;
}
.ft__more svg { transition: transform .2s var(--ease); }
.ft__more:hover { background: var(--amber); color: var(--navy-900); }
.ft__more:hover svg { transform: translateX(3px); }

/* Legal bar */
.ft__bottom { background: var(--navy-900); }
.ft__bottom-inner {
  padding-block: 20px;
  padding-inline: calc(var(--gutter) + 64px); /* centred, clear of the back-to-top button */
  text-align: center;
  font-size: 13.5px; color: #9db2c8;
}
.ft__copy a { color: var(--amber); font-weight: 600; }
.ft__copy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft__payments { display: grid; grid-template-columns: repeat(4, 42px); gap: 8px; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-900);
  box-shadow: 0 12px 26px -10px rgba(0, 31, 63, .55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s, background-color .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: var(--amber); }

@media (max-width: 1179px) {
  /* brand column spans the top; link columns 4 across below */
  .ft__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
  .ft__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo about phone" "logo about email" "logo about social";
    column-gap: 40px; align-items: center;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .ft__logo { grid-area: logo; }
  .ft__about { grid-area: about; margin: 0; max-width: none; }
  .ft__phone { grid-area: phone; margin: 0; }
  .ft__email { grid-area: email; margin-top: 8px; }
  .ft__social { grid-area: social; margin-top: 12px; }
  .ft__secure { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 24px; }
  .ft__secure-h { margin: 0; }
}
@media (max-width: 900px) {
  .ft__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft__brand { grid-template-columns: 1fr auto; grid-template-areas: "logo phone" "about email" "about social"; row-gap: 14px; }
}
@media (max-width: 720px) {

  .ft__grid { grid-template-columns: 1fr; gap: 0; padding-block: 40px 28px; }
  .ft__brand {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-bottom: 32px; margin-bottom: 8px;
  }
  .ft__logo img { width: 230px; }
  .ft__about { margin-top: 16px; }
  .ft__phone { margin-top: 20px; }
  .ft__social { justify-content: center; margin-top: 20px; }

  /* collapsible sections */
  .ft__col { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .ft__h { margin: 0; padding: 18px 0; border: 0; cursor: pointer; }
  .ft__h::after { display: none; }
  .ft__chev { display: block; }
  .ft__col[open] .ft__chev { transform: rotate(180deg); }
  .ft__col[open] > :not(summary) { animation: fade-in .25s ease-out; }
  .ft__col > .ft__links, .ft__col > .ft__branches { padding-bottom: 20px; }
  .ft__col > .ft__more { margin: 0 0 22px; }

  /* bar extends behind the fixed bottom dock: 20px visible space + dock height */
  .ft__bottom-inner { padding-inline: var(--gutter); padding-bottom: calc(20px + 66px + env(safe-area-inset-bottom)); }
  .ft__secure { display: block; width: 100%; }
  .ft__secure-h { margin-bottom: 12px; }
  .ft__secure-h, .ft__payments { justify-content: center; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* --------------------------------------------------------------------------
   Quick-access dock: right-edge rail (desktop) / bottom tab bar (phones)
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  right: 14px; top: 50%;
  z-index: 35;
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 31, 63, .45);
  transform: translateY(-50%);
}
.dock__btn {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  color: var(--navy);
  transition: background-color .2s, color .2s;
}
.dock__btn:hover, .dock__btn:focus-visible { background: var(--navy); color: var(--amber); }
.dock__btn:focus-visible { outline-offset: 3px; }
.dock__btn--cart { background: var(--amber); color: var(--navy-900); }
.dock__btn--cart:hover, .dock__btn--cart:focus-visible { background: var(--navy); color: var(--amber); }
.dock__icon { position: relative; display: grid; place-items: center; }
.dock__count {
  position: absolute; top: -9px; right: -11px;
  min-width: 20px; height: 20px;
  padding-inline: 5px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #e5262d;
  color: var(--white);
  border: 2px solid var(--white);
  font: 700 11px/1 var(--font);
}
.dock__count.is-empty { background: var(--navy); }
.dock__btn--cart.is-bumped .dock__icon { animation: dock-bump .5s var(--ease); }
@keyframes dock-bump { 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(.95); } }

/* Desktop: label slides out to the left on hover / focus */
.dock__label {
  position: absolute;
  right: calc(100% + 14px); top: 50%;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600; font-size: 13.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(8px, -50%);
  transition: opacity .2s, transform .25s var(--ease);
}
.dock__label::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  border: 6px solid transparent; border-left-color: var(--navy);
  transform: translateY(-50%);
}
.dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; transform: translate(0, -50%); }

/* Phones: fixed bottom tab bar with labels */
@media (max-width: 720px) {
  .dock {
    left: 0; right: 0; top: auto; bottom: 0;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: none;
    box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -18px rgba(0, 31, 63, .4);
  }
  .dock__btn {
    width: auto; height: auto; flex: 1;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 12px;
  }
  .dock__btn:hover { background: transparent; color: var(--navy); }
  .dock__btn--cart, .dock__btn--cart:hover { background: transparent; color: var(--navy); }
  .dock__btn--cart .dock__icon { color: var(--amber-600); }
  .dock__label {
    position: static;
    padding: 0; background: none; color: inherit;
    font-size: 11.5px; font-weight: 600;
    opacity: 1; transform: none;
  }
  .dock__label::after { display: none; }
  .to-top { display: none; } /* phones: the dock's Home button scrolls to the top */
}

/* --------------------------------------------------------------------------
   Dialogs: cart (slides in from the right), inquiry form, contact card
   -------------------------------------------------------------------------- */
html.is-dialog-open { overflow: hidden; }
.dlg {
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px -20px rgba(0, 20, 40, .6);
}
.dlg::backdrop { background: rgba(0, 20, 40, .5); }
.dlg[open] { animation: dlg-in .3s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg--side[open] { animation: dlg-side-in .32s var(--ease); }
@keyframes dlg-side-in { from { transform: translateX(100%); } }

.dlg--side {
  margin: 0 0 0 auto;
  width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  display: flex; flex-direction: column;
}
.dlg--side:not([open]) { display: none; }
.dlg--center {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 18px;
  overflow: auto;
}
.dlg--small { width: min(420px, calc(100vw - 32px)); }

.dlg__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.dlg__title { margin: 0; font: 700 24px/1.1 var(--font-cond); letter-spacing: .01em; color: var(--navy); }
.dlg__title span { color: var(--muted); font-weight: 600; }
.dlg__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.dlg__close {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  transition: background-color .2s, color .2s;
}
.dlg__close:hover { background: var(--navy); color: var(--white); }
.dlg__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.dlg__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--surface); }

/* Shared buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn--block { width: 100%; }
.btn--gold { background: var(--amber); color: var(--navy-900); box-shadow: 0 10px 22px -12px rgba(224, 163, 0, .9); }
.btn--gold:hover { background: #ffc933; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

/* Cart */
.cart__list { margin: 0; padding: 0; list-style: none; }
.cart__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart__img { flex: none; width: 80px; height: 80px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; background: var(--white); }
.cart__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart__info { flex: 1; min-width: 0; display: grid; gap: 4px; align-content: start; }
.cart__name { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--navy); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cart__name:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.cart__price { font-weight: 700; color: var(--ink); }
.cart__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart__qty { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.cart__qbtn { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; font-weight: 600; color: var(--navy); }
.cart__qbtn:hover { background: var(--surface); }
.cart__qval { min-width: 26px; text-align: center; font-weight: 700; }
.cart__remove { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart__remove:hover { color: #e5262d; }
.cart__empty { display: grid; justify-items: center; gap: 10px; padding: 56px 12px; text-align: center; }
.cart__empty[hidden] { display: none; }
.cart__empty-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 186, 0, .2); color: var(--navy); }
.cart__empty-title { margin-top: 6px; font: 700 21px/1.1 var(--font-cond); color: var(--navy); }
.cart__empty-text { max-width: 280px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.cart__sub { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--navy); }
.cart__sub strong { font-size: 22px; }
.cart__note { margin-bottom: 4px; font-size: 13px; color: var(--muted); }

/* Inquiry form */
.inq { display: grid; gap: 14px; padding: 20px 24px 24px; }
.inq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq__field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.inq__field b { color: #e5262d; font-weight: 700; }
.inq__field input, .inq__field select, .inq__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d3dbe4;
  border-radius: 10px;
  background: var(--white);
  font: 500 15px/1.4 var(--font);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.inq__field textarea { resize: vertical; min-height: 96px; }
.inq__field :is(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 186, 0, .35); }
.inq__field [aria-invalid="true"] { border-color: #e5262d; }
.inq__error { padding: 10px 12px; border-radius: 8px; background: rgba(229, 38, 45, .08); color: #b71c24; font-size: 13.5px; font-weight: 600; }
.inq__alt { text-align: center; font-size: 13.5px; color: var(--muted); }
.inq__alt a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }

/* Contact card */
.contact { display: grid; gap: 10px; padding: 20px 24px 24px; }
.contact__call {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  transition: background-color .2s;
}
.contact__call:hover { background: var(--navy-900); }
.contact__call-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--navy-900); }
.contact__call > span:last-child { display: grid; gap: 4px; font: 700 26px/1 var(--font-cond); letter-spacing: .02em; }
.contact__call small { font: 500 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #9db2c8; }
.contact__row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 14.5px; color: var(--navy);
}
.contact__row svg { flex: none; color: var(--amber-600); }
.contact__row:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }

@media (max-width: 720px) {
  .dlg--center { border-radius: 16px; }
  .inq__row { grid-template-columns: 1fr; }
  .dlg__head, .dlg__body, .dlg__foot, .inq, .contact { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dlg[open], .dlg--side[open] { animation: none; }
}

/* Placeholder page body so the header can be reviewed in isolation */
.page-placeholder { outline: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1320px) {
  .panel__inner { grid-template-columns: 260px minmax(0, 1fr); }
  .panel__title { font-size: 21px; }
  .rail__btn, .rail__link { padding-inline: 8px; }
  .rail__label { font-size: 14.5px; }
}

@media (max-width: 1200px) {
  .topbar__cities { display: none; }
  .masthead__inner { column-gap: 28px; }
  /* Icons only from here down; the label stays available to screen readers / tooltips */
  .action { padding-inline: 10px; }
  .action__text {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* Tablet & mobile: rail -> drawer */
@media (max-width: 1079px) {
  :root { --masthead-h: 72px; }
  .catnav { display: none; }
  .masthead__menu { display: inline-grid; }
  .masthead__inner {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "menu logo search actions";
    column-gap: 16px;
  }
  .masthead__logo img { height: 44px; }
  .topbar__inner { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 860px) {
  .search__submit-text { display: none; }
  .search__submit { padding-inline: 12px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .topbar__inner { grid-template-columns: 1fr auto; gap: 12px; } /* phone left, Login | Register right */
  .topbar .payments { display: none; } /* shown in the menu drawer on phones */

  .masthead__inner {
    height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu logo actions"
      "search search search";
    row-gap: 10px;
    padding-block: 10px 12px;
  }
  .masthead__menu { margin-left: -10px; }
  .masthead__logo { justify-self: start; }
  .masthead__logo img { height: 44px; }
  /* Phones: Manuals + Trade live in the menu drawer; keep the account icon */
  /* Phones: Manuals lives in the menu drawer; Trade User stays beside the logo as a gold pill */
  .action--manuals { display: none; }
  .action + .action::before { display: none; }
  /* outlined (not solid) so it doesn't compete with the logo or the gold search button */
  .action.action--trade {
    gap: 4px;
    padding: 0 13px 0 7px;
    height: 36px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: inset 0 0 0 1.5px var(--navy);
  }
  .action--trade .action__icon { width: 26px; height: 26px; background: transparent; box-shadow: none; color: var(--amber-600); }
  .action--trade .action__icon svg { width: 19px; height: 19px; }
  .action--trade:hover .action__icon { background: transparent; color: var(--amber-600); transform: none; }
  .action--trade:hover { background: var(--navy); }
  .action--trade:hover .action__text { color: var(--white); text-decoration: none; }
  .action--trade .action__text {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
    font-size: 13px; font-weight: 700; color: var(--navy);
  }
  .action--trade .action__text small { display: none; }
  .search { height: 46px; max-width: none; }
  .search__icon { margin-inline: 8px 6px; }
  .site-header.is-condensed .masthead__inner { padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  /* Must be "none": the near-zero duration below would make an infinite loop flicker. */
  .marquee__track { animation: none !important; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
