/* =========================================================
   VW VEHICLE V2 - PRODUCT DETAIL
   Clean CSS
   ========================================================= */


/* =========================================================
   01. VARIABLES / BASE
   ========================================================= */

.vw-vehicle-detail {
    --vw-max: 1280px;

    --vw-text: #111820;
    --vw-muted: #68727d;

    --vw-blue: #001e50;
    --vw-blue-hover: #003b7a;

    --vw-border: #dfe4e8;

    --vw-soft: #f5f7f9;
    --vw-soft-2: #fafbfc;

    --vw-section-space: 92px;
    --vw-sticky-offset: 0px;

    color: var(--vw-text);
    background: #fff;

    overflow: clip;
}


.vw-vehicle-detail,
.vw-vehicle-detail * {
    box-sizing: border-box;
}


.vw-container {
    width: min(
        var(--vw-max),
        calc(100% - 48px)
    );

    margin-inline: auto;
}


.vw-section {
    padding-block: var(--vw-section-space);
}


.vw-vehicle-detail .is-hidden {
    display: none !important;
}


/* Small heading */

.vw-eyebrow {
    margin: 0 0 10px;

    color: var(--vw-blue);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .13em;
    text-transform: uppercase;
}


/* Rich text */

.vw-richtext {
    color: #4f5a64;

    font-size: 16px;
    line-height: 1.75;
}


.vw-richtext > :first-child {
    margin-top: 0;
}


.vw-richtext > :last-child {
    margin-bottom: 0;
}


/* Global section heading */

.vw-section-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 31px;
}


.vw-section-heading h2 {
    margin: 0;

    font-size: clamp(
        30px,
        3.4vw,
        46px
    );

    line-height: 1.08;
    letter-spacing: -.025em;
}


.vw-text-button {
    padding: 0 0 4px;

    border: 0;
    border-bottom: 1px solid var(--vw-blue);

    background: transparent;

    color: var(--vw-blue);

    font-weight: 700;

    cursor: pointer;
}



/* =========================================================
   02. BANNER
   ========================================================= */

.vw-product-banner {
    width: 100%;

    margin: 0;
    padding: 0;

    line-height: 0;
}


.vw-product-banner picture,
.vw-product-banner img {
    display: block;

    width: 100%;
}


.vw-product-banner img {
    height: auto;
    max-width: none;
}



/* =========================================================
   03. STICKY PRODUCT NAV
   ========================================================= */

.vw-product-nav {
    position: sticky;

    top: var(--vw-sticky-offset);

    z-index: 90;

    border-bottom: 1px solid var(--vw-border);

    background: rgba(
        255,
        255,
        255,
        .96
    );

    backdrop-filter: blur(14px);
}


.vw-product-nav__inner {
    display: flex;

    gap: 30px;

    overflow-x: auto;

    scrollbar-width: none;
}


.vw-product-nav__inner::-webkit-scrollbar {
    display: none;
}


.vw-product-nav__link {
    position: relative;

    flex: 0 0 auto;

    padding: 18px 0 16px;

    color: #4f5963;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;
}


.vw-product-nav__link::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -1px;
    left: 0;

    height: 2px;

    background: var(--vw-blue);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .2s ease;
}


.vw-product-nav__link:hover,
.vw-product-nav__link.is-active {
    color: var(--vw-blue);
}


.vw-product-nav__link.is-active::after {
    transform: scaleX(1);
}



/* =========================================================
   04. PRODUCT HEADING
   ========================================================= */

.vw-product-heading {
    margin-bottom: 42px;
}


.vw-product-heading h1 {
    margin: 0;

    color: var(--vw-text);

    font-size: clamp(
        38px,
        4.6vw,
        64px
    );

    line-height: 1.02;
    letter-spacing: -.035em;
}


.vw-product-subtitle {
    max-width: 720px;

    margin: 14px 0 0;

    color: var(--vw-muted);

    font-size: 18px;
}



/* =========================================================
   05. PRODUCT CONFIGURATOR
   ========================================================= */

.vw-product-configurator__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, .82fr);

    gap: 28px;

    align-items: start;
}


.vw-product-configurator__grid.is-wide {
    grid-template-columns: 1fr;
}


