/* ======================================================================
   WHITELINE - whiteline.cfm (brand page), whiteline.vehicle.tab.cfm (brand-page
   results). Namespaced .whl- (the vehicle-page tab is the shared manual.tab.cfm
   and keeps its .mft- styles). Brand colours: Whiteline yellow #fae347 on
   near-black #121212, as on whitelineperformance.com; the yellow is a light
   colour, so text on it is dark and the yellow is used as an accent, never
   as a surface behind white text.
   ====================================================================== */

:root {
    --whl-yellow: #fae347;
    --whl-yellow-ink: #11171f;
    --whl-black: #121212;
    --whl-grey: #2a2a2a;
    --whl-text-dim: #cfcfcf;
    --whl-text-dark: #000;
}

/* ---- Hero (brand page) --------------------------------------------- */
.whl-hero {
    background-color: var(--whl-black);
    background-image:
        radial-gradient(circle at 25% 35%, rgba(250,227,71,0.28) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(rgba(18,18,18,0.6), rgba(18,18,18,0.95));
    background-size: auto, auto;
    background-position: center, center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 9vh 24px;
    margin-top: 24px;
}
/* Admin-uploaded hero: the wrapper (.brand-hero-band--photo, rules in
   css/brand.hero.band.css) paints wash + photo, so the inner hero goes clear.
   Below 768px that stylesheet moves the photo onto the CHILD, which it expects
   to be .brand-hero -- ours is .whl-hero, so the same move is repeated here. */
.brand-hero-band--photo > .whl-hero--photo {
    background: none;
    margin-top: 0;
}
.whl-band.brand-hero-band--photo { margin-top: 24px; margin-bottom: 0; }
.whl-hero--ink-dark h1, .whl-hero--ink-dark .whl-hero-tag { color: #11171f; }
.whl-hero--ink-dark p  { color: #2b2b2b; }
@media only screen and (max-width: 767px) {
    .brand-hero-band--photo > .whl-hero--photo {
        background-color: var(--hero-base, #121212);
        background-image: var(--hero-wash, none), var(--hero-image, none);
        background-size: auto, cover;
        background-position: 0 0, var(--hero-pos, center center);
        background-repeat: no-repeat, no-repeat;
    }
}
.whl-hero-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    display: block;
}
.whl-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    margin: 0;
}
.whl-hero-tag {
    color: var(--whl-yellow);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 18px auto 0;
}
.whl-hero p {
    color: var(--whl-text-dark);
    max-width: 760px;
    margin: 12px auto 0;
    font-size: 1.0625rem;
}

/* ---- Vehicle selector (brand page) --------------------------------- */
.whl-selector {
    padding: 1.25rem;
    background-color: var(--whl-black);
    border-top: 4px solid var(--whl-yellow);
    box-sizing: border-box;
    margin-top: 0;            /* flush under the hero: one dark surface */
}
.whl-selector-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
}
.whl-selector-sub {
    color: var(--whl-text-dim);
    font-size: 0.9375rem;
    margin: 0 0 1rem;
}
.whl-selector-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}
.whl-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    min-width: 150px;
}
.whl-field--wide { flex: 2 1 320px; }
.whl-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--whl-yellow);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.whl-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid #cbd5e1;
    font-size: 1rem;      /* 16px: matches the site input scale and stops iOS zooming */
    line-height: 1.4;
    background: #fff;
    box-sizing: border-box;
}
.whl-field select:disabled {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #6b7280;
}
.whl-field--button { flex: 0 0 auto; }
.whl-field--button button {
    padding: 0.65rem 1.6rem;
    font-size: 1rem;
    font-weight: 800;
    border: 0;
    border-radius: 0.4rem;
    background: var(--whl-yellow);
    color: var(--whl-yellow-ink);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.whl-field--button button:disabled {
    background: #6b7280;
    color: #e5e7eb;
    cursor: not-allowed;
}
.whl-status {
    display: none;
    margin-top: 0.75rem;
    color: var(--whl-text-dim);
    font-size: 0.9375rem;
}
.whl-status a { color: var(--whl-yellow); }
.whl-status--error { color: #ffb4a8; }

.whl-loading, .whl-error {
    text-align: center;
    padding: 30px 0;
    font-size: 1rem;
    color: #555;
}
.whl-loading--block {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--whl-black);
}
.whl-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #e8e8e8;
    border-top-color: var(--whl-yellow);
    animation: whl-spin .8s linear infinite;
}
@keyframes whl-spin { to { transform: rotate(360deg); } }

