/* Shared presentation for the COSCAR storefront and its working pages. */
:root {
  --coscar-red: #ed292f;
  --coscar-deep-red: #ba1a23;
  --coscar-button: linear-gradient(145deg,#ec3335,#cb1824);
  --coscar-night: #111822;
  --ui-ink: #101721;
  --ui-muted: #536171;
  --ui-paper: #f7f8fa;
  --ui-line: #e0e5eb;
  --ui-orange: #ef3739;
  --ui-strong: #ac1924;
  --ui-cobalt: #b32530;
  --ui-body: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  --ui-display: var(--ui-body);
  --site-width: 1330px;
  --gutter: clamp(16px, 3.6vw, 48px);
}
html {scroll-padding-top: 80px}
body {font-family: var(--ui-body); background: var(--ui-paper); color: var(--ui-ink)}
.coscar-header {position: sticky; top: 0; z-index: 45; background: white; box-shadow: 0 1px 10px #0c141e0a; border-bottom: 1px solid #edf0f2}
.coscar-bar,.coscar-foot,.coscar-copyright {width: min(var(--site-width), calc(100% - 2 * var(--gutter))); margin-inline: auto}
.coscar-header .coscar-bar {min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 2vw, 35px)}
.coscar-brand {display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; color: #101820}
.coscar-brand:hover,.coscar-cta:hover {text-decoration: none}
.coscar-mark {display: block; width: 54px; height: 49px; object-fit: contain; filter: drop-shadow(0 3px 4px #141c242b)}
.coscar-word {display: flex; flex-direction: column; line-height: 1; align-items: flex-start}
.coscar-word strong {font: italic 900 29px/.96 var(--ui-body); letter-spacing: -.062em; transform: skew(-7deg)}
.coscar-word strong span {color: #f53a38}
.coscar-word small {margin-top: 5px; color: #677282; font: 800 8px/1.2 var(--ui-body); letter-spacing: .19em; white-space: nowrap}
.coscar-header .coscar-nav,.coscar-foot nav {display: flex; flex-wrap: wrap; gap: clamp(10px, 1.45vw, 25px); align-items: center}
.coscar-nav a,.coscar-foot nav a {font: 720 13px/1.25 var(--ui-body); color: #364252}
.coscar-nav a:hover,.coscar-foot nav a:hover,.coscar-menu nav a:hover {color: var(--coscar-deep-red)}
.coscar-actions {display: flex; align-items: center; gap: 9px; flex-shrink: 0}
.coscar-cta,.request-submit {display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 11px; padding: 11px 17px; background: var(--coscar-button); box-shadow: 0 6px 16px #eb25251e; color: white; font: 780 14px/1.22 var(--ui-body); white-space: nowrap}
.coscar-cta:hover,.request-submit:hover {background: #ba1a23; color: white}
.coscar-header .coscar-cart,.coscar-menu summary {display: grid; place-content: center; min-height: 42px; width: 42px; margin: 0; padding: 0; border: 1px solid #e1e6eb; border-radius: 12px; color: #313d4a; background: #fff; cursor: pointer; position: relative; order: 0}
.coscar-cart b:not(:empty) {position: absolute; right: -5px; top: -6px; background: #b91c25; border-radius: 12px; color: #fff; font: 750 10px/1.15 var(--ui-body); padding: 2px 4px}
.coscar-menu {position: relative; display: none}
.coscar-menu summary {list-style: none}
.coscar-menu summary::-webkit-details-marker {display: none}
.coscar-menu nav {position: absolute; top: calc(100% + 6px); right: 0; width: min(275px, calc(100vw - 30px)); max-height: 76vh; overflow: auto; z-index: 2; display: grid; gap: 0; padding: 7px; background: #fff; border: 1px solid var(--ui-line); border-radius: 12px; box-shadow: 0 14px 38px #0d172d29}
.coscar-menu nav a {display: block; min-height: 41px; padding: 10px 12px; font: 700 14px/1.45 var(--ui-body); color: #273242}
.coscar-footer {background: #111822; color: #ebeff4; margin-top: 45px}
.coscar-foot {min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px}
.coscar-foot .coscar-brand,.coscar-foot nav a {color: #f1f3f6}
.coscar-footer .coscar-word small {color: #a4afbb}
.coscar-foot .coscar-mark {width: 45px; height: 40px}
.coscar-foot .coscar-word strong {font-size: 25px}
.coscar-foot nav a:hover {color: #ff8383}
.coscar-copyright {padding-block: 12px 18px; border-top: 1px solid #ffffff26; color: #adb7c3; font: 550 12px/1.45 var(--ui-body)}

.request-page {--request-ink: #111822; --request-muted: #566171; font-family: var(--ui-body)}
.request-layout {width: min(var(--site-width), calc(100% - 2 * var(--gutter))); gap: clamp(16px, 3vw, 42px); padding-block: clamp(22px, 3.8vw, 54px)}
.request-intro {background: radial-gradient(ellipse at 90% 65%, #49242e 0, transparent 50%), #151c25}
.request-hero {height: 58%; object-fit: cover; object-position: 54% center}
.request-intro::after {background: linear-gradient(180deg,#141b24 38%,#141b24f2 46%,#141b2473 60%,transparent 79%)}
.request-intro h1,.request-card h2 {font-family: var(--ui-body); font-weight: 850}
.request-intro h1 em {color: #ff5754}
.request-category {color: #a31e28; background: #fff0ef}
.request-page .request-field label .request-label-main {margin: 0; color: var(--ui-ink); font-size: inherit; font-weight: inherit}
.request-page :is(input,textarea):focus {border-color: var(--coscar-deep-red)}
.request-page :is(a,button,input,textarea,summary):focus-visible,.coscar-header :focus-visible,.coscar-footer :focus-visible {outline: 3px solid #ab2331; outline-offset: 2px}
.request-foot .request-submit {width: 100%; min-height: 48px}
.request-page .coscar-footer {margin-top: 0}
.request-modes {display: flex; gap: 4px; padding: 4px; background: #f0f2f5; border-radius: 11px; margin: 0 0 20px}
.request-modes button {flex: 1; border: none; border-radius: 8px; min-height: 38px; padding: 7px 8px; background: transparent; color: #485462; font: 740 14px/1.25 var(--ui-body); cursor: pointer}
.request-modes button[aria-pressed=true] {background: #fff; box-shadow: 0 1px 5px #1723391c; color: #aa1b23}
#lead-form[data-mode=vin] .request-fields .request-field:nth-child(2) {grid-row: 1}

.garage-page .hero {isolation: isolate; background: #141b25}
.garage-page .hero .photo {background: linear-gradient(90deg,#121922 4%,#171f2bf5 35%,#161d2888 56%,transparent 74%), url('/assets/director/hero.webp') right 54% / auto 142% no-repeat; opacity: 1}
.garage-page .hero h1,.pro-page .hero h1,.mast h1 {font: 850 clamp(42px,4.75vw,70px)/1.05 var(--ui-display); text-transform: none; letter-spacing: -.062em}
.garage-page .hero h1 em,.pro-page .hero h1 em {font: inherit; color: #ff5353!important}
.garage-page .hero p {font-size: clamp(15px,1.1vw,17px); color: #cdd4dd}
.garage-page .selector {border-radius: 16px; border-color: #e0e5eb; box-shadow: 0 8px 25px #19233312}
.garage-page .tabs button {min-height: 42px; font-size: 15px}
.garage-page .tabs button[aria-pressed=true] {color: var(--coscar-deep-red); border-bottom-color: var(--coscar-red)}
.garage-page .action,.store-page .quicksearch button,.store-page .empty .primary,.summary .primary {color: white; background: var(--coscar-button); font-family: var(--ui-body)}
.garage-page .action:hover,.store-page .empty .primary:hover,.summary .primary:hover {background: var(--coscar-deep-red); color: #fff}
.garage-page select,.garage-page form input,.pro-page .sort select,.pro-page .source-choice select {font-size: 15px; background: #f9fafb; border-color: #cbd2da}
.garage-page .section-title h2,.pro-page .catalog-top h2,.pro-page .dialog-head h2,.store-page .subhead,.store-page .empty h2 {font: 800 clamp(25px,2.6vw,39px)/1.14 var(--ui-body); text-transform: none; letter-spacing: -.048em}
.garage-page .card {border-radius: 14px; border-color: var(--ui-line)}
.garage-page .card:hover,.pro-page .filters button:hover {border-color: #d58a8d}
.garage-page .card img,.pro-page .product img,.pro-page .photo-missing {background: #f3f5f7}
.garage-page .card b {color: var(--ui-ink)}
.pro-page .intro {background: radial-gradient(ellipse at 96% 80%,#452026 0%,transparent 56%), linear-gradient(115deg,#121820,#1b2532); color: white}
.pro-page .intro>label {color: #d6dee9}
.pro-page .search {color: #b3212d}
.pro-page .search:focus-within {outline-color: #fa827f}
.pro-page .r.labels {background: #eef1f5; color: #4b586a}
.pro-page .r {border-bottom-color: #e6e9ee}
.pro-page .pro-actions button,.pro-page .filters button {min-height: 42px}
.pro-page .filters button {border-color: #d9dfe6}
.pro-page .filters button[aria-pressed=true] {background: #1b232e; border-color: #1b232e}
.pro-page input[type=checkbox] {accent-color: #bd202b}
.pro-page .comp-count {color: #a61a25; background: #fff0f0}
.pro-page .open,.pro-page .compare-grid a {color: var(--coscar-deep-red)}
.pro-page .compare-grid article {border-color: var(--ui-line)}
.pro-page #clearComparison {margin-top: 14px; padding: 8px 13px; min-height: 40px; background: #fff; border: 1px solid #b9c2cd; border-radius: 8px; color: var(--ui-ink)}

.store-page .mast {background: radial-gradient(ellipse at right,#352128,transparent 65%), #151c26}
.store-page .mast::after {opacity: .5}
.store-page .empty {background: #fff; border: 1px solid var(--ui-line)}
.store-page .blueprint,.store-page .thumb,.store-page .photos button {background: #f0f2f5; border: 1px solid var(--ui-line)}
.store-page .blueprint {margin: 0; aspect-ratio: 1.5}
.store-page .photos button[aria-pressed=true] {border: 2px solid var(--coscar-deep-red)}
.store-page .detail-category {color: #ab2029}
.store-page .offerbox,.store-page .summary,.store-page .specs {border-color: var(--ui-line); box-shadow: 0 6px 25px #14203108}
.store-page .offerbox .lead-action {grid-column: 1/-1; background: var(--coscar-button); margin: 0; box-shadow: 0 6px 16px #eb25251a}
.store-page .offerbox .lead-action:hover {background: var(--coscar-deep-red)}
.store-page .offerbox .primary {background: #192330; color: white}
.store-page .offerbox .primary:disabled {background: #edf0f3; color: #67707b}
.store-page .offerbox .secondary {background: white; color: var(--ui-ink); border: 1px solid #ccd3db}
.store-page .part-facts {margin-top: clamp(22px,3vw,40px)}
.store-page .coscar-tabs {display: flex; align-items: center; gap: 5px; margin-block: 0 12px; overflow-x: auto; padding-bottom: 4px}
.coscar-tabs button {border: 1px solid #d8dee5; color: #414d5b; background: #fff; border-radius: 9px; padding: 8px 15px; min-height: 42px; font: 730 14px/1.25 var(--ui-body); cursor: pointer; white-space: nowrap}
.coscar-tabs button[aria-selected=true] {background: #192330; color: white; border-color: #192330}
.coscar-panel .vehicles {margin: 0}
.coscar-panel .vehicles li {color: #354253; background: #eef1f4}
.coscar-panel p {max-width: 80ch; white-space: pre-line; overflow-wrap: anywhere}
.coscar-panel .notes {padding: 0; border: 0; margin: 0}
.store-page .stepper {background: #f1f3f6}
.store-page .stepper button {min-width: 36px; min-height: 38px}
.store-page .summary {padding: clamp(18px,2vw,28px)}
.store-page .summary .subhead {font-size: clamp(24px,2vw,30px)}

@media (max-width: 1040px) {
  .coscar-header .coscar-nav {display: none}
  .coscar-menu {display: block}
}
@media (max-width: 740px) {
  .coscar-header .coscar-bar {gap: 9px; min-height: 60px}
  .coscar-mark {width: 41px; height: 40px}
  .coscar-word strong {font-size: 24px}
  .coscar-word small {font-size: 7px; letter-spacing: .12em}
  .coscar-cta {min-height: 40px; padding: 10px 12px; font-size: 13px}
  .coscar-actions {gap: 5px}
  .coscar-footer {margin-top: 30px}
  .coscar-foot {flex-wrap: wrap; padding-block: 17px; gap: 13px}
  .coscar-foot nav {order: 3; width: 100%; gap: 7px 16px}
  .coscar-foot nav a {padding-block: 5px}
  .request-layout {width: calc(100% - 24px)}
  .request-hero {height: 100%; width: 56%; object-position: 56%}
  .request-intro::after {background: linear-gradient(90deg,#141b24 38%,#141b24e8 55%,transparent 100%)}
  .garage-page .hero h1,.pro-page .hero h1,.mast h1 {font-size: clamp(35px,7.5vw,53px)}
  .garage-page .hero .photo {background: linear-gradient(90deg,#151c26 0%,#161e2af2 27%,#171d27a8 60%,#151b2440),url('/assets/director/hero.webp') 77% center / auto 108% no-repeat}
  .pro-page .hero {grid-template-columns: minmax(0,1fr)}
  .pro-page .intro {padding: 23px 17px}
  .pro-page .hero figure {min-height: 78px}
  .pro-page .hero figure img {object-position: center 55%}
  .pro-page .hero figure a {bottom: 11px; left: 17px}
  .pro-page .hero .photo-title {bottom: 38px; left: 17px}
  .pro-page .search {height: 46px}
  .pro-page .search input {font-size: 16px}
  .pro-page .sort select,.pro-page .source-choice select {font-size: 13px}
  .store-page .blueprint {aspect-ratio: 1.4}
  .store-page .offerbox {grid-template-columns: minmax(0,1fr) minmax(0,1fr)}
  .coscar-tabs button {font-size: 13px; padding: 8px 11px}
}
@media (max-width: 380px) {
  .coscar-bar {width: calc(100% - 16px)}
  .coscar-brand {gap: 5px}
  .coscar-mark {width: 34px; height: 34px}
  .coscar-word strong {font-size: 21px}
  .coscar-word small {font-size: 6.5px}
  .coscar-actions {gap: 4px}
  .coscar-header .coscar-cart,.coscar-menu summary {height: 38px; min-height: 38px; width: 35px}
  .coscar-actions .coscar-cta {font-size: 12px; padding: 10px}
}
@media (prefers-reduced-motion: reduce) {html {scroll-behavior: auto}}
.request-city {margin-top: 14px}
.request-field #request-part {max-height: 280px; min-height: 56px; resize: vertical}
@media (max-width: 480px) {
  /* The menu also contains the cart. Give the main action room on a small phone. */
  .coscar-header .coscar-cart {display: none}
  .coscar-header .coscar-bar {width: calc(100% - 24px)}
}
.request-embedded {background: #fff}
.request-embedded body {min-height: 0; background: #fff}
.request-embedded :is(.coscar-header,.coscar-footer,.skip-page,.request-intro,.request-card-head h2) {display: none}
.request-embedded .request-layout,.request-embedded .request-card {display: block; width: 100%; max-width: none; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none}
.request-embedded .request-card {padding: clamp(17px,4vw,24px)}
.request-embedded .request-card-head {margin-bottom: 12px}
.request-embedded .request-card-head:has(> p[hidden] + p[hidden]) {margin: 0}