.vw-panel,
.vw-side-card {
    border: 1px solid var(--vw-border);

    background: #fff;
}


.vw-panel {
    padding: 30px;
}


.vw-panel + .vw-panel {
    margin-top: 20px;
}


.vw-panel h2 {
    margin: 0 0 22px;

    font-size: 25px;
}



/* =========================================================
   06. VARIANT SELECTOR
   ========================================================= */

.vw-variant-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.vw-variant-card {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(90px, 34%)
        1fr;

    gap: 14px;

    align-items: center;

    min-height: 126px;

    padding: 15px;

    border: 1px solid var(--vw-border);

    background: #fff;

    color: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.vw-variant-card:hover {
    border-color: #aeb7c0;
}


.vw-variant-card.is-active {
    border-color: var(--vw-blue);

    box-shadow:
        inset 0 0 0 1px
        var(--vw-blue);
}


.vw-variant-card__media img {
    display: block;

    width: 100%;
    height: 78px;

    object-fit: contain;
}


.vw-variant-card__content {
    display: grid;

    gap: 6px;
}


.vw-variant-card__content strong {
    font-size: 18px;
    text-transform: capitalize;
}


.vw-variant-card__content span {
    color: var(--vw-muted);

    font-size: 14px;
}


.vw-variant-card > i {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 16px;
    height: 16px;

    border: 1px solid #b4bdc5;
    border-radius: 50%;
}


.vw-variant-card.is-active > i {
    border: 5px solid var(--vw-blue);
}



/* =========================================================
   07. CURRENT VARIANT / PRICE
   ========================================================= */

.vw-current-variant-label {
    margin: 0 0 10px;

    color: var(--vw-muted);
}


.vw-price {
    display: grid;

    gap: 2px;
}


.vw-price span {
    color: var(--vw-muted);

    font-size: 13px;
}


.vw-price strong {
    color: var(--vw-blue);

    font-size: clamp(
        26px,
        3vw,
        36px
    );
}



/* =========================================================
   08. HIGHLIGHTS
   ========================================================= */

.vw-highlights {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin: 24px 0 30px;
}


.vw-highlights span {
    padding: 8px 11px;

    border-radius: 999px;

    background: var(--vw-soft);

    color: #3d4852;

    font-size: 13px;
}



/* =========================================================
   09. COLORS
   ========================================================= */

.vw-mini-heading {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 15px;
}


.vw-mini-heading h3 {
    margin: 0;

    font-size: 17px;
}


.vw-mini-heading span {
    color: var(--vw-muted);

    font-size: 14px;
}


.vw-color-list {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.vw-color {
    width: 35px;
    height: 35px;
	min-height:35px;
    padding: 4px;

    border: 1px solid transparent;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;

    transition: border-color .2s ease;
}


.vw-color span {
    display: block;

    width: 100%;
    height: 100%;

    border: 1px solid #ccd2d7;
    border-radius: 50%;
}


.vw-color.is-active {
    border-color: var(--vw-blue);
}



/* =========================================================
   10. VEHICLE PREVIEW
   ========================================================= */

.vw-vehicle-preview {
    display: grid;

    min-height: 350px;

    margin-top: 22px;

    place-items: center;

    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #f7f8fa 100%
        );
}


.vw-vehicle-preview img {
    display: block;

    width: min(
        94%,
        800px
    );

    max-height: 430px;

    object-fit: contain;
}



/* =========================================================
   11. SIDEBAR
   ========================================================= */

.vw-product-sidebar {
    position: sticky;

    top:
        calc(
            var(--vw-sticky-offset)
            + 70px
        );

    display: grid;

    gap: 16px;
}


.vw-side-card {
    padding: 25px;
}


.vw-side-card__label {
    display: block;

    margin-bottom: 8px;

    color: var(--vw-blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;
}


.vw-side-card h3 {
    margin: 0 0 10px;

    font-size: 20px;
}


.vw-side-card p {
    margin: 0 0 18px;

    color: var(--vw-muted);

    font-size: 14px;
}


.vw-button {
    display: inline-flex;

    width: 100%;
    min-height: 46px;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border: 1px solid var(--vw-blue);

    background: var(--vw-blue);

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition: background .2s ease;
}


.vw-button:hover {
    background: var(--vw-blue-hover);

    color: #fff;
}


.vw-side-card dl {
    margin: 18px 0 0;
}


.vw-side-card dl > div {
    display: grid;
	text-transform: math-auto;
    grid-template-columns:
        1fr auto;

    gap: 15px;

    padding: 11px 0;

    border-top:
        1px solid
        var(--vw-border);
}


.vw-side-card dt {
    color: var(--vw-muted);

    font-weight: 400;
}


.vw-side-card dd {
    margin: 0;

    font-weight: 700;

    text-align: right;
}



/* =========================================================
   12. MAIN GALLERY
   ========================================================= */

.vw-product-gallery {
    background: var(--vw-soft);
}


.vw-gallery-grid {
    display: grid;

    grid-template-columns:
        2fr 1fr;

    grid-template-rows:
        repeat(
            2,
            minmax(220px, 1fr)
        );

    gap: 10px;

    min-height: 550px;
}


.vw-gallery-item {
    position: relative;

    overflow: hidden;

    padding: 0;

    border: 0;

    background: #e9edf0;

    cursor: zoom-in;
}


.vw-gallery-item--1 {
    grid-row: 1 / span 2;
}


.vw-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.vw-gallery-more {
    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    background:
        rgba(
            0,
            0,
            0,
            .44
        );

    color: #fff;

    font-size: 24px;
    font-weight: 700;
}



/* =========================================================
   13. LIGHTBOX
   ========================================================= */

.vw-lightbox[hidden] {
    display: none !important;
}


.vw-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: grid;

    place-items: center;

    padding: 55px 80px;

    background:
        rgba(
            0,
            0,
            0,
            .94
        );
}


.vw-lightbox figure {
    display: grid;

    max-width:
        min(
            1200px,
            86vw
        );

    max-height: 86vh;

    margin: 0;

    place-items: center;
}


.vw-lightbox img {
    max-width: 100%;
    max-height: 78vh;

    object-fit: contain;
}


.vw-lightbox figcaption {
    margin-top: 10px;

    color:
        rgba(
            255,
            255,
            255,
            .75
        );
}


.vw-lightbox__close,
.vw-lightbox__prev,
.vw-lightbox__next {
    position: absolute;

    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;
}


.vw-lightbox__close {
    top: 20px;
    right: 28px;

    font-size: 40px;
}


.vw-lightbox__prev,
.vw-lightbox__next {
    top: 50%;

    transform:
        translateY(-50%);

    font-size: 54px;
}


.vw-lightbox__prev {
    left: 28px;
}


.vw-lightbox__next {
    right: 28px;
}


.vw-lightbox__counter {
    position: absolute;

    right: 28px;
    bottom: 22px;

    color:
        rgba(
            255,
            255,
            255,
            .8
        );
}



/* =========================================================
   14. TECHNICAL SPECS
   ========================================================= */

.vw-spec-variant {
    margin: 0 0 5px;

    color: var(--vw-muted);
}


.vw-spec-accordion {
    border-top:
        1px solid
        var(--vw-border);
}


.vw-spec-group {
    border-bottom:
        1px solid
        var(--vw-border);
}


.vw-spec-group summary,
.vw-feature summary {
    list-style: none;

    cursor: pointer;
}


.vw-spec-group summary::-webkit-details-marker,
.vw-feature summary::-webkit-details-marker {
    display: none;
}


.vw-spec-group summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 2px;

    font-size: 19px;
    font-weight: 700;
}


