/* ===== Category Page Hero & Trust Strip Styles ===== */

/* Global colour vars so they're accessible on ALL sections (hero + trust strip) */
.product-category-hero,
.product-trust-strip,
.product-trust-item i {
    --pp-red: #d40000;
    --pp-red-dark: #a60000;
}


/* Dark overlay for text readability over background image */
#new-intro.product-category-hero::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.15) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

#new-intro.product-category-hero:after {
    content: none !important;
    display: none !important;
}

.product-category-hero .hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* 2) Hero content â€” flex row: text left, video right-aligned (desktop only) */
.product-category-hero .hero-content {
    max-width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

/* Left side â€” eyebrow, h1, subtitle, buttons, trust strip */
.product-category-hero .hero-text {
    max-width: 1220px;
    flex: 1;
}

/* Right side â€” hero video */
.product-category-hero .hero-video {
    flex-shrink: 0;
    width: 480px;
}

/* Responsive 16:9 video wrapper */
.product-category-hero .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.product-category-hero .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Eyebrow â€” red line + category name stacked above H1 */
.product-category-hero .cat-eyebrow {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: .15em !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.2rem 0 !important;
    padding: 0 !important;
    width: auto !important;
    line-height: 1 !important;
}

.product-category-hero .cat-eyebrow:before {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    height: 2px !important;
    background: #d40000 !important;
    flex-shrink: 0 !important;
}

/* H1 â€” full width, no decorative pseudo-elements */
.product-category-hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 3.8vw, 3.75rem) !important;
    line-height: 1.05 !important;
    margin: 0 0 1.2rem 0 !important;
    padding: 0 !important;
    letter-spacing: -.02em !important;
    max-width: 100% !important;
    font-weight: 900 !important;
    text-align: left !important;
    display: block !important;
}

.product-category-hero h1:before,
.product-category-hero h1:after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

.product-category-hero .cat-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem) !important;
    line-height: 1.6 !important;
    max-width: 540px !important;
    margin: 0 0 2rem 0 !important;
    color: rgba(255,255,255,.8) !important;
}

.product-category-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.product-category-hero .hero-actions a {
    text-decoration: none;
}

.product-category-hero .btn-shop-now {
    background: #d40000;
    border: 2px solid #d40000;
    color: #fff;
    border-radius: 7px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .75rem 1.5rem;
    font-size: .9rem;
    transition: background .2s ease, border-color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.product-category-hero .btn-shop-now:hover {
    background: #a60000;
    border-color: #a60000;
    color: #fff;
}

.product-category-hero .btn-ask-team {
    background: #fff;
    border: 2px solid #fff;
    color: #111;
    border-radius: 7px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .02em;
    padding: .75rem 1.5rem;
    font-size: .9rem;
    transition: background .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.product-category-hero .btn-ask-team:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #111;
}

/* --- Main Product Container â€” spacing from hero above --- */
section.main-product-container {
    margin-top: 3rem;
}

@media (max-width: 992px) {
    section.main-product-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    section.main-product-container {
        margin-top: 1.5rem;
    }
}

/* --- Inline Trust Strip â€” compact row inside hero, under CTA buttons --- */
.hero-trust {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.hero-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: .45rem !important;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

.hero-trust-item i {
    width: auto !important;
    height: auto !important;
    font-size: 1rem !important;
    color: rgba(255,255,255,.85) !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Video centered iframe */
.video-centered iframe {
   display: block;
   margin: 0 auto;
   margin-bottom:5px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    #new-intro.product-category-hero {
        min-height: 480px;
        padding: 100px 0 70px !important;
    }
    
    /* On tablet and below: revert to column layout, hide video */
    .product-category-hero .hero-content {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .product-category-hero .hero-video {
        display: none !important;
    }
    
    .hero-trust {
        gap: 1rem !important;
    }
}

@media (max-width: 767px) {
    #new-intro.product-category-hero {
        min-height: auto;
        padding: 80px 0 60px !important;
    }
    
    .product-category-hero h1 {
        font-size: 2rem !important;
    }
    
    .product-category-hero .cat-subtitle {
        font-size: 1rem;
    }
    
    .product-category-hero .hero-actions {
        display: grid;
        gap: .75rem;
    }
    
    .product-category-hero .hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        flex-wrap: wrap !important;
        gap: .75rem 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .product-category-hero h1 {
        font-size: 1.75rem !important;
    }
}

/* ===== Shop by Upgrade Grid ===== */
.shop-by-upgrade {
    padding: 3rem 0;
    background: #fff;
}

.shop-by-upgrade .section-label {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #111;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.shop-by-upgrade .section-label:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d40000;
    flex-shrink: 0;
}

.upgrade-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 1.25rem 1rem;
    transition: box-shadow .25s ease, transform .25s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upgrade-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.upgrade-card-img {
    width: 100%;
    max-width: 120px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
}

.upgrade-card-icon {
    font-size: 1.5rem;
    color: #d40000;
    margin-bottom: .75rem;
    display: block;
}

.upgrade-card h4 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.3;
    margin: 0 0 .75rem 0;
    color: #111;
}

.upgrade-card .btn-upgrade {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s ease;
    margin-top: auto;
}

.upgrade-card .btn-upgrade:hover {
    color: #d40000;
}

.upgrade-card .btn-upgrade i {
    font-size: .7rem;
    transition: transform .2s ease;
}

.upgrade-card:hover .btn-upgrade i {
    transform: translateX(3px);
}

/* ===== Category Promo Banner ===== */
.category-promo-banner {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    background: #e8e8e8 url('https://paramountstaging.24livehost.com/wp-content/uploads/2026/10/ecu-tuning-background-image.png') center right / cover no-repeat;
}

/* Gradient overlay â€” dark on left for text, fades to transparent on right */
.category-promo-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 35%, rgba(255,255,255,.6) 55%, rgba(255,255,255,.1) 75%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.promo-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 2.5rem 2.5rem 0 2.5rem;
}

