/* VinFast Product V3 - gallery thuần JS; scoped để không ảnh hưởng slider trang khác */
[data-vfe-vehicle-page] .vf-gallery{min-width:0;max-width:100%;position:sticky;top:calc(var(--vfe-header-height,80px) + 16px)}
.vf-gallery *, .vf-gallery *::before, .vf-gallery *::after{box-sizing:border-box}
.vf-gallery__stage{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(155deg,#f5f8fb,#fff 60%);border:1px solid #e2e9ef;border-radius:0px;box-shadow:0 12px 36px rgba(8,44,67,.07);touch-action:pan-y;outline-offset:4px}
.vf-gallery__track{display:flex;align-items:stretch;width:100%;transition:transform .48s cubic-bezier(.22,.78,.24,1);will-change:transform}
.vf-gallery__slide{
    flex:0 0 100%;
    min-width:0;
    /*aspect-ratio:16/10;*/
    display:grid;
    place-items:center;
    overflow:hidden
    
}
.vf-gallery__slide img{display:block;width:100%;height:100%;max-height:580px;object-fit:contain;padding:0px;user-select:none;-webkit-user-drag:none}
.vf-gallery__arrow,.vf-gallery__zoom{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(205,222,230,.9);background:rgba(255,255,255,.94);color:#0b4d54;box-shadow:0 5px 20px rgba(11,58,68,.12);cursor:pointer;transition:background .2s,transform .2s}
.vf-gallery__arrow{top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;font-size:18px}
.vf-gallery__arrow--prev{left:12px}.vf-gallery__arrow--next{right:12px}
.vf-gallery__arrow:hover{background:#e4f6f2;transform:translateY(-50%) scale(1.05)}
.vf-gallery__arrow:disabled{opacity:.32;cursor:not-allowed;transform:translateY(-50%)}
.vf-gallery__zoom{right:12px;bottom:12px;width:38px;height:38px;border-radius:11px;font-size:24px}
.vf-gallery__zoom:hover{background:#e4f6f2}
.vf-gallery__counter{position:absolute;z-index:2;left:14px;bottom:16px;background:rgba(10,57,65,.78);color:#fff;padding:5px 12px;border-radius:100px;font:700 12px/1.5 system-ui,sans-serif}
.vf-gallery__thumbs{display:flex;gap:9px;margin-top:12px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:2px 2px 8px;scroll-snap-type:x proximity}
.vf-gallery__thumb {
    flex: 0 0 98px;
    width: 100%;
    height: auto;
    padding: 0px;
    border: 2px solid transparent;
    border-radius: 0px;
    background: #f2f6f7;
    opacity: .72;
    cursor: pointer;
    scroll-snap-align: start;
    transition: opacity .2s, border-color .2s, background .2s;
}
.vf-gallery__thumb[aria-current="true"]{opacity:1;border-color:#109786;background:#eaf8f4}
.vf-gallery__thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0px}
.vf-gallery button:focus-visible{outline:3px solid #0b8c80;outline-offset:3px}
[data-vfe-vehicle-page] .vfe_vehicle_hero_grid{min-width:0}
[data-vfe-vehicle-page] .vfe_vehicle_summary{min-width:0}
[data-vfe-vehicle-page] .vfe_vehicle_price_box strong{overflow-wrap:anywhere}
[data-vfe-vehicle-page] .vfe_specs_panel[hidden]{display:none!important}
@media(max-width:1100px){[data-vfe-vehicle-page] .vfe_vehicle_hero_grid{gap:24px;grid-template-columns:minmax(0,1.15fr) minmax(310px,1fr)}}
@media(max-width:800px){[data-vfe-vehicle-page] .vfe_vehicle_hero_grid{grid-template-columns:minmax(0,1fr)}[data-vfe-vehicle-page] .vf-gallery{position:static}
.vf-gallery__slide{
    /*aspect-ratio:16/10*/
    
}.vf-gallery__thumb{flex-basis:84px;width:84px;height:62px}}
@media(max-width:480px){.vf-gallery__stage{border-radius:0px}.vf-gallery__slide{aspect-ratio:4/3}.vf-gallery__slide img{padding:10px}.vf-gallery__arrow{width:36px;height:36px}.vf-gallery__arrow--prev{left:7px}.vf-gallery__arrow--next{right:7px}.vf-gallery__thumb{flex-basis:72px;width:72px;height:54px}.vf-gallery__counter{left:9px;bottom:10px}.vf-gallery__zoom{right:9px;bottom:9px}}
@media(prefers-reduced-motion:reduce){.vf-gallery__track,.vf-gallery__thumb,.vf-gallery__arrow{transition:none!important}}


/* Fullscreen image gallery V3.1 */
.vfe_card_gallery_modal[hidden]{display:none!important}
.vfe_card_gallery_modal{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:clamp(8px,2vw,24px);background:rgba(4,18,25,.94);color:#fff;overscroll-behavior:contain}
.vfe_card_gallery_shell{width:min(1440px,100%);height:min(900px,100%);display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;gap:12px}
.vfe_card_gallery_top,.vfe_card_gallery_bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px}
.vfe_card_gallery_top strong{font:700 clamp(15px,2vw,20px)/1.4 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vfe_card_gallery_close,.vfe_card_gallery_nav{border:1px solid rgba(255,255,255,.28);color:#fff;background:rgba(255,255,255,.12);display:grid;place-items:center;cursor:pointer;transition:background .18s ease,transform .18s ease}
.vfe_card_gallery_close:hover,.vfe_card_gallery_nav:hover{background:rgba(255,255,255,.24)}
.vfe_card_gallery_close{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.vfe_card_gallery_close svg,.vfe_card_gallery_nav svg{width:24px;height:24px}
.vfe_card_gallery_stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden;touch-action:pan-y}
.vfe_card_gallery_stage>img{width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.vfe_card_gallery_nav{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%}
.vfe_card_gallery_prev{left:clamp(4px,2vw,24px)}.vfe_card_gallery_next{right:clamp(4px,2vw,24px)}
.vfe_card_gallery_nav:hover{transform:translateY(-50%) scale(1.05)}
.vfe_card_gallery_nav[hidden]{display:none!important}
.vfe_card_gallery_bottom{font:500 13px/1.5 system-ui,sans-serif;color:#d7e6e8}
.vfe_card_gallery_modal button:focus-visible{outline:3px solid #65dfc8;outline-offset:3px}
@media(max-width:600px){.vfe_card_gallery_modal{padding:10px}.vfe_card_gallery_shell{height:100%;gap:8px}.vfe_card_gallery_nav{width:38px;height:38px}.vfe_card_gallery_nav svg{width:20px;height:20px}.vfe_card_gallery_bottom span:last-child{font-size:11px}}
@media(prefers-reduced-motion:reduce){.vfe_card_gallery_modal *{transition:none!important}}
