/* cl-site.css: the site's tokens, reset and chrome (header, menu, footer, the primary button), on every page, in
   nwseatcovers.com's look: their red strip over a white bar, the near-black menu bar, Helvetica Neue text with Open
   Sans on the buttons and fields, their red gradient buttons and grey photo labels, and the two-tone dark footer.

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` below sets the order; the tokens sit on
   :root outside any layer, the reset in @layer base (under the kit's rules, so it never undoes a kit button or list),
   every other rule in @layer site. The kit's shop pages and vehicle band take the site's brand colour and font from
   the --parts-* tokens below alone: no rule here names a kit class.

   Two layouts: from 980px the desktop one, measured in a 1440 window; below 980px their phone one, measured in a
   390 stage and written in plain pixels. */
@layer base, kit, site;

/* Open Sans, the client's own files (static/fonts/FONTS.md): the buttons and the fields */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/opensans-regular-webfont.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/opensans-bold-webfont.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #333333;
  --site-ink: #000000;
  --site-muted: #8F8F8F;
  --site-line: #DADADA;
  --site-band: #EEEEEE;
  --site-card: #F7F7F7;
  --site-accent: #FF0000;
  --site-accent-strong: #B20000;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-placeholder: #555555;   /* the search field's hint */
  --site-photo: #FFFFFF;        /* photos keep a white plate in both themes */
  --site-bar: #1C1C1C;          /* the menu bar and the hero */
  --site-bar-fg: #FFFFFF;       /* words on the menu bar, the hero and the footer */
  --site-bar-rule: #333333;     /* the rules between the phone menu's rows */
  --site-grey: #4F4F50;         /* the photo labels */
  --site-foot: #222222;         /* the footer */
  --site-foot-top: #151515;     /* the footer's shipping band */
  --site-foot-fg: #EEEEEE;
  --site-red-grad: linear-gradient(#660000, #990000, #B20000, #FF0000);
  --site-button-bg: var(--site-grey);
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: var(--site-accent);
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #8A8A8A;

  /* fonts: Helvetica Neue is their system stack (not shipped); Open Sans is @font-face above */
  --site-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: "Open Sans", Arial, Helvetica, sans-serif;
  --site-font-foot: Helvetica, Arial, sans-serif;

  /* shape and layout */
  --site-radius: 2px;
  --site-max: 1320px;
  --site-wide: 1370px;
  --site-shadow: 0 3px 6px #DDDDDD;

  /* one phone-stage pixel (their 390 stage scaled to the screen), which cl-shop.css's phone rules are written in */
  --mx: calc(100vw / 390);
}
/* the kit's shop pages and vehicle band (storefront_kit/static/parts/tokens.css): only the brand tokens a site
   owns, drawn from the tokens above. Every other --parts-* default is the kit's counter look (storefront-kit ADR
   0007): never set one here. */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}