.promo-banner-text {
    max-width: 420px;
    flex-shrink: 0;
    margin-bottom: 60px;
}

.promo-banner-text .promo-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #666;
    margin-bottom: .6rem;
    display: block;
}

.promo-banner-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 .15rem 0;
    color: #111;
}

.promo-banner-text h2:before,
.promo-banner-text h2:after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

.promo-banner-text h2 .promo-accent {
    display: block;
    color: #d40000;
    margin-top: .1rem;
}

.promo-banner-text p {
    font-size: .9rem;
    line-height: 1.55;
    color: #444;
    margin: .6rem 0 1.2rem 0;
    max-width: 340px;
}

.promo-banner-text .btn-promo {
    background: #d40000;
    border: 2px solid #d40000;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .06em;
    padding: .55rem 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: background .2s ease;
}

.promo-banner-text .btn-promo i {
    font-size: .7rem;
    transition: transform .2s ease;
}

.promo-banner-text .btn-promo:hover {
    background: #a60000;
    border-color: #a60000;
    color: #fff;
}

.promo-banner-text .btn-promo:hover i {
    transform: translateX(3px);
}

/* Feature strip â€” sits at the bottom with white/light background */
.promo-features {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(4px);
    border-top: 1px solid #e0e0e0;
}

.promo-feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #444;
    line-height: 1.25;
    border-right: 1px solid #e8e8e8;
}

.promo-feature-item:last-child {
    border-right: none;
}

