.cs-swiper {
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: 0;
    /* Đủ cao để chứa ảnh xe — Omoda không set min-height ở đây */
}

/* ─── Slide ─── */
.cs-slide {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

/* ─── Image wrapper ─── */
.cs-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    z-index: 2;
    will-change: opacity, transform;
	padding-left:12px !important;
	padding-right:12px !important;
}

/* ─── First load: xe trượt vào chậm dần ─── */
.cs-image-wrapper.cs-load-ready {
    opacity: 0;
    transform: translateX(500px);
}

.cs-image-wrapper.cs-load-enter {
    animation: cs-car-load-in 1.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cs-car-load-in {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Ảnh thân xe ─── */
.cs-car-body {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    /* color:transparent — kỹ thuật của Next.js/Omoda để ẩn alt text khi load */
    color: transparent;

    /* Ép render trên GPU để chống chớp (flicker) */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* ─── Wheels wrapper ─── */
.cs-wheels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

/* ─── Bánh xe chung ─── */
.cs-wheel {
    position: absolute;
    /* width được set inline từ PHP (wheel_size %) */
    height: auto;
    transform-origin: center center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* ─── Spin animations (slider_wheelAnim 1.3s) ─── */
@keyframes cs-spin-forward {
    to {
        transform: rotate(-1turn);
    }
}

@keyframes cs-spin-backward {
    to {
        transform: rotate(1turn);
    }
}

.cs-wheels.spinning-forward .cs-wheel,
.cs-wheels.spinning-load .cs-wheel {
    animation: cs-spin-forward 1.3s;
}

.cs-wheels.spinning-backward .cs-wheel {
    animation: cs-spin-backward 1.3s;
}