/**
 * Smart Wheel - Refined Modelos Page Stylesheet (v1 and v2)
 * Designed for light/dark theme adaptivity and full responsiveness
 */

/* ==========================================================================
   CSS Variables & Themes
   ========================================================================== */
:root {
    --sw-glow-green: 0 0 20px rgba(79, 196, 66, 0.4);
    --sw-blue: var(--sw-green);
    --sw-duration: 0.8s;
    --sw-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
    --sw-body-bg: var(--sw-bg);
    --sw-card-bg: var(--sw-card-bg);
    --sw-card-border: var(--sw-border);
    --sw-text-primary: var(--sw-text);
    --sw-panel-collapsed-bg: rgba(7, 26, 4, 0.92);
    --sw-panel-hover: rgba(249, 255, 249, 0.05);
    --sw-carousel-card-bg: var(--sw-surface-soft);
    --sw-carousel-card-border: var(--sw-border);
    --sw-action-bar-bg: rgba(7, 26, 4, 0.85);
    --sw-v3-overlay-gradient: linear-gradient(90deg, rgba(3, 14, 1, 0.85) 0%, rgba(3, 14, 1, 0.6) 40%, rgba(3, 14, 1, 0.3) 100%),
                              linear-gradient(0deg, rgba(3, 14, 1, 0.75) 0%, rgba(3, 14, 1, 0.15) 50%, rgba(3, 14, 1, 0.6) 100%);
}

/* Light Theme Variables */
html:not([data-theme="dark"]) {
    --sw-body-bg: var(--sw-bg);
    --sw-card-bg: var(--sw-card-bg);
    --sw-card-border: var(--sw-border);
    --sw-text-primary: var(--sw-text);
    --sw-panel-collapsed-bg: rgba(229, 239, 228, 0.95);
    --sw-panel-hover: rgba(79, 196, 66, 0.08);
    --sw-carousel-card-bg: var(--sw-surface);
    --sw-carousel-card-border: var(--sw-border);
    --sw-action-bar-bg: rgba(229, 239, 228, 0.92);
    --sw-v3-overlay-gradient: linear-gradient(90deg, rgba(244, 248, 244, 0.92) 0%, rgba(244, 248, 244, 0.7) 40%, rgba(244, 248, 244, 0.3) 100%),
                              linear-gradient(0deg, rgba(244, 248, 244, 0.8) 0%, rgba(244, 248, 244, 0.15) 50%, rgba(244, 248, 244, 0.5) 100%);
}

/* ==========================================================================
   MODELOS V1: Full-Screen Category Slider & Vertical Left Selector
   ========================================================================== */
.sw-v1-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--sw-body-bg);
}

.sw-v1-wrapper.is-scene-transitioning,
.sw-v1-transition-clone {
    will-change: transform;
}

.sw-v1-wrapper.is-scene-transitioning .sw-v1-bg-slide,
.sw-v1-wrapper.is-scene-transitioning .sw-v1-content-panel,
.sw-v1-transition-clone .sw-v1-bg-slide,
.sw-v1-transition-clone .sw-v1-content-panel {
    transition: none !important;
}

/* Background Crossfading Layers */
.sw-v1-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sw-v1-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

.sw-v1-bg-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sw-v3-overlay-gradient);
    z-index: 2;
}

.sw-v1-bg-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Content Layout */
.sw-v1-main-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    padding-top: 80px; /* clears header */
    box-sizing: border-box;
}

/* Left Accordion Sidebar - vertical strips */
.sw-v1-sidebar {
    display: none !important;
}

