/* Fonts are handled by theme assets */

/* VF9 Configurator Styles */
:root {
    --vf-navy: #151a24;
    --vf-blue: #1464f4;
    --vf-cyan: #00d2ff;
    --vf-gray-light: #f4f4f4;
    --vf-gray-bg: #f8fafc;
    --vf-gray-text: #707070;
    --vf-border: #e6e6e6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* Fix for double spacing under header: Hide theme's spacer on product pages */
.single-xe_vinfast .header-spacer {
    display: none !important;
}

.vf-product-hero {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
    /* Adjust top padding so it sits perfectly under the glass header (header is 100px) */
    padding-top: 100px !important; 
}

/* Handle Admin Bar Offset with high specificity */
body.admin-bar .vf-product-hero {
    padding-top: calc(var(--header-height, 100px) + var(--admin-bar-height, 32px)) !important;
}

/* Viewer (Left side) */
.vf-viewer-col {
    flex: 1.1;
    min-width: 0; /* CRITICAL: Prevent flex blowout from Swiper */
    position: relative;
    background: radial-gradient(circle at center, #ffffff 0%, var(--vf-gray-bg) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2vh 0; /* Restored slight vertical padding */
}

#site-header { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; }
.vf-product-nav-active #site-header { transform: translateY(-100%); }

.vf-stage-img-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatingCar 4s ease-in-out infinite;
}

.vfpb-360-btn-v2 {
    position: absolute;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--vf-blue);
    border-radius: 30px;
    color: var(--vf-blue);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vfpb-360-btn-v2:hover {
    background: var(--vf-blue);
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 100, 244, 0.3);
}

.vf-stage-img-wrap.v360-active .vfpb-360-btn-v2 {
    background: var(--vf-blue);
    color: #fff;
}

@keyframes floatingCar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.vf-stage-img-wrap.v360-active {
    animation: none !important;
}

.vf-stage-img-wrap img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.15));
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Swiper specific layout */
#vf-color-slider {
    width: 100%;
    height: 70vh; /* Reduced back to 70vh as requested */
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

#vf-color-slider .swiper-wrapper {
    height: 100%;
    width: 100%;
    display: flex;
}


#vf-color-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
}

#vf-color-slider .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    #vf-color-slider {
        height: 220px;
        min-height: unset;
        margin-bottom: 0;
    }
}


#vf-360-wrapper {
    position:absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    display:none; 
    background: transparent; /* Changed from white to transparent to show the hero background */
    z-index:100; /* Ensure it's above everything including sticky nav if needed (sticky nav is usually 99-100) */
    pointer-events: auto;
}


.vf-stage-metrics {
    position: absolute;
    bottom: 5vh;
    display: flex;
    gap: 3vw;
    background: var(--glass-bg);
    padding: clamp(10px, 1.5vh, 20px) clamp(20px, 4vw, 50px);
    border-radius: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 10;
    transition: all 0.3s ease;
}

.vf-metric { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 100px; }
.vf-metric-icon { 
    width: 32px; height: 32px; color: var(--vf-blue); margin-bottom: 5px; 
    filter: drop-shadow(0 4px 6px rgba(20, 100, 244, 0.2));
}
.vf-metric strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--vf-navy); letter-spacing: -0.5px; line-height: 1;}
.vf-metric span { font-size: 0.7rem; color: var(--vf-gray-text); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;}
.vf-metric-div { width: 1.5px; height: 40px; background: var(--vf-border); align-self: center; }

/* Mobile Color Palette Styles */
.vf-mobile-color-ctrls {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: 90vw;
    transition: all 0.3s ease;
}

.vf-mobile-swatches {
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vf-mobile-swatches::-webkit-scrollbar { display: none; }

.vf-mobile-swatches .vf-swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 3px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vf-mobile-swatches .vf-swatch.active {
    transform: scale(1.25);
    border-color: var(--vf-blue);
    background: #fff;
}

.vf-mobile-color-name {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--vf-navy);
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Panel (Right side) */
.vf-panel-col {
    flex: 0.9;
    min-width: 0;
    background: #ffffff;
    padding: clamp(20px, 5vh, 60px) clamp(20px, 4vw, 60px);
    box-shadow: -20px 0 40px rgba(0,0,0,0.03);
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.vf-panel-header { margin-bottom: clamp(20px, 4vh, 40px); }
.vf-slogan { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--vf-blue); font-weight: 800; display: block; margin-bottom: 15px; }
.vf-panel-header h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: rgb(75, 85, 99); margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: -2px; line-height: 0.95;}
.vf-price-tag { font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: rgb(75, 85, 99); margin-bottom: 8px; }
.vf-price-notice { font-size: 0.85rem; color: var(--vf-gray-text); margin: 0; opacity: 0.7; }