.vw-spec-group summary i,
.vw-feature summary i {
    position: relative;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;
}


.vw-spec-group summary i::before,
.vw-spec-group summary i::after,
.vw-feature summary i::before,
.vw-feature summary i::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    background: var(--vw-blue);

    transform:
        translate(
            -50%,
            -50%
        );
}


.vw-spec-group summary i::before,
.vw-feature summary i::before {
    width: 16px;
    height: 1px;
}


.vw-spec-group summary i::after,
.vw-feature summary i::after {
    width: 1px;
    height: 16px;
}


.vw-spec-group[open] summary i::after,
.vw-feature[open] summary i::after {
    opacity: 0;
}


.vw-spec-table {
    padding-bottom: 20px;
}


.vw-spec-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(220px, 1fr);

    gap: 28px;

    padding: 13px 2px;

    border-top:
        1px solid
        #edf0f2;
}


.vw-spec-row span {
    color: var(--vw-muted);
}


.vw-spec-row strong {
    text-align: right;
}



/* =========================================================
   15. CONTENT SECTIONS
   50 / 50 DESKTOP
   ========================================================= */

.vw-content-section:nth-of-type(odd) {
    background: var(--vw-soft-2);
}


.vw-content-section__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap:
        clamp(
            36px,
            4vw,
            64px
        );

    align-items: center;
}


