/* =====================================================================
   Storefront template: MOTORS  (PeachCars-style premium car retail)
   Every rule scoped under body.tpl-motors so it only themes this vertical.
   Visual language: clean layout, charcoal/ink accents, a bold spec strip,
   a large price with a subtle finance line, and a confident enquiry CTA.
   ===================================================================== */

/* ---- template palette: charcoal accents over the shared tokens ---- */
body.tpl-motors {
    --car-ink: #1d2027;          /* charcoal */
    --car-ink-2: #2b303a;
    --car-soft: #f4f6f8;         /* cool panel grey */
    --car-line: var(--mu-line);
    --car-accent: var(--mu-gold);
}

/* ===================== DETAIL: gallery ===================== */
body.tpl-motors .car-gallery .pd-main-img {
    aspect-ratio: 16 / 10;
    border-radius: var(--r-lg);
    border: 1px solid var(--car-line);
    box-shadow: 0 10px 30px rgba(20, 24, 31, .10);
}
body.tpl-motors .car-gallery .pd-thumb {
    width: 84px;
    height: 60px;
    border-radius: var(--r-sm);
}
body.tpl-motors .car-gallery .pd-thumb.is-active {
    border-color: var(--car-ink);
    box-shadow: 0 0 0 2px rgba(29, 32, 39, .12);
}

/* ===================== DETAIL: title block ===================== */
body.tpl-motors .car-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--s2);
    color: var(--car-ink);
    font-weight: 700;
    letter-spacing: .04em;
}
body.tpl-motors .car-eyebrow .car-ref {
    margin-left: auto;
    background: var(--car-soft);
    color: var(--mu-muted);
    border: 1px solid var(--car-line);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: var(--fz-xs);
    letter-spacing: .02em;
}
body.tpl-motors .car-title {
    font-size: var(--fz-2xl);
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--car-ink);
    margin: var(--s2) 0 var(--s4);
}

/* ===================== DETAIL: bold SPEC STRIP ===================== */
body.tpl-motors .car-specstrip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: var(--car-line);
    border: 1px solid var(--car-line);
    border-radius: var(--r-md);
    overflow: hidden;
    margin: var(--s4) 0 var(--s5);
}
body.tpl-motors .car-spec {
    display: flex;
    align-items: center;
    gap: var(--s3);
    background: #fff;
    padding: var(--s3) var(--s4);
}
body.tpl-motors .car-spec__icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--car-ink);
    color: #fff;
    font-size: .95rem;
}
body.tpl-motors .car-spec__k {
    font-size: var(--fz-xs);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--mu-muted);
}
body.tpl-motors .car-spec__v {
    font-weight: 800;
    font-size: var(--fz-md);
    color: var(--car-ink);
    line-height: 1.2;
}

/* ===================== DETAIL: price box ===================== */
body.tpl-motors .car-pricebox {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s4);
    flex-wrap: wrap;
    background: var(--car-ink);
    color: #fff;
    border-radius: var(--r-md);
    padding: var(--s4) var(--s5);
    margin: var(--s4) 0 var(--s5);
}
body.tpl-motors .car-price {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: .35rem;
}
body.tpl-motors .car-price__cur {
    font-size: .5em;
    font-weight: 700;
    color: var(--car-accent);
    letter-spacing: .02em;
}
body.tpl-motors .car-price--poa {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
}
body.tpl-motors .car-finance {
    margin-top: 6px;
    font-size: var(--fz-sm);
    color: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    gap: var(--s2);
}
body.tpl-motors .car-finance i {
    color: var(--car-accent);
}
body.tpl-motors .car-pricebox__status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--s2);
}
body.tpl-motors .car-pill {
    box-shadow: 0 1px 0 rgba(0, 0, 0, .15);
}
body.tpl-motors .car-subline {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: var(--fz-sm);
    color: rgba(255, 255, 255, .8);
}
body.tpl-motors .car-subline i {
    color: var(--car-accent);
    margin-right: 4px;
}

