/* Reference-inspired carousel movement from Quân Khang, with a bespoke
   Thành Doanh customer gallery heading. */
.page-home .featured-products--with-showcase { padding-bottom: 48px; }
.page-home .home-photo-rail { padding: 0 0 52px; background: #f7f5f1; }
.page-home .home-photo-rail .design-craft__showcase { max-width: 1420px; position: relative; z-index: 1; }
/* Editorial heading: understated showroom typography, warm metallic accents. */
.page-home .home-photo-rail__heading {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0;
    text-align: center;
    max-width: 100%;
    margin: 0 auto clamp(10px, 2.8vw, 10px);
    padding: 4px 8px 0;
    transform: translateZ(0);
}
.page-home .home-photo-rail__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 20px);
    color: #997340;
    font-size: clamp(9px, .82vw, 11px);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.page-home .home-photo-rail__eyebrow-rule {
    display: block;
    width: clamp(25px, 4.7vw, 65px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 128, 72, .58));
}
.page-home .home-photo-rail__eyebrow-rule:last-child { transform: rotate(180deg); }
.page-home .home-photo-rail__title {
    margin: clamp(5px, 1.3vw, 6px) 0 0;
    color: #171a1d;
    font-family: inherit;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 650;
    font-style: normal;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.page-home .home-photo-rail__title > span:first-child { white-space: nowrap; }
.page-home .home-photo-rail__amp {
    display: inline-block;
    margin: 0 .06em;
    color: #be995b;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    line-height: 1;
}
.page-home .home-photo-rail__title > em {
    color: #a67c42;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}
.page-home .home-photo-rail__signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(10px, 1.5vw, 10px);
}
.page-home .home-photo-rail__signature > span {
    display: block;
    width: clamp(34px, 4.6vw, 62px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #bd9a5e);
}
.page-home .home-photo-rail__signature > span:last-child { transform: rotate(180deg); }
.page-home .home-photo-rail__signature > i {
    display: block;
    width: 5px;
    height: 5px;
    border: 1px solid #b99356;
    transform: rotate(45deg);
}
/* Reveal only when the title enters the viewport. Without JS it stays visible. */
@media (prefers-reduced-motion: no-preference) {
    .page-home .home-photo-rail__heading.is-motion-ready {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
    }
    .page-home .home-photo-rail__heading.is-motion-ready.is-in-view {
        opacity: 1;
        transform: translateY(0);
    }
    .page-home .home-photo-rail__heading.is-in-view .home-photo-rail__signature {
        animation: home-photo-signature-reveal 1.1s .28s both ease-out;
    }
    @keyframes home-photo-signature-reveal {
        from { opacity: 0; transform: scaleX(.65); }
        to { opacity: 1; transform: scaleX(1); }
    }
}

.page-home .home-photo-rail .design-craft__panels,
.page-home .home-photo-rail .design-craft__panel { border-radius: 0 !important; }
.page-home .design-craft__panels {
    display: flex;
    align-items: stretch;
    gap: 11px;
    width: 100%;
    height: clamp(370px, 35vw, 520px);
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;
}
.page-home .design-craft__panel {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 6%;
    min-width: 0;
    height: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none;
    background: #30302c;
    color: #fff;
    cursor: pointer;
    text-align: left;
    backface-visibility: hidden;
    will-change: transform, flex-basis;
    transform-origin: center center;
    transition: flex-basis .82s cubic-bezier(.18, .86, .24, 1), filter .42s ease, opacity .42s ease;
}
.page-home .design-craft__panels.is-measuring .design-craft__panel { transition: none !important; }
.page-home .design-craft__panel[data-position="0"] { flex-basis: calc(63% - 33px); z-index: 4; }
.page-home .design-craft__panel[data-position="1"] { flex-basis: 18%; z-index: 3; }
.page-home .design-craft__panel[data-position="2"] { flex-basis: 11%; z-index: 2; }
.page-home .design-craft__panel[data-position="3"] { flex-basis: 8%; z-index: 1; }
.page-home .design-craft__panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: scale(1.055);
    transition: transform .84s cubic-bezier(.18, .86, .24, 1), filter .48s ease, opacity .48s ease;
}
.page-home .design-craft__panel.is-active img {
    filter: none;
    transform: scale(1);
}
.page-home .design-craft__panel:not(.is-active):hover img,
.page-home .design-craft__panel:not(.is-active):focus-visible:where(html:not([data-input-modality="pointer"]) *) img {
    transform: scale(1.08);
    filter: none;
}
.page-home .design-craft__panel:focus-visible:where(html:not([data-input-modality="pointer"]) *) { outline: 3px solid #edc779; outline-offset: -3px; }
.page-home .design-craft__panel-shade {
    display: none;
}
.page-home .design-craft__panel-index {
    position: absolute;
    top: 19px;
    left: 19px;
    color: #f3cb7c;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .1em;
    opacity: 0.6;
}
.page-home .design-craft__panel-copy {
    position: absolute;
    left: clamp(18px, 2.5vw, 34px);
    bottom: clamp(20px, 2.5vw, 34px);
    display: grid;
    gap: 2px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .34s ease, transform .56s cubic-bezier(.18, .86, .24, 1);
}
.page-home .design-craft__panel.is-active .design-craft__panel-copy {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .22s;
}
.page-home .design-craft__panel-copy > span {
    color: #f1cc84;
    font-size: 12px;
    font-weight: 400;
}
.page-home .design-craft__panel-copy > strong {
    font-size: 16px;
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.18px;
}

.page-home .design-craft__panels.is-stripe-ready {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel {
    position: absolute;
    inset-block-start: 0;
    right: auto;
    flex: none !important;
    height: 100%;
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateZ(0);
    transition: none !important;
    contain: layout style paint;
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel[data-position] {
    flex-basis: auto !important;
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel img {
    width: 100%;
    height: 100%;
    transform: scale(1.025);
    transition: transform 1.05s cubic-bezier(.22,.76,.18,1), filter .65s ease;
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel.is-active img {
    transform: scale(1);
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel:not(.is-active):hover img {
    transform: scale(1.045);
}
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel[data-position="4"],
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel[data-position="5"],
.page-home .design-craft__panels.is-stripe-ready .design-craft__panel[data-position="6"] {
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .page-home .design-craft__panels.is-stripe-ready .design-craft__panel,
    .page-home .design-craft__panels.is-stripe-ready .design-craft__panel img {
        transition: none !important;
        animation: none !important;
    }
}


/* Preserve the reference rail proportions on desktop/tablet/mobile. */
@media (max-width: 980px) {
    .page-home .home-photo-rail .design-craft__panels { gap: 9px; height: clamp(355px, 48vw, 480px); }
}
@media (max-width: 760px) {
    .page-home .featured-products--with-showcase { padding-bottom: 25px; }
    .page-home .home-photo-rail { padding-bottom: 28px; }
    /* Căn slider đều hai bên như các khối xe/video trong Home mobile. */
    .page-home .home-photo-rail .container { width: min(calc(100% - 20px), var(--container)); margin-inline: auto; }
    .page-home .home-photo-rail .design-craft__panels { height: clamp(230px, 53vw, 410px); gap: 5px; }
    .page-home .home-photo-rail .design-craft__panel-index { top: 8px; left: 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .page-home .home-photo-rail .design-craft__panel,
    .page-home .home-photo-rail .design-craft__panel img { transition: none !important; animation: none !important; }
}

.page-home .home-photo-rail .design-craft__panel {
    font: inherit; padding: 0; border: 0; -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none; user-select: none;
}
.page-home .home-photo-rail .design-craft__panel-index { pointer-events: none; }
.page-home .home-photo-rail .design-craft__panel-shade { pointer-events: none; }
.page-home .home-photo-rail .design-craft__panels:not(.is-stripe-ready) > .design-craft__panel:nth-child(n+8) { display:none; }
@media (max-width: 760px) {
    .page-home .home-photo-rail .design-craft__panels:not(.is-stripe-ready) > .design-craft__panel:nth-child(n+5) { display:none; }
}

@media (max-width: 760px) {
    .page-home .home-photo-rail__heading { margin-bottom: 12px; padding: 0 2px; }
    .page-home .home-photo-rail__eyebrow { gap: 9px; font-size: 9px; letter-spacing: .14em;        margin-top: 12px; }
    .page-home .home-photo-rail__eyebrow-rule { width: 19px; }
    .page-home .home-photo-rail__title { margin-top: 0px; font-size: 18px; line-height: 1.45; letter-spacing: -.02em; }
    .page-home .home-photo-rail__title > em { display: inline-block; font-size: inherit; }
    .page-home .home-photo-rail__signature { margin-top: 10px; }
}

.page-home .home-photo-rail [data-home-rail-vehicle][hidden] { display: none; }
.page-home .home-photo-rail__vehicle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(10px, 1.6vw, 22px);
    padding: clamp(14px, 2vw, 24px) 0 0;
    color: #171a1d;
}
.page-home .home-photo-rail__vehicle-logo {
    display: grid;
    place-items: center;
    width: clamp(42px, 6vw, 66px);
    aspect-ratio: 1;
    padding: 6px;
    background: #b7bec0;
    color: #997340;
}
.page-home .home-photo-rail__vehicle-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.page-home .home-photo-rail__vehicle-brand {
    display: block;
    color: #886433;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}
.page-home .home-photo-rail__vehicle-name {
    margin: 0px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.page-home .home-photo-rail__vehicle-name a { color: inherit; }
.page-home .home-photo-rail__vehicle-name a:hover,
.page-home .home-photo-rail__vehicle-name a:focus-visible:where(html:not([data-input-modality="pointer"]) *) { color: #886433; }
.page-home .home-photo-rail__vehicle-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 9px;
    margin: 0px 0 0;
    color: #64605b;
    font-size: 12.8px;
}
.page-home .home-photo-rail__vehicle-price strong {
    color: var(--red, #b42c24);
    font-size: clamp(15px, 1.5vw, 19px);
}
.page-home .home-photo-rail__vehicle--overlay { display: none; }

@media (width > 760px) {
    .page-home .home-photo-rail [data-home-rail-vehicle] { display: none; }
    .page-home .home-photo-rail .design-craft__panel.is-active .home-photo-rail__vehicle--overlay {
        display: grid;
        position: absolute;
        z-index: 1;
        inset: auto 0 0;
        align-items: center;
        padding: clamp(46px, 6vw, 86px) clamp(16px, 2vw, 30px) clamp(15px, 1.8vw, 26px);
        background: linear-gradient(to top, rgb(8 10 13 / .78), rgb(8 10 13 / .56) 56%, transparent);
        color: #fff;
        pointer-events: none;
    }
    .page-home .home-photo-rail__vehicle--overlay .home-photo-rail__vehicle-logo {
        width: clamp(42px, 4.2vw, 58px);
        background: rgb(245 243 238 / .9);
    }
    .page-home .home-photo-rail .design-craft__panel .home-photo-rail__vehicle-logo img {
        object-fit: contain;
        transform: none;
    }
    .page-home .home-photo-rail__vehicle--overlay .home-photo-rail__vehicle-brand { color: #ffdda4; }
    .page-home .home-photo-rail__vehicle--overlay .home-photo-rail__vehicle-name {
        display: block;
        font-size: 16px;
    }
    .page-home .home-photo-rail__vehicle--overlay .home-photo-rail__vehicle-price { color: #f3efeb; }
    .page-home .home-photo-rail__vehicle--overlay .home-photo-rail__vehicle-price strong { color: #ffada3; }
}

@media (max-width: 760px) {
    .page-home .home-photo-rail__vehicle-name {
        font-size: 15px;
    }
}