/* Reverse section:
   chỉ đổi vị trí, không đổi tỷ lệ */

.vw-content-section.is-reverse
.vw-section-media {
    order: 2;
}


.vw-content-section.is-reverse
.vw-content-section__content {
    order: 1;
}


/* Nếu section không có ảnh */

.vw-content-section__grid.is-text-only {
    grid-template-columns:
        minmax(0, 760px);
}


.vw-content-section__content h2 {
    margin: 0 0 18px;

    font-size:
        clamp(
            32px,
            3.5vw,
            50px
        );

    line-height: 1.08;

    letter-spacing: -.03em;
}



/* =========================================================
   16. SECTION STATIC IMAGE
   ========================================================= */

.vw-section-static-image {
    margin: 0;

    background: #eef1f4;
}


.vw-section-static-image img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}



/* =========================================================
   17. SECTION SLIDER
   ========================================================= */

.vw-section-slider {
    position: relative;

    overflow: visible;

    /*
     * Space for dots below image.
     * Arrows stay horizontally outside image.
     */
    margin-bottom: 26px;
}


.vw-section-slider__viewport {
    position: relative;

    overflow: hidden;

    background: #eef1f4;

    cursor: grab;

    touch-action: pan-y;

    user-select: none;
    -webkit-user-select: none;
}


.vw-section-slider.is-dragging
.vw-section-slider__viewport {
    cursor: grabbing;
}


.vw-section-slider__track {
    display: flex;

    transform:
        translate3d(
            0,
            0,
            0
        );

    transition:
        transform
        .42s
        cubic-bezier(
            .22,
            .61,
            .36,
            1
        );

    will-change: transform;
}


.vw-section-slider.is-dragging
.vw-section-slider__track {
    transition: none;
}


.vw-section-slide {
    position: relative;

    flex: 0 0 100%;

    min-width: 100%;

    margin: 0;

    overflow: hidden;

    background: #eef1f4;
}


.vw-section-slide img {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    object-fit: cover;
}



/* =========================================================
   18. SECTION SLIDER ARROWS
   Arrow nằm ngoài rìa ảnh
   ========================================================= */

.vw-section-slider__controls {
    position: absolute;

    inset: 0;

    z-index: 5;

    pointer-events: none;
}


