/* /car-parts marketplace: model strip, filters and listing cards. Loaded after car.css. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.car-hero--slim { padding-block: clamp(32px, 4.5vw, 60px); }
.car-hero--slim h1 { font-size: clamp(36px, 4.6vw, 64px); }
.car-search { display: block; margin-top: 22px; max-width: 640px; }
.car-search input { width: 100%; min-height: 56px; padding: 0 18px; font: 500 17px/1.2 var(--font); border: 2px solid transparent; background: #fff; color: #13203A; }
.car-search input:focus { outline: 3px solid #F2C46B; outline-offset: 2px; }
.car-market { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.car-h { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 14px; }
.car-makebar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.car-makebar button { flex: none; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 650 15px/1 var(--font); cursor: pointer; border-radius: 999px; }
.car-makebar button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.car-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 200px); gap: 12px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.car-card { scroll-snap-align: start; display: grid; gap: 2px; padding: 0 0 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-align: start; overflow: hidden; transition: transform .18s, border-color .18s; }
.car-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 6px; }
.car-card b { padding-inline: 10px; font: 700 15.5px/1.2 var(--font); }
.car-card span { padding-inline: 10px; font-size: 13px; color: var(--ink-3); }
.car-card:hover { transform: translateY(-2px); border-color: var(--maroon); }
.car-card.is-on { border-color: var(--maroon); box-shadow: inset 0 -4px 0 var(--maroon); }
.car-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 26px; align-items: start; }
.car-filters { position: sticky; top: 80px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.car-filters h3 { font-size: 16px; margin: 0 0 10px; }
.car-types { display: grid; gap: 2px; }
.car-types label { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-size: 15px; }
.car-types input { width: 20px; height: 20px; accent-color: var(--maroon); flex: none; }
.car-clear { margin-top: 12px; border: 0; background: none; padding: 6px 0; color: var(--maroon); font: 650 14px/1.2 var(--font); text-decoration: underline; cursor: pointer; }
.car-resbar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 14px; }
.car-resbar p { margin: 0; }
#count { font: 750 20px/1.2 var(--font-cond); scroll-margin-top: 80px; }
.car-active { color: var(--ink-3); }
.car-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.car-item { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.car-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #0D47A1; }
.car-item__noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #0D47A1; color: #fff; font-size: 13.5px; opacity: .92; }
.car-item__b { display: grid; gap: 6px; padding: 14px; align-content: start; grid-template-rows: auto auto 1fr; }
.car-item h3 { margin: 0; font: 700 16.5px/1.3 var(--font); letter-spacing: 0; }
.car-item p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.car-item .btn { align-self: end; width: 100%; min-height: 44px; margin-top: 6px; }
.car-more { display: grid; justify-items: center; margin-top: 22px; }
.car-empty { margin: 8px 0 0; padding: 18px; background: var(--surface); border: 1px dashed var(--line); }
.car-fine { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-3); max-width: 60rem; }
.car-market .car-ask { margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 860px) {
  .car-layout { grid-template-columns: 1fr; }
  .car-filters { position: static; padding: 12px 14px; }
  .car-types { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .car-types label { border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--plate); }
  .car-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .car-item__b { padding: 10px; }
  .car-item h3 { font-size: 14.5px; }
  .car-strip { grid-auto-columns: 150px; }
}
@media (prefers-reduced-motion: reduce) { .car-card { transition: none; } }
@media (max-width: 860px) { .car-layout { grid-template-columns: minmax(0, 1fr); } .car-filters, .car-layout > * { min-width: 0; } }
.car-strip, .car-makebar { max-width: 100%; }

/* studio car images sit on white, like a catalogue cut-out */
.car-card--studio { background: #fff; color: #13203A; }
.car-card--studio span { color: #56617A; }
.car-card--studio img { object-fit: contain; background: #fff; }

/* ---- v8: showroom look ---- */
.car-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 0%, #1E78D6 0%, #1565C0 28%, #0D47A1 62%, #0A2F6B 100%); }
.car-hero--slim { padding-bottom: 0; }
.car-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px); pointer-events: none; }
.car-hero > .wrap { position: relative; }
/* the parade: cars drive slowly along a white showroom floor */
.car-parade { position: relative; margin-top: clamp(28px, 4vw, 48px); background: #fff; overflow: hidden; direction: ltr; border-top: 4px solid #F2C46B; }
.car-parade__track { display: flex; width: max-content; animation: car-drive 70s linear infinite; }
.car-parade:hover .car-parade__track, .car-parade:focus-within .car-parade__track { animation-play-state: paused; }
.car-pcar { flex: none; display: grid; justify-items: center; width: clamp(150px, 17vw, 230px); padding: 10px 6px 12px; border: 0; background: none; cursor: pointer; font: inherit; color: #2E3338; }
.car-pcar img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.car-pcar span { font: 650 13.5px/1.2 var(--font); color: #5F6770; }
.car-pcar:hover img, .car-pcar:focus-visible img { transform: scale(1.08) translateY(-3px); }
.car-pcar:hover span { color: #1565C0; }
.car-pcar:focus-visible { outline: 3px solid #1565C0; outline-offset: -3px; }
@keyframes car-drive { to { transform: translateX(-50%); } }
/* model cards: the car fills the card */
.car-card { border-radius: 10px; }
.car-card--studio img { padding: 4px 6px 0; }
.car-card.is-on { border-color: var(--maroon); box-shadow: 0 0 0 2px var(--maroon), 0 10px 24px rgba(21, 101, 192, .18); }
.car-makebar button { transition: background .15s, color .15s, border-color .15s; }
.car-makebar button:hover { border-color: var(--maroon); color: var(--maroon); }
.car-makebar button[aria-pressed="true"]:hover { color: #fff; }
/* spotlight: the chosen car drives in, with its parts */
.car-spot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(16px, 3vw, 40px); align-items: center; margin-top: 18px; padding: clamp(14px, 2.4vw, 28px); background: #fff; color: #1E2328; border: 1px solid #D2D9E0; border-radius: 14px; overflow: hidden; scroll-margin-top: 76px; box-shadow: 0 14px 34px rgba(13, 71, 161, .1); }
.car-spot[hidden] { display: none; }
.car-spot__pic { position: relative; }
.car-spot__pic::after { content: ""; position: absolute; inset-inline: 8%; bottom: 6%; height: 10%; background: radial-gradient(closest-side, rgba(13, 71, 161, .22), transparent); z-index: 0; }
.car-spot__pic img { position: relative; z-index: 1; width: 100%; height: auto; animation: car-in .8s cubic-bezier(.16, 1, .3, 1) both; }
:root[dir="rtl"] .car-spot__pic img { animation-name: car-in-rtl; }
.car-spot__b { animation: car-fade .6s .15s both; }
.car-spot__make { margin: 0; font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #1565C0; }
.car-spot h3 { margin: 6px 0 8px; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; color: #1E2328; }
.car-spot p { margin: 0; color: #5F6770; }
.car-spot__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.car-spot__chips button { min-height: 38px; padding: 0 13px; border: 1.5px solid #D2D9E0; border-radius: 999px; background: #EEF1F4; color: #1E2328; font: 600 13.5px/1.2 var(--font); cursor: pointer; }
.car-spot__chips button:hover { border-color: #1565C0; }
.car-spot__chips button[aria-pressed="true"] { background: #1565C0; border-color: #1565C0; color: #fff; }
.car-spot .car-clear { color: #1565C0; }
@keyframes car-in { from { transform: translateX(-60%); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes car-in-rtl { from { transform: translateX(60%); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes car-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* listings */
.car-filters { border-radius: 12px; }
.car-item { border-radius: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.car-item:hover { transform: translateY(-3px); border-color: var(--maroon); box-shadow: 0 12px 26px rgba(13, 71, 161, .14); }
.car-item img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.car-item:hover img { transform: scale(1.05); }
.car-item.rise { animation: car-fade .45s both; }
.car-item.rise:nth-child(6n+2) { animation-delay: .04s; } .car-item.rise:nth-child(6n+3) { animation-delay: .08s; } .car-item.rise:nth-child(6n+4) { animation-delay: .12s; }
.car-item.rise:nth-child(6n+5) { animation-delay: .16s; } .car-item.rise:nth-child(6n+6) { animation-delay: .2s; }
@media (max-width: 860px) {
  .car-spot { grid-template-columns: minmax(0, 1fr); }
  .car-spot > * { min-width: 0; }
  .car-spot__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .car-spot__chips button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .car-parade__track { animation: none; overflow-x: auto; width: auto; }
  .car-spot__pic img, .car-spot__b, .car-item.rise { animation: none; }
  .car-item, .car-item img, .car-pcar img { transition: none; }
}

/* plain links to every car's own page */
.car-models { padding-block: clamp(40px, 6vw, 80px); }
.car-models ul { list-style: none; margin: 20px 0 0; padding: 0; columns: 4 200px; column-gap: 28px; }
.car-models li { break-inside: avoid; padding: 5px 0; }
.car-resbar { flex-wrap: wrap; gap: 8px 14px; align-items: center; } .car-pagelink { margin-inline-start: auto; padding: 8px 14px; font-size: 14px; }
.car-models h2 { font-size: clamp(26px, 3.4vw, 40px); } .car-models a { text-decoration: none; border-bottom: 1px solid transparent; } .car-models a:hover { border-bottom-color: currentColor; }