/* ---- USP strip ----------------------------------------------------- */
.whl-usps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.whl-usps li {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-top: 4px solid var(--whl-yellow);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.4;
}
.whl-usps li::before { content: none; }
.whl-usp-head {
    font-weight: 800;
    font-size: 1rem;
    color: var(--whl-black);
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* ---- Range tiles (brand page) -------------------------------------- */
.whl-ranges-head {
    margin: 44px 0 0;
}
.whl-ranges-head h2 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}
.whl-ranges-head p {
    color: #555;
    margin: 0 0 16px;
    font-size: 1rem;
}
.whl-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.whl-tile {
    flex: 1 1 260px;
    max-width: 360px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-left: 6px solid var(--whl-yellow);
    border-radius: 8px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.whl-tile:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
/* Optional range photo (Octane_Product_Ranges.HeroImage). Fixed 4:3 frame,
   photo contained, so a long anti-roll bar and a square bush kit sit at the
   same height. Pulled out to the card edges (minus the yellow left rule) so
   it reads as the card's header, not a thumbnail dropped into the text. */
.whl-tile-img {
    display: block;
    aspect-ratio: 4 / 3;
    margin: -14px -16px 12px -16px;
    background: #fff;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0 8px 0 0;
    overflow: hidden;
}
.whl-tile-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}
.whl-tile-name {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--whl-black);
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 6px;
}
.whl-tile-blurb {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.4;
    flex: 1 1 auto;
}
.whl-tile-count {
    margin-top: 10px;
    font-size: 0.875rem;
    color: #666;
}

/* ---- Vehicle result heading (brand-page selector results) ----------- */
.whl-vehhead {
    text-align: center;
    margin: 28px auto 4px;
}
.whl-vehhead h2 {
    margin: 0 auto 2px;
    color: var(--whl-black);
    font-size: 1.8rem;
    line-height: 1.15;
}
.whl-vehspec {
    color: #7a6a00;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 6px;
}
.whl-vehcount {
    color: #555;
    font-size: 0.9375rem;
    margin: 4px auto 0;
}
.whl-vehcount a { margin-left: 6px; }

/* ---- Category sections + grid -------------------------------------- */
.whl-section {
    margin: 30px 24px 0;
}
.whl-section h3 {
    font-size: 1.25rem;
    margin: 0 0 4px;
    color: var(--whl-black);
    border-bottom: 3px solid var(--whl-yellow);
    display: inline-block;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.whl-section-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.whl-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 16px 0 8px;
}
.whl-card {
    flex: 1 0 calc(25% - 20px);
    max-width: calc((100% - 60px) / 4);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .15s ease;
}
.whl-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.whl-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}
.whl-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.whl-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.whl-image img.is-tiny { max-height: 60px; }

.whl-badge-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.whl-badge {
    display: inline-block;
    background: var(--whl-yellow);
    color: var(--whl-yellow-ink);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}
.whl-titles { margin-bottom: 8px; }
.whl-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--whl-black);
}
.whl-partnumber {
    font-size: 0.9375rem;
    color: #666;
    margin-top: 3px;
}
.whl-fitment {
    font-size: 0.875rem;
    color: #6b4e12;
    margin-top: 3px;
    line-height: 1.35;
}
.whl-warranty {
    font-size: 0.8125rem;
    color: #0b6b34;
    font-weight: 600;
    margin: 0 0 8px;
}
.whl-stock {
    font-size: 0.9375rem;
    margin: 0 0 10px;
}
.whl-card .price-container { margin-top: auto; }

.whl-browse-head {
    margin: 48px 0 0;
    padding-top: 28px;
    border-top: 1px solid #e2e2e2;
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 1200px) {
    .whl-card { flex-basis: calc(33.333% - 20px); max-width: calc((100% - 40px) / 3); }
}
@media (max-width: 900px) {
    .whl-card { flex-basis: calc(50% - 20px); max-width: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
    .whl-section { margin: 24px 12px 0; }
    .whl-card { flex-basis: 100%; max-width: 100%; }
    .whl-hero-tag { font-size: 1.2rem; }
}