@media (min-width: 992px) {
    .sw-v1-bg-slide,
    .sw-v1-content-panel {
        transition: none !important;
    }

    .sw-v1-sidebar {
        height: 100vh;
        margin-top: -80px;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        z-index: 10;
        flex-shrink: 0;
    }

    .sw-v1-acc-item {
        width: 70px;
        height: 100%;
        cursor: pointer;
        background: rgba(15, 17, 24, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-right: 1px solid var(--sw-card-border);
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    [data-theme="light"] .sw-v1-acc-item {
        background: rgba(240, 242, 245, 0.45);
    }

    .sw-v1-acc-item::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, var(--sw-green), var(--sw-blue));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sw-v1-acc-item:hover {
        background: rgba(0, 224, 143, 0.08);
    }

    [data-theme="light"] .sw-v1-acc-item:hover {
        background: rgba(79, 196, 66, 0.08);
    }

    .sw-v1-acc-item:hover::after {
        opacity: 1;
    }

    .sw-v1-acc-item-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        transform: rotate(180deg);
    }

    .sw-v1-acc-item-title {
        writing-mode: vertical-rl;
        white-space: nowrap;
        color: var(--sw-text-primary);
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .sw-v1-acc-item:hover .sw-v1-acc-item-title {
        color: var(--sw-green);
    }

    [data-theme="light"] .sw-v1-acc-item:hover .sw-v1-acc-item-title {
        color: var(--sw-green-dark);
    }

    /* Accordion collapse logic (hide active) */
    .sw-v1-acc-item.active-category {
        width: 0 !important;
        opacity: 0 !important;
        border: none !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }
}

/* Right Content Column */
.sw-v1-content-col {
    flex-grow: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: clamp(3rem, 8vw, 6rem);
    padding-right: 3rem;
    box-sizing: border-box;
}

.sw-v1-content-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 600px;
    z-index: 5;
}

.sw-v1-content-panel.active {
    opacity: 1;
    visibility: visible;
}

.sw-v1-badge {
    background: rgba(0, 224, 143, 0.15);
    color: var(--sw-green);
    border: 1px solid rgba(0, 224, 143, 0.3);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.sw-v1-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--sw-text-primary);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .sw-v1-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.sw-v1-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--sw-text-soft);
    margin-bottom: 2.25rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.btn-sw-v1-cta {
    background-color: var(--sw-green);
    color: var(--sw-black) !important;
    font-family: 'Sora-SemiBold', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 1px solid var(--sw-green);
    box-shadow: 0 4px 15px rgba(79, 196, 66, 0.22);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-sw-v1-cta:hover {
    background-color: var(--sw-green-light);
    border-color: var(--sw-green-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(164, 255, 154, 0.45);
    color: var(--sw-black) !important;
}

/* Mobile selector stacked at bottom of fold */
.sw-v1-mobile-selector {
    display: none !important;
}

@media (max-width: 991.98px) {
    .sw-v1-mobile-selector {
        position: absolute;
        bottom: 0; /* Align directly to the bottom border of the fold */
        left: 0;
        width: 100%;
        height: calc(174px + env(safe-area-inset-bottom, 0px));
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(15, 17, 24, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--sw-card-border);
        z-index: 10;
        margin: 0;
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
        overflow: hidden;
    }

    [data-theme="light"] .sw-v1-mobile-selector {
        background: rgba(240, 242, 245, 0.45);
    }

    .sw-v1-mob-item {
        flex: 0 0 58px;
        width: 100%;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 0;
        border-bottom: 1px solid var(--sw-card-border);
        cursor: pointer;
        transition: background 0.3s ease, border-color 0.3s ease;
        margin: 0;
        padding: 0;
        border-radius: 0;
        position: relative;
    }

    .sw-v1-mob-item:last-child {
        border-bottom: none;
    }

    .sw-v1-mob-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, var(--sw-green), var(--sw-blue));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sw-v1-mob-item.active-category {
        display: none !important;
    }

    .sw-v1-mob-item.is-rotating-hidden {
        display: none !important;
    }

    .sw-v1-mob-item-title {
        max-width: 100%;
        color: var(--sw-text-primary);
        font-family: 'Sora-Bold', sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        transition: color 0.3s ease;
    }

    .sw-v1-mob-item:hover {
        background: rgba(0, 224, 143, 0.08);
    }

    [data-theme="light"] .sw-v1-mob-item:hover {
        background: rgba(79, 196, 66, 0.08);
    }

    .sw-v1-mob-item:hover::after {
        opacity: 1;
    }

    .sw-v1-mob-item:hover .sw-v1-mob-item-title {
        color: var(--sw-green);
    }

    [data-theme="light"] .sw-v1-mob-item:hover .sw-v1-mob-item-title {
        color: var(--sw-green-dark);
    }

    /* Raise floating chat widget on mobile so it doesn't overlap the bottom selectors */
    body:has(.sw-v1-wrapper) #hb-chat-widget {
        bottom: 85px !important;
    }

    .sw-v1-main-layout {
        flex-direction: column;
        padding-top: 70px;
    }

    .sw-v1-sidebar {
        display: none !important;
    }

    .sw-v1-content-col {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        padding-bottom: 190px;
    }

    .sw-v1-content-panel {
        position: absolute;
        top: 15%;
        transform: translateY(0);
        max-width: 100%;
        padding: 0 1.5rem;
        box-sizing: border-box;
    }

    .sw-v1-content-panel.active {
        transform: translateY(0) translateX(0);
    }

    .sw-v1-title {
        font-size: 2.6rem;
    }
}

