/* Isolate showroom from theme/header/footer chrome */
body.vs-showroom-page {
    background: #0b0e12 !important;
}

body.vs-showroom-page .aiz-main-wrapper {
    background: #0b0e12 !important;
}

body.vs-showroom-page .aiz-mobile-bottom-nav,
body.vs-showroom-page .aiz-cookie-alert,
body.vs-showroom-page #aiz-custom-sale-alert,
body.vs-showroom-page .calculator-fab,
body.vs-showroom-page [data-footer-topbar],
body.vs-showroom-page .footer-widget,
body.vs-showroom-page footer.bg-black,
body.vs-showroom-page .aiz-accordion-wrap {
    display: none !important;
}

#vs-page,
#vs-page * {
    box-sizing: border-box;
}

#vs-page button,
#vs-page select,
#vs-page a.vs-text-btn {
    font-family: inherit;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none !important;
    outline: none;
}

#vs-page select.vs-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.45rem 0.65rem !important;
    border-radius: 0 !important;
}

/* If AIZ wraps the vehicle select, restyle the picker instead of breaking it */
#vs-page .bootstrap-select {
    width: auto !important;
    max-width: 100%;
}

#vs-page .bootstrap-select > .dropdown-toggle {
    background: rgba(12, 16, 22, 0.85) !important;
    border: 1px solid var(--vs-line) !important;
    color: var(--vs-ink) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.45rem 0.65rem !important;
    height: auto !important;
}

.vs-page {
    --vs-ink: #f2f4f6;
    --vs-muted: rgba(242, 244, 246, 0.72);
    --vs-panel: #12161c;
    --vs-line: rgba(255, 255, 255, 0.12);
    --vs-accent: var(--primary, #d43533);
    --vs-glass: rgba(12, 16, 22, 0.72);
    margin-top: 0;
    background: #0b0e12;
    position: relative;
    min-height: calc(100vh - 72px);
    z-index: 1;
}

.vs-shell {
    position: relative;
    min-height: calc(100vh - 72px);
    display: block;
    background: #0b0e12;
}

.vs-stage-wrap {
    position: relative;
    min-height: calc(100vh - 72px);
    height: calc(100vh - 72px);
    overflow: hidden;
}

#vs-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    touch-action: none;
    cursor: grab;
}

#vs-canvas.is-dragging {
    cursor: grabbing;
}

.vs-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 244, 246, 0.55);
}

/* —— HUD —— */
.vs-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.vs-brand-bar {
    position: absolute;
    top: 1.15rem;
    left: 1.15rem;
    right: 1.15rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: none;
}

.vs-hud-actions {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vs-text-btn {
    appearance: none;
    border: 1px solid var(--vs-line);
    background: var(--vs-glass);
    color: var(--vs-ink);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.55rem 0.8rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    cursor: pointer;
    white-space: nowrap;
}

.vs-text-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.vs-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vs-line);
    background: var(--vs-glass);
    color: var(--vs-ink);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.vs-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.vs-finder {
    position: absolute;
    top: 4.6rem;
    left: 1.15rem;
    right: 1.15rem;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem;
    pointer-events: auto;
    max-width: 42rem;
}

.vs-finder-field {
    display: grid;
    gap: 0.3rem;
    min-width: min(220px, 100%);
}

.vs-finder-field span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 244, 246, 0.55);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.vs-select {
    appearance: none;
    border: 1px solid var(--vs-line);
    background: var(--vs-glass);
    color: var(--vs-ink);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    backdrop-filter: blur(10px);
    min-width: 12rem;
}

