:root { --ct-orange: #f5621d; --ct-ink: #18191b; --ct-muted: #666a70; --ct-line: #e5e6e8; --ct-soft: #f6f6f7; }
.kit-page { min-width: 280px; background: #fff; color: var(--ct-ink); }
.kit-page img[src^="/assets/logos-marques/"] { filter: brightness(0); }
.kit-category-nav a.is-active { background: rgba(0,0,0,.16); }
.catalog-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.catalog-hero { position: relative; overflow: hidden; padding: 54px 0 52px; color: #fff; background: radial-gradient(circle at 88% 14%, rgba(245,98,29,.28), transparent 26%), linear-gradient(120deg, #111214, #292b2f); }
.catalog-hero::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 340px; height: 190px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; transform: rotate(-12deg); }
.catalog-hero .catalog-container { position: relative; z-index: 1; }
.catalog-hero h1 { max-width: 820px; margin: 5px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.03; letter-spacing: -1.5px; }
.catalog-hero p:last-child { max-width: 650px; margin: 0; color: #d7d8da; font-size: 16px; line-height: 1.55; }
.eyebrow, .step-label { margin: 0; color: var(--ct-orange); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.catalog-hero-brand .catalog-container { display: flex; align-items: center; gap: 36px; }
.hero-brand-logo { width: 220px; min-width: 220px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.hero-brand-logo img { display: block; width: 100%; height: 95px; object-fit: contain; }
.catalog-section { padding: 22px 0 76px; }
.breadcrumb { margin: 0 0 22px; color: #777b80; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b1b3b6; }
.breadcrumb a:hover { color: var(--ct-orange); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin: -10px 0 8px; color: #55595f; font-size: 14px; font-weight: 700; }
.back-link:hover { color: var(--ct-orange); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 18px 0 24px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.7px; }
.result-count { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: #fff3ec; color: #b63e08; font-size: 13px; font-weight: 800; }
.catalog-search { display: flex; width: min(480px, 100%); height: 50px; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 16px; border: 1px solid #d8dadd; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(18,20,22,.05); }
.catalog-search:focus-within { border-color: var(--ct-orange); box-shadow: 0 0 0 3px rgba(245,98,29,.13); }
.catalog-search svg { width: 21px; height: 21px; color: #73767a; }
.catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ct-ink); font-size: 16px; }
.brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.brand-card, .model-card { position: relative; display: flex; overflow: hidden; border: 1px solid var(--ct-line); background: #fff; color: var(--ct-ink); box-shadow: 0 8px 30px rgba(16,18,20,.06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.brand-card:hover, .brand-card:focus-visible, .model-card:hover, .model-card:focus-visible { z-index: 1; outline: 0; border-color: rgba(245,98,29,.65); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,18,20,.12); }
.brand-card { min-height: 170px; flex-direction: column; align-items: center; justify-content: center; padding: 18px 18px 40px; border-radius: 18px; }
.brand-card-logo { display: grid; width: 100%; min-height: 90px; place-items: center; }
.brand-card-logo img { display: block; width: 100%; max-width: 180px; height: 72px; object-fit: contain; }
.brand-card-name { text-align: center; font-size: 15px; font-weight: 800; }
.card-arrow { position: absolute; right: 14px; bottom: 12px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #fff1e9; color: var(--ct-orange); font-size: 17px; transition: background .18s ease, color .18s ease; }
.brand-card:hover .card-arrow, .model-card:hover .card-arrow { background: var(--ct-orange); color: #fff; }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.model-card { min-height: 260px; flex-direction: column; border-radius: 20px; }
.model-card-media { display: grid; width: 100%; aspect-ratio: 3 / 2; place-items: center; overflow: hidden; background: linear-gradient(145deg, #fafafa, #f0f1f2); }
.model-card-media.has-photo { background: #fff; }
.model-card-media > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.model-placeholder { display: grid; width: 75%; place-items: center; opacity: .76; filter: grayscale(.22); }
.model-placeholder img { display: block; width: 100%; height: auto; }
.model-card-body { display: flex; min-height: 84px; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 48px 15px 17px; }
.model-card-body strong { font-size: 18px; line-height: 1.15; }
.model-card-body span { color: var(--ct-muted); font-size: 13px; }
.no-results { padding: 30px; border-radius: 16px; background: var(--ct-soft); color: var(--ct-muted); text-align: center; }
.model-next-step { min-height: 440px; }
.next-step-card { max-width: 690px; margin: 28px auto 0; padding: 44px; border: 1px solid var(--ct-line); border-radius: 24px; background: #fff; box-shadow: 0 18px 60px rgba(16,18,20,.09); text-align: center; }
.next-step-card > img { display: block; width: 230px; max-width: 70%; height: 110px; margin: 0 auto 26px; object-fit: contain; }
.next-step-card h2 { margin: 8px 0 12px; font-size: clamp(25px, 4vw, 36px); }
.next-step-card > p:not(.step-label) { max-width: 560px; margin: 0 auto 25px; color: var(--ct-muted); line-height: 1.6; }
.primary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 12px; background: var(--ct-orange); color: #fff; font-weight: 800; }
.primary-button:hover { background: #d94b0b; }
.kit-footer { padding: 34px 0; border-top: 1px solid #303236; background: #1d1f22; color: #c7c8ca; }
.kit-footer .catalog-container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.kit-footer img { display: block; width: 113px; height: 41px; object-fit: contain; filter: brightness(0) invert(1); }
.kit-footer p { margin: 0; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 980px) {
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .catalog-container { width: min(100% - 30px, 620px); }
  .catalog-hero { padding: 38px 0 40px; }
  .catalog-hero h1 { font-size: 34px; letter-spacing: -.8px; }
  .catalog-hero-brand .catalog-container { align-items: flex-start; gap: 18px; }
  .hero-brand-logo { width: 125px; min-width: 125px; border-radius: 15px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .section-heading { align-items: flex-start; }
}
@media (max-width: 520px) {
  .catalog-container { width: calc(100% - 28px); }
  .catalog-hero { padding: 32px 0 34px; }
  .catalog-hero h1 { font-size: 30px; }
  .catalog-hero-brand .catalog-container { display: block; }
  .hero-brand-logo { width: 130px; margin: 0 0 20px; }
  .catalog-section { padding: 18px 0 54px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 26px; }
  .result-count { display: inline-flex; margin-top: 13px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brand-card { min-height: 138px; padding: 11px 10px 34px; border-radius: 15px; }
  .brand-card-logo { min-height: 70px; }
  .brand-card-logo img { height: 60px; }
  .brand-card-name { font-size: 13px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 0; flex-direction: row; align-items: stretch; }
  .model-card-media { width: 45%; flex: 0 0 45%; aspect-ratio: 4 / 3; }
  .model-card-body { width: 55%; min-height: 116px; padding: 16px 38px 16px 14px; }
  .model-card-body strong { font-size: 17px; }
  .next-step-card { padding: 32px 19px; border-radius: 18px; }
  .kit-footer .catalog-container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-card, .model-card, .card-arrow { transition: none; }
}

.ct-product-simulator{margin:20px 0 24px}.ct-product-simulator .primary-button{display:inline-flex;gap:16px;align-items:center;max-width:100%;white-space:normal;line-height:1.35}.ct-product-simulator p{font-size:13px;line-height:1.5;margin:9px 0 0;color:#66727a}

/* Stable image frames shared by all brand/model/generation cards.
   Absolute positioning prevents intrinsic square images from enlarging grid
   tracks and overflowing into the label. The source image remains untouched. */
body.kit-page .catalog-section :is(.model-card-media,[class$="-version-media"]) {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  padding: 0;
  flex-shrink: 0;
  align-self: center;
  overflow: hidden;
  background: #fff;
}
body.kit-page .catalog-section :is(.model-card-media,[class$="-version-media"]) > img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
body.kit-page .catalog-section [data-car-frame] > img {
  inset: auto;
  left: var(--car-x);
  top: var(--car-y);
  width: var(--car-w);
  height: auto;
}
/* Keep the existing Mercedes contact shadow aligned with the moved vehicle. */
body.kit-page .catalog-section [data-car-frame]::before {
  top: calc(var(--car-ground, 78%) - 4%);
}
body.kit-page .catalog-section .model-card-body { min-width: 0; }
@media (max-width: 520px) {
  body.kit-page .catalog-section .model-card-media { width: 45%; flex-basis: 45%; }
}