.promo-feature-item i {
    color: #d40000;
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.promo-feature-item .feature-sub {
    display: block;
    font-weight: 500;
    font-size: .62rem;
    color: #888;
    margin-top: 1px;
    letter-spacing: .02em;
}

/* ===== Popular Models ===== */
.popular-models {
    padding: 3rem 0;
    background: #fff;
}

/* Force exactly 8 models per row on large screens only */
@media (min-width: 992px) {
    .popular-models .row .col-lg {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

.popular-models .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.popular-models .section-label {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #111;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.popular-models .section-label:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d40000;
    flex-shrink: 0;
}

.btn-view-all-models {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color .2s, color .2s;
}

.btn-view-all-models:hover {
    color: #d40000;
    border-color: #d40000;
}

.model-card {
    text-align: center;
    padding: 1.25rem .75rem;
    border-radius: 8px;
    transition: background .2s ease;
}

.model-card:hover {
    background: #f8f8f8;
}

.model-card-img {
    width: 100%;
    max-width: 160px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto .75rem auto;
    display: block;
    border-radius: 6px !important;
}

.model-card img {
    border-radius: 6px !important;
}

.model-card h5 {
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 .15rem 0;
    color: #111;
}

.model-card p {
    font-size: .75rem;
    color: #888;
    margin: 0 0 .5rem 0;
}

.model-card .btn-model {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #d40000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    transition: gap .2s ease;
}

.model-card .btn-model:hover {
    gap: .5rem;
}

/* --- Horizontal scroll carousel row --- */
.popular-models-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-models-row::-webkit-scrollbar {
    display: none;
}

.popular-models-item {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
}

/* Carousel scroll arrows */
.carousel-arrows {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.carousel-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: .85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s, background .2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    color: #d40000;
    border-color: #d40000;
    background: #fff5f5;
}

.carousel-btn:active {
    transform: scale(.92);
}

/* --- Actions wrapper: arrows on mobile, button on desktop --- */
.popular-models-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

@media (min-width: 992px) {
    .popular-models-actions .carousel-arrows {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .popular-models-actions .btn-view-all-models {
        display: none !important;
    }
}

/* --- Static row — horizontal scroll on mobile only --- */
@media (max-width: 991px) {
    .popular-models-static-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: .5rem !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .popular-models-static-row::-webkit-scrollbar {
        display: none !important;
    }
    .popular-models-static-row > .col-6 {
        flex: 0 0 auto !important;
        width: 160px !important;
        max-width: 160px !important;
        scroll-snap-align: start !important;
    }
}

/* ===== Category Description Show/Hide ===== */
.category-description-wrapper {
    margin: 2rem 0;
    padding: 0 1rem;
}

.category-desc-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: .55rem 1.2rem;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: border-color .2s, color .2s, background .2s;
}

.category-desc-toggle:hover {
    color: #d40000;
    border-color: #d40000;
    background: #fff5f5;
}

.category-desc-toggle .toggle-icon {
    font-size: .75rem;
    transition: transform .25s ease;
}

.category-desc-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.category-desc-content {
    display: none;
    margin-top: 1rem;
    font-size: .9rem;
    line-height: 1.7;
    color: #444;
}

.category-desc-content.is-visible {
    display: block;
}

/* ===== Performance Specialist ===== */
.performance-specialist {
    padding: 3rem 0;
}

.performance-specialist .section-label {
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #111;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.performance-specialist .section-label:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #d40000;
    flex-shrink: 0;
}

.specialist-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}

.specialist-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.specialist-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.specialist-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.specialist-card-body h4 {
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 .5rem 0;
    color: #111;
}

.specialist-card-body p {
    font-size: .82rem;
    line-height: 1.5;
    color: #666;
    margin: 0 0 1rem 0;
    flex: 1;
}

.specialist-card-body .btn-specialist {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #d40000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s ease;
}

.specialist-card-body .btn-specialist:hover {
    color: #a60000;
}

.specialist-card-body .btn-specialist i {
    font-size: .7rem;
    transition: transform .2s ease;
}

.specialist-card:hover .btn-specialist i {
    transform: translateX(3px);
}

/* ===== Responsive adjustments ===== */
@media (max-width: 992px) {
    .category-promo-banner {
        background-position: center center;
    }
    
    .promo-banner-inner {
        padding: 2rem 2rem 0 2rem;
    }
    
    .promo-features {
        flex-wrap: wrap;
    }
    
    .promo-feature-item {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: .65rem 1rem;
    }
}

@media (max-width: 767px) {

    h2.widget-title.card-header.h5 {
        color: #fff !important;
    }

    .model-card-img {
        max-width: 100%;
        height: auto;
    }
    .model-card {
        width: 100%; /* Do NOT use fixed pixel widths like width: 300px */
    }

    .shop-by-upgrade,
    .popular-models,
    .performance-specialist {
        padding: 2rem 0;
    }
    
    .category-promo-banner {
        min-height: 420px;
        background-position: 70% center;
    }
    
    .promo-banner-inner {
        padding: 1.5rem 1.5rem 0 1.5rem;
    }
    
    .promo-banner-text {
        max-width: 100%;
        margin-bottom: 4.5rem;
    }
    
    .promo-banner-text h2 {
        font-size: 1.5rem;
    }
    
    .promo-banner-text p {
        font-size: .82rem;
        margin-bottom: 1rem;
    }
    
    .promo-features {
        flex-wrap: wrap;
    }
    
    .promo-feature-item {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: .6rem .75rem;
        font-size: .62rem;
        gap: .4rem;
    }
    
    .promo-feature-item i {
        font-size: 1rem;
        width: 18px;
    }
    
    .upgrade-card {
        margin-bottom: 1rem;
    }
    
    .specialist-card-img {
        height: 150px;
    }
}