.vs-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.vs-chip {
    appearance: none;
    border: 1px solid var(--vs-line);
    background: var(--vs-glass);
    color: var(--vs-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.4rem 0.7rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.vs-chip:hover,
.vs-chip.is-active {
    color: var(--vs-ink);
    border-color: rgba(255, 255, 255, 0.28);
}

.vs-chip.is-active {
    box-shadow: inset 0 -2px 0 var(--vs-accent);
}

.vs-tip {
    position: absolute;
    left: 1.15rem;
    top: 8.4rem;
    z-index: 3;
    max-width: min(26rem, calc(100% - 2.3rem));
    padding: 0.7rem 2rem 0.7rem 0.85rem;
    background: rgba(18, 22, 28, 0.88);
    border: 1px solid var(--vs-line);
    color: var(--vs-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.vs-tip.is-hidden {
    display: none;
}

.vs-tip-close {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.vs-filter-status {
    position: absolute;
    left: 50%;
    bottom: 4.1rem;
    transform: translateX(-50%);
    padding: 0.4rem 0.75rem;
    background: var(--vs-glass);
    border: 1px solid var(--vs-line);
    color: var(--vs-ink);
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    pointer-events: none;
    white-space: nowrap;
}

.vs-hotspot-wrap {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
}

.vs-hotspot-wrap.is-visible {
    opacity: 1;
    visibility: visible;
}

.vs-hotspot-wrap.is-dimmed {
    opacity: 0.22;
}

.vs-hotspot-wrap.is-dimmed .vs-hotspot {
    pointer-events: none;
}

.vs-hotspot-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    min-width: 9rem;
    max-width: 14rem;
    padding: 0.45rem 0.6rem;
    background: rgba(12, 16, 22, 0.94);
    border: 1px solid var(--vs-line);
    color: #fff;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.vs-hotspot-wrap:hover .vs-hotspot-tip,
.vs-hotspot-wrap.is-tip-open .vs-hotspot-tip {
    opacity: 1;
    visibility: visible;
}

.vs-hotspot-tip-name {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.vs-hotspot-tip-price {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--vs-accent);
}

.vs-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.85rem;
}

.vs-spec {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    line-height: 1.25;
}

.vs-spec strong {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(242, 244, 246, 0.45);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.vs-spec span {
    color: var(--vs-ink);
    font-weight: 700;
}

.vs-product-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(242, 244, 246, 0.55);
    margin: -0.25rem 0 0.75rem;
}

.vs-page.is-fullscreen,
.vs-page:fullscreen,
.vs-page:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    background: #0b0e12;
}

.vs-page.is-fullscreen .vs-shell,
.vs-page:fullscreen .vs-shell,
.vs-page:-webkit-full-screen .vs-shell,
.vs-page.is-fullscreen .vs-stage-wrap,
.vs-page:fullscreen .vs-stage-wrap,
.vs-page:-webkit-full-screen .vs-stage-wrap {
    min-height: 100vh;
    height: 100vh;
}

.vs-icon-btn .vs-fs-exit {
    display: none;
}

.vs-page.is-fullscreen .vs-fs-enter,
.vs-page:fullscreen .vs-fs-enter,
.vs-page:-webkit-full-screen .vs-fs-enter {
    display: none;
}

.vs-page.is-fullscreen .vs-fs-exit,
.vs-page:fullscreen .vs-fs-exit,
.vs-page:-webkit-full-screen .vs-fs-exit {
    display: block;
}

.vs-brand-bar h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--vs-ink);
    line-height: 1.15;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.vs-zones {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    pointer-events: auto;
    max-width: calc(100% - 2rem);
}

.vs-zone {
    appearance: none;
    border: 1px solid var(--vs-line);
    background: var(--vs-glass);
    color: var(--vs-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vs-zone:hover,
.vs-zone.is-active {
    color: var(--vs-ink);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(20, 26, 34, 0.88);
}

.vs-zone.is-active {
    box-shadow: inset 0 -2px 0 var(--vs-accent);
}

.vs-hint {
    position: absolute;
    left: 1.15rem;
    bottom: 1.25rem;
    padding: 0.5rem 0.8rem;
    background: var(--vs-glass);
    border: 1px solid var(--vs-line);
    font-size: 0.72rem;
    color: var(--vs-muted);
    backdrop-filter: blur(10px);
    max-width: 14rem;
}

/* —— Hotspots —— */
.vs-hotspots {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.vs-hotspot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #12161c;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.vs-hotspot::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    animation: vs-pulse 2.2s ease-out infinite;
}

.vs-hotspot:hover,
.vs-hotspot.is-active,
.vs-hotspot-wrap.is-active .vs-hotspot {
    background: var(--vs-accent);
    color: #fff;
    transform: scale(1.08);
}

.vs-hotspot.is-active::before,
.vs-hotspot-wrap.is-active .vs-hotspot::before {
    border-color: color-mix(in srgb, var(--vs-accent) 55%, white);
}

@keyframes vs-pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.vs-panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 244, 246, 0.5);
    margin-bottom: 0.75rem;
}

.vs-product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(242, 244, 246, 0.5);
    margin-bottom: 0.25rem;
}

.vs-product-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--vs-ink);
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.vs-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vs-product-price .now {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--vs-accent);
}

