/* ======================================================================
   Performance Clutches tab — performanceclutches.tab.cfm
   Layout mirrors octane.category.cfm's responsive flex grid (4->3->2->1
   columns) but is namespaced under .pcl-grid so it can't clash with the
   vehicle page chrome or other brand tabs. Adds clutch-specific highlight
   treatments (stage badge, torque band, use-case pills, spec tags).
   ====================================================================== */

.pcl-intro {
    text-align: center;
    margin: 8px auto 0;
}
.pcl-logo {
    display: block;
    max-height: 64px;
    width: auto;
    max-width: 100%;
    margin: 30px auto;
}
/* Vehicle name shown in the logo's place when the tab is embedded on the
   brand page (performanceclutches.tab.cfm?hidelogo=1). */
.pcl-vehicle-name {
    margin: 0 auto 2px;
    color: #11171f;
    font-size: 1.8rem;
    line-height: 1.15;
}
.pcl-vehicle-spec {
    color: #0654f0;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 6px;
}
.pcl-intro p {
    color: #555;
    margin: 0 auto 8px;
    max-width: 760px;
}

/* ---- Grid ---------------------------------------------------------- */
.pcl-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* centre lone / partial-row cards */
    gap: 20px;
    margin: 32px 24px;
}
.pcl-card {
    flex: 1 0 calc(25% - 20px);
    max-width: calc((100% - 60px) / 4);   /* cap at one column so a lone card doesn't span full width */
    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;
}
.pcl-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.pcl-card > a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
    text-decoration: none;
    color: #141414;
}
.pcl-card a:hover { text-decoration: none; }

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .pcl-card { flex: 1 0 calc(33.333% - 20px); max-width: calc((100% - 40px) / 3); }
}
/* Small tablet: 2 columns */
@media (max-width: 900px) {
    .pcl-card { flex: 1 0 calc(50% - 20px); max-width: calc((100% - 20px) / 2); }
}
/* Phone: single column, image-left row layout (mirrors category) */
@media (max-width: 800px) {
    .pcl-grid { gap: 14px; margin: 20px 14px; }
    .pcl-card { flex: 1 0 100%; max-width: 100%; }   /* single column: reset the cap */
    .pcl-card > a {
        display: grid;
        grid-template-columns: 120px 1fr;
        grid-template-areas:
            "image badge"
            "image title"
            "image highlights"
            "image price";
        column-gap: 14px;
        padding: 12px;
        align-items: start;
    }
    .pcl-image  { grid-area: image; margin: 0; align-self: center; }
    .pcl-badge-row { grid-area: badge; }
    .pcl-titles { grid-area: title; }
    .pcl-highlights { grid-area: highlights; }
    .pcl-card .price-container { grid-area: price; text-align: left; }
    /* In the image-left row layout, left-align the two flex blocks
       again so they line up with the rest of the stacked content. */
    .pcl-usecases { justify-content: flex-start; }
    .pcl-card .price-display .reduced-price-container { justify-content: flex-start; }
    .pcl-card .price-trade-block { text-align: left; }
}

/* ---- Image + stage badge ------------------------------------------ */
.pcl-image {
    position: relative;
    background: #fff;
    margin-bottom: 12px;
    text-align: center;
}
.pcl-image img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.pcl-badge-row { margin-bottom: 8px; }
.pcl-badge {
    display: inline-block;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
/* Stage colour ramp: cool/road -> hot/track */
.pcl-stage-0 { background: #6b7280; } /* Standard            */
.pcl-stage-1 { background: #0d9488; } /* Eco Sport           */
.pcl-stage-2 { background: #16a34a; } /* Stage 1 Organic     */
.pcl-stage-3 { background: #4d7c0f; } /* Stage 1 Street HD   */
.pcl-stage-4 { background: #d97706; } /* Stage 2 Sport       */
.pcl-stage-5 { background: #ea580c; } /* Stage 3 Sport       */
.pcl-stage-6 { background: #dc2626; } /* Stage 4 Sport       */
.pcl-stage-7 { background: #7c3aed; } /* Lightweight Flywheel*/
.pcl-stage-8 { background: #0654f0; } /* fallback (brand)    */

/* DMF / SMF flywheel-type chip sits next to the stage badge */
.pcl-fw {
    display: inline-block;
    margin-left: 6px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background: #f4f4f4;
    color: #444;
    font-size: 10px;
    font-weight: 700;
    line-height: 20px;
    padding: 0 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ---- Titles -------------------------------------------------------- */
.pcl-titles { margin-bottom: 10px; }
.pcl-collection {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: #141414;
}
.pcl-title {
    font-size: 0.82rem;
    color: #666;
    margin-top: 2px;
    line-height: 1.25;
}

/* ---- Highlights (the differentiators) ------------------------------ */
.pcl-highlights { margin-bottom: 12px; }

/* Torque band — the headline performance number */
.pcl-torque {
    display: flex;
    width: fit-content;       /* shrink to content instead of full width */
    max-width: 100%;
    margin: 0 auto 10px;      /* centre the band */
    align-items: baseline;
    gap: 8px;
    background: #eaf1fe;
    border-left: 3px solid #0654f0;
    border-radius: 4px;
    padding: 6px 10px;
}
.pcl-torque .pcl-torque-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0846c0;
    font-weight: 700;
}
.pcl-torque .pcl-torque-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #141414;
}

/* Friction / construction line */
.pcl-friction {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 8px;
}
.pcl-friction strong { color: #141414; }

/* Use-case pills — what each kit is built for */
.pcl-usecases {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* match the centred card content (desktop) */
    gap: 5px;
}
.pcl-usecases li {
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #2c3e50;
    border: 1px solid #dde4ec;
    white-space: nowrap;
}

/* ---- Stock + price ------------------------------------------------- */
.pcl-stock { font-size: 0.78rem; margin: 0 0 8px; }
.pcl-stock .txtGreen  { color: #15803d; }
.pcl-stock .txtOrange { color: #c2410c; }

.pcl-card .price-container {
    margin-top: auto;       /* pin price to the bottom of the card */
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    text-align: center;     /* centre "contact us" / unavailable text */
}
/* Centre the retail multi-currency block and keep it sensibly sized
   inside the card (the site-wide default is large). */
.pcl-card .price-display .reduced-price-container {
    justify-content: center;
    gap: 8px;
    margin: 0;
    align-items: baseline;
}
.pcl-card .price-display .reduced-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #141414;
    margin-left: 0;
}
.pcl-card .price-display .vat {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
    text-decoration: none;
}
.pcl-card .price-unavailable {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
}
.pcl-card .price-trade-block { text-align: center; }