/* Height-based adjustments for V1 on smaller mobile screens (iPhone SE, small heights) */
@media (max-width: 991.98px) and (max-height: 680px) {
    .sw-v1-title {
        font-size: 2.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    .sw-v1-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    .sw-v1-badge {
        margin-bottom: 0.75rem !important;
    }
    .btn-sw-v1-cta {
        padding: 0.6rem 1.4rem !important;
        font-size: 0.85rem !important;
    }
    .sw-v1-content-panel {
        top: 10% !important;
    }
}


/* Drawer display for v1 list of products */
.sw-products-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 480px;
    background: rgba(15, 17, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .sw-products-drawer {
    background: rgba(248, 249, 250, 0.96);
    border-top-color: rgba(0, 0, 0, 0.08);
}

.sw-products-drawer.open {
    transform: translateY(0);
}

.sw-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem 1rem 2.5rem;
}

.sw-drawer-title {
    color: var(--sw-text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.btn-close-drawer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--sw-text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-close-drawer {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.btn-close-drawer:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.sw-drawer-body {
    padding: 0 2.5rem 2rem 2.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.sw-drawer-body::-webkit-scrollbar {
    height: 8px;
}

.sw-drawer-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.sw-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(0, 224, 143, 0.3);
    border-radius: 10px;
}

/* Slider Product Card */
.sw-slider-card {
    display: inline-block;
    width: 300px;
    background: var(--sw-carousel-card-bg);
    border: 1px solid var(--sw-carousel-card-border);
    border-radius: 12px;
    margin-right: 1.5rem;
    padding: 1.25rem;
    vertical-align: top;
    white-space: normal;
    transition: all 0.4s ease;
}

.sw-slider-card:hover {
    border-color: rgba(0, 224, 143, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sw-slider-card-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 8px;
}

.sw-slider-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.sw-slider-card-title {
    color: var(--sw-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sw-slider-specs {
    margin-bottom: 1rem;
}

.sw-slider-spec-item {
    font-size: 0.8rem;
    color: var(--sw-text-muted);
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--sw-card-border);
}

.sw-slider-spec-val {
    color: var(--sw-text-primary);
    font-weight: 600;
}

.sw-slider-card-btn {
    width: 100%;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

/* Backdrop */
.sw-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sw-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   MODELOS V2: Category Selection & Responsive Carousels
   ========================================================================== */
.sw-v2-wrapper {
    /* (This runs in LIGHT theme by default: so we put the DARK theme colors here!) */
    --sw-v2-bg: radial-gradient(circle at 50% 100%, rgba(79, 196, 66, 0.06) 0%, transparent 70%),
                #121212;
    --sw-v2-card-bg: #1c1c1c;
    --sw-v2-card-border: rgba(255, 255, 255, 0.12);
    --sw-v2-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --sw-v2-card-hover-shadow: 0 15px 35px rgba(79, 196, 66, 0.22);
    --sw-v2-tab-bg: #1e1e1e;
    --sw-v2-tab-active-bg: #262626;
    --sw-v2-tab-border: rgba(255, 255, 255, 0.08);
    --sw-v2-text-primary: #f9fff9;
    --sw-v2-text-muted: rgba(249, 255, 249, 0.72);

    background: var(--sw-v2-bg);
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 80px;
    transition: background 0.4s ease;
}

/* Custom outline button overrides for light theme (which now has dark listing bg) */
.sw-v2-wrapper .btn-sw-outline {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #f9fff9 !important;
    background: transparent !important;
}
.sw-v2-wrapper .btn-sw-outline:hover {
    background: var(--sw-green) !important;
    border-color: var(--sw-green) !important;
    color: #030e01 !important;
}

html[data-theme="dark"] .sw-v2-wrapper {
    /* (This runs in DARK theme: so we put the LIGHT theme colors here!) */
    --sw-v2-bg: radial-gradient(circle at 50% 100%, rgba(79, 196, 66, 0.03) 0%, transparent 70%),
                #ebedeb;
    --sw-v2-card-bg: #ffffff;
    --sw-v2-card-border: rgba(79, 196, 66, 0.22);
    --sw-v2-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --sw-v2-card-hover-shadow: 0 15px 35px rgba(79, 196, 66, 0.15);
    --sw-v2-tab-bg: #ffffff;
    --sw-v2-tab-active-bg: #edf6ec;
    --sw-v2-tab-border: rgba(0, 0, 0, 0.06);
    --sw-v2-text-primary: #041E02;
    --sw-v2-text-muted: rgba(4, 30, 2, 0.75);
}

/* Custom outline button overrides for dark theme (which now has light listing bg) */
html[data-theme="dark"] .sw-v2-wrapper .btn-sw-outline {
    border: 1px solid rgba(4, 30, 2, 0.25) !important;
    color: #041E02 !important;
    background: transparent !important;
}
html[data-theme="dark"] .sw-v2-wrapper .btn-sw-outline:hover {
    background: var(--sw-green) !important;
    border-color: var(--sw-green) !important;
    color: #030e01 !important;
}

.sw-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-v2-title {
    color: var(--sw-v2-text-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.sw-v2-subtitle {
    color: var(--sw-v2-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.sw-v2-layout {
    margin-top: 2.5rem;
}

/* Horizontal Selector Layout above Products list */
.sw-v2-sidebar-col {
    position: relative;
    top: 0;
    margin-bottom: 2.5rem;
}

.sw-v2-tabs-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.sw-v2-tab-item {
    background: var(--sw-v2-tab-bg);
    border: 1px solid var(--sw-v2-tab-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 200px;
    max-width: 270px;
}

/* Bottom highlight bar for horizontal tabs */
.sw-v2-tab-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--sw-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sw-v2-tab-item:hover {
    border-color: rgba(79, 196, 66, 0.4);
    transform: translateY(-3px);
}

.sw-v2-tab-item.active {
    background: var(--sw-v2-tab-active-bg);
    border-color: var(--sw-green);
}

.sw-v2-tab-item.active::before {
    opacity: 1;
}

.sw-v2-tab-icon {
    font-size: 1.5rem;
    color: var(--sw-green);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(79, 196, 66, 0.1);
}

.sw-v2-tab-info {
    flex-grow: 1;
}

.sw-v2-tab-title {
    color: var(--sw-v2-text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.sw-v2-tab-desc {
    color: var(--sw-v2-text-muted);
    font-size: 0.8rem;
    margin: 4px 0 0 0;
}

/* Products Panel */
.sw-v2-products-panel {
    display: none;
}

.sw-v2-products-panel.active {
    display: block;
}

/* Product Card */
.sw-v2-product-card {
    background: var(--sw-v2-card-bg);
    border: 1px solid var(--sw-v2-card-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--sw-v2-card-shadow);
}

.sw-v2-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sw-v2-card-hover-shadow);
    border-color: rgba(79, 196, 66, 0.35);
}

.sw-v2-card-img-container {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important; /* Forces white background in both themes to accommodate product images with white backdrops */
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: padding 0.3s ease;
}

.sw-v2-card-img-container.sw-no-padding {
    padding: 0 !important;
}

.sw-v2-card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.sw-v2-card-img-container img.sw-zoom-1to1 {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.sw-v2-product-card:hover .sw-v2-card-img-container img {
    transform: scale(1.05);
}

.sw-v2-card-header {
    background: transparent;
}

.sw-v2-card-model-title {
    color: #4FC442;
    font-size: 2.25rem !important; /* Large heading like F91 / F73 */
    line-height: 1.1;
    font-weight: 800;
}

.sw-v2-status-dot {
    width: 12px;
    height: 12px;
    background-color: #e31e24; /* Red status dot */
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sw-v2-card-subtitle {
    color: var(--sw-v2-text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 4px;
}

.sw-v2-hot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    pointer-events: none;
}

.sw-v2-hot-badge-tag {
    background: #e31e24;
    color: #ffffff;
    font-family: 'Sora-Bold', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.4);
    position: relative;
    letter-spacing: 0.5px;
    display: inline-block;
}

.sw-v2-hot-badge-tag::after {
    /* Diamond chat bubble pointer */
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: #e31e24;
}

.sw-v2-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sw-v2-spec-header {
    color: var(--sw-v2-text-primary);
    font-family: 'Sora-Bold', sans-serif;
    font-size: 1.05rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--sw-v2-card-border);
    padding-top: 1.25rem;
    margin-top: 0;
}

.sw-v2-spec-bullets {
    list-style: none;
    padding-left: 0 !important;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.sw-v2-spec-bullets li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: var(--sw-v2-text-muted);
    margin-bottom: 10px;
    line-height: 1.4;
}

.sw-bullet-dot {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #e31e24; /* Red bullet points */
    border-radius: 50%;
    display: inline-block;
}

.sw-v2-card-wa-btn {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 22px !important; /* Round pill button */
    font-size: 1.2rem !important;
    flex-shrink: 0;
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
}

.sw-v2-card-wa-btn:hover {
    background-color: #1ebd59 !important;
    border-color: #1ebd59 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.sw-v2-card-details-btn {
    border-radius: 22px !important; /* Round pill button */
    font-family: 'Sora-Bold', sans-serif;
    font-size: 0.9rem !important;
    font-weight: 700;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 44px;
    transition: all 0.3s ease !important;
    background-color: #e31e24 !important;
    border: 1px solid #e31e24 !important;
    color: #fff !important;
}

.sw-v2-card-details-btn:hover {
    background-color: #b81419 !important;
    border-color: #b81419 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
}

/* Mobile responsive styles for new V2 */
@media (max-width: 991.98px) {
    .sw-v2-wrapper {
        padding-top: 0;
    }
    
    .sw-v2-sidebar-col {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }
    
    .sw-v2-hero-tabs .sw-v2-tabs-list {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-left: 30px !important; /* Yields exactly 15px layout gutter after -15px margin of parent */
        padding-right: 30px !important; /* Yields exactly 15px layout gutter after -15px margin of parent */
        padding-top: 10px !important;
        padding-bottom: 12px !important;
        margin-top: 0 !important;
        scroll-snap-type: none !important; /* Disable scroll snap to prevent snap-back align bugs */
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
    }
    
    .sw-v2-tabs-list::after {
        display: none;
    }
    
    .sw-v2-tabs-list::-webkit-scrollbar {
        display: none; /* Hide scrollbar Safari/Chrome */
    }
    
    .sw-v2-tab-item {
        flex: 0 0 auto;
        max-width: none;
        padding: 0.75rem 1rem;
        border-radius: 20px;
    }
    
    .sw-v2-tab-item::before {
        display: none;
    }
    
    .sw-v2-tab-item:hover {
        transform: none;
    }
    
    .sw-v2-tab-icon {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   MODELOS V3: Traditional Horizontal Accordion Slider Styles
   ========================================================================== */
.sw-v3-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--sw-body-bg);
}

.sw-v3-accordion-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: 80px; /* Clear header */
    box-sizing: border-box;
}

.sw-v3-panel {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 0 0 70px;
    transition: flex 0.75s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    background-color: var(--sw-body-bg);
}

.sw-v3-panel.active {
    flex: 1 1 0%;
    overflow: visible; /* Let background image slide under the header */
}

.sw-v3-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.sw-v3-panel.active .sw-v3-bg-image {
    opacity: 1;
    transform: scale(1);
    top: -80px; /* Extend behind transparent header */
    height: calc(100% + 80px);
}

.sw-v3-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--sw-v3-overlay-gradient);
    z-index: 2;
}

.sw-v3-panel-strip {
    width: 70px;
    height: 100vh;
    margin-top: -80px; /* Extend under the header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    border-right: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

html:not([data-theme="dark"]) .sw-v3-panel-strip {
    background: transparent;
}

.sw-v3-panel-strip:hover {
    background: rgba(79, 196, 66, 0.08);
}

.sw-v3-panel.active .sw-v3-panel-strip {
    background: transparent;
    border-right: none;
    pointer-events: none;
}

.sw-v3-panel-number {
    display: none !important;
}

.sw-v3-panel-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    color: var(--sw-text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.sw-v3-panel-strip:hover .sw-v3-panel-title {
    color: var(--sw-green);
}

.sw-v3-panel.active .sw-v3-panel-title {
    color: var(--sw-green);
    opacity: 0; /* Hide vertical title when active to prevent clutter */
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.sw-v3-panel.active .sw-v3-panel-number {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.sw-v3-panel-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
    box-sizing: border-box;
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.sw-v3-panel.active .sw-v3-panel-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: auto;
    padding-left: clamp(3rem, 8vw, 6rem);
    padding-right: 3rem;
}

.sw-v3-panel-content-inner {
    max-width: 600px;
}

.sw-v3-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--sw-text-primary);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sw-v3-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--sw-text-soft);
    margin-bottom: 2.25rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Mobile styles for V3 (Vertical Accordion) */
@media (max-width: 991.98px) {
    .sw-v3-accordion-container {
        flex-direction: column;
        padding-top: 95px; /* Clear header completely on mobile */
        height: 100vh;
    }

    .sw-v3-panel {
        flex-direction: column;
        width: 100%;
        height: auto;
        flex: 0 0 58px;
        transition: flex 0.75s cubic-bezier(0.25, 1, 0.5, 1);
        border-bottom: 1px solid var(--sw-card-border);
    }

    .sw-v3-panel.active {
        flex: 1 1 0%;
    }

    .sw-v3-panel-strip {
        width: 100%;
        height: 58px;
        margin-top: 0;
        flex-direction: row;
        justify-content: center;
        padding: 0 20px;
        border-right: 0;
        border-bottom: none;
        background: transparent;
    }

    .sw-v3-panel-number {
        display: none !important;
    }

    .sw-v3-panel-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.85rem;
    }

    .sw-v3-panel.active .sw-v3-panel-strip {
        display: none !important;
    }

    .sw-v3-panel.active .sw-v3-bg-image {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 1 !important;
    }

    .sw-v3-panel-content {
        justify-content: center;
        align-items: flex-start;
        transform: translateY(30px);
        transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
        height: 0;
        padding: 0;
        overflow: hidden;
    }

    .sw-v3-panel.active .sw-v3-panel-content {
        transform: translateY(0);
        height: auto;
        padding: 2.5rem 1.5rem;
    }

    .sw-v3-title {
        font-size: 2.2rem;
    }
}

/* Height-based adjustments for V3 on smaller mobile screens (iPhone SE, small heights) */
@media (max-width: 991.98px) and (max-height: 680px) {
    .sw-v3-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    .sw-v3-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    .sw-v3-panel.active .sw-v3-panel-content {
        padding-bottom: 1.5rem !important;
    }
}

/* Force light mode header scrolled styling by default on page load for the models page */
/* ==========================================================================
   MODELOS V2: Premium Video Background Hero Section
   ========================================================================== */
.sw-v2-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    padding: 140px 0 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.sw-v2-hero-video {
    position: absolute;
    top: -2px;
    left: -2%;
    width: 104%;
    height: calc(100% + 5px);
    object-fit: cover;
    z-index: 1;
    transition: opacity 0.5s ease;
    transform: scale(1.06);
    transform-origin: center;
}

.sw-v2-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.65) 60%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

.sw-v2-hero-container {
    z-index: 3;
    width: 100%;
}

.sw-v2-hero .sw-v2-title {
    margin-bottom: 0;
}

/* Glassmorphic tab styles inside the Hero (Thinner & Pill-shaped) */
.sw-v2-hero .sw-v2-tab-item {
    background: rgba(79, 196, 66, 0.06);
    border: 1px solid rgba(79, 196, 66, 0.12);
    color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 0.45rem 1.15rem; /* Thinner padding */
    border-radius: 50px;
    flex: 0 0 auto; /* Prevent shrinking on mobile */
    min-height: auto;
    max-width: none;
    white-space: nowrap; /* Prevent line wrapping */
}

.sw-v2-hero .sw-v2-tab-item:hover {
    border-color: rgba(79, 196, 66, 0.5);
    background: rgba(79, 196, 66, 0.15);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.sw-v2-hero .sw-v2-tab-item.active {
    background: rgba(79, 196, 66, 0.35);
    border-color: var(--sw-green);
    color: #ffffff !important;
    box-shadow: 0 4px 25px rgba(79, 196, 66, 0.35);
}

.sw-v2-hero .sw-v2-tab-item.active::before {
    display: none; /* remove underline highlight since it's pill-shaped */
}

.sw-v2-hero .sw-v2-tab-title {
    color: #ffffff !important;
    font-size: 0.88rem; /* Refined font size */
}

.sw-v2-hero .sw-v2-tab-icon {
    background: rgba(79, 196, 66, 0.15);
    width: 28px; /* Thinner icon size */
    height: 28px;
    font-size: 0.95rem; /* Thinner icon size */
    border-radius: 50%;
}

.sw-hero-wave-divider {
    position: absolute;
    bottom: -6px; /* Shift down to overlap and remove sub-pixel line gaps */
    left: -30%;
    width: 160%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.sw-hero-wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 46px; /* Slightly taller to cover translation and overlap shift */
}

.sw-hero-wave-divider .shape-fill {
    fill: #121212; /* Match dark wrapper bg in light theme */
    transition: fill 0.4s ease;
}

html[data-theme="dark"] .sw-hero-wave-divider .shape-fill {
    fill: #ebedeb; /* Match light wrapper bg in dark theme */
}

/* Elevate results grid to be higher on first fold */
.sw-v2-wrapper .sw-v2-container.py-5 {
    padding-top: 1.5rem !important;
}

.sw-v2-wrapper .sw-v2-layout {
    margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
    .sw-v2-hero {
        min-height: 230px; /* Reduced height to let product cards show on first fold */
        padding: 95px 0 35px 0; /* Refined mobile padding: title positioned slightly lower */
    }
    
    .sw-v2-hero .sw-v2-title {
        font-size: 1.6rem !important;
        font-weight: 800;
        letter-spacing: -0.5px;
        line-height: 1.25;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .sw-hero-wave-divider {
        left: -30%;
        width: 160%;
        bottom: -4px; /* Shift down on mobile */
    }

    .sw-hero-wave-divider svg {
        height: 30px; /* Taller on mobile to cover overlap */
    }
    
    .sw-v2-hero-tabs {
        margin-left: -15px;
        margin-right: -15px;
        overflow: visible; /* Let active pill shadow/border breathe vertically */
        padding-top: 20px; /* Internal padding prevents shadow cutoffs */
        padding-bottom: 24px;
        margin-top: -14px;
        margin-bottom: -24px; /* Offset spacing height change */
    }

    .sw-v2-hero-divider-padding {
        padding-bottom: 8px;
    }

    .sw-v2-hero .sw-v2-tab-item.active {
        background: rgba(79, 196, 66, 0.4) !important;
        border-color: var(--sw-green) !important;
        box-shadow: 0 0 8px rgba(79, 196, 66, 0.35) !important;
        overflow: visible !important;
    }

    .sw-v2-hero .sw-v2-tab-item {
        padding: 0.45rem 1rem;
        border-radius: 50px;
        overflow: visible !important;
    }

    .sw-v2-hero .sw-v2-tab-icon {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    /* Elevate results grid to be higher on first fold for mobile */
    .sw-v2-wrapper .sw-v2-container.py-5 {
        padding-top: 0.35rem !important; /* Raised even more as requested */
    }

    .sw-v2-wrapper .btn-sw-outline.sw-v2-card-details-btn {
        border: 2.5px solid var(--sw-green) !important;
        color: var(--sw-green) !important;
        background: transparent !important;
        font-weight: 700 !important;
    }
}


