@font-face {
  font-family: Inter;
  src: url("assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #191c16;
  --muted: #5e6259;
  --line: #dedfd6;
  --paper: #fafbf6;
  --surface: #fff;
  --product-bg: #e8eae4;
  --dark: #141612;
  --accent: #d7f65c;
  --accent-hover: #c9ed3b;
  --gutter: clamp(1rem, 4.25vw, 4rem);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.shell { width: min(100% - var(--gutter) * 2, 79rem); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 4; padding: .75rem; background: var(--accent); }
:focus-visible { outline: 2px solid #526b14; outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

.site-header { background: var(--dark); color: #fff; }
.header-inner { min-height: 4.35rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-block; width: fit-content; text-decoration: none; font-size: 1.13rem; font-weight: 800; letter-spacing: -.044em; white-space: nowrap; }
.main-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.main-nav a { text-decoration: none; color: #d8dbd2; font-size: .91rem; font-weight: 560; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); }
.cart-trigger { display: inline-flex; align-items: center; justify-self: end; gap: .58rem; padding: .38rem .55rem .38rem .7rem; min-height: 2.55rem; color: #fff; text-decoration: none; background: transparent; border: 1px solid #42463e; border-radius: .4rem; font-size: .89rem; font-weight: 600; }
.cart-trigger:hover { border-color: #9caa7a; }
.cart-count { display: grid; min-width: 1.38rem; min-height: 1.38rem; place-items: center; padding-inline: .28rem; border-radius: 1rem; background: var(--accent); color: var(--dark); font-size: .75rem; font-weight: 800; }
.icon-bag { display: inline-block; width: .88rem; height: .78rem; border: 1.5px solid currentColor; border-radius: .14rem; position: relative; margin-top: .2rem; }
.icon-bag::before { content: ""; position: absolute; left: 22%; top: -.32rem; width: 56%; height: .32rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: #1b1d15; color: #fff; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #11130ffa, #141610c7 32%, #14161032 66%, transparent); pointer-events: none; }
.hero-inner { min-height: clamp(22rem, 32vw, 27rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 2.25rem 4.15rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: #e9eddf; font-size: .77rem; font-weight: 700; letter-spacing: .12em; }
.eyebrow span { width: 1.45rem; height: 2px; background: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(3.25rem, 6.1vw, 5.5rem); font-weight: 690; letter-spacing: -.075em; line-height: .98; }
.hero-copy { margin-top: .85rem; max-width: 24rem; color: #e4e6df; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.55; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(100%, 31rem); gap: .5rem; margin-top: 1.25rem; }
.hero-search .search-field { width: 100%; color: var(--ink); }
.hero-search .button { min-height: 3rem; white-space: nowrap; }
.hero-browse { margin-top: .7rem; display: inline-flex; align-items: center; min-height: 2.1rem; color: #fff; font-size: .9rem; font-weight: 630; text-underline-offset: .24rem; }
.hero-browse:hover { color: var(--accent); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.85rem; padding: .64rem 1.08rem; border: 1px solid transparent; border-radius: .38rem; text-decoration: none; font-size: .9rem; font-weight: 700; text-align: center; transition: background-color .16s ease, border-color .16s ease; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { background: var(--accent-hover); }
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: #363c2f; }
.button-outline { background: var(--surface); color: var(--ink); border-color: #d3d6c9; }
.button-outline:hover { background: #f1f3ea; border-color: #9ea88a; }
.button:disabled { opacity: .56; cursor: default; }

.fitment { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(12rem, 1.1fr) minmax(10rem, 1fr) minmax(7rem, .8fr) auto; gap: 1rem; align-items: end; margin-top: -2.35rem; padding: 1.15rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 9px 23px #2327190d; scroll-margin-top: 1rem; }
.fitment-heading { display: flex; gap: .85rem; align-items: center; align-self: center; }
.fitment-heading h2 { font-size: 1.07rem; font-weight: 760; letter-spacing: -.025em; }
.fitment-heading p { color: var(--muted); font-size: .89rem; }
.fitment-icon { width: 2.65rem; height: 2.65rem; border: 1px solid #e5e8de; border-radius: .45rem; background: #f2f4eb; display: grid; place-items: center; flex: 0 0 auto; }
.icon-car { position: relative; display: block; width: 1.26rem; height: .53rem; border: 1.6px solid currentColor; border-radius: .19rem; margin-top: .19rem; }
.icon-car::before { position: absolute; content: ""; inset: -.36rem .11rem auto; height: .32rem; transform: perspective(10px) rotateX(24deg); border: 1.6px solid currentColor; border-bottom: 0; border-radius: .16rem .16rem 0 0; }
.icon-car::after { position: absolute; content: ""; width: .19rem; height: .18rem; left: .02rem; bottom: -.21rem; border-radius: 0 0 .08rem .08rem; background: currentColor; box-shadow: .85rem 0 currentColor; }
.field { display: grid; gap: .31rem; min-width: 0; }
.field > :is(span, label) { font-size: .85rem; font-weight: 650; }
.field-control { display: grid; gap: inherit; }
select, .field input, .field textarea { min-width: 0; min-height: 2.75rem; border: 1px solid #cbd5e1; border-radius: .35rem; color: var(--ink); background: #fff; }
.field input, .field textarea { width: 100%; padding: .55rem .72rem; }
select { padding: .52rem .72rem; }

.catalogue { padding-block: 2.2rem 4.5rem; scroll-margin-top: 1rem; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.catalogue-heading h2 { font-size: clamp(2rem, 3.4vw, 3.08rem); font-weight: 725; line-height: 1.1; letter-spacing: -.067em; }
.result-meta { color: var(--muted); font-size: .9rem; margin-top: .3rem; min-height: 1.35rem; }
.search-field { display: flex; align-items: center; gap: .7rem; width: min(100%, 19.5rem); min-height: 2.8rem; padding: 0 .84rem; border: 1px solid #d7dacd; border-radius: .4rem; background: var(--surface); }
.search-field:focus-within { outline: 2px solid #526b14; outline-offset: 2px; }
.search-field input { background: transparent; border: 0; min-width: 0; width: 100%; min-height: 2.7rem; outline: 0; font-size: .94rem; }
.search-field input::placeholder { color: #606459; }
.icon-search { display: block; width: .78rem; height: .78rem; border-radius: 50%; border: 1.6px solid currentColor; position: relative; flex: 0 0 auto; color: #606459; }
.icon-search::after { content: ""; width: .36rem; height: 1.6px; position: absolute; bottom: -.12rem; right: -.27rem; background: currentColor; transform: rotate(45deg); }
.catalogue-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.1rem 0; padding-block: .75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .38rem; }
.filters a { display: inline-flex; align-items: center; text-decoration: none; min-height: 2.35rem; padding: .39rem .84rem; border-radius: .35rem; border: 1px solid transparent; background: transparent; color: #4f544a; font-size: .88rem; font-weight: 630; }
.filters a:hover { background: #edf0e5; }
.filters a[aria-current="page"] { background: #e9f4c7; border-color: #d0e299; color: #273a0d; }
.sort-field { display: flex; align-items: center; gap: .5rem; color: var(--muted); min-width: 0; font-size: .88rem; }
.sort-field select { min-height: 2.35rem; max-width: 12.5rem; min-width: 0; text-overflow: ellipsis; }
.applied-filter { display: flex; align-items: center; gap: .85rem; margin: 0 0 1rem; font-size: .9rem; font-weight: 670; }
.applied-filter button { border: 0; padding: .4rem .15rem; background: transparent; color: #4b601b; text-decoration: underline; text-underline-offset: .18rem; }

.system-browser { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--surface); }
.system-browser summary { display: flex; align-items: center; gap: .65rem; min-height: 2.9rem; padding: .65rem .92rem; cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
.system-browser summary::-webkit-details-marker { display: none; }
.system-browser summary > :nth-child(2) { margin-left: auto; color: var(--muted); font-size: .84rem; font-weight: 500; text-align: right; }
.system-browser summary::after { content: ""; width: .42rem; height: .42rem; margin: -.15rem .12rem 0 .2rem; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex: 0 0 auto; }
.system-browser[open] summary::after { margin-top: .18rem; transform: rotate(225deg); }
.system-browser[open] summary { border-bottom: 1px solid var(--line); }
.system-browser summary:hover { background: #f5f7ee; }
.system-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .48rem; padding: .75rem; }
.system-options button, .diagram-parts a { display: flex; align-items: center; justify-content: space-between; gap: .48rem; padding: .53rem .65rem; min-height: 2.8rem; border: 1px solid #e1e4d9; border-radius: .35rem; background: #f7f8f3; color: var(--ink); font-size: .84rem; text-align: left; }
.system-options button:hover, .diagram-parts a:hover { background: #eef4df; border-color: #becd9d; }
.system-options button[aria-pressed="true"] { background: #e9f4c7; border-color: #d0e299; color: #273a0d; font-weight: 700; }
.system-count { color: #4f6041; font-variant-numeric: tabular-nums; }
.diagram-content { padding: .9rem; }
.diagram-picker { max-width: 24rem; margin-bottom: .85rem; }
.diagram-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.diagram-figure { overflow: hidden; border: 1px solid #e4e7dc; border-radius: .35rem; background: #f6f7f2; }
.diagram-figure > a { display: grid; place-items: center; padding: .5rem; }
.diagram-figure img { width: 100%; max-height: 22rem; object-fit: contain; mix-blend-mode: multiply; }
.diagram-figure figcaption { padding: .4rem .7rem; font-size: .79rem; }
.diagram-parts h3 { font-size: .98rem; }
.diagram-parts p { margin-top: .2rem; font-size: .87rem; color: var(--muted); }
.diagram-parts ul { display: grid; gap: .38rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.diagram-parts a { text-decoration: none; width: 100%; font-weight: 650; flex-wrap: wrap; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid #dedfd6; border-radius: .55rem; background: var(--surface); }
.product-media { display: grid; place-items: center; position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; background: var(--product-bg); border: 0; padding: 0; text-decoration: none; }
.product-media:focus-visible { outline-offset: -5px; z-index: 1; }
.product-media img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; background: #fff; transition: transform .2s ease; }
.media-label { position: absolute; left: .45rem; bottom: .45rem; padding: .14rem .38rem; border-radius: .21rem; background: #fffffff2; color: #494f41; font-size: .69rem; font-weight: 570; }
.product-media.is-illustration img { object-fit: cover; background: var(--product-bg); }
.product-media.is-diagram img { padding: .45rem; background: transparent; mix-blend-mode: multiply; }
.product-media:hover img { transform: scale(1.045); }
.part-image-placeholder { align-self: center; justify-self: center; padding: .5rem; color: var(--muted); font-size: .8rem; text-align: center; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem .95rem; }
.product-type { color: #565d4e; font-size: .76rem; font-weight: 680; letter-spacing: .07em; }
.product-title { font-size: 1.07rem; line-height: 1.27; font-weight: 740; letter-spacing: -.026em; margin: .35rem 0 .3rem; }
.product-title a { text-decoration: none; }
.product-title a:hover { text-decoration: underline; text-underline-offset: .17rem; }
.product-fitment { font-size: .88rem; color: var(--muted); }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .55rem; border-top: 1px solid #eef0e8; padding-top: .75rem; }
.product-price { font-size: 1.04rem; font-weight: 775; letter-spacing: -.035em; }
.price-currency { color: var(--muted); font-size: .75rem; letter-spacing: 0; font-weight: 550; }
.product-price.is-quote { font-size: .88rem; letter-spacing: 0; font-weight: 650; color: #535c49; }
.card-action { min-height: 2.35rem; padding: .42rem .65rem; font-size: .83rem; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.6rem; }
.pagination span { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; text-align: center; }
.pagination button:disabled { opacity: .46; cursor: default; }
.empty-state { padding: clamp(2rem, 7vw, 4rem) 1rem; text-align: center; background: #f0f2e9; border-radius: .55rem; }
.empty-state h3 { font-size: 1.45rem; letter-spacing: -.04em; }
.empty-state p { margin: .42rem 0 1rem; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }

.site-footer { background: var(--dark); color: #fff; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) 1fr 1fr; gap: 1.4rem; padding-block: 2rem; }
.footer-inner p { margin-top: .42rem; color: #c8cec0; font-size: .9rem; }
.footer-links { display: grid; align-content: start; gap: .5rem; color: #e3e6dd; font-size: .9rem; }
.footer-links a { width: fit-content; text-decoration-color: #81887a; text-underline-offset: .18rem; }
.footer-links a:hover { color: var(--accent); }

.vehicle-links { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: -1.7rem; }
.vehicle-links a { display: flex; align-items: center; gap: .7rem; min-height: 4.3rem; border: 1px solid var(--line); border-radius: .55rem; padding: .6rem .9rem; background: var(--surface); box-shadow: 0 6px 15px #2327190a; text-decoration: none; }
.vehicle-links a:hover { border-color: #a7b789; background: #f4f7eb; }
.vehicle-link-action { margin-left: auto; color: var(--muted); font-size: .84rem; }
.home-featured { padding-top: 2.4rem; }
.featured-grid { margin-top: 1.1rem; }
.sourcing-band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 auto 3rem; padding: 1.45rem 1.6rem; border-radius: .65rem; background: #e9efdc; }
.sourcing-band h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); letter-spacing: -.04em; }
.sourcing-band p { margin-top: .22rem; color: #50574b; }
.sourcing-band .button { flex: 0 0 auto; }

.collection-page, .product-page, .content-page { padding-block: 2rem clamp(2.8rem, 7vw, 5rem); min-height: 66vh; }
.page-heading { margin-bottom: 1.45rem; }
.page-heading h1, .detail-copy h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -.064em; }
.page-heading p { margin-top: .55rem; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin-bottom: .82rem; color: #545c4d; font-size: .86rem; }
.breadcrumbs a { text-underline-offset: .16em; }
.breadcrumbs [aria-current] { color: var(--ink); }
.shop-fitment { margin-top: 0; }
.catalogue-results { margin-top: 1.45rem; scroll-margin: .8rem; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "media summary" "media order";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 1rem clamp(1rem, 4vw, 3rem);
}
.product-detail-no-image { grid-template-areas: "summary order"; grid-template-rows: auto; }
.detail-visual { grid-area: media; min-width: 0; }
.detail-image { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #fff; cursor: zoom-in; }
.detail-image:focus-visible { outline-offset: -3px; }
.detail-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem .8rem; margin-top: .45rem; color: var(--muted); font-size: .86rem; }
.detail-caption a { margin-inline-start: auto; }
.detail-caption a, .part-information-section a { text-underline-offset: .18em; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: .5rem; margin: .65rem 0 0; padding: 0; list-style: none; }
.gallery-thumbnails li { display: flex; }
.gallery-thumbnails a { display: grid; align-content: start; gap: .25rem; min-width: 7.5rem; padding: .28rem .4rem; border: 1px solid var(--line); border-radius: var(--corner, .3rem); background: var(--surface); text-decoration: none; }
.gallery-thumbnails img { width: 100%; height: 3.4rem; background: #fff; object-fit: contain; }
.gallery-thumbnails span { font-size: .74rem; text-align: center; white-space: nowrap; }
.gallery-thumbnails a:is(:hover, [aria-current]) { border-color: var(--accent); }
.gallery-thumbnails a[aria-current] span { font-weight: 680; }

body:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer {
  width: min(66rem, calc(100% - 1.25rem));
  height: min(49rem, calc(100dvh - 1.25rem));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--corner, .35rem);
  color: var(--ink);
  background: var(--surface);
}
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.image-viewer::backdrop { background: #24211fb3; }
.image-viewer-header, .image-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .65rem .8rem; }
.image-viewer-header { border-bottom: 1px solid var(--line); }
.image-viewer-header h2 { font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.image-viewer-header p { color: var(--muted); font-size: .85rem; }
.image-viewer-frame { overflow: auto; overscroll-behavior: contain; background: #fff; }
.image-viewer-frame:focus-visible { outline-offset: -3px; }
.image-viewer-frame.is-zoomed { cursor: grab; }
.image-viewer-frame.is-panning { cursor: grabbing; }
.image-viewer-canvas { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; }
.image-viewer-canvas img { max-width: none; user-select: none; }
.image-viewer-canvas p { padding: .75rem; text-align: center; }
.image-viewer-toolbar { flex-wrap: wrap; border-top: 1px solid var(--line); font-size: .85rem; }
.image-viewer-toolbar a { text-underline-offset: .18em; }
.image-viewer-controls { display: flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.image-viewer .button { min-width: 2.6rem; min-height: 2.6rem; padding: .3rem .6rem; }
.image-viewer [data-viewer-reset] { min-width: 4rem; }
.detail-copy { grid-area: summary; min-width: 0; }
.detail-copy h1 { margin: .34rem 0 .7rem; font-size: clamp(1.9rem, 4.35vw, 3.3rem); }
.detail-order { grid-area: order; min-width: 0; border: 1px solid var(--line); border-radius: var(--corner, .4rem); padding: clamp(.9rem, 2.5vw, 1.3rem); background: var(--surface); }
.part-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .5rem;
  margin-bottom: .9rem;
  scroll-margin-top: .75rem;
}
.part-variants .button { min-width: 0; padding-inline: .65rem; line-height: 1.25; }
.part-variants .button[aria-current="page"] { border-color: var(--accent); background: var(--accent-tint, #eef4df); color: var(--ink); }
.detail-price .product-price { display: inline-block; font-size: 1.55rem; margin-bottom: .28rem; }
.detail-price .product-price.is-quote { font-size: 1.07rem; }
.detail-description { max-width: 60ch; color: var(--muted); }
.part-facts { margin-top: .9rem; display: grid; gap: .45rem; border-block-start: 1px solid var(--line); padding-top: .75rem; font-size: .94rem; }
.part-facts div { display: grid; grid-template-columns: 6.7rem minmax(0, 1fr); gap: .45rem; }
.part-facts dt { color: var(--muted); }
.part-facts dd { font-weight: 630; overflow-wrap: anywhere; }
.part-facts a { text-underline-offset: .18em; }
.detail-note { color: #50574b; font-size: .9rem; }
.detail-purchase { display: flex; align-items: end; gap: .7rem; margin-top: 1rem; }
.detail-purchase .field { width: 6rem; }
.detail-purchase .button { width: min(100%, 15rem); }
.detail-cta { margin-top: 1rem; min-width: 11.5rem; }
.assembly-builder { display: grid; gap: .62rem; margin: .95rem 0 0; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: var(--corner, .4rem); background: #f6f7f2; min-width: 0; }
.request-assembly { margin-top: 0; }
.assembly-builder legend { float: left; width: 100%; margin: 0 0 .12rem; padding: 0; font-size: .88rem; font-weight: 700; }
.assembly-builder legend + * { clear: both; }
.assembly-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.assembly-mode { display: flex; align-items: center; gap: .45rem; min-height: 2.45rem; padding: .42rem .65rem; border: 1px solid var(--line); border-radius: var(--corner, .38rem); background: var(--surface); font-size: .86rem; font-weight: 640; cursor: pointer; }
.assembly-mode:has(input:checked) { border-color: #9ea88a; background: #eef4df; }
.assembly-status-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; }
.assembly-quick-actions { display: flex; gap: .65rem; }
.assembly-quick-actions button { border: 0; padding: .15rem 0; background: transparent; color: #4b601b; font-size: .83rem; font-weight: 630; text-decoration: underline; text-underline-offset: .18rem; }
.assembly-checklist { display: grid; gap: .36rem; margin: 0; padding: 0; list-style: none; }
.request-assembly .assembly-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .85rem; }
.assembly-check { display: flex; align-items: start; gap: .5rem; font-size: .87rem; line-height: 1.35; cursor: pointer; }
.assembly-check input { margin-top: .2rem; flex: 0 0 auto; }
.product-help-links { display: flex; flex-wrap: wrap; gap: .55rem 1.05rem; margin-top: 1rem; color: #445818; font-size: .9rem; text-underline-offset: .2rem; }
.part-information {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 1.5rem clamp(1rem, 4vw, 3rem);
  margin-top: clamp(1.65rem, 4vw, 3rem);
}
.part-information-section { min-width: 0; border-top: 1px solid var(--line); padding-top: 1rem; scroll-margin-top: 1rem; }
.part-information-section h2 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; }
.part-information-section p { max-width: 64ch; margin-block: .7rem .45rem; color: var(--muted); }
.fitment-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fitment-table :is(th, td) { padding: .51rem .7rem .51rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fitment-table thead th { color: var(--muted); font-size: .85rem; font-weight: 600; }
.fitment-table tbody th { font-weight: 650; }
.part-specifications div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .5rem; padding: .51rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.part-specifications dt { color: var(--muted); }
.part-specifications dd { font-weight: 630; overflow-wrap: anywhere; }
.part-assembly { margin-top: clamp(1.6rem, 3vw, 2.45rem); }
.part-assembly-reference { margin-top: .85rem; }
.part-assembly-reference h3 { margin-bottom: .3rem; font-size: 1.03rem; }
.part-assembly-reference .assembly-parts-label { margin-top: 0; }
.assembly-part-links { display: grid; gap: .45rem; padding: 0; margin: .5rem 0 0; list-style: none; }
.related-parts { margin-top: clamp(2.1rem, 5vw, 3.5rem); }

.narrow-page { max-width: 49rem; }
.order-layout, .support-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); align-items: start; gap: 1.05rem; }
.order-layout > aside { position: sticky; top: 1rem; }
.panel { border: 1px solid var(--line); border-radius: .6rem; padding: clamp(.95rem, 2.3vw, 1.35rem); background: var(--surface); }
.panel h2 { font-size: 1.18rem; letter-spacing: -.025em; }
.order-empty { grid-column: 1 / -1; }
.order-empty a, #checkout-empty a, .empty-state > a { margin-top: .25rem; }
.cart-lines { display: grid; gap: .8rem; }
.cart-lines > a, .support-aside a:not(.button), .article-panel a:not(.button) { color: #405417; text-underline-offset: .2rem; width: fit-content; }
.cart-line { display: grid; grid-template-columns: clamp(3.3rem, 6vw, 5rem) minmax(0, 1fr) auto; gap: .68rem; align-items: start; padding: .65rem 0 .88rem; border-bottom: 1px solid var(--line); }
.cart-line-media { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: .33rem; background: var(--product-bg); }
.cart-line img { width: 100%; height: 100%; object-fit: contain; }
.cart-line h3 { font-size: 1rem; line-height: 1.3; }
.cart-line h3 a { text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.cart-line p { font-size: .86rem; color: var(--muted); margin: .22rem 0; }
.cart-line .line-total { font-size: .95rem; white-space: nowrap; }
.quantity { display: flex; flex-wrap: wrap; gap: .23rem; align-items: center; margin-top: .3rem; }
.quantity button { min-width: 2rem; min-height: 2rem; border-radius: .3rem; background: #f5f6f0; border: 1px solid var(--line); color: var(--ink); }
.quantity button:disabled { opacity: .45; cursor: default; }
.quantity button:hover:not(:disabled) { background: #eef1e4; }
.quantity span { min-width: 1.25rem; text-align: center; font-size: .88rem; font-weight: 650; }
.quantity .remove-line { margin-left: .15rem; border: none; background: transparent; text-decoration: underline; text-underline-offset: .15rem; color: var(--muted); font-size: .8rem; }
.cart-summary { display: grid; gap: .75rem; }
.cart-summary p { color: var(--muted); font-size: .9rem; }
.subtotal, .summary-totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.subtotal { font-weight: 750; }
.summary-totals { display: grid; gap: .45rem; }
.summary-totals .subtotal { border-top: 1px solid var(--line); padding-top: .58rem; margin-top: .22rem; }
.order-form { display: grid; gap: .92rem; }
.order-form > .button { justify-self: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .72rem; }
.form-wide { grid-column: 1 / -1; }
@supports (grid-template-rows: subgrid) {
  .form-grid > .field { grid-row: span 2; grid-template-rows: subgrid; align-self: stretch; align-items: start; }
}
.delivery-options { display: grid; gap: .38rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.delivery-options legend { font-size: 1.13rem; font-weight: 725; margin-bottom: .45rem; }
.delivery-choice { display: flex; align-items: center; gap: .52rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: .38rem; cursor: pointer; }
.delivery-choice:has(input:checked) { background: #f2f7e5; border-color: #bdcd9c; }
.delivery-choice strong { margin-left: auto; font-size: .9rem; }
.prototype-note { background: #f2f5e9; border: 1px solid #dfe7d2; border-radius: .4rem; padding: .66rem .76rem; }
.prototype-note p { color: var(--muted); font-size: .88rem; }
.form-error { color: #912c2c; font-size: .9rem; }
.form-error:empty { display: none; }
.requested-part { padding: .65rem .8rem; background: #f2f5e9; border: 1px solid #dfe7d2; border-radius: .4rem; }
.requested-part a { font-weight: 720; text-underline-offset: .2rem; }
.requested-part p, .receipt p { color: var(--muted); }
.receipt { display: grid; gap: .55rem; }
.order-reference { font-size: 1.12rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.receipt-lines { padding-left: 0; list-style: none; margin: .2rem 0; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .38rem; }
.inline-form { display: flex; align-items: end; gap: .65rem; }
.inline-form .field { flex: 1; }
.track-result { margin-top: .85rem; }
.track-result:empty { display: none; }
.help-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: .85rem; }
.help-links a { display: grid; align-content: start; gap: .25rem; text-decoration: none; }
.help-links a:hover { border-color: #a7b789; }
.help-links span, .support-aside p, .article-panel p { color: var(--muted); }
.support-aside h2, .article-panel h2 { margin-bottom: .4rem; }
.support-aside > p, .article-panel p { margin-bottom: .6rem; }
.support-aside details { border-top: 1px solid var(--line); padding: .7rem 0; }
.support-aside details summary { cursor: pointer; font-weight: 650; }
.support-aside details p { margin: .3rem 0 0; }
.article-panel { display: grid; gap: 1.1rem; }
.article-panel section + section { border-top: 1px solid var(--line); padding-top: 1.1rem; }

.toast { position: fixed; z-index: 3; right: var(--gutter); bottom: 1.2rem; max-width: min(25rem, calc(100% - var(--gutter) * 2)); color: #fff; background: var(--dark); border-radius: .4rem; box-shadow: 0 5px 18px #12160c38; }
.toast:not(:empty) { padding: .66rem .9rem; }

@media (max-width: 61rem) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .system-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fitment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .fitment-heading { grid-column: 1 / -1; }
}

@media (max-width: 46rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: .45rem .85rem; padding-block: .67rem .4rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: .25rem 1.05rem; flex-wrap: wrap; }
  .main-nav a { display: flex; align-items: center; min-height: 2.2rem; }
  .cart-trigger { grid-row: 1; grid-column: 2; }
  .hero-image { object-position: 74% 39%; }
  .hero::after { background: linear-gradient(0deg, #12140ff7, #141610c9 32%, #1619133b 78%), linear-gradient(90deg, #11130fc4, transparent 78%); }
  .hero-inner { min-height: 28.5rem; justify-content: flex-end; padding-block: 6.25rem 3rem; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.5rem); }
  .hero-copy { max-width: 22rem; }
  .hero-search { margin-top: 1rem; }
  .hero-search .button { padding-inline: .72rem; }
  .fitment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7rem; padding: .95rem; margin-top: -1.7rem; }
  .fitment-submit { grid-column: 1 / -1; }
  .catalogue { padding-block: 1.8rem 2.7rem; }
  .catalogue-heading { align-items: stretch; flex-direction: column; gap: .7rem; }
  .search-field { width: 100%; }
  .catalogue-toolbar { flex-wrap: wrap; gap: .5rem; margin-block: .8rem; padding-block: .52rem; }
  .sort-field { display: grid; align-items: start; gap: .25rem; }
  .sort-field select { width: 100%; max-width: none; }
  .filters { gap: .18rem; }
  .filters a { padding-inline: .63rem; }
  .system-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagram-layout { grid-template-columns: minmax(0, 1fr); }
  .diagram-figure img { max-height: 16rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .product-content { padding: .68rem .62rem .75rem; }
  .product-bottom { flex-wrap: wrap; padding-top: .6rem; }
  .product-title { font-size: 1rem; }
  .vehicle-links a { flex-wrap: wrap; gap: .35rem; justify-content: center; padding: .55rem .4rem; font-size: .9rem; }
  .vehicle-link-action { display: none; }
  .sourcing-band { flex-direction: column; align-items: start; padding: 1rem; }
  .collection-page, .product-page, .content-page { padding-block: 1.4rem 2.5rem; }
  .home-featured .catalogue-heading, .related-parts .catalogue-heading { flex-direction: row; align-items: center; }
  .home-featured .catalogue-heading .button, .related-parts .catalogue-heading .button { min-height: 2.55rem; }
  .product-detail, .part-information, .order-layout, .support-layout { grid-template-columns: minmax(0, 1fr); }
  .product-detail { grid-template-areas: "summary" "media" "order"; grid-template-rows: auto; }
  .product-detail-no-image { grid-template-areas: "summary" "order"; }
  .order-layout > aside { position: static; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner > div { grid-column: 1 / -1; }
  .help-links { grid-template-columns: minmax(0, 1fr); }
  .detail-cta { width: 100%; }
  .request-assembly .assembly-checklist { grid-template-columns: minmax(0, 1fr); }
  .quantity .remove-line { margin-left: 0; }
  .product-card .product-fitment { margin-bottom: .35rem; }
}

@media (max-width: 25rem) {
  .fitment select { padding-left: .58rem; }
  .hero-search .search-field { gap: .5rem; padding-inline: .6rem; }
  .hero-search .search-field input { font-size: .85rem; }
  .product-bottom .button { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .assembly-modes { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; align-items: stretch; }
  .cart-line { grid-template-columns: 3.1rem 1fr auto; }
  .image-viewer-toolbar { justify-content: center; }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