.vf-config-group { margin-bottom: clamp(20px, 4vh, 40px); }
.vf-config-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--vf-gray-text); margin-bottom: clamp(10px, 2vh, 20px); display: flex; align-items: center; }
.vf-config-title::before { content: ''; display: inline-block; width: clamp(16px, 2vw, 24px); height: 2px; background: var(--vf-blue); margin-right: 15px; }

/* Versions */
.vf-version-cards { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap;
    gap: 12px; 
}
.vf-v-card {
    flex: 1;
    min-width: 140px;
    border: 1.5px solid var(--vf-border);
    border-radius: 12px;
    padding: clamp(12px, 2.5vh, 20px) 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.vf-v-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--vf-blue); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom;
}
.vf-v-card.active {
    border-color: var(--vf-blue);
    background: #f4f8ff;
    box-shadow: 0 10px 25px rgba(20, 100, 244, 0.1);
}
.vf-v-card.active::after { transform: scaleY(1); }
.vf-v-card .v-name { 
    font-weight: 800; 
    font-size: 1rem; 
    color: var(--vf-navy); 
    text-transform: uppercase;
}
.vf-v-card.active .v-name { color: var(--vf-blue); }
.vf-v-card .v-price { display: none; } /* Extra safety if PHP change didn't apply */

/* Colors */
.vf-color-swatches { 
    display: flex; 
    gap: 12px; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    padding: 10px 5px; 
    margin: -10px -5px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.vf-color-swatches::-webkit-scrollbar { display: none; }
.vf-swatch {
    width: 40px; height: 40px; border-radius: 50%; padding: 4px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent; display: flex; align-items: center; justify-content: center; position: relative;
}
.vf-swatch .swatch-in { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
.vf-swatch:hover { transform: scale(1.1); }
.vf-swatch.active { border-color: var(--vf-blue); transform: scale(1.15); }
.vf-color-name-display { margin-top: 15px; font-weight: 600; font-size: 0.95rem; color: var(--vf-navy); display: flex; align-items:center; gap: 8px;}
.vf-color-name-display span { width: 8px; height: 8px; border-radius: 50%; background: var(--vf-blue); display: inline-block;}

/* Action */
.vf-action-area { 
    margin-top: 30px; /* Reduced from auto to keep buttons closer to content on shorter screens */
    padding-top: 20px; 
    border-top: 1px solid #f1f5f9;
}
.vf-btn-primary {
    display: block; width: 100%; text-align: center;
    background: linear-gradient(135deg, var(--vf-navy) 0%, #2a3547 100%);
    color: #fff; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
    padding: clamp(16px, 2.5vh, 22px); border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s;
    text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.vf-btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transform: skewX(-20deg); transition: 0.5s; }
.vf-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.2); }
.vf-btn-primary:hover::before { left: 150%; }

/* 2. Bento Grid */
.vf-section { padding: 120px 0; background: #ffffff; }
.vf-section.bg-gray { background: #f8fafc; }
.vf-sec-title { font-size: 3rem; font-weight: 800; color: rgb(75, 85, 99); text-align: center; margin-bottom: 70px; letter-spacing: -1px;}

.bento-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px;}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 24px;
}
.bento-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bento-card.bento-nm { grid-column: span 1; grid-row: span 1; }
.bento-card.bento-xl { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        min-height: 300px;
    }
    .bento-card.bento-xl { grid-column: span 1; grid-row: span 1; min-height: 320px; }
    .bento-card.bento-nm { min-height: 250px; }
    .vf-sec-title { font-size: 2rem; margin-bottom: 40px; }
}

.bento-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.1); 
}