/* the dark theme (the kit's head block sets <html data-parts-theme="dark"> from 21:30 to 04:30 by the shopper's clock, or
   on the shopper's pick): every colour token above in the kit's warm dark family (storefront_kit/static/parts/tokens.css).
   The white bar and the page turn #121110, text near white, rules a dark grey, cards a step up; the red strip, the
   near-black menu bar and hero, the grey labels and the two-tone footer stay theirs, the red reads on the dark as it
   is (4.7:1), fields turn dark with light words, a shadow goes black, and photos keep their white plates. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-ink: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-field-bg: #1C1A18;
  --site-placeholder: #EBE6E0;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --site-shadow: 0 3px 6px #000000;
}

@layer base {

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--site-bg); }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font: 400 15px/1.43 var(--site-font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

}

@layer site {

/* ---------- the buttons: their red gradient (the main action) and their grey label ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px;
  background: var(--site-red-grad); background-color: var(--site-accent); color: var(--site-accent-fg); border: 0; border-radius: var(--site-radius);
  font: 700 18px/1.33 var(--site-font-button); text-decoration: none; cursor: pointer;
}
.cl-btn:hover { background: var(--site-accent-strong); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }
.cl-grey { color: var(--site-fg); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header: the red strip, the white bar (the Orbital Parts mark, the search, the cart), the near-black menu bar ---------- */
.cl-hd {
  position: relative; z-index: 50; background: var(--site-bg);
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: "strip strip strip" "logo search tools" "nav nav nav";
}
.cl-hd__strip-short { display: none; }
.cl-hd__strip { grid-area: strip; min-height: 36px; padding: 0 16px; background: var(--site-accent); color: var(--site-accent-fg); font: 400 18px/36px var(--site-font-body); text-align: center; }
.cl-hd__logo { grid-area: logo; align-self: start; display: flex; align-items: center; width: max-content; height: 74px; margin: 10px 0 0 15px; }
.cl-hd__logo img { width: 300px; height: auto; }   /* 60px, the height of the two-line name it replaces */
.cl-hd__logo .cl-hd__mark--dark, :root[data-parts-theme="dark"] .cl-hd__logo .cl-hd__mark--light { display: none; }
:root[data-parts-theme="dark"] .cl-hd__logo .cl-hd__mark--dark { display: block; }
.cl-hd__menu { display: contents; }
.cl-hd__search { grid-area: search; align-self: center; justify-self: center; width: min(100%, 600px); margin: 10px 0 0; display: flex; }
.cl-hd__search input {
  flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0 12px; background: var(--site-field-bg); color: var(--site-ink);
  border: 1px solid var(--site-line); border-right: 0; border-radius: var(--site-radius) 0 0 var(--site-radius); font: 400 16px/38px var(--site-font-button);
}
.cl-hd__search input::placeholder { color: var(--site-placeholder); }
.cl-hd__search input:focus { outline: none; border-color: var(--site-fg); }
.cl-hd__search button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 0 var(--site-radius) var(--site-radius) 0;
  background: var(--site-red-grad); background-color: var(--site-accent); color: var(--site-accent-fg); font: 700 16px/1 var(--site-font-button);
}
.cl-hd__search button:hover { background: var(--site-accent-strong); }
.cl-hd__tools { grid-area: tools; align-self: center; justify-self: end; display: flex; align-items: center; gap: 8px; margin: 10px 65px 0 0; }
.cl-hd__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: var(--site-accent); }
.cl-hd__cart:hover { color: var(--site-accent-strong); }
.cl-hd__cart-icon { overflow: visible; }
/* the kit theme switch (storefront-kit parts/theme_switch.html) before the cart: the bar text colour, red on hover */
.cl-hd__tools .parts-theme-switch { color: var(--site-fg); }
.cl-hd__tools .parts-theme-switch:hover { color: var(--site-accent); }
.cl-hd__cart-count { position: absolute; top: -2px; right: -6px; min-width: 18px; padding: 0 4px; font: 600 15px/18px var(--site-font-body); text-align: center; border-radius: var(--site-radius); background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__toggle { display: none; }
.cl-hd__nav { grid-area: nav; margin-top: 10px; padding: 15px 35px; background: var(--site-bar); }
.cl-hd__list { display: flex; justify-content: space-around; max-width: var(--site-wide); margin: 0 auto; }
.cl-hd__link { display: block; padding: 0 20px; color: var(--site-bar-fg); font: 700 17px/50px Helvetica, sans-serif; text-transform: capitalize; white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }

/* ---------- footer: the shipping band, the four columns (the first under the white-lettered mark), the copyright ---------- */
.cl-ft { background: var(--site-foot); color: var(--site-foot-fg); font: 400 14px/20px var(--site-font-foot); }
.cl-ft a:hover { color: var(--site-bar-fg); text-decoration: underline; }
.cl-ft__ship { background: var(--site-foot-top); }
.cl-ft__ship-in { max-width: var(--site-wide); margin: 0 auto; min-height: 120px; display: grid; grid-template-columns: minmax(0, 457px) minmax(0, 799px); align-items: start; }
.cl-ft__truck { justify-self: end; margin-right: 15px; color: var(--site-accent); }
.cl-ft__truck img { width: 120px; height: 120px; }
.cl-ft__ship-words { display: flex; flex-direction: column; align-items: center; padding: 20px 15px 0; }
.cl-ft__ship-h { color: var(--site-bar-fg); font: 500 25px/27.5px var(--site-font-body); text-transform: uppercase; text-align: center; }
.cl-ft__ship-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 236px; height: 32px; margin-top: 10px; padding: 0 16px; background: var(--site-red-grad); color: var(--site-accent-fg); font: 400 14px/20px var(--site-font-button); }
.cl-ft__ship-btn:hover { background: var(--site-accent-strong); text-decoration: none !important; }
.cl-ft__main { padding: 40px 0 16px; }
.cl-ft__cols { max-width: var(--site-wide); margin: 0 auto; display: grid; grid-template-columns: 342px 238px 285px 1fr; min-height: 390px; }
.cl-ft__col { padding: 0 15px; }
.cl-ft__brand { display: inline-flex; margin-top: 4px; }
.cl-ft__brand img { width: 250px; height: auto; }
.cl-ft__line { margin-top: 30px; }
.cl-ft__h { margin: 10px 0 9px; color: var(--site-foot-fg); font: 500 18px/20px var(--site-font-foot); text-transform: capitalize; }
.cl-ft__list li { position: relative; padding-left: 20px; }
.cl-ft__list li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 5px; height: 5px; background: var(--site-accent); }
.cl-ft__list li + li { margin-top: 10px; }
.cl-ft__copy { max-width: var(--site-wide); margin: 49px auto 0; padding: 0 15px; }
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }
/* the footer's support address and trademark link are 40px taps (MOBILE-BRIEF, the standing rules) */
.cl-ft__line a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.cl-ft__copy a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---------- phones: their 390 stage; the menu and the search behind the toggle (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "strip strip" "logo tools" "menu menu"; }
  .cl-hd__strip { min-height: 22px; padding: 0 16px; font: 400 13px/22px var(--site-font-body); }
  .cl-hd__strip-long { display: none; }
  .cl-hd__strip-short { display: inline; }
  .cl-hd__logo { height: 36px; margin: 10px 0 10px 15px; }
  .cl-hd__logo img { width: 180px; }
  .cl-hd__tools { margin: 0 8px 0 0; gap: 4px; }
  .cl-hd__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; color: var(--site-accent); }
  .cl-hd__menu { display: block; grid-area: menu; position: absolute; top: 100%; left: 0; right: 0; background: var(--site-bar); padding: 16px; box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }
  .cl-js .cl-hd__menu:not(.is-open) { display: none; }
  .cl-hd__search { width: 100%; margin: 0; }
  .cl-hd__search input { height: 44px; border-color: var(--site-grey); }
  .cl-hd__search button { height: 44px; }
  .cl-hd__nav { margin: 12px 0 0; padding: 0; }
  .cl-hd__list { flex-direction: column; }
  .cl-hd__link { padding: 0; font-size: 15px; line-height: 48px; border-top: 1px solid var(--site-bar-rule); }

  .cl-ft__ship-in { min-height: 91px; display: block; }
  .cl-ft__truck { display: none; }
  .cl-ft__ship-words { padding: 20px 15px 10px; }
  /* the footer a step smaller on a phone (MOBILE-BRIEF rule 4), its button a 40px tap, nothing under 13px */
  .cl-ft { font-size: 13px; }
  .cl-ft__ship-h { font-size: 16px; line-height: 20px; }
  .cl-ft__ship-btn { min-width: 165px; height: 40px; margin-top: 10px; font-size: 14px; }
  .cl-ft__main { padding: 41px 0 0; }
  .cl-ft__cols { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cl-ft__col--brand { order: 1; display: flex; flex-direction: column; align-items: center; }
  .cl-ft__col--1 { order: 2; }
  .cl-ft__col--2 { order: 4; }
  .cl-ft__brand { margin-top: 0; }
  .cl-ft__brand img { width: 200px; }
  .cl-ft__line { align-self: stretch; margin-top: 32px; }
  .cl-ft__col--links .cl-ft__h { display: none; }
  .cl-ft__list { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .cl-ft__list li { padding-left: 11px; }
  .cl-ft__list li + li { margin-top: 0; }
  .cl-ft__list li::before { left: 0; top: 18px; }
  .cl-ft__list a { display: inline-block; padding: 10px 8px; margin: 0 -8px; }
  .cl-ft__col--2 { margin-top: 10px; }
  .cl-ft__copy { margin-top: 48px; padding-bottom: 12px; }
  /* a short footer link ("Cart", the trademark "owner") is 40px wide too, its box widened without moving the words */
  .cl-ft__copy a { padding: 12px 4px; margin: -12px -4px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__home { text-align: center; padding: 0 20px 80px; }
.cl-404__home .cl-btn { color: var(--site-accent-fg); }
}