.vw-slider-arrow {
    position: absolute;

    top: 50%;

    display: grid;

    width: 42px;
    height: 42px;

    padding: 0;

    place-items: center;

    border:
        1px solid
        #e0e5e9;

    border-radius: 50%;

    background: #fff;

    color: var(--vw-blue);

    box-shadow:
        0 5px 16px
        rgba(
            0,
            30,
            80,
            .12
        );

    cursor: pointer;

    pointer-events: auto;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


/* Left */

.vw-slider-arrow--prev {
    left: 0;

    transform:
        translate(
            -50%,
            -50%
        );
}


/* Right */

.vw-slider-arrow--next {
    right: 0;

    transform:
        translate(
            50%,
            -50%
        );
}


/* Hover left */

.vw-slider-arrow--prev:hover {
    background: #fff;

    box-shadow:
        0 7px 20px
        rgba(
            0,
            30,
            80,
            .17
        );

    transform:
        translate(
            -50%,
            -50%
        )
        scale(1.05);
}


/* Hover right */

.vw-slider-arrow--next:hover {
    background: #fff;

    box-shadow:
        0 7px 20px
        rgba(
            0,
            30,
            80,
            .17
        );

    transform:
        translate(
            50%,
            -50%
        )
        scale(1.05);
}


/* Click */

.vw-slider-arrow--prev:active {
    transform:
        translate(
            -50%,
            -50%
        )
        scale(.96);
}


.vw-slider-arrow--next:active {
    transform:
        translate(
            50%,
            -50%
        )
        scale(.96);
}


/* Arrow icon */

.vw-slider-arrow svg {
    display: block;

    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =========================================================
   19. SECTION SLIDER DOTS
   Small round dots
   ========================================================= */

.vw-slider-dots {
    position: absolute;

    bottom: -20px;
    left: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0;

    border: 0;

    background: transparent;

    box-shadow: none;

    transform:
        translateX(-50%);

    pointer-events: auto;
}


.vw-slider-dot {
    display: block;

    width: 6px;
    height: 6px;

    min-width: 6px;
	min-height:6px;
    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background: #b7bcc2;

    cursor: pointer;

    transition:
        background-color .18s ease,
        transform .18s ease;
}


.vw-slider-dot:hover {
    background: #71767c;
}


.vw-slider-dot.is-active {
    width: 6px;
    height: 6px;
	min-height:6px;
    background: #111;

    transform: scale(1.15);
}


.vw-slider-arrow:focus-visible,
.vw-slider-dot:focus-visible {
    outline:
        2px solid
        var(--vw-blue);

    outline-offset: 3px;
}



/* =========================================================
   20. CONTENT FEATURES
   ========================================================= */

.vw-feature-list {
    margin-top: 28px;

    border-top:
        1px solid
        var(--vw-border);
}


.vw-feature {
    border-bottom:
        1px solid
        var(--vw-border);
}


.vw-feature summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 18px 0;

    font-weight: 700;
}


.vw-feature__body {
    padding: 0 0 22px;
}



/* =========================================================
   21. RELATED VEHICLES - HORIZONTAL SLIDER
   ========================================================= */

.vw-related {
    background: var(--vw-soft);
}


.vw-related__heading {
    align-items: flex-end;
}


.vw-related-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}


.vw-related-nav__button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--vw-border);
    border-radius: 50%;
    background: #fff;
    color: var(--vw-blue);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        opacity .18s ease,
        transform .18s ease;
}


.vw-related-nav__button:hover:not(:disabled) {
    border-color: var(--vw-blue);
    background: var(--vw-blue);
    color: #fff;
    transform: translateY(-1px);
}


.vw-related-nav__button:disabled {
    opacity: .32;
    cursor: default;
}


.vw-related-nav__button:focus-visible {
    outline: 2px solid var(--vw-blue);
    outline-offset: 3px;
}


.vw-related-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}


.vw-related-slider::-webkit-scrollbar {
    display: none;
}


.vw-related-slider__track {
    display: flex;
    align-items: stretch;
    gap: 18px;
}


.vw-related .vw-car-card {
    display: flex;
    min-width: 0;
    flex: 0 0 calc((100% - 54px) / 4);
    flex-direction: column;
    scroll-snap-align: start;
    border: 1px solid var(--vw-border);
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.vw-related .vw-car-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px
        rgba(
            0,
            30,
            80,
            .08
        );
}


.vw-related .vw-car-card__media {
    display: grid;
    min-height: 210px;
    place-items: center;
    overflow: hidden;
    background: #fff;
}


.vw-related .vw-car-card__media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
}


.vw-related .vw-car-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}


.vw-related .vw-car-card h2 {
    margin: 0 0 6px;
    font-size: 21px;
}


.vw-related .vw-car-card h2 a {
    color: inherit;
    text-decoration: none;
}


.vw-related .vw-car-card__subtitle {
    margin: 0 0 16px;
    color: var(--vw-muted);
    font-size: 14px;
}


.vw-related .vw-car-card__meta {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}


.vw-related .vw-car-card__meta span {
    color: var(--vw-muted);
    font-size: 13px;
}


.vw-related .vw-car-card__meta strong {
    color: var(--vw-blue);
    font-size: 14px;
}


.vw-related .vw-car-card__link {
    margin-top: auto;
    color: var(--vw-blue);
    font-weight: 700;
    text-decoration: none;
}



/* =========================================================
   CLIENT REVISION - PRODUCT DETAIL
   ========================================================= */