.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}
.bento-card.has-bg .bento-overlay { opacity: 1; }
.bento-card:not(.has-bg) .bento-overlay { display: none; }

.bento-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.bento-card:not(.has-bg) .bento-content { justify-content: flex-start; }

.bento-icon { font-size: 3rem; margin-bottom: 25px; filter: drop-shadow(0 4px 6px rgba(20, 100, 244, 0.2)); }

.bento-card h3 { 
    font-size: 1.4rem; 
    font-weight: 800; 
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.bento-card.bento-xl h3 { font-size: 2.2rem; }
.bento-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}
.bento-card:not(.has-bg) h3 { color: var(--vf-navy); }
.bento-card:not(.has-bg) p { color: var(--vf-gray-text); }
.bento-card.has-bg { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
/* Brochure Style Comparison Table */
.vf-specs-comparison-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #eee;
}

.vf-specs-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px 40px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

@media (max-width: 1024px) {
    .vf-specs-jump-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .vf-specs-jump-nav::-webkit-scrollbar {
        display: none;
    }
    .vf-specs-jump-nav a {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 22px;
    }
}

.vf-specs-jump-nav a {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
}

.vf-specs-jump-nav a:hover {
    border-color: var(--vf-blue);
    color: var(--vf-blue);
    background: #f0f7ff;
}

.vf-specs-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vf-specs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.vf-specs-table th, .vf-specs-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.vf-specs-table thead th {
    background: #fff;
    color: var(--vf-navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--vf-navy);
    position: sticky;
    top: 0;
    z-index: 10;
}

.vf-sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 5;
    font-weight: 500;
    color: var(--vf-navy);
    border-right: 2px solid #f1f5f9;
}

thead th.vf-sticky-col {
    z-index: 11;
}

.vf-spec-group-row td {
    background: #f1f5f9;
    padding: 15px 25px;
    transition: background 0.3s;
}

.vf-spec-group-row:hover td {
    background: #e2e8f0;
}

.vf-spec-group-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vf-spec-group-inner strong {
    color: var(--vf-navy);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vf-spec-group-inner::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--vf-blue);
    font-weight: 300;
}

.vf-spec-group-row.active .vf-spec-group-inner::after {
    content: '−';
}

.vf-spec-data-row:hover td {
    background: #f8fbff;
}

.vf-v-cell {
    font-weight: 400;
    color: var(--vf-navy);
    text-align: left;
}

.vf-specs-footer {
    padding: 30px 40px;
    background: #fafafa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vf-specs-footer p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
    max-width: 600px;
}

/* Toggle Specs Button */
.vf-spec-toggle-row td {
    padding: 0 !important;
}

