/* Sitewide chrome, ported 1:1 from the theme: trust strip (sections/trust-bar.liquid), header main row and
   nav band (sections/header.liquid + assets/np-header.css), Y/M/M band (sections/np-ymm-band.liquid),
   breadcrumbs (sections/breadcrumbs.liquid) and footer (assets/np-footer.css).
   Markup: templates/partials/header.html, ymm.html, footer.html and the crumbs in base.html.
   Stepped containers: >=1300 viewport -> 1300px content, 1000-1299 -> 1000px, 990-999 -> 768px (24px gutters),
   <990 -> full width (the mobile header). */

/* the type (313 Motorworks' look): Oswald for headings, Montserrat for everything else, one variable file each
   (latin subset from Google Fonts, self-hosted). */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/static/fonts/montserrat-var.woff2") format("woff2"); }
@font-face { font-family: Oswald; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/static/fonts/oswald-var.woff2") format("woff2"); }

:root {
  /* the palette (313 Motorworks' look, the generic sites' default): black and white with one olive gold accent. The token
     names are NP's, kept so the products API's page fragments, which read them, follow the theme too:
     navy is the ink-black of links and the top band, red is the olive gold (#968439).
     blue is brakepad.ca's second colour, royal blue (#394C96, dark #2C3B75 for hovers and the legal strip): the nav band,
     the footer and the home's "Also carried" band. Gold never sits on blue as text or a thin line (2.2:1). */
  --np-navy: #111;
  --np-navy-dark: #000;
  --np-red: #968439;
  --np-red-dark: #7A6B2E;
  --np-blue: #394C96;
  --np-blue-dark: #2C3B75;
  --np-charcoal: #1C1C1C;
  --np-charcoal-light: #2E2E2E;
  --np-surface: #F7F7F7;
  --np-border: #E5E5E5;
  --np-field: #F2F2F2;
  --np-ink: #222;
  --np-ink-soft: #555;
  --np-stock-green: #1F7A3D;
  /* the roles the dark theme turns (each the light page's own value here, so the light page draws as before) */
  --np-ink-strong: var(--np-charcoal);  /* body text, headings, a 2px frame or rule (the bands keep --np-charcoal) */
  --np-bg: #fff;                 /* the page, a panel, a field */
  --np-band: var(--np-navy);     /* the trust strip and the legal strip */
  /* the same in both themes, named for what they are */
  --np-on-fill: #fff;            /* words on the coral, a band, the drawer or a photo */
  --np-deep: #000;               /* the phone's menu drawer, behind a reel photo */
  --np-logo-bg: #fff;            /* a brand logo or product photo plate: white in both, the pictures being drawn on white */
  --np-logo-ink: #1C1C1C;        /* the words on such a plate */
  /* set only in the dark block below: --np-muted (a label, a placeholder, a chevron), --np-line (a field's or picker's
     border), --np-bg-hover, --np-bg-soft, --np-on-fill-soft (the footer's words), --np-scrim and the contact notes'
     colours. Each use names its light grey as the fallback, var(--np-muted, #8a8a8a), so the light page keeps every
     grey it had and the dark one turns them all to one value */
  --font-body-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading-family: Oswald, "Arial Narrow", sans-serif;
  /* short aliases kept for page styles written against the older token names */
  --charcoal: var(--np-ink-strong);
  --charcoal-light: var(--np-charcoal-light);
  --surface: var(--np-surface);
  --border: var(--np-border);
  --field: var(--np-field);
  --ink: var(--np-ink);
  --ink-soft: var(--np-ink-soft);
  --max-w: 1300px;
}

/* the dark theme (storefront-kit 0.10.0: with Site(dark="night") the kit's head block writes data-parts-theme="dark"
   on <html> before first paint, by the shopper's pick, else from 21:30 to 04:30, else by the device), coilover.ca's
   dark set with brakepad.ca's olive gold kept (5:1 on the page): near white text on a near black page, never grey; the
   trust strip and the phone's vehicle band and drawer stay dark bands, the nav band, the footer and the home's "Also
   carried" band keep the royal blue a step deeper; photos and brand logos keep their white plates. The kit's shop pages
   darken themselves (tokens.css), so only the chrome's own tokens are here */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --np-navy: #ececec;            /* links, a hovered word */
  --np-navy-dark: #fff;
  --np-charcoal: #242424;        /* the nav band, the footer, the phone's vehicle band, a reel panel without a photo */
  --np-charcoal-light: #363636;
  --np-surface: #1a1a1a;
  --np-border: #333;
  --np-field: #262626;
  --np-ink: #ececec;
  --np-ink-soft: #ececec;        /* secondary text: full contrast like the rest */
  --np-stock-green: #4cc37a;
  --np-ink-strong: #f2f2f2;
  --np-bg: #121212;
  --np-band: #0a0a0a;            /* a step darker than the page */
  --np-muted: #ececec;
  --np-line: #3d3d3d;
  --np-bg-hover: #2c2c2c;
  --np-bg-soft: #1e1e1e;
  --np-on-fill-soft: #e8e8e8;
  --np-scrim: rgba(0, 0, 0, .6);
  --np-ok-bg: #16301e; --np-ok-line: #2f6b42;
  --np-err-bg: #3a1c1c; --np-err-line: #7a3a3a; --np-err-ink: #f08a80;
  --np-blue: #2C3B75;            /* the blue bands, white words at 11:1 */
  --np-blue-dark: #222D5A;       /* a hovered nav link, the legal strip */
  /* the "Also carried" chips: white plates with ink words by day, outlined blue with white words at night */
  --np-chip-bg: var(--np-blue-dark); --np-chip-line: rgba(255, 255, 255, .5); --np-chip-ink: #fff;
  --np-chip-hover: #fff; --np-chip-hover-ink: var(--np-blue-dark);
}