/* ===================== DETAIL: enquiry / test-drive CTA ===================== */
body.tpl-motors .car-cta {
    border: 1px solid var(--car-line);
    border-top: 3px solid var(--car-ink);
}
body.tpl-motors .car-cta__head {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    margin-bottom: var(--s4);
}
body.tpl-motors .car-cta__head > i {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--car-soft);
    color: var(--car-ink);
    font-size: 1.05rem;
}
body.tpl-motors .car-cta__title {
    font-weight: 800;
    font-size: var(--fz-lg);
    color: var(--car-ink);
}
body.tpl-motors .car-cta__sub {
    font-size: var(--fz-sm);
    color: var(--mu-muted);
    line-height: 1.45;
}
/* secondary "test drive" button: charcoal outline rather than gold */
body.tpl-motors .car-btn-secondary {
    border-color: var(--car-ink);
    color: var(--car-ink);
}
body.tpl-motors .car-btn-secondary:hover {
    background: var(--car-ink);
    color: #fff;
}

/* ===================== DETAIL: key features + about ===================== */
body.tpl-motors .car-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--s5);
    align-items: start;
}
body.tpl-motors .car-section-title {
    color: var(--car-ink);
}
body.tpl-motors .car-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
}
body.tpl-motors .car-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    padding-bottom: var(--s3);
    border-bottom: 1px dashed var(--car-line);
}
body.tpl-motors .car-feature-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
body.tpl-motors .car-feature-list li > i {
    color: var(--car-accent);
    margin-top: 3px;
}
body.tpl-motors .car-feature-k {
    display: block;
    font-size: var(--fz-xs);
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--mu-muted);
}
body.tpl-motors .car-feature-v {
    display: block;
    font-weight: 700;
    color: var(--car-ink);
}
body.tpl-motors .car-desc {
    line-height: 1.65;
    color: var(--mu-ink);
}
body.tpl-motors .car-desc img {
    max-width: 100%;
    border-radius: var(--r-sm);
}

/* ===================== LISTING GRID + CARDS (shop page) ===================== */
/* Wide vehicle photos, ~2–3 per row. */
body.tpl-motors .mu-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--s5);
}
body.tpl-motors .mu-product-card {
    border: 1px solid var(--car-line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
body.tpl-motors .mu-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--car-ink);
    box-shadow: 0 14px 30px rgba(20, 24, 31, .14);
}
/* wide 16:10 vehicle photo */
body.tpl-motors .mu-product-card__media {
    aspect-ratio: 16 / 10;
    background: var(--car-soft);
}
body.tpl-motors .mu-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.tpl-motors .mu-product-card__code {
    color: var(--mu-muted);
    letter-spacing: .03em;
}
body.tpl-motors .mu-product-card__name {
    color: var(--car-ink);
    font-weight: 800;
    font-size: var(--fz-md);
    line-height: 1.25;
}
/* hide the placeholder star rating on car cards — not relevant to vehicles */
body.tpl-motors .mu-product-card .mu-stars {
    display: none;
}
/* year-mileage-price line uses the strong charcoal price */
body.tpl-motors .mu-product-card__meta .mu-price {
    color: var(--car-ink);
    font-weight: 900;
}
body.tpl-motors .mu-product-card__meta .mu-price__cur {
    color: var(--car-accent);
}
body.tpl-motors .mu-product-card__actions .mu-btn--gold {
    background: var(--car-accent);
}

/* ===================== sticky mobile bar ===================== */
body.tpl-motors .car-sticky .mu-price {
    color: var(--car-ink);
    font-weight: 900;
}
body.tpl-motors .car-sticky .car-price--poa {
    font-size: var(--fz-md);
    font-weight: 800;
}

/* ===================== responsive ===================== */
@media (max-width: 900px) {
    body.tpl-motors .car-overview {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    body.tpl-motors .car-gallery .pd-main-img {
        aspect-ratio: 4 / 3;
    }
    body.tpl-motors .car-pricebox {
        padding: var(--s4);
    }
    body.tpl-motors .car-pricebox__status {
        text-align: left;
        align-items: flex-start;
    }
    body.tpl-motors .car-subline {
        justify-content: flex-start;
    }
    body.tpl-motors .mu-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--s4);
    }
}
