/* =====================================================================
   Shared finder components (all four layouts). Tokens from styles.css.
   ===================================================================== */
.fp [hidden] { display: none !important; }
.fp { --ok: #7EE2A8; --warn: #FFC861; --line: rgb(255 255 255 / .08); --xenon: #8FD8FF; --red: #C8231A; }
.fp main { padding-top: 68px; overflow-x: clip; }
html.has-sheet { overflow: hidden; }
@media (max-width: 760px) { .fp .nav { justify-content: space-between; } }

/* ---------- art ---------- */
.car-photo { display: block; width: 100%; height: auto; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 6%, #000 82%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 6%, #000 82%, transparent); mask-composite: intersect; }
.plist__art .car-photo, .opt__car.car-photo, .opt__car { -webkit-mask: none; mask: none; }
.car-photo.is-drawn svg { width: 100%; height: auto; }

/* ---------- small controls ---------- */
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .06); color: inherit; cursor: pointer; }
.iconbtn:hover { background: rgb(255 255 255 / .12); }
.linkbtn { border: 0; background: none; padding: .5rem 0; color: var(--xenon); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(143 216 255 / .4); }
.hint { margin-top: .9rem; color: var(--md-sys-color-on-surface-variant); font-size: .875rem; }
.field { display: grid; gap: .4rem; }
.field > span, .rsel > span { color: var(--md-sys-color-on-surface-variant); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field select, .rsel select, .tbar input {
  width: 100%; min-height: 48px; padding: 0 1rem; border: 0; border-radius: var(--r-md);
  background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface); font: inherit;
}
.field input:focus-visible, .field select:focus-visible, .rsel select:focus-visible, .tbar input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--xenon), 0 0 24px -8px var(--xenon); }
.spin { display: inline-block; width: 14px; height: 14px; margin-right: .5rem; vertical-align: -2px; border: 2px solid rgb(143 216 255 / .3); border-top-color: var(--xenon); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- fit stamps: state reads at a glance, never small grey text ---------- */
.stars { --r: 90%; display: inline-block; width: 64px; height: 12px; background: linear-gradient(90deg, #FFC861 var(--r), #39424c var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6 0l1.8 3.8 4.2.5-3.1 2.9.8 4.1L6 9.3 2.3 11.3l.8-4.1L0 4.3l4.2-.5z'/%3E%3Cuse href='%23s' x='13'/%3E%3Cuse href='%23s' x='26'/%3E%3Cuse href='%23s' x='39'/%3E%3Cuse href='%23s' x='52'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6 0l1.8 3.8 4.2.5-3.1 2.9.8 4.1L6 9.3 2.3 11.3l.8-4.1L0 4.3l4.2-.5z'/%3E%3Cuse href='%23s' x='13'/%3E%3Cuse href='%23s' x='26'/%3E%3Cuse href='%23s' x='39'/%3E%3Cuse href='%23s' x='52'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.stock { color: var(--ok); font-size: .78rem; font-weight: 650; }
.stock.is-low { color: var(--warn); }
.stock.is-out { color: #FF8A80; }

/* ---------- toolbar + applied chips ---------- */
.tbar { display: flex; gap: .5rem; align-items: center; }
.tbar__f { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem; border: 0; border-radius: var(--r-md); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.tbar__n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full); background: var(--xenon); color: #00344A; font-size: .72rem; font-weight: 800; }
.tbar__q { flex: 1; min-width: 0; }
.tbar input { min-height: 44px; border-radius: var(--r-md); padding: 0 1rem; }
.fp input::placeholder { color: #8E98A4; opacity: 1; }
.applied { display: flex; flex-wrap: wrap; gap: .4rem; }
.applied:empty { display: none; }
[data-applied] { position: relative; padding-top: .6rem; } /* padding, not margin, so the height animation covers it */
.achip { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: 0 .75rem; border: 0; border-radius: var(--r-full); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-size: .8rem; font-weight: 650; cursor: pointer; }
.achip span { opacity: .7; font-size: 1rem; }
.achip--clear { background: none; color: var(--xenon); box-shadow: inset 0 0 0 1px rgb(143 216 255 / .35); }
.achip b { margin-left: .2rem; }

/* ---------- sheets: bottom sheet on phones, side panel on desktop ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 92dvh; padding: 0;
  display: none; flex-direction: column; border: 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: #101318; color: var(--md-sys-color-on-surface);
  box-shadow: 0 -1px 0 var(--line), 0 -30px 80px -20px #000;
}
dialog.sheet[open] { display: flex; }
dialog.sheet::backdrop { background: rgb(3 4 6 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.1rem .6rem 1.25rem; touch-action: none; }
.sheet__head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgb(255 255 255 / .2); }
.sheet__head h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .25rem 1.25rem 1.25rem; }
.sheet__foot { display: flex; gap: .6rem; padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.sheet__foot .btn { flex: 1; }
@media (min-width: 761px) {
  dialog.sheet { inset: 0 0 0 auto; width: min(460px, 100%); max-height: none; height: 100dvh; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .sheet__head::before { display: none; }
  dialog.picker { inset: 0; margin: auto; height: min(760px, 92dvh); width: min(620px, 94vw); border-radius: var(--r-lg); }
}

/* ---------- picker ---------- */
.picker__garage:empty { display: none; }
.picker__garage { padding: 0 1.25rem .75rem; }
.picker__label { margin-bottom: .4rem; color: var(--md-sys-color-on-surface-variant); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gchips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.gchip { flex: none; display: inline-flex; align-items: center; border-radius: var(--r-full); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.gchip.is-on { background: var(--md-sys-color-primary-container); box-shadow: none; color: var(--md-sys-color-on-primary-container); }
.gchip button { border: 0; background: none; color: inherit; cursor: pointer; min-height: 40px; }
.gchip__pick { padding: 0 .3rem 0 .9rem; font-weight: 650; font-size: .85rem; }
.gchip__x { padding: 0 .8rem 0 .4rem; opacity: .6; font-size: 1.1rem; }
.picker__alt { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .6rem 1.25rem calc(.8rem + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.psearch { display: flex; align-items: center; gap: .7rem; min-height: 60px; padding: 0 1.1rem; border-radius: var(--r-md); background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface-variant); }
.psearch:focus-within { box-shadow: inset 0 0 0 2px var(--xenon), 0 0 40px -12px var(--xenon); }
.psearch input { flex: 1; min-width: 0; height: 58px; border: 0; background: none; color: var(--md-sys-color-on-surface); font: 500 1.1rem var(--font-body); outline: none; }
.plist { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .2rem; }
.plist:empty { display: none; }
.plist__item { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: .9rem; padding: .45rem .7rem .45rem .3rem; border-radius: var(--r-md); cursor: pointer; }
.plist__item.is-active, .plist__item:hover { background: rgb(143 216 255 / .08); }
.plist__art { overflow: hidden; border-radius: var(--r-sm); background: #07090c; }
.plist__t { display: grid; min-width: 0; }
.plist__t b { font-weight: 650; }
.plist__t em { font-style: normal; color: var(--xenon); }
.plist__t i { font-style: normal; color: var(--md-sys-color-on-surface-variant); }
.plist__t small { color: var(--md-sys-color-on-surface-variant); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist__none { padding: 1rem .5rem; color: var(--md-sys-color-on-surface-variant); }
.plist__none a, .msg a, .noresults a, .why a { color: var(--xenon); text-decoration: underline; text-underline-offset: 3px; }

/* bands: one decision at a time */
.bands { list-style: none; margin: 0 -1.25rem; padding: 0; }
.band { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 1.25rem; border: 0; border-bottom: 1px solid #060709; background: #14181D; color: #9DA7B3; font: 700 1rem var(--font-display); letter-spacing: -.01em; cursor: pointer; text-align: left; }
.band__edit { font: 650 .78rem var(--font-body); color: var(--xenon); opacity: .8; }
.band:hover { color: var(--md-sys-color-on-surface); }
.ask { padding-top: 1.4rem; }
.ask__q { color: var(--xenon); font: 800 .82rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.ask__big { margin-top: .4rem; font: 800 clamp(3rem, 16vw, 5.5rem)/.92 var(--font-display); letter-spacing: -.05em; }
.ask__opts { display: grid; gap: .55rem; margin-top: 1.2rem; }
.ask__opts--y { grid-template-columns: repeat(4, 1fr); }
.ask__opts--v { grid-template-columns: repeat(2, 1fr); }
.opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem; min-height: 68px; padding: .7rem 1.1rem; border: 0; border-radius: var(--r-md); background: #14181D; box-shadow: inset 0 0 0 1px #2b3540; color: inherit; text-align: left; cursor: pointer; transition: background-color 150ms, transform 100ms; }
.opt b { font: 800 1.2rem var(--font-display); letter-spacing: -.02em; }
.opt small { color: var(--md-sys-color-on-surface-variant); font-size: .8rem; font-weight: 550; }
.opt:hover { background: #1a2129; box-shadow: inset 0 0 0 1px rgb(143 216 255 / .5); }
.opt:active { transform: scale(.97); }
.opt--year { align-items: center; min-height: 56px; padding: 0; }
.opt--year b { font-size: 1.05rem; }
.opt--wide { grid-column: 1 / -1; align-items: center; }
.opt--art { padding: .3rem .8rem .9rem; }
.opt__car { margin: 0 -.4rem .2rem; width: calc(100% + .8rem); }
.ask__opts--y .opt--wide { flex-direction: row; gap: .6rem; }

/* chassis reader */
.chform { display: flex; gap: .6rem; align-items: end; }
.chform .field { flex: 1; }
.chform input { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.chout { display: grid; gap: .8rem; margin-top: 1rem; }
.chout:empty { display: none; }
.msg { color: var(--md-sys-color-on-surface-variant); }
.msg b { color: var(--md-sys-color-on-surface); }
.cx { display: grid; gap: .6rem; padding: 1rem; border-radius: var(--r-lg); background: #14181D; box-shadow: inset 0 0 0 1px rgb(143 216 255 / .25); }
.cx__art { margin: -.5rem -.5rem 0; overflow: hidden; border-radius: var(--r-sm); background: #07090c; }
.cx__name { font: 700 1.15rem var(--font-display); letter-spacing: -.02em; }
.cx__name em { font-style: normal; color: var(--xenon); }
.cx__meta { color: var(--md-sys-color-on-surface-variant); font-size: .85rem; }

/* ---------- refine ---------- */
.refine { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.rsel { display: grid; gap: .3rem; }
.rsel select { min-height: 44px; min-width: 7.5rem; border-radius: var(--r-md); }
.rsel--wide { margin-bottom: .75rem; }
.rsel--wide select { border-radius: var(--r-md); }
.rchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rchip { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; padding: .3rem .85rem; border: 0; border-radius: var(--r-md); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: inherit; font: 700 .85rem var(--font-display); cursor: pointer; }
.rchip small { font: 550 .7rem var(--font-body); color: var(--md-sys-color-on-surface-variant); }
.rchip.is-on { background: var(--md-sys-color-primary-container); box-shadow: 0 0 22px -6px var(--xenon); color: var(--md-sys-color-on-primary-container); }
.rchip.is-on small { color: inherit; opacity: .8; }
.rask { flex-basis: 100%; padding: .8rem .9rem; border-radius: var(--r-md); background: rgb(255 200 97 / .07); box-shadow: inset 0 0 0 1px rgb(255 200 97 / .3); }
.rask p { margin-bottom: .5rem; color: var(--warn); font-weight: 650; font-size: .9rem; }
.rdet { flex-basis: 100%; border-radius: var(--r-md); background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px var(--line); }
.rdet summary { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1rem; cursor: pointer; list-style: none; }
.rdet summary::-webkit-details-marker { display: none; }
.rdet__k { color: var(--md-sys-color-on-surface-variant); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rdet summary b { flex: 1; min-width: 0; font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.rdet__edit { color: var(--xenon); font-weight: 700; font-size: .82rem; }
.rdet[open] .rdet__edit { opacity: .6; }
.rdet__body { display: grid; gap: .8rem; justify-items: start; padding: .2rem 1rem 1rem; text-align: left; }
.rgrp { display: grid; gap: .35rem; }
.rgrp > span { color: var(--md-sys-color-on-surface-variant); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.rwarn { flex-basis: 100%; color: var(--warn); font-size: .85rem; }

/* ---------- facets ---------- */
.facet { border-bottom: 1px solid var(--line); }
.facet summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: .6; transition: transform 200ms; }
.facet[open] summary::after { transform: rotate(-135deg); }
.facet__body { display: grid; gap: .1rem; padding-bottom: .9rem; }
.check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--xenon); }
.check__n { color: var(--md-sys-color-on-surface-variant); font-size: .8rem; font-variant-numeric: tabular-nums; }
.check.is-zero { opacity: .4; cursor: default; }
.price-inputs, .facet .price { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.facet .price label { display: grid; gap: .3rem; font-size: .72rem; font-weight: 700; color: var(--md-sys-color-on-surface-variant); letter-spacing: .08em; text-transform: uppercase; }
.facet .price input { min-height: 44px; padding: 0 .8rem; border: 0; border-radius: var(--r-sm); background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: inherit; font: inherit; }

/* ---------- product sheet ---------- */
.pd__art { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #0d1015; }
.pd__off { position: absolute; left: .8rem; top: .8rem; padding: .25rem .6rem; border-radius: var(--r-xs); background: var(--red); color: #fff; font: 800 .8rem var(--font-display); }
.pd__cat { margin-top: 1rem; color: var(--md-sys-color-on-surface-variant); font-size: .82rem; font-weight: 600; }
.pd__name { margin-top: .3rem; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; }
.pd__fit { margin-top: .9rem; }
.pd__why { margin-top: .5rem; color: var(--warn); font-size: .9rem; }
.pd__rate { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; color: var(--md-sys-color-on-surface-variant); font-size: .85rem; }
.pd__attrs { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; margin: 1rem 0 0; }
.pd__attrs div { padding: .55rem 0; border-top: 1px solid var(--line); }
.pd__attrs dt { color: var(--md-sys-color-on-surface-variant); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pd__attrs dd { margin: .1rem 0 0; font-weight: 600; }
.pd__buy { position: sticky; bottom: -1.25rem; margin: 1rem -1.25rem -1.25rem; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); background: #101318; box-shadow: 0 -1px 0 var(--line); }
.pd__buy .price b { font-size: 1.4rem; }
.pd__buy .price small { margin-left: auto; }
.pd__actions { display: grid; grid-template-columns: 1fr auto; gap: .6rem; margin-top: .7rem; }

/* ---------- cart ---------- */
.cart__car { padding: 0 1.25rem .5rem; color: var(--xenon); font-weight: 650; font-size: .9rem; }
.cart__car span { color: var(--md-sys-color-on-surface-variant); font-weight: 500; }
.cart__car:empty { display: none; }
.cart__list { list-style: none; margin: 0; display: grid; gap: .6rem; align-content: start; }
.citem { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; }
.citem__art { width: 56px; height: 56px; overflow: hidden; border-radius: var(--r-sm); }
.citem__t { display: grid; min-width: 0; }
.citem__t b { font-weight: 650; font-size: .92rem; }
a.citem__art { display: block; }
.citem__name { color: inherit; text-decoration: none; }
.citem__name:hover b, .citem__name:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.citem__t small { color: var(--md-sys-color-on-surface-variant); font-size: .78rem; }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-full); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.qty button { width: 40px; height: 40px; border: 0; background: none; color: inherit; font-size: 1.1rem; cursor: pointer; }
.qty output { min-width: 1.4rem; text-align: center; font-weight: 700; }
.cart__empty { padding: 2rem 0; color: var(--md-sys-color-on-surface-variant); text-align: center; }
.cart__foot { flex-direction: column; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total b { font: 800 1.5rem var(--font-display); letter-spacing: -.03em; }
.cart__perks { color: var(--md-sys-color-on-surface-variant); font-size: .82rem; }
.cart__pay { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cart__pay legend { float: left; margin-right: 4px; font-size: .82rem; color: var(--md-sys-color-on-surface-variant); }
.cart__payopt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--md-sys-color-outline-variant); cursor: pointer; font-size: .9rem; }
.cart__payopt:has(input:checked) { border-color: var(--md-sys-color-primary); color: var(--md-sys-color-primary); }
.cart__payopt:has(input:focus-visible) { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.cart__payopt input { accent-color: var(--md-sys-color-primary); margin: 0; }
.cart__wa.is-busy { opacity: .7; pointer-events: none; }

/* ---------- misc ---------- */
.flyer { position: fixed; z-index: 90; pointer-events: none; overflow: hidden; border-radius: var(--r-sm); }
.why { position: absolute; z-index: 80; max-width: min(320px, calc(100vw - 16px)); padding: .9rem 1rem; border-radius: var(--r-md); background: #1A1F25; box-shadow: inset 0 0 0 1px rgb(255 200 97 / .35), 0 20px 40px -10px #000; font-size: .88rem; }
.why p + p { margin-top: .4rem; color: var(--md-sys-color-on-surface-variant); }
.noresults { padding: 2rem 1.25rem; border-radius: var(--r-lg); background: #101318; box-shadow: inset 0 0 0 1px var(--line); }
.noresults h3 { font-size: 1.1rem; letter-spacing: -.02em; }
.noresults p { margin-top: .8rem; color: var(--md-sys-color-on-surface-variant); }
.noresults .applied { margin-top: .5rem; }
.fp main { padding-bottom: 4rem; }
.empty-car { color: var(--md-sys-color-on-surface-variant); }

/* =====================================================================
   PREMIUM POLISH LAYER
   ===================================================================== */
:root { interpolate-size: allow-keywords; }
.fp { --ease-out: cubic-bezier(.16, 1, .3, 1); --hair: inset 0 0 0 1px rgb(255 255 255 / .07); --lift: inset 0 1px 0 rgb(255 255 255 / .05); }
.fp .btn { border-radius: var(--r-md); letter-spacing: -.005em; }
.fp .btn--lg { border-radius: var(--r-md); }
.price, .check__n, .cart__total b, [data-cartcount], [data-carttotal], .qty output, .tbar__n { font-variant-numeric: tabular-nums; }
.cart__total .cur { margin-right: .28em; font: 600 .62em var(--font-body); letter-spacing: .06em; color: var(--md-sys-color-on-surface-variant); vertical-align: .12em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* photos: fade in once decoded, dark tile meanwhile, slow zoom on hover */
img.part-photo, img.car-photo { opacity: 0; transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }
img.part-photo.is-loaded, img.car-photo.is-loaded { opacity: 1; }
.pc__art, .rc__art, .cell__art, .line__art, .citem__art, .pd__art { background: linear-gradient(160deg, #161b21, #0c0f13); overflow: hidden; }
@media (hover: hover) {
  .pc:hover .part-photo, .rc:hover .part-photo, .cell:hover .part-photo, .line:hover .part-photo { transform: scale(1.05); }
  .pc, .rc { transition: transform 400ms var(--ease-out), box-shadow 300ms; }
  .pc:hover, .rc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgb(143 216 255 / .28), 0 18px 34px -18px rgb(0 0 0 / .9); }
}
.pc, .rc, .noresults, .cx { box-shadow: var(--hair), var(--lift); }

/* glass: header-adjacent sticky bars and sheets (they sit over moving content) */
.wall__bar, .rw-tools { background: linear-gradient(rgb(12 15 19 / .7), rgb(10 12 15 / .58)) !important; -webkit-backdrop-filter: blur(22px) saturate(180%) !important; backdrop-filter: blur(22px) saturate(180%) !important; }
dialog.sheet { background: rgb(16 19 24 / .9); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 -30px 80px -20px #000; }
dialog.sheet::backdrop { transition: opacity 300ms; }
@media (prefers-reduced-transparency: reduce) { dialog.sheet, .wall__bar, .rw-tools { background: #101318 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; } }

/* collapse / reveal: native details animate their content height */
.facet::details-content, .rdet::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 380ms var(--ease-out), opacity 280ms ease, content-visibility 380ms allow-discrete; }
.facet[open]::details-content, .rdet[open]::details-content { block-size: auto; opacity: 1; }
.facet summary::after { transition: transform 380ms var(--ease-out); }
.facet summary { font-size: .92rem; letter-spacing: -.005em; }
.facet summary:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .facet::details-content, .rdet::details-content { transition: none; } }

/* custom check, radio and switch */
.check input { appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin: 0; border-radius: var(--r-xs); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1.5px #3A444F; cursor: pointer; transition: background-color 160ms, box-shadow 160ms; }
.check input::after { content: ""; width: 9px; height: 5px; border: solid #00344A; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 220ms var(--ease-out); }
.check input:checked { background: var(--xenon); box-shadow: none; }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check--radio input { border-radius: 50%; }
.check--radio input::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #00344A; transform: scale(0); }
.check--radio input:checked::after { transform: scale(1); }
.check:hover input:not(:checked):not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--xenon); }
.check__t { font-size: .92rem; }
.check--switch { grid-template-columns: 1fr auto auto; }
.check--switch input { width: 38px; height: 22px; border-radius: var(--r-full); background: #2A323B; box-shadow: none; place-items: center start; padding: 0 3px; }
.check--switch input::after { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #E8ECF1; box-shadow: 0 1px 3px rgb(0 0 0 / .5); transform: none; transition: translate 260ms var(--ease-out), background-color 200ms; }
.check--switch input:checked { background: var(--xenon); }
.check--switch input:checked::after { translate: 16px 0; background: #fff; transform: none; }

/* price slider over a histogram */
.slider { --lo: 0%; --hi: 100%; position: relative; height: 72px; margin: .2rem 4px .6rem; }
.slider__hist { position: absolute; inset: 0 0 18px; display: flex; align-items: flex-end; gap: 2px; }
.slider__hist i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #2A323B; transition: background-color 200ms; }
.slider__hist i.in { background: rgb(143 216 255 / .45); }
.slider__track { position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #2A323B var(--lo), var(--xenon) var(--lo), var(--xenon) var(--hi), #2A323B var(--hi)); }
.slider input { position: absolute; left: -10px; right: -10px; bottom: 0; width: calc(100% + 20px); height: 20px; margin: 0; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(143 216 255 / .25), 0 2px 6px rgb(0 0 0 / .6); pointer-events: auto; cursor: grab; transition: box-shadow 200ms; }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(143 216 255 / .25), 0 2px 6px rgb(0 0 0 / .6); pointer-events: auto; cursor: grab; }
.slider input:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 7px rgb(143 216 255 / .3), 0 2px 6px rgb(0 0 0 / .6); }
.slider input:focus-visible { outline: none; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #0A0C0F, 0 0 0 5px var(--xenon); }
.price-in { display: grid; grid-template-columns: 1fr 14px 1fr; align-items: end; gap: .5rem; }
.price-in__to { height: 1px; margin-bottom: 22px; background: #3A444F; }
.price-in label { display: grid; gap: .3rem; color: var(--md-sys-color-on-surface-variant); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.price-in input { min-height: 42px; padding: 0 .75rem; border: 0; border-radius: var(--r-sm); background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: inherit; font: 500 .92rem var(--font-body); font-variant-numeric: tabular-nums; }
.price-in input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--xenon); }

/* desktop filter sidebar */
.fside { display: none; }
.has-fside .fside { display: block; position: sticky; top: var(--fside-top, 84px); align-self: start; max-height: calc(100dvh - var(--fside-top, 84px) - 16px); overflow-y: auto; overscroll-behavior: contain; padding-right: .4rem; scrollbar-gutter: stable; }
.has-fside [data-filters] { display: none; }
.fside__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .2rem 0 .6rem; background: var(--md-sys-color-surface); }
.fside__head h2 { font-size: 1rem; letter-spacing: -.02em; }
.fside__reset { border: 0; background: none; color: var(--xenon); font: 600 .82rem var(--font-body); cursor: pointer; padding: .4rem 0; }
.fside .facet:last-child { border-bottom: 0; }

/* Saira width axis: expanded micro labels read like spec plates */
.field > span, .rsel > span, .rdet__k, .jc-facts dt, .pd__attrs dt, .picker__label, .price-in label { font-stretch: 118%; }
.cart__total .cur { font-size: max(11px, .6em); font-stretch: 112%; }
.check__t, .pc__name, .rc__name, .line__t b, .cell__name, .plist__t b { font-stretch: 96%; }
.price-in label { min-width: 0; }
.price-in input { width: 100%; min-width: 0; }
.fside .slider { margin-inline: 12px; }

/* =====================================================================
   FILTERS, CALMER: chips, a segmented fitment switch, quiet labels,
   spacing instead of rules, counts only as soft numerals.
   ===================================================================== */
.facets { display: grid; gap: .35rem; }
.fsort { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; margin-bottom: .4rem; padding: 0 .2rem 0 .85rem; border-radius: var(--r-md); background: rgb(255 255 255 / .035); color: var(--md-sys-color-on-surface-variant); font-size: .82rem; font-weight: 600; }
.fsort select { flex: 1; min-width: 0; min-height: 40px; padding: 0 1.6rem 0 .4rem; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239DA7B3' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .5rem center / 10px; color: var(--md-sys-color-on-surface); font: 600 .88rem var(--font-body); text-align: right; text-align-last: right; appearance: none; -webkit-appearance: none; cursor: pointer; }
.fsort select:focus-visible { outline: 2px solid var(--xenon); outline-offset: 2px; border-radius: var(--r-sm); }

.facets .facet { border: 0; }
.facets .facet + .facet { box-shadow: 0 -1px 0 rgb(255 255 255 / .045); }
.facets .facet summary { min-height: 46px; gap: .5rem; justify-content: flex-start; color: var(--md-sys-color-on-surface-variant); font: 650 .74rem var(--font-body); font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; }
.facets .facet summary span { flex: 1; }
.facets .facet summary::after { width: 6px; height: 6px; border-width: 0 1.5px 1.5px 0; }
.facets .facet[open] summary, .facets .facet summary:hover { color: var(--md-sys-color-on-surface); }
.facet__n { order: 2; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--xenon); color: #00344A; font: 800 .66rem var(--font-body); letter-spacing: 0; }
.facets .facet summary::after { order: 3; }
.facets .facet__body { gap: 0; padding: .1rem 0 1.1rem; }

.fchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fchip { position: relative; display: inline-flex; align-items: baseline; gap: .38rem; min-height: 34px; padding: .45rem .7rem; border-radius: var(--r-sm); background: rgb(255 255 255 / .04); color: #C5CDD6; font-size: .85rem; font-weight: 550; line-height: 1.2; cursor: pointer; transition: background-color 160ms, color 160ms, box-shadow 160ms, transform 120ms; }
.fchip small { color: #7F8995; font-size: .72rem; font-variant-numeric: tabular-nums; }
.fchip:hover { background: rgb(255 255 255 / .07); color: #fff; }
.fchip:active { transform: scale(.97); }
.fchip:has(input:checked) { background: rgb(143 216 255 / .14); box-shadow: inset 0 0 0 1px rgb(143 216 255 / .55); color: #fff; }
.fchip:has(input:checked) small { color: var(--xenon); }
.fchip:has(input:focus-visible), .fseg__o:has(input:focus-visible) { outline: 2px solid var(--xenon); outline-offset: 2px; }
.fchip.is-zero { opacity: .32; cursor: default; }
.fchip.is-zero:hover { background: rgb(255 255 255 / .04); color: #C5CDD6; }

.fseg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: var(--r-md); background: rgb(255 255 255 / .04); }
.fseg__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 10px) / 3); border-radius: var(--r-sm); background: #222A33; box-shadow: 0 1px 2px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .06); transform: translateX(calc(var(--i) * (100% + 2px))); pointer-events: none; }
.fseg__o { position: relative; }
.fseg__o { display: grid; justify-items: center; gap: .05rem; padding: .45rem .2rem; border-radius: var(--r-sm); color: var(--md-sys-color-on-surface-variant); font-size: .8rem; font-weight: 600; text-align: center; cursor: pointer; transition: background-color 200ms, color 200ms; }
.fseg__o small { font-size: .7rem; color: #7F8995; font-variant-numeric: tabular-nums; }
.fseg__o:hover { color: #fff; }
.fseg__o:has(input:checked) { color: #fff; }
.fseg__o:has(input:checked) small { color: var(--xenon); }
.fhint { margin-top: .55rem; color: #7F8995; font-size: .78rem; }

.facets .slider { height: 64px; margin: .1rem 11px .5rem; }
.price-in { grid-template-columns: 1fr 12px 1fr; align-items: center; }
.price-in__to { margin: 0; }
.price-in input { min-height: 38px; font-size: .85rem; background: rgb(255 255 255 / .04); box-shadow: none; }
.price-in input::placeholder { color: #7F8995; }

/* sidebar: gap under the sticky bar, header with a soft fade, hairline scrollbar on hover */
.has-fside .fside { padding: 0 .5rem 1rem 0; }
.fside__head { padding: .1rem 0 .7rem; }
.fside__head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(var(--md-sys-color-surface), transparent); pointer-events: none; }
.fside::-webkit-scrollbar, .sheet__body::-webkit-scrollbar { width: 8px; }
.fside::-webkit-scrollbar-thumb, .sheet__body::-webkit-scrollbar-thumb { border: 2px solid transparent; background: transparent padding-box; }
.fside:hover::-webkit-scrollbar-thumb, .sheet__body:hover::-webkit-scrollbar-thumb { background: #2E3742 padding-box; }
.fside::-webkit-scrollbar-thumb:hover { background: #4A5664 padding-box; }
@supports not selector(::-webkit-scrollbar) { .fside, .sheet__body { scrollbar-width: thin; scrollbar-color: transparent transparent; } .fside:hover, .sheet__body:hover { scrollbar-color: #2E3742 transparent; } }
.facets .slider { margin-inline: 16px; }
.price-in input { -moz-appearance: textfield; }
.price-in input::-webkit-inner-spin-button, .price-in input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* fitment: label and count share one line, the hint says what the choice means */
.fseg__o { display: flex; align-items: baseline; justify-content: center; gap: .35rem; min-height: 36px; padding: .5rem .3rem; }
.fhint b { color: var(--md-sys-color-on-surface); font-weight: 700; }
/* keep chips clear of the sidebar scrollbar */
.has-fside .fside { padding-right: .9rem; }
/* floating jump to the results */
.jump { position: fixed; z-index: 35; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.15rem 0 1.35rem; border: 0; border-radius: var(--r-full); background: rgb(232 236 241 / .94); color: #0A0C0F; font: 700 .92rem var(--font-body); box-shadow: 0 12px 30px -8px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); cursor: pointer; opacity: 0; transform: translate(-50%, 16px) scale(.96); pointer-events: none; transition: opacity 220ms var(--ease-out, ease-out), transform 420ms var(--ease-out, ease-out); }
.jump.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jump:hover { background: #fff; }
.jump:active { transform: translate(-50%, 0) scale(.97); }
.jump svg { animation: jump-nudge 1.8s 1s ease-in-out infinite; }
@keyframes jump-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(3px); } 90% { transform: translateY(-1px); } }
.fp--jobcard .jump { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
@media (min-width: 1200px) { .fp--jobcard .jump { bottom: calc(1rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .jump, .jump svg { transition: opacity 150ms; animation: none; } }
.pd__more { display: flex; width: 100%; justify-content: center; margin-top: .9rem; }

/* =====================================================================
   CUSTOM SELECT: button + shared listbox popover (dropdown on desktop,
   bottom sheet on phones and touch). The native <select> stays hidden underneath.
   ===================================================================== */
.csel-native { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.csel { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-width: 0; min-height: 48px; padding: 0 .9rem 0 1rem; border: 0; border-radius: var(--r-md); background: var(--md-sys-color-surface-container-high); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); color: var(--md-sys-color-on-surface); font: 600 .95rem var(--font-body); text-align: left; cursor: pointer; transition: box-shadow 160ms, background-color 160ms, color 160ms; -webkit-tap-highlight-color: transparent; }
.csel:hover { box-shadow: inset 0 0 0 1px rgb(143 216 255 / .45); }
.csel:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--xenon); }
.csel[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--xenon); }
.csel:disabled { opacity: .45; cursor: default; }
.csel__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel__chev { flex: none; color: var(--md-sys-color-on-surface-variant); transition: transform 220ms var(--ease-out, ease-out); }
.csel[aria-expanded="true"] .csel__chev { transform: rotate(180deg); color: var(--xenon); }
.rsel .csel { min-height: 44px; min-width: 7.5rem; }
.fsort .csel { flex: 1; min-height: 40px; padding: 0 .5rem; justify-content: flex-end; gap: .5rem; background: transparent; box-shadow: none; font-size: .88rem; }
.fsort .csel:hover { color: #fff; box-shadow: none; }
.fsort .csel:focus-visible { outline: 2px solid var(--xenon); outline-offset: 2px; border-radius: var(--r-sm); box-shadow: none; }
.fsort .csel[aria-expanded="true"] { box-shadow: none; color: #fff; }

.csel-pop { position: fixed; inset: auto; margin: 0; padding: 4px; border: 0; border-radius: var(--r-md); background: rgb(22 26 32 / .97); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 18px 40px -12px rgb(0 0 0 / .85), 0 4px 12px -4px rgb(0 0 0 / .6); color: var(--md-sys-color-on-surface); font-family: var(--font-body); overflow: hidden; outline: none;
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: 50% 0;
  transition: opacity 140ms ease-out, transform 220ms var(--ease-out, ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.csel-pop.is-up { transform-origin: 50% 100%; transform: translateY(4px) scale(.98); }
.csel-pop:popover-open { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { .csel-pop:popover-open { opacity: 0; transform: translateY(-4px) scale(.98); } }
.csel-pop::backdrop { background: transparent; }
.csel-pop__list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2E3742 transparent; }
.csel-pop__list::-webkit-scrollbar { width: 8px; }
.csel-pop__list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: var(--r-full); background: #2E3742 padding-box; }
.csel-opt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 38px; padding: 0 .7rem; border-radius: var(--r-sm); color: #C5CDD6; font-size: .9rem; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.csel-opt.is-active { background: rgb(255 255 255 / .07); color: #fff; }
.csel-opt[aria-selected="true"] { color: var(--xenon); font-weight: 700; }
.csel-opt__tick { flex: none; opacity: 0; }
.csel-opt[aria-selected="true"] .csel-opt__tick { opacity: 1; }
.csel-opt[aria-disabled="true"] { opacity: .4; cursor: default; }

/* phones and touch: a bottom sheet with thumb-sized rows */
.csel-pop.is-sheet { inset: auto 0 0 0; width: 100%; max-width: none; max-height: min(72dvh, 560px); padding: 0 .5rem calc(.75rem + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: rgb(18 21 26 / .98); opacity: 1; transform: translateY(100%); transition: transform 340ms var(--ease-out, ease-out), overlay 340ms allow-discrete, display 340ms allow-discrete; }
.csel-pop.is-sheet:popover-open { transform: none; }
@starting-style { .csel-pop.is-sheet:popover-open { transform: translateY(100%); } }
.csel-pop.is-sheet::backdrop { background: rgb(3 4 6 / .62); transition: background-color 300ms, overlay 300ms allow-discrete, display 300ms allow-discrete; }
@starting-style { .csel-pop.is-sheet:popover-open::backdrop { background: rgb(3 4 6 / 0); } }
.csel-pop__h { display: grid; justify-items: center; gap: .75rem; padding: .55rem 0 .8rem; }
.csel-pop__grab { width: 40px; height: 4px; border-radius: var(--r-full); background: rgb(255 255 255 / .22); }
.csel-pop__h b { font-size: .78rem; font-weight: 700; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); }
.csel-pop.is-sheet .csel-opt { min-height: 52px; padding: 0 1rem; font-size: 1rem; }
.csel-pop.is-sheet .csel-opt + .csel-opt { box-shadow: 0 -1px 0 rgb(255 255 255 / .05); }
.csel-pop.is-sheet .csel-opt[aria-selected="true"] { background: rgb(143 216 255 / .08); box-shadow: none; }
.csel-pop.is-sheet .csel-opt[aria-selected="true"] + .csel-opt { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .csel-pop, .csel-pop.is-sheet, .csel__chev { transition: opacity 120ms; transform: none; } }
.csel-pop__h { touch-action: none; cursor: grab; }
.csel-pop__h { user-select: none; -webkit-user-select: none; }

/* ---------- cart on the shop's quote (finder/cart.js): drawer, cart page, checkout summary ---------- */
.citem.is-flagged .citem__t b { color: var(--md-sys-color-on-surface-variant); }
.citem__flag { color: var(--warn) !important; font-weight: 650; }
.co-stock { margin: 0; padding: .7rem .85rem; border-radius: 10px; font-size: .85rem; line-height: 1.45; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.co-stock[hidden] { display: none; }
.citem__price { color: var(--md-sys-color-on-surface) !important; font-weight: 650; font-variant-numeric: tabular-nums; }
.citem__act { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.citem__rm { min-height: 32px; padding: 0 .8rem; border: 0; border-radius: var(--r-full); background: none; color: var(--md-sys-color-primary); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.citem__n { font-weight: 650; font-variant-numeric: tabular-nums; }
.is-provisional { opacity: .55; }
.cart__sum { display: grid; gap: .25rem; }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; color: var(--md-sys-color-on-surface-variant); font-size: .9rem; }
.cart__row b { color: var(--md-sys-color-on-surface); font-weight: 650; font-variant-numeric: tabular-nums; }
.cart__row .cur, .citem__price .cur { margin-right: .25em; font-size: .78em; color: var(--md-sys-color-on-surface-variant); }
.cart__err, .cart__checking { font-size: .88rem; color: var(--md-sys-color-on-surface-variant); }
.cart__err { color: var(--warn); }
.cart__err button { min-height: 32px; padding: 0 .4rem; border: 0; background: none; color: var(--md-sys-color-primary); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cart__empty a { color: var(--md-sys-color-primary); }
.cart__go { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cartpage { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.cartpage .cart__list { padding: 1.25rem 0; }
.cartpage__foot { display: grid; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ---------- checkout (finder/checkout.js) ---------- */
.checkout { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.checkout__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .checkout__grid { grid-template-columns: minmax(0, 1fr) 360px; } .checkout__sum { position: sticky; top: 88px; } }
.checkout__form { display: grid; gap: 1.25rem; }
.co-sec { display: grid; gap: .8rem; margin: 0; padding: 1.1rem 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.co-sec legend { padding: 0 .4rem; font-weight: 700; letter-spacing: -.01em; }
.co-field { display: grid; gap: .35rem; }
.co-field span { font-size: .85rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant); }
.co-field small, .co-note { font-size: .8rem; color: var(--md-sys-color-on-surface-variant); }
.co-field input, .co-field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--r-sm); background: rgb(255 255 255 / .03); color: inherit; font: inherit; font-size: 16px; }
.co-field textarea { resize: vertical; }
.co-field input:focus-visible, .co-field textarea:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 1px; }
.co-field [aria-invalid="true"] { border-color: var(--warn); }
.co-saved { display: grid; gap: .5rem; }
.co-addr { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--r-sm); cursor: pointer; }
.co-addr:has(input:checked) { border-color: var(--md-sys-color-primary); }
.co-addr input { margin-top: .2rem; accent-color: var(--md-sys-color-primary); }
.co-new { display: grid; gap: .8rem; }
.co-check { display: flex; gap: .6rem; align-items: center; min-height: 44px; cursor: pointer; }
.co-check input { width: 18px; height: 18px; accent-color: var(--md-sys-color-primary); }
.co-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.co-err { margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: rgb(255 200 97 / .08); color: var(--warn); font-weight: 600; }
.co-place[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.co-place[aria-busy="true"] { opacity: .7; cursor: progress; }
.checkout__sum { display: grid; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgb(255 255 255 / .02); }
.checkout__sum h2 { margin: 0; font-size: 1.1rem; }
.checkout__sum .citem { grid-template-columns: 44px 1fr auto; }
.checkout__sum .citem__art { width: 44px; height: 44px; }
.co-edit { font-size: .88rem; color: var(--md-sys-color-primary); }
.checkout.is-empty .co-edit { display: none; }
@media (max-width: 899px) { .checkout__sum { order: -1; } }

/* ---------- order, track and past orders (includes/storefront/orders.php) ---------- */
.orderpage { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.orderpage .muted { color: var(--md-sys-color-on-surface-variant); }
.ov { display: grid; gap: 1.5rem; }
.ov h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.ov-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .4rem; counter-reset: st; }
.ov-step { position: relative; padding-top: 1.1rem; font-size: .85rem; color: var(--md-sys-color-on-surface-variant); counter-increment: st; }
.ov-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 999px; background: rgb(255 255 255 / .08); }
.ov-step.is-done::before, .ov-step.is-current::before { background: var(--ok); }
.ov-step.is-current { color: var(--md-sys-color-on-surface); font-weight: 700; }
.ov-step.is-done { color: var(--md-sys-color-on-surface); }
.ov-step.is-outcome { font-weight: 700; color: var(--warn); }
.ov-step.is-outcome::before { background: var(--warn); }
.ov-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.ov-main, .ov-side { display: grid; gap: .4rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.ov-lines { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .6rem; }
.ov-line { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ov-line small { color: var(--md-sys-color-on-surface-variant); }
.ov-line .cur, .olist .cur { margin-right: .25em; font-size: .78em; color: var(--md-sys-color-on-surface-variant); }
.ov-pay { margin-top: .4rem; font-size: .9rem; color: var(--md-sys-color-on-surface-variant); }
.ov-to, .ov-bank__dl { display: grid; gap: .55rem; margin: 0; }
.ov-to dt, .ov-bank__dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--md-sys-color-on-surface-variant); }
.ov-to dd, .ov-bank__dl dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ov-bank { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ov-bank p { margin: .6rem 0 0; font-size: .9rem; }
.ov-bank a, .ov-back a, .track__login a { color: var(--md-sys-color-primary); }
.ov-back { margin-top: 1.5rem; }
.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.olist__row a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-decoration: none; }
.olist__row a:hover { border-color: var(--md-sys-color-outline-variant); }
.olist__no { font-weight: 700; }
.olist__date, .olist__n { font-size: .85rem; color: var(--md-sys-color-on-surface-variant); }
.olist__total { font-weight: 650; text-align: right; }
.olist__status { justify-self: end; font-size: .8rem; font-weight: 700; }
@media (min-width: 760px) { .olist__row a { grid-template-columns: 1.2fr 1fr .8fr 1fr auto; align-items: center; } .olist__total { text-align: left; } }
.track { padding-bottom: 4rem; }
.track__form { display: grid; gap: .9rem; max-width: 420px; margin: 1.25rem 0; }

/* ---------- sign-in pages (finder/auth.js) ---------- */
.authp { padding-bottom: 4rem; }
.authp__form { display: grid; gap: .9rem; max-width: 420px; margin: 1.25rem 0; }
.authp__form[hidden] { display: none; }
.authp__ok { margin: 0; padding: .8rem 1rem; border-radius: var(--r-sm); background: rgb(110 231 160 / .08); color: var(--ok); font-weight: 600; }
.authp__ok:empty { display: none; }
.authp__alt { margin: .5rem 0 0; }
.authp__alt a, .authp__note a { color: var(--md-sys-color-primary); }
.authp__note { max-width: 420px; margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* ---------- account page (finder/account.js) ---------- */
.acct { padding-bottom: 4rem; }
.acct .section__head a { color: var(--md-sys-color-primary); }
.acct__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .acct__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct__card { display: grid; gap: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.acct__card h2 { margin: 0; font-size: 1.05rem; }
.acct__card .authp__form { margin: 0; max-width: none; }
.acct__addrs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.acct__addr { display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--r-sm); }
.acct__addr p { margin: 0; overflow-wrap: anywhere; }
.acct__addrhead { display: flex; gap: .5rem; align-items: center; }
.acct__badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.acct__tools { display: flex; gap: 1rem; margin-top: .3rem !important; }
.acct__link { padding: .3rem 0; border: 0; background: none; color: var(--md-sys-color-primary); font: inherit; font-size: .9rem; cursor: pointer; }
.acct__link:disabled { opacity: .5; cursor: progress; }
.acct__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.acct__danger summary { cursor: pointer; color: var(--warn); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.acct__danger p { font-size: .9rem; }
.btn--danger { background: transparent; border: 1px solid var(--warn); color: var(--warn); }

/* ---------- header search sheet (finder/search.js) ---------- */
.srch__list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .3rem; }
.srch__item { display: grid; grid-template-columns: 56px 1fr auto; gap: .8rem; align-items: center; padding: .45rem; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.srch__item:hover, .srch__item:focus-visible { background: rgb(255 255 255 / .06); }
.srch__item .part-photo { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; }
.srch__t { display: grid; min-width: 0; }
.srch__t b { font-weight: 650; font-size: .92rem; }
.srch__t small { color: var(--md-sys-color-on-surface-variant); font-size: .78rem; }
.srch__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srch__price .cur { margin-right: .25em; font-size: .7em; color: var(--md-sys-color-on-surface-variant); }
.srch__note { padding: 1rem .2rem; color: var(--md-sys-color-on-surface-variant); }
.srch .sheet__foot .btn { flex: 1; }