/* Current variant: highlighted and kept on one line. */
.vw-current-variant-label {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: var(--vw-soft);
    white-space: nowrap;
}

.vw-current-variant-label strong {
    color: var(--vw-blue);
}

/* New order is variant -> vehicle image -> price -> colors -> highlights. */
.vw-price {
    margin-top: 24px;
}

.vw-colors {
    margin-top: 22px;
}

.vw-highlights {
    margin: 26px 0 0;
}

/* Make the selected color name easier to scan and avoid awkward wrapping. */
.vw-mini-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--vw-soft);
    color: #4f5963;
    white-space: nowrap;
}

/* Brochure actions: test-drive scroll + configurable Zalo OA link. */
.vw-side-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--vw-border);
}

.vw-brochure-content.is-hidden + .vw-side-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.vw-button--outline {
    background: #fff;
    color: var(--vw-blue);
}

.vw-button--outline:hover {
    background: var(--vw-soft);
    color: var(--vw-blue);
}

/* Main gallery: layouts adapt to 1-4 visible images and leave no empty cell. */
.vw-gallery-grid--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(420px, 58vw);
    min-height: 0;
}

.vw-gallery-grid--count-1 .vw-gallery-item--1 {
    grid-row: auto;
}

.vw-gallery-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(360px, 520px);
    min-height: 0;
}

.vw-gallery-grid--count-2 .vw-gallery-item--1 {
    grid-row: auto;
}

.vw-gallery-grid--count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, minmax(220px, 1fr));
    min-height: 550px;
}

.vw-gallery-grid--count-3 .vw-gallery-item--1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.vw-gallery-grid--count-3 .vw-gallery-item--2 {
    grid-column: 2;
    grid-row: 1;
}

.vw-gallery-grid--count-3 .vw-gallery-item--3 {
    grid-column: 2;
    grid-row: 2;
}

.vw-gallery-grid--count-4 {
    grid-template-columns: 1.2fr .8fr 1fr;
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    min-height: 550px;
}

.vw-gallery-grid--count-4 .vw-gallery-item--1 {
    grid-column: 1 / 3;
    grid-row: 1;
}

.vw-gallery-grid--count-4 .vw-gallery-item--2 {
    grid-column: 3;
    grid-row: 1;
}

.vw-gallery-grid--count-4 .vw-gallery-item--3 {
    grid-column: 1;
    grid-row: 2;
}

.vw-gallery-grid--count-4 .vw-gallery-item--4 {
    grid-column: 2 / 4;
    grid-row: 2;
}

.vw-test-drive-section {
    scroll-margin-top: calc(var(--vw-sticky-offset) + 84px);
}


/* =========================================================
   22. TEST DRIVE UX BLOCK
   ========================================================= */

.vw-test-drive-section {
    background: #fff;
}



/* =========================================================
   TABLET
   <= 1024px
   ========================================================= */

@media (max-width: 1024px) {

    .vw-vehicle-detail {
        --vw-section-space: 72px;
    }


    /* Configurator */

    .vw-product-configurator__grid {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(270px, .9fr);
    }


    /* Content section stays 50 / 50 */

    .vw-content-section__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 42px;
    }


    .vw-content-section__content h2 {
        font-size:
            clamp(
                30px,
                4vw,
                42px
            );
    }


    /* Slider */

    .vw-slider-arrow {
        width: 40px;
        height: 40px;
    }


    .vw-slider-arrow svg {
        width: 17px;
        height: 17px;
    }


    /* Related */

    .vw-related .vw-car-card {
        flex-basis: calc((100% - 18px) / 2);
    }

}



/* =========================================================
   MOBILE
   <= 767px
   ========================================================= */