.vf-toggle-specs-btn {
    width: 100%;
    padding: 18px;
    background: #f8fafc;
    border: none;
    border-bottom: 2px solid var(--vf-blue);
    color: var(--vf-blue);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vf-toggle-specs-btn:hover {
    background: #f1f5f9;
    color: var(--vf-navy);
}

.vf-btn-brochure {
    padding: 12px 30px;
    background: var(--vf-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vf-btn-brochure:hover {
    background: var(--vf-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Specs Table Toggle Enhancement */
.vf-spec-toggle-row {
    background: linear-gradient(to bottom, transparent, #f8fafc);
}

/* .vf-v-cell.active styles removed for static parallel display */

@media (max-width: 768px) {
    .vf-specs-jump-nav { padding: 15px 20px; }
    .vf-specs-footer { padding: 20px; flex-direction: column; text-align: center; }
    .vf-specs-table-container { border-radius: 0; overflow-x: hidden; } /* Disable scroll as we fit 2 cols */
    .vf-specs-table { min-width: unset !important; width: 100% !important; table-layout: fixed; }
    .vf-sticky-col { 
        font-size: 0.8rem; 
        padding: 12px 10px; 
        width: 45% !important; 
        position: relative !important; /* No need for sticky if only 2 cols */
        left: auto !important;
        border-right: 1px solid #f1f5f9;
        white-space: normal; /* Allow text wrap */
        line-height: 1.3;
    }
    .vf-specs-table th, .vf-specs-table td { padding: 12px 10px; font-size: 0.85rem; }
    .vf-specs-table td.vf-v-cell.active, .vf-specs-table th.active { 
        width: 55% !important; 
        display: table-cell !important; 
        text-align: center; 
        background: #fcfcfc;
    }
}


/* =====================================================
   STICKY NAVIGATION MENU
   ===================================================== */
.vf-sticky-nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Handle Admin Bar for Sticky Nav */
.admin-bar .vf-sticky-nav-wrapper {
    top: var(--admin-bar-height, 32px);
}
@media screen and (max-width: 782px) {
    .admin-bar .vf-sticky-nav-wrapper {
        top: var(--admin-bar-mobile-height, 46px);
    }
}

.vf-sticky-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.vf-sticky-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vf-sticky-nav ul::-webkit-scrollbar { display: none; }

@media (max-width: 992px) {
    .vf-sticky-nav ul {
        justify-content: flex-start;
    }
}

.vf-sticky-nav ul li a {
    display: block;
    padding: 20px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vf-gray-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.vf-sticky-nav ul li a:hover {
    color: var(--vf-navy);
    border-bottom-color: var(--vf-border);
}

.vf-sticky-nav ul li a.active {
    color: var(--vf-blue);
    border-bottom-color: var(--vf-blue);
    background: rgba(20, 100, 244, 0.03);
}

@media (max-width: 768px) {
    .vf-sticky-nav-wrapper {
        border-bottom: 2px solid var(--vf-blue);
    }
    .vf-sticky-nav ul li a {
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}

/* =====================================================
   ARTICLE SECTIONS (Overview, Exterior, Interior)
   Full-width, responsive page-builder container
   ===================================================== */
.vf-article-layout {
    width: 100%;
    overflow-x: hidden;
}

/* Each section stretches edge-to-edge */
.vf-article-section {
    width: 100%;
    padding: 60px 0; /* Reduced from 100px for a tighter layout */
    background: #ffffff;
    overflow: visible;
    border-top: 1px solid var(--vf-border);
}

/* If the section contains Page Builder blocks, reduce padding even further */
.vf-article-section:has(.vfpb-section-fe) {
    padding-top: 20px;
}

.vf-article-section:first-child { border-top: none; }

.vf-article-section.bg-gray {
    background: #f8fafc;
}

/* Container only used for the TITLE row – keeps title centred + padded */
.vf-article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 80px);
}

/* Title styles */
.vf-article-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--vf-navy);
    letter-spacing: -1px;
    margin-bottom: 40px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--vf-border);
    position: relative;
}

@media (max-width: 1200px) {
    .vf-panel-col { 
        flex: 0.9; 
        padding: 40px; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.02);
    }
}

/* Intermediate Tier: Large Tablets & Small Laptops (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
     .vf-product-hero {
         min-height: calc(100vh - var(--header-height, 90px));
         padding-top: var(--header-height, 90px);
     }
     .vf-viewer-col { padding: 40px; }
     .vf-panel-col { padding: 30px; }
     .vf-panel-header h1 { font-size: 2.2rem; }
     .vf-price-tag { font-size: 1.8rem; }
}

@media (max-width: 992px) {
    .vf-product-hero { 
        flex-direction: column; 
        height: auto; 
        min-height: unset; 
        overflow-y: visible;
        padding-top: var(--header-mobile-height, 75px) !important;
    }
    body.admin-bar .vf-product-hero {
        padding-top: calc(var(--header-mobile-height, 75px) + var(--admin-bar-mobile-height, 46px)) !important;
    }
    .vf-viewer-col { height: auto; min-height: unset; padding: 30px 20px 20px; justify-content: flex-start; }
    .vf-panel-col { padding: 40px 30px; box-shadow: 0 -20px 40px rgba(0,0,0,0.05); }
    
    .vf-stage-metrics { 
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 20px auto 0;
        padding: 15px;
        gap: 10px;
        width: auto;
        max-width: 95%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }
    .vf-metric { 
        flex: 1;
        min-width: 0;
        padding: 0 5px;
    }
    .vf-metric strong { font-size: 1rem; }
    
    .vf-mobile-color-ctrls { 
        display: flex; 
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: -30px;
        margin-bottom: 10px;
        z-index: 35;
    }
    .vf-color-group { display: none !important; }
}

@media (max-width: 768px) {
    .vf-viewer-col { height: 400px; }
    .vf-panel-col { padding: 30px 20px; }
    
    /* Stack version cards on mobile to avoid overlap */
    .vf-version-cards { gap: 10px; }
    .vf-v-card { flex-direction: column; align-items: flex-start; padding: 15px; }
    .vf-v-card .v-price { margin-top: 5px; font-size: 1rem; }
    
    .vf-specs-jump-nav { display: flex; overflow-x: auto; padding-bottom: 10px; gap: 10px; justify-content: flex-start; }
    .vf-specs-jump-nav a { flex-shrink: 0; white-space: nowrap; font-size: 0.85rem; padding: 8px 16px; }

    .vf-specs-table th, .vf-specs-table td { padding: 12px 10px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .vf-viewer-col { padding-top: 40px; }
    .vf-stage-metrics { padding: 15px 10px; border-radius: 12px; margin-top: 20px; gap: 0; }
    .vf-metric { min-width: 33.33%; gap: 2px; }
    .vf-mobile-color-ctrls { margin-top: 30px; gap: 8px; }
    .vf-mobile-swatches { padding: 6px 12px; gap: 8px; }
    .vf-mobile-swatches .vf-swatch { width: 34px; height: 34px; }
    .vf-metric strong { font-size: 0.9rem; }
    .vf-metric span { font-size: 0.6rem; }
}

.vf-article-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--vf-blue);
}