.vs-product-price .was {
    font-size: 0.9rem;
    color: rgba(242, 244, 246, 0.45);
    text-decoration: line-through;
}

.vs-stock {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.vs-stock.in {
    color: #5dce86;
}

.vs-stock.out {
    color: #f07171;
}

.vs-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: auto;
}

.vs-actions .btn {
    border-radius: 0;
    font-weight: 700;
}

.vs-fallback {
    display: none;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--vs-ink);
}

.vs-fallback.is-visible {
    display: block;
}

.vs-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 14, 18, 0.9);
    font-weight: 700;
    color: var(--vs-ink);
}

.vs-loader.is-hidden {
    display: none;
}

/* 3D product viewer popup */
.vs-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vs-viewer-modal[hidden] {
    display: none !important;
}

.vs-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 12, 0.72);
    backdrop-filter: blur(6px);
}

.vs-viewer-dialog {
    position: relative;
    z-index: 1;
    width: min(1480px, 96vw);
    height: min(900px, calc(100vh - 1.5rem));
    max-height: calc(100vh - 1.5rem);
    overflow: hidden;
    background: linear-gradient(180deg, #161b23 0%, #10141a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f4f6;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.vs-viewer-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.vs-viewer-layout {
    display: grid;
    grid-template-columns: 1.75fr 0.75fr;
    height: 100%;
    min-height: 0;
}

.vs-viewer-stage {
    position: relative;
    min-height: 0;
    height: 100%;
    background: #d8dce2;
}

#vs-viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    touch-action: none;
    cursor: grab;
}

.vs-viewer-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(216, 220, 226, 0.85);
    color: #1a1f24;
    font-weight: 700;
}

.vs-viewer-loading.is-hidden {
    display: none;
}

.vs-viewer-hint {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(26, 31, 36, 0.12);
    font-size: 0.75rem;
    color: #4b5560;
    pointer-events: none;
}

.vs-viewer-info {
    padding: 1.5rem 1.35rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.vs-viewer-copy {
    margin: 0 0 1.25rem;
    color: rgba(242, 244, 246, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.vs-viewer-info .vs-actions {
    margin-top: auto;
}

body.vs-viewer-open,
body.vs-fullscreen-fallback {
    overflow: hidden;
}

body.vs-fullscreen-fallback .vs-page.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 11000;
    min-height: 100vh;
}

body.vs-entered .vs-hint {
    opacity: 0.95;
}

@media (max-width: 991.98px) {
    .vs-page,
    .vs-shell,
    .vs-stage-wrap {
        min-height: calc(100vh - 64px);
        height: calc(100vh - 64px);
    }

    .vs-hint {
        display: none;
    }

    .vs-finder {
        top: 4.1rem;
        left: 0.85rem;
        right: 0.85rem;
        max-width: none;
    }

    .vs-tip {
        top: auto;
        bottom: 4.6rem;
        left: 0.85rem;
        right: 0.85rem;
        max-width: none;
    }

    .vs-filter-status {
        bottom: 3.6rem;
    }

    .vs-zones {
        bottom: 0.85rem;
    }

    .vs-brand-bar {
        top: 0.85rem;
        left: 0.85rem;
        right: 0.85rem;
    }

    .vs-viewer-dialog {
        width: 96vw;
        height: auto;
        max-height: calc(100vh - 1rem);
        overflow: auto;
    }

    .vs-viewer-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .vs-viewer-stage,
    #vs-viewer-canvas {
        min-height: 360px;
        height: 55vh;
    }

    .vs-viewer-info {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