@media (max-width: 767px) {

    .vw-vehicle-detail {
        --vw-section-space: 56px;
    }


    .vw-container {
        width:
            min(
                calc(100% - 28px),
                var(--vw-max)
            );
    }



    /* =====================================================
       Mobile Nav
       ===================================================== */

    .vw-product-nav__inner {
        width: 100%;

        padding-inline: 14px;

        gap: 24px;
    }



    /* =====================================================
       Mobile Configurator
       ===================================================== */

    .vw-product-configurator__grid {
        grid-template-columns: 1fr;
    }


    .vw-product-sidebar {
        position: static;
    }


    .vw-panel {
        padding: 20px;
    }


    .vw-variant-list {
        grid-template-columns: 1fr;
    }


    .vw-variant-card {
        grid-template-columns:
            100px 1fr;

        min-height: 102px;
    }


    .vw-vehicle-preview {
        min-height: 235px;
    }



    /* =====================================================
       Mobile Generic Heading
       ===================================================== */

    .vw-section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 16px;

        margin-bottom: 24px;
    }



    /* =====================================================
       Mobile Main Gallery
       ===================================================== */

    .vw-gallery-grid {
        display: flex;

        min-height: 0;

        gap: 8px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;
    }


    .vw-gallery-grid::-webkit-scrollbar {
        display: none;
    }


    .vw-gallery-item,
    .vw-gallery-item--1 {
        flex: 0 0 88%;

        height: 280px;

        grid-row: auto;

        scroll-snap-align: start;
    }



    /* =====================================================
       Mobile Specs
       ===================================================== */

    .vw-spec-row {
        grid-template-columns: 1fr;

        gap: 5px;
    }


    .vw-spec-row strong {
        text-align: left;
    }



    /* =====================================================
       Mobile Content Section
       Image always above text
       ===================================================== */

    .vw-content-section__grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .vw-content-section.is-reverse
    .vw-section-media,
    .vw-section-media {
        order: 0;
    }


    .vw-content-section.is-reverse
    .vw-content-section__content,
    .vw-content-section__content {
        order: 1;
    }


    .vw-content-section__content h2 {
        font-size:
            clamp(
                30px,
                9vw,
                40px
            );
    }



    /* =====================================================
       Mobile Slider
       Keep arrows inside slightly to avoid viewport overflow
       ===================================================== */

    .vw-section-slider {
        margin-bottom: 24px;
    }


    .vw-slider-arrow {
        width: 38px;
        height: 38px;
    }


    .vw-slider-arrow--prev {
        left: 10px;

        transform:
            translate(
                0,
                -50%
            );
    }


    .vw-slider-arrow--next {
        right: 10px;

        transform:
            translate(
                0,
                -50%
            );
    }


    .vw-slider-arrow--prev:hover {
        transform:
            translate(
                0,
                -50%
            )
            scale(1.04);
    }


    .vw-slider-arrow--next:hover {
        transform:
            translate(
                0,
                -50%
            )
            scale(1.04);
    }


    .vw-slider-arrow--prev:active {
        transform:
            translate(
                0,
                -50%
            )
            scale(.96);
    }


    .vw-slider-arrow--next:active {
        transform:
            translate(
                0,
                -50%
            )
            scale(.96);
    }


    .vw-slider-arrow svg {
        width: 16px;
        height: 16px;
    }


    .vw-slider-dots {
        bottom: -18px;

        gap: 7px;
    }


    .vw-slider-dot,
    .vw-slider-dot.is-active {
        width: 5px;
        height: 5px;

        min-width: 5px;
    }



    /* =====================================================
       Mobile Related
       ===================================================== */

    .vw-related__heading {
        flex-direction: row;
        align-items: flex-end;
    }

    .vw-related__heading > div:first-child {
        min-width: 0;
    }

    .vw-related__heading h2 {
        font-size: clamp(28px, 9vw, 38px);
    }

    .vw-related-nav {
        gap: 8px;
    }

    .vw-related-nav__button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .vw-related-slider__track {
        gap: 14px;
    }

    .vw-related .vw-car-card {
        flex-basis: 84%;
    }

    .vw-related .vw-car-card__media,
    .vw-related .vw-car-card__media img {
        height: 190px;
        min-height: 190px;
    }



    /* =====================================================
       Mobile Lightbox
       ===================================================== */

    .vw-lightbox {
        padding:
            54px
            12px
            46px;
    }


    .vw-lightbox__prev,
    .vw-lightbox__next {
        top: auto;
        bottom: 15px;
    }


    .vw-lightbox__prev {
        left: 18px;
    }


    .vw-lightbox__next {
        right: 18px;
    }


    .vw-lightbox__counter {
        right: 50%;
        bottom: 26px;

        transform:
            translateX(50%);
    }

}