/* Body: remove max-width so page-builder content fills full width */
.vf-article-body {
    line-height: 1.9;
    color: #374151;
    font-size: 1.05rem;
    width: 100%;
}

/* vf-blocks (page builder output): break out of container, full viewport width */
.vf-article-body.vf-blocks {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Page-builder section wrapper fills full width */
.vf-article-body.vf-blocks .vfpb-s {
    width: 100%;
    box-sizing: border-box;
    padding-left: clamp(20px, 4vw, 80px);
    padding-right: clamp(20px, 4vw, 80px);
}

/* Row uses full width */
.vf-article-body.vf-blocks .vfpb-row-fe {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 40px;
}

/* Column items align to their flex ratio */
/* Metrics highlight */
.vf-metric-item span.active { color: var(--vf-blue); }

/* Specs Table Highlights */
.vf-specs-table th.active,
.vf-specs-table td.active {
    background: rgba(0, 76, 151, 0.03);
    position: relative;
}

.vf-specs-table th.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--vf-blue);
}

.vf-article-body.vf-blocks .vfpb-col-fe {
    flex-shrink: 0;
    flex-grow: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Single-column section: content max-width for readability */
.vf-article-body.vf-blocks .vfpb-cols-1 .vfpb-col-fe {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography inside blocks */
.vf-article-body h1,
.vf-article-body h2,
.vf-article-body h3,
.vf-article-body h4 {
    color: var(--vf-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 2.5em;
    margin-bottom: 0.8em;
}

.vf-article-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.vf-article-body h3 { font-size: clamp(1.2rem, 2vw,  1.5rem); }

.vf-article-body p { margin-bottom: 1.5em; }

.vf-article-body > p img,
.vf-article-body > figure img,
.vf-article-body > img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    margin: 20px 0 30px;
    display: block;
}


.vf-article-body strong { color: var(--vf-navy); font-weight: 700; }

.vf-article-body ul,
.vf-article-body ol {
    padding-left: 1.8em;
    margin-bottom: 1.5em;
}

.vf-article-body li { margin-bottom: 0.6em; }

.vf-article-body blockquote {
    border-left: 4px solid var(--vf-blue);
    margin: 30px 0;
    padding: 20px 30px;
    background: #f0f6ff;
    border-radius: 0 12px 12px 0;
    font-size: 1.1rem;
    color: var(--vf-navy);
    font-style: italic;
}

/* ─── Responsive ─────────────────────────────────────── */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .vf-article-section { padding: 70px 0; }

    .vf-article-body.vf-blocks .vfpb-row-fe { gap: 28px; }
}

/* Mobile large (max 768px) */
@media (max-width: 768px) {
    .vf-sticky-nav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .vf-sticky-nav ul li a { padding: 14px 16px; font-size: 0.85rem; }

    .vf-article-section { padding: 40px 0; }
    .vf-article-title { font-size: 1.8rem; letter-spacing: -0.5px; }
    .vf-article-body { font-size: 1rem; }

    /* Article body fills full width on mobile to allow sliders to breakout */
    .vf-article-body.vf-blocks .vfpb-s {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: calc(-1 * clamp(20px, 4vw, 80px)) !important;
        margin-right: calc(-1 * clamp(20px, 4vw, 80px)) !important;
        width: auto !important;
        max-width: none !important;
        overflow: hidden !important;
    }

    .vf-article-body.vf-blocks .vfpb-row-fe {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Preserve standard column stacking for non-slider rows */
    .vf-article-body.vf-blocks .vfpb-row-fe:not(.vfpb-row-mob-slider) {
        flex-direction: column !important;
    }

    .vf-article-body.vf-blocks .vfpb-col-fe {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Dynamic Specs Table on Mobile: Show only active version data cells */
    .vf-specs-table th:not(.vf-sticky-col):not(.active),
    .vf-specs-table td.vf-v-cell:not(.active) {
        display: none;
    }
    
    .vf-specs-table th.active,
    .vf-specs-table td.active {
        width: 100%;
    }

    /* Mobile 360 Button: Half-overlapping edge style */
    .vfpb-360-btn-v2 { 
        bottom: 0 !important; 
        transform: translateX(-50%) translateY(50%) !important; 
    }
    .vfpb-360-btn-v2:hover {
        transform: translateX(-50%) translateY(calc(50% - 2px)) !important;
    }
}

/* Mobile small (max 480px) */
@media (max-width: 480px) {
    .vf-article-section { padding: 40px 0; }
}

/* =====================================================
   BLOCK RENDERER – Frontend Display
   ===================================================== */
.vf-blocks .vfbb-h { color: #151a24; font-weight: 800; margin-top: 2em; margin-bottom: 0.7em; }
.vf-blocks h2.vfbb-h { font-size: 2rem; }
.vf-blocks h3.vfbb-h { font-size: 1.5rem; }
.vf-blocks .vfbb-p { color: #374151; font-size: 1.1rem; line-height: 1.9; margin-bottom: 1.4em; }
.vf-blocks .vfbb-figure { margin: 30px 0; }
.vf-blocks .vfbb-figure img { width: 100%; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); display: block; }
.vf-blocks .vfbb-figure figcaption { text-align: center; font-size: 0.9rem; color: #707070; margin-top: 10px; font-style: italic; }
.vf-blocks .vfbb-quote { border-left: 4px solid #1464f4; padding: 24px 32px; margin: 30px 0; background: #f0f6ff; border-radius: 0 16px 16px 0; font-size: 1.2rem; color: #151a24; font-style: italic; font-weight: 600; }
.vf-blocks .vfbb-divider { border: none; border-top: 2px solid #e6e6e6; margin: 40px 0; }
.vf-blocks .vfbb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; }
.vf-blocks .vfbb-col { font-size: 1.05rem; line-height: 1.8; color: #374151; }
.vf-blocks .vfbb-text-image { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 40px 0; }
.vf-blocks .vfbb-ti-img img { width: 100%; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.vf-blocks .vfbb-ti-text { font-size: 1.05rem; line-height: 1.9; color: #374151; }
.vf-blocks .vfbb-ti-right .vfbb-ti-img { order: 2; }
.vf-blocks .vfbb-ti-right .vfbb-ti-text { order: 1; }

/* ==================================================
   VFPB Frontend Block Render Styles
   ================================================== */
.vfpb-fe-section { width: 100%; }
.vfpb-fe-cols { display: flex; min-height: 20px; }
.vfpb-cols-1 .vfpb-fe-col { flex: 100 !important; }
.vfpb-cols-2 .vfpb-fe-col { flex: 50; }
.vfpb-cols-3 .vfpb-fe-col { flex: 33; }
.vfpb-cols-4 .vfpb-fe-col { flex: 25; }
.vfpb-fe-col { min-width: 0; }
.vfpb-fe-col > * { max-width: 100%; }

.vfpb-fe-heading { word-break: break-word; }
.vfpb-fe-text   { word-break: break-word; margin-bottom: 16px; }
.vfpb-fe-text p { margin: 0 0 1em; }
.vfpb-fe-image img { max-width: 100%; height: auto; }
.vfpb-fe-html  { overflow-x: auto; }

@media (max-width: 768px) {
  .vfpb-fe-cols { flex-direction: column; }
  .vfpb-fe-col  { flex: 100 !important; }
  .vfpb-fe-section > .vfpb-fe-cols > .vfpb-fe-col + .vfpb-fe-col { margin-top: 20px; }
  div[style*='grid-template-columns:1fr 1fr'] { display: block !important; }
  div[style*='grid-template-columns:1fr 1fr'] > * { margin-bottom: 20px; }
}


/* Version Switcher in Specs */
.vf-spec-ver-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1.5px solid var(--vf-border);
    border-radius: 30px;
    font-weight: 700;
    color: var(--vf-navy);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vf-spec-ver-btn.active {
    background: var(--vf-navy);
    color: #fff;
    border-color: var(--vf-navy);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.vf-spec-ver-btn:hover:not(.active) {
    border-color: var(--vf-blue);
    color: var(--vf-blue);
    background: #f4f8ff;
}

/* Optimization for 1366x768 and small vertical screens (Laptops) */
@media (min-width: 769px) and (max-height: 850px) {
    .vf-product-hero { 
        min-height: calc(100vh - var(--header-height, 100px)); 
        height: auto;
        padding-top: var(--header-height, 100px) !important; 
        padding-bottom: 0px;
    }
    body.admin-bar .vf-product-hero {
        min-height: calc(100vh - var(--header-height, 100px) - var(--admin-bar-height, 32px));
        padding-top: calc(var(--header-height, 100px) + var(--admin-bar-height, 32px)) !important;
    }
    .vf-viewer-col { padding: 3vh 6vw; justify-content: center; height: auto; flex: 1.1; }
    .vf-panel-col { padding: 3vh 4vw; flex: 0.9; }
    
    .vf-panel-header { margin-bottom: 2vh; }
    .vf-slogan { margin-bottom: 1vh; font-size: 0.75rem; }
    .vf-panel-header h1 { font-size: clamp(1.5rem, 4vh, 2.2rem); margin-bottom: 1vh; }
    .vf-price-tag { font-size: clamp(1.3rem, 3.5vh, 1.8rem); margin-bottom: 0.5vh; }
    
    .vf-config-group { margin-bottom: 2.5vh; }
    .vf-config-title { margin-bottom: 1.5vh; font-size: 0.75rem; }
    
    .vf-v-card { padding: 1.5vh 15px; }
    .vf-btn-primary { padding: 2vh; font-size: 1rem; }
}

/* Specific adjustment for very tight 1366x768 viewports */
@media screen and (max-height: 780px) and (min-width: 769px) {
    .vf-product-hero { 
        padding-top: 100px !important; /* Keep header space */
        min-height: 650px;
    }
    .vf-panel-col { padding: 25px 30px !important; }
    .vf-panel-header h1 { font-size: 1.8rem; margin-bottom: 5px; }
    .vf-price-tag { font-size: 1.5rem; }
    .vf-config-group { margin-bottom: 15px; }
    .vf-version-cards { gap: 8px; }
    .vf-v-card { padding: 10px; min-width: 120px; }
    .vf-stage-metrics { bottom: 20px !important; padding: 10px 30px !important; }
    .vfpb-360-btn-v2 { bottom: 105px !important; transform: translateX(-50%) !important; }
    .vf-action-area { margin-top: 20px; padding-top: 15px; }
}

/* =======================================================
   PROTECTION FOR PAGE BUILDER WIDGETS
   Ensures theme CSS doesn't break Page Builder elements
   ======================================================= */
.vf-article-body p img[class*="vfpb-"],
.vf-article-body p .vfpb-s img,
.vf-article-body p .vfpb-mb-item img,
.vf-article-body p .swiper-slide img,
.vf-article-body .vfpb-multi-slider img {
    box-shadow: none !important;
    margin: 0 auto !important;
    border-radius: inherit; /* Let inline style or Page Builder CSS win */
}

