/* The public store pages. Each store has its own theme: partsbyfriday, partcourier, and parent (the company page).
   The fonts are self-hosted (SIL Open Font License, see /static/shop/fonts/licenses). A page downloads only the fonts it uses.
   The product images have transparent backgrounds, so each theme sets the stage behind them. */

@font-face { font-family: "Big Shoulders Display"; src: url(/static/shop/fonts/big-shoulders-display-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/static/shop/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/shop/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/shop/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira"; src: url(/static/shop/fonts/saira-latin-standard-italic.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/static/shop/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/static/shop/fonts/fraunces-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.shop { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.shop) img { max-width: 100%; height: auto; display: block; }
:where(.shop) a { color: var(--link); text-underline-offset: 3px; }
:where(.shop) :is(h1, h2, h3) { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style);
  letter-spacing: var(--display-track); text-transform: var(--display-case); font-stretch: var(--display-stretch); line-height: .98; margin: 0 0 .45em; }
:where(.shop) p { margin: 0 0 1em; }
.shop :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
.preserve-lines { white-space: pre-line; }
.accent { color: var(--accent); }

/* Theme: PartsByFriday. A workshop parts counter: warm paper, charcoal, and safety yellow. */
.theme-partsbyfriday {
  --display: "Big Shoulders Display", Bahnschrift, "Arial Narrow", sans-serif; --display-weight: 850; --display-style: normal;
  --display-case: uppercase; --display-track: .005em; --display-stretch: normal;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --bg: #f2eee4; --surface: #fffdf7; --surface-2: #e8e2d2; --text: #141414; --muted: #5b574e; --line: #d8d0bd; --link: #6b4e00;
  --accent: #ffc21a; --accent-2: #ffd75e; --accent-ink: #141414; --focus: #1b5cff;
  --hero-bg: #151514; --hero-fade: rgba(21, 21, 20, .94); --hero-text: #f4f1e8; --hero-muted: #c9c3b3;
  --band-bg: #151514; --band-text: #f4f1e8; --band-muted: #bdb7a8;
  --label-bg: #151514; --label-text: #ffc21a; --card-border: #151514;
  --stage: radial-gradient(120% 95% at 50% 32%, #ffffff 0%, #f2ede1 56%, #dcd3c0 100%);
  --radius: 12px; --card-radius: 18px;
  --card-shadow: 0 1px 0 rgba(0,0,0,.04); --card-shadow-hover: 0 24px 40px -24px rgba(40, 30, 0, .55);
}
/* Theme: PartCourier. A night garage: carbon black, signal orange, and light aluminum stages for the parts. */
.theme-partcourier {
  --display: "Saira", "Segoe UI", system-ui, sans-serif; --display-weight: 800; --display-style: italic;
  --display-case: none; --display-track: -.015em; --display-stretch: 108%;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --bg: #0b0d10; --surface: #12161b; --surface-2: #171c22; --text: #eef2f6; --muted: #9aa5b1; --line: #252c35; --link: #ff8a5c;
  --accent: #ff5a1f; --accent-2: #ff7a45; --accent-ink: #140904; --focus: #7cc4ff;
  --hero-bg: #07090b; --hero-fade: rgba(7, 9, 11, .94); --hero-text: #f3f6f9; --hero-muted: #a7b1bc;
  --band-bg: #0f1317; --band-text: #eef2f6; --band-muted: #98a3af;
  --label-bg: #1b2128; --label-text: #ff9a70; --card-border: #252c35;
  --stage: linear-gradient(160deg, #f6f8fa 0%, #e0e5ea 55%, #c6cdd5 100%);
  --radius: 12px; --card-radius: 18px;
  --card-shadow: 0 18px 40px -28px rgba(0,0,0,.9); --card-shadow-hover: 0 28px 60px -26px rgba(255, 90, 31, .35);
}
/* Theme: parent. Patient Nozzle, the company page and the all-parts view. */
.theme-parent {
  --display: "Fraunces", Georgia, "Times New Roman", serif; --display-weight: 650; --display-style: normal;
  --display-case: none; --display-track: -.02em; --display-stretch: normal;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --bg: #f6f3ee; --surface: #ffffff; --surface-2: #eee8de; --text: #22201d; --muted: #5f5a53; --line: #ddd5c9; --link: #9a3412;
  --accent: #c2410c; --accent-2: #dc5a22; --accent-ink: #ffffff; --focus: #1b5cff;
  --hero-bg: #1f1c19; --hero-fade: rgba(31, 28, 25, .93); --hero-text: #f6f3ee; --hero-muted: #cfc7bb;
  --band-bg: #22201d; --band-text: #f6f3ee; --band-muted: #c5bdb1;
  --label-bg: #22201d; --label-text: #f6c3a8; --card-border: #ddd5c9;
  --stage: radial-gradient(120% 95% at 50% 35%, #ffffff 0%, #f3eee6 60%, #e5dccf 100%);
  --radius: 12px; --card-radius: 18px;
  --card-shadow: 0 14px 32px -24px rgba(60, 40, 20, .45); --card-shadow-hover: 0 26px 48px -26px rgba(60, 40, 20, .55);
}

/* Announcement bar and header */
.announce { background: var(--accent); color: var(--accent-ink); font-size: .86rem; font-weight: 600; }
.announce-row { display: flex; align-items: center; justify-content: center; gap: 8px 28px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.announce-row > span { display: inline-flex; align-items: center; gap: 7px; }
.announce .icon { width: 17px; height: 17px; }
.announce strong { font-variant-numeric: tabular-nums; }
.masthead { background: var(--hero-bg); color: var(--hero-text); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.shop .logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.logo-mark { height: 34px; width: auto; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 0 14px; border-radius: 999px; opacity: .88;
  min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.09); }
.nav .nav-cart { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.nav .nav-cart .icon { width: 18px; height: 18px; }
.nav .nav-cart:hover { background: var(--accent-2); }
.operator-note { background: #fff4c2; color: #4a3800; font-size: .9rem; padding: 8px 0; border-bottom: 1px solid #e8d48a; }
.theme-partsbyfriday .logo-word { text-transform: uppercase; font-weight: 800; font-size: 1.75rem; letter-spacing: .02em; }
.theme-partsbyfriday .logo-word em { font-style: normal; color: var(--accent); }
.theme-partcourier .logo-word { font-style: italic; letter-spacing: -.02em; }
.theme-partcourier .logo-word em { font-style: italic; color: var(--accent); }
.theme-partcourier .masthead { background: rgba(7,9,11,.9); backdrop-filter: saturate(140%) blur(12px); }
.theme-parent .masthead { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
.theme-parent .nav a:hover { background: rgba(0,0,0,.05); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 22px; border-radius: var(--radius);
  border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s, border-color .18s, box-shadow .18s; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink) !important; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit !important; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.14); }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.theme-partcourier .btn-primary { box-shadow: 0 10px 30px -12px rgba(255,90,31,.75); }

/* Section tags and headings */
.tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: .84rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tag span { background: var(--text); color: var(--bg); padding: 3px 8px; border-radius: 5px; letter-spacing: .06em; }
.theme-partsbyfriday .tag span { background: #151514; color: var(--accent); }
.theme-partcourier .tag span, .ship-band .tag span { background: var(--accent); color: var(--accent-ink); }
.tag-invert span { background: var(--accent-ink) !important; color: var(--accent) !important; }
.eyebrow, .kicker { font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head h2, .fit h2, .about h2, .page-head h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Hero: a dark stage with a tilted collage of the parts */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: var(--hero-text);
  min-height: min(88vh, 780px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--hero-fade) 36%, rgba(0,0,0,.25) 68%, rgba(0,0,0,.05) 100%); }
.mosaic { position: absolute; z-index: -2; top: 50%; left: 62%; transform: translate(-30%, -50%) rotate(-9deg); }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, 220px); gap: 18px; }
.mosaic .tile { aspect-ratio: 1 / 1; border-radius: 22px; background: var(--stage); overflow: hidden; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.mosaic .tile img { width: 100%; height: 100%; object-fit: contain; }
.mosaic .tile:nth-child(4n+2) { transform: translateY(46px); }
.mosaic .tile:nth-child(4n+3) { transform: translateY(-30px); }
.hero-inner { padding-top: 92px; padding-bottom: 80px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); margin-bottom: 26px; }
.status-pill strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 26, .6); } 70% { box-shadow: 0 0 0 10px rgba(255, 194, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255,194,26,0); } }
.theme-partcourier .live-dot { animation-name: pulse-orange; }
@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, .65); } 70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }
.mega { font-size: clamp(3.4rem, 8.6vw, 8.4rem); line-height: .86; margin: 0 0 26px; max-width: 9.5em; }
.mega span { display: block; }
.theme-partcourier .mega { text-transform: uppercase; font-stretch: 112%; font-size: clamp(3rem, 7.4vw, 7rem); line-height: .9; }
.lede { font-size: 1.18rem; color: var(--hero-muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 34px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.stats div { display: grid; gap: 2px; }
.stats dt { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.stats dd { margin: 0; font-family: var(--mono); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hero-muted); }

/* A store front page by job: the customer starts from the problem, then opens one product. */
.ask { background: var(--hero-bg); color: var(--hero-text); padding: 48px 0 44px; }
.ask-title { font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .9; margin: 0 0 14px; max-width: 12em; }
.ask .lede { margin: 0; }
.jobs { padding: 32px 0 56px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 2px solid var(--card-border); border-radius: var(--card-radius);
  overflow: hidden; color: inherit !important; text-decoration: none; box-shadow: var(--card-shadow); transition: box-shadow .25s; max-width: 980px; }
.job:hover { box-shadow: var(--card-shadow-hover); }
.job-pic { position: relative; display: block; background: var(--stage); height: 420px; padding: 16px; }
.job-pic img { width: 100%; height: 100%; object-fit: contain; }
.job-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 32px; }
.job-kicker { font-family: var(--mono); font-size: .84rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.job-title { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: .98; }
.job-text { font-size: 1.08rem; }
.job .price { margin: 0; }
.jobs-help { margin: 22px 0 0; }

/* Size diagram on a product page */
.size-diagram { margin: 0 0 16px; color: var(--text); }
.size-diagram svg { display: block; width: 100%; max-width: 300px; height: auto; }
.size-diagram figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Store search */
.store-search { margin-top: 22px; max-width: 640px; }
.store-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.store-search-row { display: flex; gap: 8px; }
.store-search input { flex: 1; min-width: 0; min-height: 52px; padding: 8px 14px; font: inherit; font-size: 16px; border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; color: #141414; }
.ask-small { padding: 28px 0 30px; }
.ask-small .ask-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.search-results { padding-top: 28px; padding-bottom: 56px; max-width: 780px; }
.muted-line { color: var(--muted); }
.hit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hit-list a { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1.5px solid var(--card-border); border-radius: 12px; color: inherit; text-decoration: none; }
.hit-list a:hover { box-shadow: var(--card-shadow-hover); }
.hit-list span { color: var(--muted); font-size: .95rem; }
.hit-list .hit-price { color: var(--text); font-weight: 700; }

/* The size finder on a product page */
.finder { background: var(--surface); border: 2px solid var(--card-border); border-radius: var(--card-radius); padding: 18px; margin: 14px 0 18px; scroll-margin-top: 12px; }
.finder h2 { font-size: 1.9rem; margin: 0 0 4px; }
.finder-help { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.finder-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-items: end; }
.finder-form .field { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; margin: 0; }
.finder-form input { width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 16px; border: 1.5px solid var(--muted); border-radius: 10px; background: #fff; color: #141414; }
.finder-form .btn { grid-column: 1 / -1; }
.finder-answer { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; justify-items: start; }
.finder-answer p { margin: 0; }
.finder-match, .finder-none { background: var(--band-bg); color: var(--band-text); }
.finder-kicker { font-family: var(--mono); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.finder-match .finder-kicker, .finder-none .finder-kicker { color: var(--accent); }
.finder-part { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 1.9rem; line-height: 1; }
.finder-line { font-size: .95rem; }
.finder-none a { color: var(--accent); }
.finder-answer .btn { margin-top: 6px; }

/* Marquee: the parts on a moving shelf */
.marquee { background: var(--hero-bg); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding: 20px 0 22px; animation: shelf 42s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes shelf { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { position: relative; display: grid; gap: 8px; width: 168px; text-decoration: none; color: var(--hero-text) !important; }
.marquee-img { display: block; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--stage); overflow: hidden; }
.marquee-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.marquee-item:hover .marquee-img img { transform: scale(1.06); }
.marquee-tag { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .84rem;
  padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.marquee-name { font-family: var(--mono); font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hero-muted); }

/* Promise strip */
.promises { background: var(--surface); border-bottom: 1px solid var(--line); }
.promise-list { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.promise-list li { display: flex; gap: 12px; align-items: flex-start; }
.promise-list .icon { width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.theme-partcourier .promise-list .icon { background: rgba(255,90,31,.12); color: var(--accent); }
.theme-partsbyfriday .promise-list .icon { background: #151514; color: var(--accent); }
.promise-list strong { display: block; font-size: 1rem; }
.promise-list span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* Sections */
.parts, .fit, .faq, .about, .band, .more, .ship-band { padding: 88px 0; }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Cards: parts labels */
.card { background: var(--surface); border: 1.5px solid var(--card-border); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--card-shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card-label { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; background: var(--label-bg); color: var(--label-text);
  font-family: var(--mono); font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-label-end { opacity: .7; }
.card-media { display: block; position: relative; background: var(--stage); aspect-ratio: 1 / 1; }
.card-wide .card-media { aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.75rem; margin: 0; }
.card-body h3 a { color: inherit; text-decoration: none; display: inline-block; padding: 11px 0; margin: -11px 0; }
.card-body h3 a:hover { color: var(--link); }
.theme-partcourier .card-body h3 a:hover { color: var(--accent); }
.card-big { font-size: 3.3rem !important; line-height: .9 !important; }
.card-title { font-weight: 700; margin: 4px 0 0; }
.card-text { color: var(--muted); font-size: .95rem; margin: 0 0 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.card-foot .price { margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.price strong { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: .9rem; }
.price .from { color: var(--muted); font-size: .9rem; }
.pill { position: absolute; top: 14px; left: 14px; background: #151514; color: #fff; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pill-inline { position: static; display: inline-block; margin: 0 0 10px; }
.theme-partsbyfriday .pill { background: var(--accent); color: #151514; }
.theme-partcourier .pill { background: rgba(7,9,11,.88); color: #ffb08f; border: 1px solid rgba(255,90,31,.55); }
.chip-label { font-size: .9rem; color: var(--muted); margin: 6px 0 4px; }
.chip-label strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--text) !important;
  text-decoration: none; font-weight: 650; font-size: .95rem; background: var(--surface); }
.chip:hover { border-color: var(--text); }
.chip.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink) !important; }
.soon-note { display: flex; gap: 10px; align-items: center; color: var(--muted); margin-top: 36px; font-size: .95rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--card-radius); padding: 32px; max-width: 640px; }
.notice { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; font-weight: 600; }

/* Same-day shipping band */
.ship-band { background: var(--band-bg); color: var(--band-text); position: relative; overflow: hidden; }
.ship-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 65%); pointer-events: none; }
.ship-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.ship-band .tag { color: var(--band-muted); }
.ship-title { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .92; }
.ship-title .accent { display: block; }
.ship-sub { color: var(--band-muted); font-size: 1.1rem; max-width: 30em; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 32px; border-left: 2px solid rgba(255,255,255,.14); margin-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--band-bg);
  border: 3px solid var(--accent); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .time { font-family: var(--mono); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.timeline strong { font-size: 1.15rem; }
.timeline li > span:last-child { color: var(--band-muted); font-size: .95rem; }
.timeline-express { margin-top: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12) !important; border-radius: 14px;
  padding: 16px 18px 16px 40px !important; }
.timeline-express::before { left: 14px !important; top: 20px !important; background: var(--accent) !important; }

/* Feature band */
.band { padding-top: 0; }
.band-figure { margin: 0 auto; }
.band-figure .stage { box-shadow: var(--card-shadow); }
.band-figure figcaption, .gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.stage { background: var(--stage); border-radius: calc(var(--card-radius) + 4px); overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.stage img { width: 100%; height: 100%; object-fit: contain; }
.stage-wide { aspect-ratio: 18 / 10; }
.stage-tall { aspect-ratio: 4 / 5; }

/* Fit guide */
.fit { background: var(--surface-2); }
.fit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.fit-art { margin: 0; }
.steps { list-style: none; counter-reset: step; margin: 24px 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--band-bg); color: var(--accent); }
.steps strong { font-size: 1.12rem; }
.steps span { color: var(--muted); }
.help { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.help .icon { color: var(--accent); margin-top: 2px; }
.theme-partsbyfriday .help .icon { color: #9a6b00; }
.theme-partcourier .fit { background: #0f1317; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.theme-partcourier .fit-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 52px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary, .pdp-policy summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 18px 40px 18px 0; position: relative; }
.faq-list summary::-webkit-details-marker, .pdp-policy summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .pdp-policy summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem;
  font-weight: 400; color: var(--accent); transition: transform .2s; }
.theme-partsbyfriday .faq-list summary::after, .theme-partsbyfriday .pdp-policy summary::after { color: #9a6b00; }
.faq-list details[open] summary::after, .pdp-policy details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p, .pdp-policy p { color: var(--muted); padding-right: 24px; }

/* About */
.about { background: var(--band-bg); color: var(--band-text); }
.about-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: center; }
.about p { font-size: 1.22rem; opacity: .9; margin: 0; }
.about .tag { color: inherit; opacity: .85; }
.theme-partsbyfriday .about { background: var(--accent); color: #151514; }
.theme-partcourier .about { background: linear-gradient(120deg, #1a1f25, #0b0d10); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Product page */
.crumbs { display: flex; gap: 10px; align-items: center; padding-top: 18px; padding-bottom: 6px; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0 4px; margin: 0 -4px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; padding-top: 14px; padding-bottom: 56px; }
.gallery { position: sticky; top: 92px; }
.g-radio { position: absolute; opacity: 0; pointer-events: none; }
.g-slide { display: none; margin: 0; }
.g-slide .stage { box-shadow: var(--card-shadow); border: 1.5px solid var(--card-border); }
#g1:checked ~ .g-main .g1, #g2:checked ~ .g-main .g2, #g3:checked ~ .g-main .g3, #g4:checked ~ .g-main .g4, #g5:checked ~ .g-main .g5 { display: block; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.g-thumbs label { cursor: pointer; background: var(--stage); border-radius: 12px; border: 2px solid transparent; overflow: hidden; aspect-ratio: 1 / 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
#g1:checked ~ .g-thumbs .t1, #g2:checked ~ .g-thumbs .t2, #g3:checked ~ .g-thumbs .t3, #g4:checked ~ .g-thumbs .t4, #g5:checked ~ .g-thumbs .t5 { border-color: var(--accent); }
.g-radio:focus-visible ~ .g-thumbs label { outline: 2px dashed var(--focus); }
.pdp-title { font-size: clamp(2.5rem, 4.6vw, 4rem); margin: 4px 0 8px; }
.buybox .sub { color: var(--muted); font-size: 1.12rem; }
.price-lg strong { font-size: 2.3rem; }
.options { margin: 8px 0 18px; }
.options .chip { min-height: 48px; padding: 6px 20px; font-size: 1rem; }
.deliver { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 0 0 18px; }
.deliver-row { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.deliver-row:last-child { border-bottom: 0; }
.deliver-row:first-child { color: var(--text); font-weight: 600; }
.deliver-row:first-child strong { background: var(--accent); color: var(--accent-ink); padding: 0 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.deliver-row strong { color: var(--text); }
.deliver-row .icon { color: var(--accent); margin-top: 1px; }
.theme-partsbyfriday .deliver-row .icon { color: #9a6b00; }
.buy-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 18px; }
.field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 14px; }
.field input, .notify-row input { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); min-height: 50px; width: 100%; }
.field input:focus, .notify-row input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.buy-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: end; }
.buy-row-two { grid-template-columns: 1fr 1fr; }
.buy-row-two .qty { grid-column: 1 / -1; max-width: 120px; }
.buy-row .field { margin: 0; }
.btn-buy { width: 100%; }
.fine { color: var(--muted); font-size: .875rem; display: flex; gap: 6px; align-items: center; margin: 10px 0 0; }
.fine .icon { width: 16px; height: 16px; }
.notify { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0 0 18px; }
.notify > p { color: var(--muted); }
.notify-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.assure strong { color: var(--text); }
.assure .icon, .ticks .icon { color: var(--accent); }
.theme-partsbyfriday .assure .icon, .theme-partsbyfriday .ticks .icon { color: #9a6b00; }
.pdp-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: 48px; padding-bottom: 44px; border-top: 1px solid var(--line); }
.info-block h2 { font-size: 1.9rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); font-size: .95rem; }
.ticks .icon { width: 18px; height: 18px; margin-top: 3px; }
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: 122px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .8125rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.specs dd { margin: 0; font-weight: 600; }
.how { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.how strong { display: block; }
.how span { color: var(--muted); font-size: .95rem; }
.pdp-policy { padding-bottom: 36px; }
.pdp-policy details { border-top: 1px solid var(--line); }
.pdp-policy details:last-child { border-bottom: 1px solid var(--line); }
.more { padding-top: 36px; }
#buy, #notify { scroll-margin-top: 104px; }
.buy-bar { display: none; }

/* Policies, cart, order, and status pages */
.page-head { padding-top: 56px; padding-bottom: 14px; }
.policy-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; padding-bottom: 80px; }
.policy-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 4px; }
.policy-nav a { color: var(--muted); text-decoration: none; padding: 11px 12px; border-left: 2px solid var(--line); }
.policy-nav a:hover { color: var(--text); border-color: var(--accent); }
.prose { max-width: 740px; }
.prose h2 { font-size: 2rem; margin-top: 1.5em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1.04rem; }
.status-page { padding-top: 52px; padding-bottom: 80px; display: grid; gap: 18px; }
.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 28px; box-shadow: var(--card-shadow); }
.status-card h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.status-card h2 { font-size: 1.6rem; }
.cart-lines { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 16px; }
.cart-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; background: var(--stage); }
.cart-title { font-weight: 700; color: inherit; }
.cart-qty { display: flex; gap: 10px; align-items: end; margin-top: 10px; }
.cart-qty .field { margin: 0; max-width: 110px; }
.cart-amount { margin: 0; white-space: nowrap; }
.cart-total { display: grid; gap: 12px; }
.link-button { background: none; border: 0; padding: 0; min-height: 44px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.nav-cart strong { font-weight: 800; }

/* Footer */
.site-foot { background: var(--hero-bg); color: var(--hero-text); padding: 64px 0 26px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot h2 { font-family: var(--mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-style: normal; font-weight: 600; opacity: .7; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot a { color: inherit; text-decoration: none; opacity: .9; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }
.site-foot li a, .foot-legal a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.foot-brand p { opacity: .78; margin-top: 14px; max-width: 30em; }
.foot-pay, .foot-mail { display: flex; gap: 8px; align-items: center; }
.foot-pay .icon, .foot-mail .icon { width: 18px; height: 18px; color: var(--accent); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 18px; font-size: .86rem; opacity: .72; align-items: center; }
.team-link { opacity: .8; }
.theme-parent .site-foot { background: #22201d; color: #f6f3ee; }
.store-logo { margin: 0 0 6px; }
.store-logo .logo-word { font-size: 1.25rem; }
.store-logo .logo-mark { height: 26px; }
.store-logo.theme-partsbyfriday .logo-word { font-family: "Big Shoulders Display", Bahnschrift, sans-serif; text-transform: uppercase; font-weight: 800; letter-spacing: .02em; }
.store-logo.theme-partsbyfriday .logo-word em { font-style: normal; color: #9a6b00; }
.store-logo.theme-partcourier .logo-word { font-family: "Saira", sans-serif; font-style: italic; font-weight: 800; }
.store-logo.theme-partcourier .logo-word em { color: #ff5a1f; }

/* Tablets */
@media (max-width: 1080px) {
  .mosaic { left: 70%; }
  .mosaic-grid { grid-template-columns: repeat(4, 180px); gap: 14px; }
}
@media (max-width: 860px) {
  .job { grid-template-columns: minmax(0, 1fr); }
  .job-pic { height: 240px; }
  .job-body { padding: 22px; }
  /* On a phone the finder comes before the pictures, so the first screen answers the question. */
  .pdp-finder { display: flex; flex-direction: column; gap: 10px; }
  .pdp-finder .buybox { display: contents; }
  .pdp-finder .buybox > * { order: 3; min-width: 0; }
  .pdp-finder .buybox > :is(.tag, .pdp-title, .sub, .finder) { order: 1; }
  .pdp-finder .gallery { order: 2; margin-bottom: 12px; }
}
@media (max-width: 980px) {
  .ship-grid, .fit-grid, .theme-partcourier .fit-grid, .faq-grid, .about-row, .pdp { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, var(--hero-fade) 46%, var(--hero-bg) 68%); }
  .mosaic { top: -40px; left: 50%; transform: translateX(-50%) rotate(-9deg); }
  .mosaic-grid { grid-template-columns: repeat(5, 170px); gap: 14px; }
  .hero-inner { padding-top: 330px; padding-bottom: 56px; }
  .gallery { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp-info { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .announce { font-size: .84rem; }
  .announce-row { gap: 4px 16px; }
  .announce-more:last-child { display: none; }
  .masthead { position: static; }
  .masthead-row { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 6px; }
  .nav { margin-left: -14px; }
  .nav a { padding: 0 12px; font-size: .93rem; }
  .mosaic-grid { grid-template-columns: repeat(5, 120px); gap: 10px; }
  .mosaic .tile { border-radius: 16px; }
  .mosaic .tile:nth-child(4n+2) { transform: translateY(26px); }
  .mosaic .tile:nth-child(4n+3) { transform: translateY(-16px); }
  .hero-inner { padding-top: 250px; padding-bottom: 44px; }
  .mega { font-size: clamp(3rem, 15vw, 4.4rem); }
  .theme-partcourier .mega { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .lede { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { gap: 12px 24px; }
  .stats dt { font-size: 1.8rem; }
  .marquee-item { width: 132px; }
  .parts, .fit, .faq, .about, .band, .more, .ship-band { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .card-media, .card-wide .card-media { aspect-ratio: 4 / 3; }
  .card-big { font-size: 2.8rem !important; }
  .promise-list { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .notify-row { grid-template-columns: minmax(0, 1fr); }
  .buy-row { grid-template-columns: 90px 1fr; }
  .buy-row-two { grid-template-columns: 1fr 1fr; }
  .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .specs > div { grid-template-columns: 104px 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-thumb img { width: 64px; height: 64px; }
  .cart-amount { grid-column: 2; }
  #buy, #notify { scroll-margin-top: 16px; }
  .buy-bar { display: flex; position: sticky; bottom: 0; z-index: 15; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -16px rgba(0,0,0,.45);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .buy-bar-price { display: grid; line-height: 1.2; }
  .buy-bar-price strong { font-size: 1.25rem; }
  .buy-bar-price span { color: var(--muted); font-size: .85rem; }
  .buy-bar .btn { flex: 0 0 auto; min-width: 52%; min-height: 50px; border-radius: 999px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .live-dot { animation: none; }
  .card, .card-media img, .btn, .marquee-img img { transition: none; }
  .card:hover, .card:hover .card-media img, .btn-primary:hover, .marquee-item:hover .marquee-img img { transform: none; }
}

/* Many sizes on one product page: a short scroll box, and a color dot on each color choice. */
.chips-long { max-height: 232px; overflow-y: auto; padding: 2px; }
.chip-color { gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); flex: none; }
.swatch-blk { background: #141518; }
.swatch-gry { background: #74777c; }
.swatch-wht { background: #e4e4df; }
/* Many jobs on a store front page: one lead card, then a grid of smaller cards. */
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.job-list > .job { margin: 0; max-width: none; grid-template-columns: minmax(0, 1fr); align-content: start; }
.job-list > .job:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.job-list > .job:not(:first-child) .job-pic { height: 240px; }
.job-list > .job:not(:first-child) .job-body { padding: 20px; gap: 8px; justify-content: flex-start; }
.job-list > .job:not(:first-child) .job-title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.05; }
.job-list > .job:not(:first-child) .job-text { font-size: 1rem; }
.job-list > .job:not(:first-child) .btn { margin-top: auto; }
@media (max-width: 860px) { .job-list > .job:first-child { grid-template-columns: minmax(0, 1fr); } }