@layer base {
* { margin: 0; padding: 0; box-sizing: border-box; }

/* body type: Montserrat 500, 16px/1.5, near-black foreground; headings in Oswald */
body {
  font-family: var(--font-body-family);
  font-weight: 500;
  line-height: 1.5;
  color: var(--np-ink-strong);
  background: var(--np-bg);
  -webkit-font-smoothing: antialiased;
}

/* headings in Oswald, the display face: condensed, so a heading keeps its size a notch up and its weight a notch down */
h1, h2, h3 { font-family: var(--font-heading-family); letter-spacing: .01em; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
}
[data-np-chrome] { display: contents; }

/* stepped container shared by the header, bands, crumbs and footer */
.wrap { margin: 0 auto; padding: 0 20px; }
@media (min-width: 990px) { .wrap { max-width: 768px; padding: 0 24px; } }
@media (min-width: 1000px) { .wrap { max-width: 1000px; padding: 0 32px; } }
@media (min-width: 1300px) { .wrap { max-width: 1300px; } }

/* ---------- trust strip (trust-bar.liquid: 6 items, 3 visible from 750, below it the two long lines alone
   and the short ones in pairs, 10s per set) ---------- */
.trust {
  background: var(--np-band);
  color: var(--np-on-fill);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
}
.trust-inner { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.trust-list {
  --icon-size: 1.125rem;
  --transition-timing: .15s ease-in-out;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  margin: 0;
  padding: .625rem 0;
}
.trust-item {
  position: relative;
  display: flex;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  grid-column: var(--col-t);
  opacity: 0;
  z-index: -1;
  /* under 750 four sets: the free shipping and the customs lines each alone across both columns (paired they
     wrapped, Greg 2026-09-16), the four short ones in two pairs */
  animation: trust-fade-t 40s infinite;
  animation-delay: calc(var(--set-t) * 10s);
}
.trust-link {
  display: grid;
  grid-template-columns: var(--icon-size) auto;
  grid-gap: .75rem;
  gap: .75rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.trust-icon { width: var(--icon-size); height: var(--icon-size); margin: auto 0; transition: transform var(--transition-timing); }
.trust-text { position: relative; padding-top: .125rem; text-align: center; }
.trust-text::after {
  position: absolute; content: ""; bottom: -2px; left: 0; right: 100%;
  border-bottom: 1px solid currentColor; transition: right var(--transition-timing);
}
a.trust-link:hover .trust-icon { transform: scale(1.1); }
a.trust-link:hover .trust-text::after { right: 0; }
/* 4 sets: window 25% */
@keyframes trust-fade-t {
  0%, 31%, 100% { z-index: -1; opacity: 0; }
  1% { z-index: 0; }
  5%, 25% { z-index: 1; opacity: 1; }
  30% { z-index: 0; opacity: 0; }
}
/* 2 rows of 3: window 50% */
@keyframes trust-fade-d {
  0%, 61%, 100% { z-index: -1; opacity: 0; }
  1% { z-index: 0; }
  10%, 50% { z-index: 1; opacity: 1; }
  60% { z-index: 0; opacity: 0; }
}
/* phones: sentence case at 13px, closer together */
@media screen and (max-width: 599.98px) {
  .trust { font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .trust-inner { padding: 0 1rem; }
  .trust-list { grid-gap: .5rem; gap: .5rem; }
  .trust-link { grid-gap: .5rem; gap: .5rem; }
}
@media screen and (min-width: 750px) {
  .trust { font-size: .8125rem; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-item { grid-column: var(--col-d); animation: trust-fade-d 20s infinite; animation-delay: calc(var(--set-d) * 10s); }
}
/* 750-989: three columns of the longer lines, so the type steps down a notch to keep each on one line */
@media screen and (min-width: 750px) and (max-width: 989.98px) {
  .trust { font-size: .6875rem; letter-spacing: .5px; }
  .trust-list, .trust-link { grid-gap: .5rem; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-item { animation: none; opacity: 0; }
  .trust-item[style*="--set-t: 0"] { opacity: 1; z-index: auto; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 750px) {
  .trust-item { opacity: 0; }
  .trust-item[style*="--set-d: 0"] { opacity: 1; z-index: auto; }
}
/* np-header.css: on the 768 and 1000 steps equal columns wrap the longest item; content-sized columns fit
   all three, and the 768 step tightens type and gaps */
@media (min-width: 990px) and (max-width: 1299.98px) {
  .trust-list { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
@media (min-width: 990px) and (max-width: 999.98px) {
  .trust { font-size: .65rem; letter-spacing: .5px; }
  .trust-list { grid-gap: .5rem; gap: .5rem; }
}
@media (min-width: 990px) { .trust-inner { max-width: 768px; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1000px) { .trust-inner { max-width: 1000px; padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1300px) { .trust-inner { max-width: 1300px; } }

/* ---------- main row ---------- */
.main { position: relative; background: var(--np-bg); color: var(--np-ink); }
.main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 20px; padding-bottom: 22px; }
@media (min-width: 1300px) { .main .wrap { gap: 40px; } }

.logo { flex: none; display: block; margin-left: 4px; }
/* wordmark: the store's name in Oswald, uppercase, its last part in coral (content/site.json wordmark); no logo
   file. The same words smaller (.logo-mark) on phones */
.logo img { display: block; height: auto; }
.logo-full { display: flex; align-items: center; gap: 12px; --logo-h: 40px; }
.logo-full img { height: var(--logo-h); width: auto; }
.logo-word {
  font-family: var(--font-heading-family); font-size: calc(var(--logo-h) * .8); font-weight: 600; line-height: 1;
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: var(--np-navy);
}
.logo-word b { font-weight: 600; color: var(--np-red); }
.logo .logo-mark { display: none; }
@media (min-width: 1300px) { .logo-full { --logo-h: 44px; } }

/* right stack: utility line on top, hero search below, right-aligned */
.right { flex: 1 1 auto; max-width: 700px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* utility line: 31px min-height matches the garage chip, its tallest item */
.quick { display: flex; align-items: center; gap: 20px; min-height: 31px; font-size: 13px; color: var(--np-ink-soft); white-space: nowrap; }
@media (min-width: 1300px) { .quick { gap: 26px; } }
.quick > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--np-ink-soft); transition: color .15s; }
.quick > a:hover { color: var(--np-navy); }
.quick svg { width: 17px; height: 17px; flex: none; }
.phone { gap: 7px !important; }
.phone svg { color: var(--np-muted, #7a7a7a); }
.phone .num { font-size: 14px; font-weight: 700; color: var(--np-ink); letter-spacing: .01em; }
.phone:hover .num, .phone:hover svg { color: var(--np-navy); }
.quick .cart { position: relative; }
.quick .cart svg { color: var(--np-muted, rgba(0, 0, 0, .6)); }
.quick .cart:hover svg { color: var(--np-navy); }
/* red count badge floating over the cart glyph; empty when the cart is */
.cart .badge {
  position: absolute; top: -8px; left: 10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  background: var(--np-red); color: var(--np-on-fill); font-size: 10px; font-weight: 700;
}
.cart .badge:empty { display: none; }
/* the shopper's theme switch (storefront-kit's parts/theme_switch.html: a 40px square, its sun and moon in currentColor,
   no background): the utility line's ink, and a negative margin so the 40px target keeps the line at its 31px */
.quick [data-parts-theme-switch] { margin: -5px -6px; color: var(--np-ink-soft); transition: color .15s; }
.quick [data-parts-theme-switch]:hover { color: var(--np-navy); }

/* garage chip: a details panel listing the shopper's recent vehicles (np-site.js) */
.garage { position: relative; display: flex; align-items: center; justify-content: flex-end; min-width: 197px; }
.garage-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 29px; padding: 0 11px;
  background: var(--np-surface); border: 1px solid var(--np-border); border-radius: 5px;
  cursor: pointer; list-style: none; white-space: nowrap; transition: border-color .15s, background .15s;
}
.garage-btn::-webkit-details-marker { display: none; }
.garage-btn:hover { border-color: var(--np-line, #c9c9c9); background: var(--np-bg-hover, #efefef); }
.garage .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; color: var(--np-muted, #8a8a8a); }
.garage .veh { font-size: 12.5px; font-weight: 600; color: var(--np-ink-strong); }
.garage .chev { display: block; width: 12px; height: 12px; color: var(--np-muted, #9a9a9a); flex: none; transition: transform .15s; }
.garage[open] .chev { transform: rotate(90deg); }
.garage-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 2px; width: 250px; padding: 8px;
  background: var(--np-bg); border: 1px solid var(--np-border); border-radius: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  white-space: normal; text-align: left;
}
.garage-hint { margin: 0; padding: 2px 10px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--np-muted, #8a8a8a); }
.garage-history { list-style: none; margin: 0; padding: 0; }
.garage-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; text-align: left;
  color: var(--np-ink-strong); transition: background .15s;
}
.garage-entry:hover { background: var(--np-surface); }
.garage-entry--active { color: var(--np-red); }
.garage-entry--active::after { content: "\2713"; flex: none; font-weight: 800; color: var(--np-red); }
.garage-none { margin: 0; padding: 2px 10px 6px; font-size: 12.5px; line-height: 1.5; color: var(--np-ink-soft); }
.garage-panel [hidden] { display: none !important; }
.garage-clear {
  width: 100%; margin-top: 4px; padding: 9px 10px 5px; border-top: 1px solid var(--np-border);
  font-size: 12.5px; font-weight: 600; text-align: left; color: var(--np-red); transition: opacity .15s;
}
.garage-clear:hover { opacity: .75; }

/* ---------- hero search: split frame, worded red button ---------- */
.search { position: relative; display: flex; align-items: stretch; width: 100%; height: 44px; border-radius: 5px; }
/* the form also wears the API widget's np-search classes (np-search-suggest.css, loaded first) so the
   dropdown markup and its stylesheet carry over unchanged; the widget's own frame is undone here, as
   np-header.css did on the theme */
.search.np-search { border: 0; overflow: visible; background: transparent; }
.search:focus-within, .search.np-search:focus-within { border: 0; box-shadow: 0 0 0 3px rgba(150, 132, 57, .16); }
.np-search-host { position: relative; }
.search input {
  flex: 1; min-width: 0; height: 100%; outline: none; background: var(--np-bg);
  border: 2px solid var(--np-ink-strong); border-right: 0; border-radius: 5px 0 0 5px;
  font: inherit; font-size: 14.5px; font-weight: 400; padding: 0 16px; color: var(--np-ink);
}
.search input::placeholder { color: var(--np-muted, #6f7781); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search button[type="submit"] {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 20px; background: var(--np-red); color: var(--np-on-fill); border-radius: 0 5px 5px 0; transition: background .15s;
}
.search button[type="submit"]:hover { background: var(--np-red-dark); }
.search button[type="submit"] svg { width: 16px; height: 16px; }
.search .btn-word { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
/* clear pill inside the white field, shown once there is something to clear */
.search .search-clear {
  display: none !important;
  flex: none; align-items: center; justify-content: center; width: 36px; padding: 0;
  background: var(--np-bg); color: var(--np-muted, #5c636b); border: 2px solid var(--np-ink-strong); border-left: 0; border-right: 0; border-radius: 0;
}
.search.has-text .search-clear { display: flex; }
.search .search-clear:hover { color: var(--np-ink-strong); }
.search .search-clear svg { width: 17px; height: 17px; }

/* ---------- nav band (desktop) ---------- */
.nav { background: var(--np-blue); }
.nav .wrap { --np-nav-pad: 13px; display: flex; align-items: stretch; height: 46px; }
.nav a.link {
  display: flex; align-items: center; white-space: nowrap; padding: 0 var(--np-nav-pad);
  color: var(--np-on-fill); font-size: 13px; font-weight: 500; letter-spacing: .02em; transition: background .15s;
}
.nav a.link:first-child { margin-left: calc(-1 * var(--np-nav-pad)); }
.nav a.link:hover { background: var(--np-blue-dark); color: var(--np-on-fill); }
.nav .spacer { flex: 1; }
.nav .link-secondary { display: none; }
@media (min-width: 1000px) {
  .nav .wrap { --np-nav-pad: 15px; }
  .nav a.link { font-size: 13.5px; }
  .nav .link-secondary { display: flex; }
}
@media (min-width: 1300px) { .nav .wrap { --np-nav-pad: 20px; } }

/* menu toggle and drawer: mobile furniture, hidden on desktop */
.menu { display: none; }

/* ---------- mobile header (<990): Menu | logo | search | cart ---------- */
@media (max-width: 989.98px) {
  .nav { display: none; }
  .main .wrap {
    display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: 'menu heading search icons';
    column-gap: 10px; align-items: center; max-width: none; padding: 12px 16px;
  }
  .menu { display: block; grid-area: menu; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 8px 8px 0; margin-left: -1px; border: 1px solid transparent; border-radius: 2px;
    color: var(--np-ink-strong); font-size: 16px; font-weight: 600; line-height: 24px;
    list-style: none; cursor: pointer; user-select: none;
  }
  .menu-toggle::-webkit-details-marker { display: none; }
  .menu-glyph { position: relative; display: block; width: 24px; height: 22px; }
  .menu-burger { display: block; width: 24px; height: 22px; }
  .menu-x { display: none; position: absolute; left: 2.5px; top: 1.5px; width: 19px; height: 19px; }
  .menu[open] .menu-toggle { box-shadow: rgba(28, 28, 28, .3) 0 0 2px 1px; }
  .menu[open] .menu-burger { visibility: hidden; }
  .menu[open] .menu-x { display: block; }
  .drawer {
    position: absolute; top: 100%; left: 0; z-index: 50; width: 360px; max-width: 100%;
    display: flex; flex-direction: column; gap: 32px; padding-top: 8px;
    background: var(--np-deep); color: var(--np-on-fill); border-radius: 4px; box-shadow: rgba(28, 28, 28, .5) 0 0 16px;
  }
  .drawer-list { list-style: none; margin: 0; padding: 0; }
  .drawer-list li { margin: 0 20px; }
  .drawer-list a {
    display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 12px;
    font-size: 16px; font-weight: 500; line-height: 1.3; text-transform: uppercase; color: var(--np-on-fill);
    border-bottom: 1px solid #2d2d2d;
  }
  .drawer-account a { justify-content: flex-start; gap: 8px; padding: 13px 12.8px 13px 0; line-height: 24px; text-transform: none; border-bottom: 0; }
  .drawer-account svg { width: 20px; height: 20px; flex: none; }
  .drawer-cart { display: none; }
  .drawer-foot { display: flex; flex-direction: column; align-items: center; padding: 16px; font-size: 14px; font-weight: 700; }
  .drawer-foot a { display: flex; align-items: center; gap: 8px; line-height: 20px; color: var(--np-on-fill); }
  .drawer-foot svg { width: 16px; height: 16px; flex: none; }

  .logo { grid-area: heading; display: flex; padding: 0 12px; margin: 0 4px 4px 0; }
  .logo-full { --logo-h: 36px; }

  .right { display: contents; }
  .quick { grid-area: icons; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 10px; min-height: 0; }
  .quick .phone, .quick .garage { display: none; }
  /* 750-989 keeps the account entry beside the cart, divided by the theme's icon line */
  .quick .account {
    display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 12.8px 8px 12px;
    border-right: 1px solid var(--np-line, #919191); color: var(--np-navy-dark); font-size: 16px; font-weight: 600; line-height: 24px;
  }
  .quick .account svg { width: 20px; height: 20px; }
  .quick .cart {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 9.6px 8px 6.4px;
    border: 1px solid transparent; border-radius: 2px; color: var(--np-navy-dark); font-size: 16px; font-weight: 600; line-height: 24px;
  }
  .quick .cart svg { width: 26px; height: 24px; }
  .quick [data-parts-theme-switch] { margin: 0 -4px; color: var(--np-navy-dark); }
  .np-search-host { grid-area: search; min-width: 0; }
  .search { min-width: 0; }
  .search input { font-size: 16px; }
  .search button[type="submit"] { padding: 0 14px; gap: 0; }
  .search .btn-word { display: none; }
}
@media (max-width: 749.98px) {
  .logo { margin: 0 0 4px; }
  .logo-full { --logo-h: 26px; gap: 8px; }
  .quick .cart .u-lbl { display: none; }
  .quick .account { display: none; }
}
/* phones: the burger alone, the NP mark alone, the search as wide as what is left, and the cart leaves the
   row for the drawer's top entry (Greg 2026-09-15); the theme switch ends the row (2026-10-30) */
@media (max-width: 599.98px) {
  .main .wrap { grid-template-columns: auto auto 1fr; grid-template-areas: 'menu heading search'; column-gap: 6px; }
  :root[data-parts-night] .main .wrap { grid-template-columns: auto auto 1fr auto; grid-template-areas: 'menu heading search icons'; }
  .menu-word { display: none; }
  .menu-toggle { padding: 8px 4px 8px 0; }
  .logo { padding: 0 6px; }
  .search button[type="submit"] { padding: 0 12px; }
  .logo .logo-full { display: none; }
  /* a long name (throttlepositionsensor.ca, 25 characters) shrinks to fit about 200px beside the menu and the search, 170px at night beside the theme switch too: the
     template sets --wm-chars to the name's length, Oswald's uppercase runs about .52em a character (2026-10-15) */
  .logo .logo-mark { display: block; font-size: min(22px, calc(200px / (var(--wm-chars, 12) * .52))); }
  :root[data-parts-night] .logo .logo-mark { font-size: min(22px, calc(170px / (var(--wm-chars, 12) * .52))); }
  .quick { display: none; }
  :root[data-parts-night] .quick { display: flex; margin: 0 -8px 0 0; }
  .quick .cart { display: none; }
  /* the suggestions as wide as the page less its 16px gutters, not the search box, which ends 46px from the right
     edge beside the switch at night and left the prices clipped */
  :root[data-parts-night] .main #np-suggest { left: auto; right: -30px; width: calc(100vw - 32px); }
  .drawer-cart { display: block; }
}

/* ---------- Y/M/M band (np-ymm-band.liquid + np-header.css) ---------- */
.ymm { background: var(--np-surface); border-bottom: 1px solid var(--np-border); }
.ymm .wrap { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.ymm-lbl { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--np-ink-strong); white-space: nowrap; }
.ymm-fold { padding: 0; background: none; border: 0; cursor: default; }
.ymm-widget { flex: 1; min-width: 0; }
.ymm-cascade { display: flex; align-items: center; gap: 18px; counter-reset: np-ymm-step; }
.ymm-field { position: relative; flex: 1 1 0; min-width: 0; counter-increment: np-ymm-step; }
.ymm-select { display: none; }
.ymm-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 42px;
  border: 1px solid var(--np-line, #cfcfcf); border-radius: 5px; background: var(--np-bg); padding: 0 12px;
  font-size: 14px; font-weight: 500; color: var(--np-ink); text-align: left; cursor: pointer;
}
.ymm-btn:disabled { color: var(--np-ink-soft); cursor: default; }
.ymm-btn::after {
  content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin-top: -4px; margin-left: auto;
  border-right: 2px solid var(--np-ink-soft); border-bottom: 2px solid var(--np-ink-soft);
  transform: rotate(45deg); transition: transform .15s, margin-top .15s;
}
/* a completed, closed step swaps the chevron for a red check */
.ymm-btn:not(:disabled):not(.ymm-btn--empty)[aria-expanded='false']::after {
  width: 12px; height: 7px; margin-top: -4px; border-right: 0;
  border-left: 2px solid var(--np-red); border-bottom: 2px solid var(--np-red); transform: rotate(-45deg);
}
.ymm-btn[aria-expanded='true']::after { margin-top: 4px; transform: rotate(225deg); }
.ymm-panel {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 40; max-height: 40vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch; background: var(--np-bg); border: 1px solid var(--np-line, #cfcfcf); border-radius: 5px; box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.ymm-panel[hidden] { display: none; }
.ymm-option {
  display: block; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--np-line, #eee);
  font-size: 15px; font-weight: 500; color: var(--np-ink); text-align: left;
}
.ymm-option:last-child { border-bottom: 0; }
.ymm-option[aria-selected='true'] { color: var(--np-red); font-weight: 700; }
.ymm .go, .ymm .reset { display: inline-flex; align-items: center; justify-content: center; height: 42px; font-size: 16px; letter-spacing: .05em; border-radius: 2px; min-width: 0; transition: background .15s, opacity .15s; }
.ymm .go { padding: 0 34px; background: var(--np-red); color: var(--np-on-fill); font-weight: 500; }
.ymm .go:hover { background: var(--np-red-dark); }
.ymm .go-long { display: none; }
.ymm .reset { padding: 0 18px; background: transparent; border: 1px solid var(--np-red); color: var(--np-red); font-weight: 700; }
.ymm .reset:hover { opacity: .8; }
@media (max-width: 999.98px) {
  .ymm .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
}
@media (max-width: 989.98px) {
  .ymm { background: var(--np-charcoal); border-bottom: 0; }
  .ymm .wrap { padding-left: 16px; padding-right: 16px; }
  .ymm-lbl { color: var(--np-on-fill); }
  .ymm .reset { border-color: rgba(255, 255, 255, .65); color: var(--np-on-fill); }
}
@media (max-width: 899.98px) { .ymm .reset { display: none; } }
/* phone stack: four full-width lines, numbered steps, a worded GO; with a vehicle applied or on a product page
   the band starts folded to its label and the coral chevron at the right opens it: it points right while folded,
   down while open (Greg 2026-09-16), drawn in the coral accent */
@media (max-width: 679.98px) {
  .ymm-cascade { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .ymm-fold { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; text-align: left; }
  .ymm-fold::after {
    content: ''; width: 11px; height: 11px; margin: 0 10px 0 0;
    border-right: 3px solid var(--np-red); border-bottom: 3px solid var(--np-red);
    transform: rotate(-45deg); transition: transform .15s, margin .15s;
  }
  .ymm-fold[aria-expanded='true']::after { margin: -6px 6px 0 0; transform: rotate(45deg); }
  .ymm--folded .wrap { padding-top: 14px; padding-bottom: 14px; }
  .ymm--folded:not(.is-open) .ymm-widget { display: none; }
  .ymm-btn::before { content: counter(np-ymm-step); flex: 0 0 auto; min-width: 13px; font-size: 12px; font-weight: 800; color: var(--np-red); transition: color .15s; }
  .ymm-btn:disabled::before { color: var(--np-muted, #b6bcc3); }
  .ymm-btn:not(:disabled):not(.ymm-btn--empty)::before { color: var(--np-ink-strong); }
  .ymm .go { width: 100%; padding: 0; font-weight: 700; }
  .ymm .go-short { display: none; }
  .ymm .go-long { display: inline; }
}

/* ---------- breadcrumbs (breadcrumbs.liquid) ---------- */
.crumbs { position: relative; z-index: 20; padding: 12px 20px; }
@media (min-width: 990px) { .crumbs { max-width: 768px; margin: 0 auto; padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1000px) { .crumbs { max-width: 1000px; padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1300px) { .crumbs { max-width: 1300px; } }
.crumbs > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; } /* a product's trail wraps at 390 rather than widen the page */
/* the space sits after each crumb (the chevron in it), never before: a wrapped line starts flush with the first (Greg 2026-09-16) */
.crumbs > ul > li { position: relative; padding: 0 1.5rem 0 0; font-size: .875rem; line-height: 1.5rem; flex-shrink: 0; color: var(--np-ink-strong); }
@media (max-width: 480px) { .crumbs > ul > li { flex-shrink: 1; min-width: 0; } } /* a crumb longer than the phone's width wraps its words instead of widening the page (cold-air-intakes.ca, 2026-10-15) */
.crumbs > ul > li:last-child { padding-right: 0; }
.crumbs > ul > li a:hover, .crumbs > ul > li a:focus { text-decoration: underline; }
.crumbs .arrow {
  position: absolute; top: 9px; right: calc(.75rem + 1px); display: inline-block; padding: 2px;
  border: solid var(--np-ink-strong); border-width: 0 2px 2px 0; transform: rotate(-45deg);
}
.crumbs > ul > li:last-child > .arrow, .crumbs > ul > li:last-child a > .arrow { display: none; }

/* ---------- footer (np-footer.css, on the royal blue: every word white, no gold) ---------- */
.footer { margin-top: 28px; background: var(--np-blue); color: var(--np-on-fill); }
.np-flush-footer .footer { margin-top: 0; }
.footer ul { margin: 0; padding: 0; }
.footer .wrap { max-width: 1300px; padding-left: 32px; padding-right: 32px; }
.footer .f-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 44px; padding-bottom: 40px; }
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-logo img { display: block; height: 36px; width: auto; }
.f-logo .logo-word { font-size: 29px; color: var(--np-on-fill); }
.f-logo .logo-word b { color: var(--np-on-fill); }
/* the footer's wordmark shrinks the same way on a phone, to about 330px */
@media (max-width: 599.98px) { .f-logo .logo-word { font-size: min(29px, calc(330px / (var(--wm-chars, 12) * .52))); } }
.f-about { font-size: 13.5px; line-height: 1.65; color: var(--np-on-fill); max-width: 42ch; }
.f-about p { margin: 0; }
.f-head { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--np-on-fill); padding-bottom: 12px; margin: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.f-links { list-style: none; display: grid; gap: 10px; }
.f-links a { font-size: 13.5px; color: var(--np-on-fill); transition: color .15s; }
.f-links a:hover, .f-contact a:hover { color: var(--np-on-fill); text-decoration: underline; text-underline-offset: 3px; }
.f-contact { list-style: none; display: grid; gap: 12px; }
.f-contact li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--np-on-fill); }
.f-contact svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--np-on-fill); }
.f-contact a { transition: color .15s; }
.f-contact p { margin: 0; }
.f-contact .f-name { font-weight: 700; color: var(--np-on-fill); }
/* white with blue words: gold on the blue band reads muddy */
.footer .f-service { display: inline-block; margin-top: 16px; padding: 9px 18px; background: var(--np-on-fill); color: var(--np-blue); font-size: 13px; font-weight: 700; border-radius: 5px; letter-spacing: .02em; transition: background .15s, color .15s; }
.footer .f-service:hover { background: var(--np-blue-dark); color: var(--np-on-fill); box-shadow: inset 0 0 0 1px var(--np-on-fill); }
.f-legal { background: var(--np-blue-dark); color: var(--np-on-fill); }
.f-legal .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; }
.f-legal a { color: var(--np-on-fill); font-weight: 600; }
.f-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-legal .legal-links { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.f-legal .dot { opacity: .55; }
.f-legal .f-base { display: flex; flex-direction: column; gap: 2px; margin: 0; }
@media (max-width: 1299.98px) {
  .footer .wrap { max-width: 1000px; }
  .footer .f-main { gap: 36px; }
}
@media (max-width: 999.98px) {
  .footer .wrap { max-width: 768px; padding-left: 24px; padding-right: 24px; }
  .footer .f-main { grid-template-columns: 1fr 1fr; gap: 32px 40px; padding-top: 36px; padding-bottom: 34px; }
  .f-story, .f-col-touch { grid-column: 1 / -1; }
  .f-col-touch .f-contact { display: flex; flex-wrap: wrap; gap: 14px 40px; }
  .f-legal .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 599.98px) {
  .footer .f-main { gap: 26px 20px; padding-top: 30px; padding-bottom: 28px; }
  .footer .f-service { display: block; text-align: center; padding-top: 11px; padding-bottom: 11px; }
}

/* ---------- side cart: the Garage theme's cart drawer, NP styling ----------
   Shell in partials/cart_drawer.html, contents from /cart/drawer. Slides in
   from the right over a dimmed page; full width on phones. */
.np-cd-overlay {
  position: fixed; inset: 0; z-index: 190; background: var(--np-scrim, rgba(20, 20, 20, .55));
  opacity: 0; transition: opacity .25s ease;
}
.np-cd-overlay.is-open { opacity: 1; }
.np-cd-overlay[hidden], .np-cd[hidden] { display: none; }
.np-cd {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: 420px; max-width: 100vw; background: var(--np-bg); color: var(--np-ink);
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  transform: translateX(100%); transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
}
.np-cd.is-open { transform: translateX(0); }
.np-cd__body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; transition: opacity .15s; }
.np-cd__body.htmx-request { opacity: .6; pointer-events: none; }
.np-cd__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 2px solid var(--np-ink-strong); position: relative;
}
.np-cd__head::after { content: ""; position: absolute; left: 20px; bottom: -2px; width: 42px; height: 2px; background: var(--np-red); }
.np-cd__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--np-ink-strong); }
.np-cd__head .count { font-weight: 600; color: var(--np-ink-soft); letter-spacing: 0; }
.np-cd__close {
  flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; color: var(--np-ink); background: transparent; border: 0; cursor: pointer;
}
.np-cd__close:hover { background: var(--np-surface); color: var(--np-red); }
.np-cd__close svg { width: 16px; height: 16px; }
.np-cd__error { margin: 12px 20px 0; padding: 10px 12px; border: 1px solid var(--np-red); border-radius: 4px; color: var(--np-red); font-size: 13.5px; }
.np-cd__items { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 12px; }
.np-cd__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--np-border); }
.np-cd__thumb {
  flex: none; width: 84px; height: 84px; border: 1px solid var(--np-border); border-radius: 4px; background: var(--np-logo-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.np-cd__thumb img { max-width: 88%; max-height: 88%; object-fit: contain; display: block; }
.np-cd__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.np-cd__sku { font-size: 11.5px; letter-spacing: .04em; color: var(--np-ink-soft); }
.np-cd__name { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--np-ink); }
.np-cd__name:hover { color: var(--np-red); }
.np-cd__price { font-size: 14px; font-weight: 800; color: var(--np-ink-strong); }
.np-cd__price .ea { font-size: 12px; font-weight: 500; color: var(--np-ink-soft); }
.np-cd__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.np-cd__qty { display: flex; align-items: stretch; border: 1px solid var(--np-border); border-radius: 4px; overflow: hidden; }
.np-cd__qty button {
  width: 30px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
  background: var(--np-surface); color: var(--np-ink); font-size: 15px; font-weight: 700;
}
.np-cd__qty button:hover { background: var(--np-bg-hover, #ebebeb); }
.np-cd__qty input {
  width: 40px; height: 32px; border: 0; border-left: 1px solid var(--np-border); border-right: 1px solid var(--np-border);
  text-align: center; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--np-ink); -moz-appearance: textfield;
}
.np-cd__qty input::-webkit-outer-spin-button, .np-cd__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.np-cd__qty input:focus { outline: none; background: var(--np-bg-soft, #fbfbfb); }
.np-cd__remove {
  border: 0; background: none; cursor: pointer; padding: 0;
  font: inherit; font-size: 12.5px; color: var(--np-ink-soft); text-decoration: underline; text-underline-offset: 3px;
}
.np-cd__remove:hover { color: var(--np-red); }
.np-cd__foot { flex: none; padding: 16px 20px 20px; border-top: 1px solid var(--np-border); background: var(--np-surface); }
.np-cd__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.np-cd__row .lbl { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--np-ink-strong); }
.np-cd__row .n { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--np-ink-soft); }
.np-cd__row .val { font-size: 20px; font-weight: 800; color: var(--np-red); }
.np-cd__tax { margin: 6px 0 0; font-size: 12px; color: var(--np-ink-soft); }
.np-cd__notice { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--np-red); background: var(--np-surface); font-size: 13px; color: var(--np-ink); }
.np-cd__backordered { color: var(--np-red); font-weight: 600; }
.np-cd__checkout {
  display: block; margin-top: 14px; padding: 13px 20px; background: var(--np-red); color: var(--np-on-fill); border-radius: 3px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  transition: background-color .1s ease;
}
.np-cd__checkout:hover { background: var(--np-red-dark); }
.np-cd__view { display: block; margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--np-ink); text-decoration: underline; text-underline-offset: 3px; }
.np-cd__view:hover { color: var(--np-red); }
.np-cd__empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 20px; text-align: center; }
.np-cd__empty p { margin: 0; font-size: 15px; color: var(--np-ink-soft); }
.np-cd__empty .cta {
  display: inline-block; padding: 12px 26px; background: var(--np-red); color: var(--np-on-fill); border-radius: 3px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.np-cd__empty .cta:hover { background: var(--np-red-dark); }
@media (max-width: 599.98px) {
  .np-cd { width: 100vw; }
  .np-cd__thumb { width: 72px; height: 72px; }
}
