:root {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #211a18;
  background: #f7f5f2;
  --red: #821d19;
  --text-soft: #645650;
  --line: #ded5cd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 16px; }
a { color: var(--red); text-underline-offset: .19em; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: clamp(20px, 4vw, 27px); font-weight: 750; letter-spacing: -.04em; }
.brand-logo { display: block; width: clamp(34px, 7vw, 48px); height: auto; flex: none; }
main { padding-block: 38px 56px; }
#catalog-view { padding-top: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 6vw, 61px); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(24px, 4vw, 33px); letter-spacing: -.035em; }
h3 { font-size: clamp(29px, 5vw, 42px); letter-spacing: -.04em; }
.intro { margin-top: 12px; font-size: 19px; color: var(--text-soft); }
.generation-description { max-width: 68ch; margin: 12px 0; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.catalog-hero {
  padding-block: clamp(32px, 5vw, 60px);
  color: #fffaf6;
  background:
    radial-gradient(circle, #fff4e526 1px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(105deg, #35191f, #63252f 70%, #7b343b);
}
.catalog-hero .intro { color: #f5ddd8; }
#filters { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(140px, .28fr); gap: 8px; margin-top: 24px; max-width: 870px; }
#filters :is(input, select) { color: #211a18; border-color: transparent; }
#filters .button { background: #f5ddd0; border-color: transparent; color: #421e24; }
#filters .button:hover { background: #fff4ed; }
#filters :focus-visible { outline-color: #ffe0a8; }
input, select, button { font: inherit; }
input, select { width: 100%; padding: 11px 13px; border: 1px solid #ad9b90; background: #fff; border-radius: 8px; color: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 18px; border: 1px solid var(--red); border-radius: 8px; background: var(--red); color: #fff; text-decoration: none; font-weight: 650; cursor: pointer; }
.button:hover { background: #65201a; }
:focus-visible { outline: 3px solid #ba5a36; outline-offset: 3px; }
.model-action { flex: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fffdfa; font-size: 14px; font-weight: 650; text-decoration: none; }
.model-action:hover { border-color: var(--red); }
.directory { margin-top: 26px; }
.directory-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 15px; }
#count { color: var(--text-soft); }
#results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; align-items: start; }
#results.is-filtered { grid-template-columns: minmax(0, 1fr); }
.group { border: 1px solid var(--line); border-radius: 6px; background: #fffdfa; }
.group summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 13px; font-size: 17px; font-weight: 650; cursor: pointer; }
.group summary::-webkit-details-marker { display: none; }
.group summary span { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--text-soft); }
.group summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(45deg); }
.group[open] summary::after { transform: rotate(225deg); }
.group summary:hover { color: var(--red); }
.models { list-style: none; margin: 0; padding: 0; }
.models li { border-top: 1px solid var(--line); }
.model-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 15px; color: inherit; font-weight: 550; text-decoration: none; }
.model-link::after { content: ''; width: 7px; height: 7px; flex: none; border-right: 1.5px solid var(--red); border-top: 1.5px solid var(--red); transform: rotate(45deg); }
.model-link:hover { background: #f9eeea; color: var(--red); }
#fallback { margin-top: 15px; }
.catalog-footer { padding-block: 14px 24px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 13px; }
.catalog-footer summary { width: fit-content; cursor: pointer; }
.copyright-notice { max-width: 900px; margin: 0 0 8px; }
.catalog-documents { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 12px 0; }
.protected-photo-frame { position: relative; }
.protected-photo-guard { position: absolute; inset: 0; z-index: 1; border-radius: 7px; -webkit-touch-callout: none; user-select: none; }
.protected-product-photo img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.catalog-footer dt { margin-top: 9px; font-weight: 650; }
.catalog-footer dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.catalog-back { display: inline-block; margin-bottom: 16px; font-size: 14px; }
#vehicle-content { display: grid; gap: 14px; margin-top: 24px; }
.vehicle-all { width: fit-content; }
.generation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.generation-card, .salon-section { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; }
.seat-cover-example { padding: clamp(14px, 2.5vw, 26px); border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; scroll-margin-top: 12px; }
.seat-cover-source-title { margin-bottom: 10px; color: var(--text-soft); font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.seat-cover-description { margin-top: 8px; line-height: 1.45; white-space: pre-line; }
.seat-cover-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 14px); margin-top: 14px; }
.seat-cover-gallery:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.seat-cover-gallery figure { margin: 0; }
.seat-cover-gallery img { display: block; width: 100%; height: auto; border-radius: 7px; background: #f7f5f2; }
.seat-cover-gallery figcaption { padding-top: 5px; color: var(--text-soft); font-size: 14px; }
@media (min-width: 761px) {
  .seat-cover-gallery--mats:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seat-cover-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; margin: 16px 0; }
.seat-cover-prices > div { padding: 12px; border-radius: 7px; background: #f3e9e2; }
.seat-cover-prices dd { margin: 3px 0 0; font-size: 18px; font-weight: 700; color: var(--red); }
.seat-cover-prices a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.cover-order-dialog { width: min(100% - 24px, 640px); max-height: 94dvh; overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfa; color: inherit; }
.cover-order-dialog::backdrop { background: #211a1890; }
.cover-order-header { position: sticky; top: -16px; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding-block: 8px; background: #fffdfa; }
.cover-order-header h2 { font-size: 22px; }
.cover-order-header button { min-height: 44px; cursor: pointer; }
.cover-order-dialog iframe { display: block; width: 100%; height: 1200px; margin: 10px 0; border: 0; background: #fff; }
.seat-cover-design { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; border-color: var(--red); }
.seat-cover-specs { margin: 0; }
.seat-cover-specs > div { display: grid; grid-template-columns: minmax(106px, 28%) minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.seat-cover-specs dt { color: var(--text-soft); }
.seat-cover-specs dd { margin: 0; }
.seat-cover-fitment { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--red); background: #f3e9e2; line-height: 1.45; }
.seat-cover-fitment p { margin-top: 4px; }
.fitment-required { font-weight: 650; }
.seat-cover-contents { margin: 16px 0; }
.seat-cover-contents h3 { font-size: 19px; letter-spacing: normal; }
.seat-cover-contents ul { margin: 6px 0; padding-left: 20px; }
@media (max-width: 620px) {
  .seat-cover-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat-cover-gallery:not(.seat-cover-gallery--mats) figure:first-child:nth-last-child(3) { grid-column: 1 / -1; }
  .seat-cover-gallery:not(.seat-cover-gallery--mats) figure:first-child:nth-last-child(3) img { max-height: 450px; object-fit: contain; }
}
.generation-card h2 { overflow-wrap: anywhere; }
.generation-number { font-weight: 650; }
.generation-variant { margin-top: 6px; font-weight: 750; }
.generation-card .model-action { display: inline-block; margin-top: 14px; }
.generation-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin-top: 12px; }
.generation-photos figure { margin: 0; }
.generation-photos img { display: block; width: 100%; height: auto; aspect-ratio: 30 / 19; object-fit: contain; border-radius: 7px; background: #f7f5f2; }
.generation-photos figcaption, .vehicle-body-info { margin-top: 4px; color: var(--text-soft); font-size: 14px; }
.generation-grid--fielder { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
@media (min-width: 680px) {
  .generation-grid--fielder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation-grid--fielder .generation-photos img { max-height: 220px; }
}
.generation-grid--harrier { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.generation-grid--harrier .generation-card { padding: 14px; }
.generation-grid--harrier .generation-photos:has(figure:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 680px) {
  .generation-grid--harrier:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation-grid--harrier .generation-photos img { max-height: 185px; }
}
@media (min-width: 1060px) {
  .generation-grid--harrier:has(> :nth-child(4)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .generation-grid--harrier:has(> :nth-child(4)) > :has(.generation-photos figure:nth-child(2)) { grid-column: span 2; }
  .generation-grid--harrier h2 { font-size: 26px; }
}
.vehicle-version { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.vehicle-version h3 { font-size: 18px; letter-spacing: normal; }
.vehicle-version p { margin-top: 4px; line-height: 1.45; }
.vehicle-version button { margin-top: 9px; min-height: 40px; cursor: pointer; }
.vehicle-selection { margin-top: 18px; padding: 18px; border-left: 4px solid var(--red); background: #fffdfa; border-radius: 6px; }
.vehicle-selection strong { font-size: 19px; }
.vehicle-selection p + p, .vehicle-selection a + p { margin-top: 6px; }
.vehicle-selection .button { margin-top: 13px; }
.salon-notice { margin-top: 12px; font-weight: 650; }
.salon-enquiry { font-size: 19px; margin-top: 21px; letter-spacing: normal; }
#vehicle-rows { padding: 8px 12px 12px; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 7px; }
#vehicle-rows label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; }
#vehicle-rows input { width: auto; margin: 0; }
.request-preview { padding: 12px; margin-top: 12px; background: #f3e9e2; border-radius: 6px; }
@media (max-width: 760px) {
  #results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  main { padding-top: 26px; }
  #filters { grid-template-columns: minmax(0, 1fr) auto; }
  #brand { grid-column: 1 / -1; }
}
