/**
 * MG QUẢNG TRỊ - SINGLE CAR MODEL STYLESHEET (REDESIGNED)
 * Lấy cảm hứng từ chuẩn thiết kế quốc tế https://mgmotor.vn/
 * 
 * @package MG_QuangTri
 * @version 1.3.0
 */

/* ==========================================================================
   1. STICKY SUBNAV BAR (CỐ ĐỊNH ĐỈNH KHI CUỘN)
   ========================================================================== */
.mg-sticky-subnav {
    position: sticky;
    top: 76px;
    z-index: 990;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    padding: 12px 0;
    transition: all 0.25s ease;
}

.mg-sticky-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mg-sticky-car-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.mg-sticky-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.mg-sticky-price {
    font-size: 0.88rem;
    color: #64748b;
}

.mg-sticky-price strong {
    color: #dc2626;
    font-size: 1.05rem;
    font-weight: 800;
}

.mg-sticky-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mg-sticky-nav-links a {
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    position: relative;
    padding: 6px 4px;
    transition: color 0.2s ease;
}

.mg-sticky-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.2s ease;
}

.mg-sticky-nav-links a:hover,
.mg-sticky-nav-links a.is-active {
    color: #dc2626;
}

.mg-sticky-nav-links a:hover::after,
.mg-sticky-nav-links a.is-active::after {
    width: 100%;
}

/* ==========================================================================
   2. CAR SINGLE HERO (STUDIO STAGE 360 & DUAL SHOWCASE - block-banner--product)
   ========================================================================== */
.mg-car-hero-section {
    position: relative;
    padding: 50px 0 70px;
    background: radial-gradient(circle at 65% 35%, #182234 0%, #0c121d 55%, #07090e 100%);
    color: #ffffff;
    border-bottom: 2px solid rgba(214, 0, 28, 0.4);
    overflow: hidden;
}

/* Atmospheric Lighting & Visual Depth */
.mg-hero-spotlight {
    position: absolute;
    top: -100px;
    right: 8%;
    width: 700px;
    height: 520px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.mg-hero-ambient-glow {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 650px;
    height: 550px;
    background: radial-gradient(circle, rgba(214, 0, 28, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.mg-hero-bg-watermark {
    position: absolute;
    top: 5%;
    right: -2%;
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(6rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
    color: transparent;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.mg-hero-emblem-watermark {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 320px;
    height: 320px;
    background: url("../images/mg-emblem-official.svg") no-repeat center / contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    filter: invert(1);
}

/* ==========================================================================
   2. CAR SINGLE HERO (CINEMA GRAND STAGE - block-banner--product)
   ========================================================================== */
.mg-car-hero-section.mg-hero-grand-stage {
    position: relative;
    padding: 16px 0 24px;
    background: radial-gradient(ellipse at 50% 65%, #182337 0%, #0c121e 50%, #06090e 100%);
    width: 100%;
    color: #ffffff;
    border-bottom: 2px solid rgba(214, 0, 28, 0.4);
    overflow: hidden;
}

/* Atmospheric Lighting & Visual Depth */
.mg-hero-spotlight {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 600px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(214, 0, 28, 0.05) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.mg-hero-ambient-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 950px;
    height: 520px;
    background: radial-gradient(ellipse at center, rgba(214, 0, 28, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.mg-hero-bg-watermark {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: clamp(6rem, 16vw, 15rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.035);
    color: transparent;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.mg-hero-emblem-watermark {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 480px;
    background: url("../images/mg-emblem-official.svg") no-repeat center / contain;
    opacity: 0.025;
    pointer-events: none;
    z-index: 1;
    filter: invert(1);
}

/* Grand Hero Container */
.mg-grand-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* 1. Header Block (Minimalist & Prestigious) */
.mg-grand-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4px;
    width: 100%;
}

.mg-hero-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.mg-hero-pills-row.justify-center {
    justify-content: center;
}

.mg-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.mg-pill-primary {
    background: rgba(214, 0, 28, 0.16);
    border: 1px solid rgba(214, 0, 28, 0.5);
    color: #ff4d5a;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d5a;
    box-shadow: 0 0 8px #ff4d5a;
    animation: mgPulseDot 1.8s infinite;
}

@keyframes mgPulseDot {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.mg-pill-heritage {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

.flag-icon {
    font-size: 0.82rem;
}

.mg-pill-dealer {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

.mg-pill-dealer svg {
    color: #d6001c;
}

.mg-grand-hero-title {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 2px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

.mg-red-dot {
    color: #d6001c;
}

.mg-grand-hero-slogan {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: #cbd5e1;
    max-width: 820px;
    line-height: 1.4;
    margin: 0 0 8px;
    font-weight: 400;
}

/* Dải Thông Tin Chủ Yếu (Core Meta Strip) */
.mg-grand-meta-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 5px 18px;
    border-radius: 40px;
    backdrop-filter: blur(12px);
    margin-bottom: 8px;
    flex-wrap: wrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.meta-label {
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
}

.meta-val {
    color: #ffffff;
    font-weight: 700;
}

.meta-price-item .meta-label {
    color: #fca5a5;
}

.meta-price-val {
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    color: #ff3b4b;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.meta-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

/* View Toggle (Studio vs Lifestyle) */
.mg-hero-view-toggle-wrap {
    margin-bottom: 2px;
}

.mg-hero-view-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: #ffffff;
}

.view-toggle-btn.is-active {
    background: #d6001c;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(214, 0, 28, 0.4);
}

.mg-hero-view-panel {
    display: none;
    width: 100%;
}

.mg-hero-view-panel.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mgFadeIn 0.35s ease;
}

/* 2. KHÔNG GIAN BANNER XE CỰC LỚN (GRAND CAR SHOWCASE STAGE) */
.mg-grand-car-stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mg-grand-platform {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 310px;
    padding: 0 0 10px;
}

.stage-overhead-spotlight {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 280px;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(214, 0, 28, 0.04) 50%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.stage-car-cluster.stage-car-cluster-grand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 980px;
}

.mg-grand-car-img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: 100%;
    max-height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.8));
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mg-grand-car-img.is-switching {
    opacity: 0.15;
    transform: scale(0.98);
}

.mg-grand-car-img:hover {
    transform: scale(1.02) translateY(-4px);
}

/* Bục Xoay Đèn Neon Cỡ Lớn */
.stage-turntable-grand {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 104%;
    height: 75px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 45px rgba(214, 0, 28, 0.4), inset 0 0 35px rgba(255, 255, 255, 0.08);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, rgba(214, 0, 28, 0.18) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.stage-shadow-grand {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    height: 34px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 80%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 2;
}

.stage-reflection-grand {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 16px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 2;
}

/* Floating Badges */
.stage-floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 4;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.badge-warranty {
    top: 0px;
    left: 10px;
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}

.badge-origin {
    top: 0px;
    right: 10px;
    color: #ff4d5a;
    border-color: rgba(214, 0, 28, 0.35);
}

/* Bảng Chọn Màu Trực Tiếp Ngay Dưới Xe (In-Hero Grand Color Dock) */
.mg-grand-color-dock {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 20px;
    border-radius: 40px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-top: 6px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.color-dock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.color-dock-title {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.color-dock-active-name {
    color: #ffffff;
    font-weight: 800;
}

.color-dock-swatches {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mg-hero-swatch-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 2px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-hero-swatch-btn .swatch-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: block;
}

.mg-hero-swatch-btn:hover {
    transform: scale(1.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.mg-hero-swatch-btn.is-active {
    border-color: #ff3b4b;
    box-shadow: 0 0 12px rgba(214, 0, 28, 0.6);
    transform: scale(1.25);
}

/* Chế độ Ảnh Ngoại Cảnh Rộng */
.mg-grand-lifestyle-box {
    width: 100%;
    max-width: 980px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    margin-bottom: 15px;
}

.mg-grand-lifestyle-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.mg-lifestyle-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
    padding: 20px 18px 12px;
    color: #ffffff;
}

.caption-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ff4d5a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.caption-desc {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 3px 0 0;
    color: #ffffff;
}

/* 3. Cụm Nút Hành Động Tinh Gọn (Action CTAs) */
.mg-grand-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.mg-btn-grand-primary {
    background: linear-gradient(135deg, #e52424, #b91c1c);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(214, 0, 28, 0.45);
    transition: all 0.25s ease;
    cursor: pointer;
}

.mg-btn-grand-primary:hover {
    background: linear-gradient(135deg, #f02d2d, #a31515);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(214, 0, 28, 0.6);
}

.mg-btn-grand-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    cursor: pointer;
}

.mg-btn-grand-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.mg-btn-grand-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mg-font-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mg-btn-grand-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.mg-grand-catalogue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mg-grand-catalogue-link:hover {
    color: #ffffff;
}

.mg-btn-grand-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.mg-grand-catalogue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mg-grand-catalogue-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   3. COLOR PICKER STUDIO (box-color)
   ========================================================================== */
.mg-colors-section {
    background: #f8fafc;
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mg-color-interactive-box {
    max-width: 980px;
    margin: 40px auto 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.mg-color-render-stage {
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f1f5f9 100%);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
}

.color-stage-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.color-stage-pedestal {
    position: absolute;
    bottom: 25%;
    width: 70%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.22) 0%, transparent 75%);
    filter: blur(6px);
    pointer-events: none;
}

.mg-render-img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mg-render-img.is-switching {
    opacity: 0.15;
    transform: scale(0.96);
}

.mg-stage-top-meta {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 3;
}

.meta-360-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-360-badge svg {
    color: #dc2626;
}

.mg-active-color-name {
    position: absolute;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.color-lead-text {
    font-size: 0.8rem;
    color: #64748b;
}

.color-highlight-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
}

/* Swatches */
.mg-color-swatches-wrap {
    text-align: center;
}

.swatches-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.mg-swatches-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mg-color-swatch-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 3px;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.mg-color-swatch-btn:hover {
    transform: scale(1.15);
}

.mg-color-swatch-btn.is-active {
    border-color: #dc2626;
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.swatch-circle {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.swatch-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.mg-color-swatch-btn:hover .swatch-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -28px;
}

/* ==========================================================================
   4. FEATURES GRID (block-product-feature)
   ========================================================================== */
.mg-car-features-section {
    background: #090d16;
    color: #ffffff;
    padding: 85px 0;
    border-bottom: 1px solid #1e293b;
}

.mg-car-features-section .mg-section-title {
    color: #ffffff;
}

.mg-car-features-section .mg-section-desc {
    color: #94a3b8;
}

.mg-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.mg-feature-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.mg-feature-card:hover {
    transform: translateY(-6px);
    border-color: #374151;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.feature-card-media {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.feature-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mg-feature-card:hover .feature-card-media img {
    transform: scale(1.06);
}

.feature-pill-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    backdrop-filter: blur(6px);
}

.feature-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-icon-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-icon.icon-red {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
}

.feat-icon.icon-slate {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.feat-icon.icon-blue {
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
}

.feat-icon.icon-green {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.feature-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

.feature-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.feature-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    color: #ffffff;
}

.feature-chip svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* ==========================================================================
   5. GALLERY DECOR - CINEMA MASTER STAGE & THUMBNAIL DOCK
   ========================================================================== */
.mg-gallery-section {
    background: #0b0f19; /* Nền tối sang trọng chuẩn studio trưng bày xe */
    padding: 85px 0;
    border-bottom: 1px solid #1e293b;
    color: #ffffff;
}

.mg-gallery-section .mg-section-subtitle {
    color: #ef4444;
}

.mg-gallery-section .mg-section-title {
    color: #ffffff;
}

.mg-gallery-section .mg-section-desc {
    color: #94a3b8;
}

.mg-gallery-tabs {
    display: inline-flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 40px;
    margin-top: 24px;
    backdrop-filter: blur(10px);
}

.gallery-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 30px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-tab-btn .tab-count {
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
}

.gallery-tab-btn:hover {
    color: #ffffff;
}

.gallery-tab-btn.is-active {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

.gallery-tab-btn.is-active .tab-count {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

/* Cinema Showcase Container */
.mg-gallery-showcase {
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mg-cinema-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 560px;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-image-viewport {
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cinema-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    user-select: none;
}

.cinema-image-viewport img.is-transitioning {
    opacity: 0.25;
    transform: scale(0.98);
}

.cinema-image-viewport:hover img {
    transform: scale(1.025);
}

/* Top Bar: Category badge & Fullscreen Zoom */
.cinema-top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.cinema-category-badge {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(220, 38, 38, 0.6);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cinema-fullscreen-trigger {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.cinema-fullscreen-trigger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Navigation Arrows (Prev / Next) */
.cinema-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.cinema-nav-btn.is-prev {
    left: 20px;
}

.cinema-nav-btn.is-next {
    right: 20px;
}

.cinema-nav-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* Bottom Glassmorphic Bar */
.cinema-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.7) 65%, transparent 100%);
    padding: 30px 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    z-index: 4;
    pointer-events: none;
}

.cinema-caption-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 80%;
}

.cinema-model-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ef4444;
}

.cinema-caption-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cinema-counter-box {
    flex-shrink: 0;
}

.cinema-counter-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    letter-spacing: 1px;
}

/* Thumbnail Dock Strip */
.mg-gallery-thumb-dock {
    width: 100%;
    overflow: hidden;
    padding: 6px 0;
}

.thumb-strip-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 12px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.thumb-strip-scroll::-webkit-scrollbar {
    height: 4px;
}

.thumb-strip-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.thumb-strip-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.mg-thumb-card {
    flex: 0 0 140px;
    height: 90px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #090d16;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.mg-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all 0.3s ease;
}

.mg-thumb-card .thumb-cat-chip {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.mg-thumb-card:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.mg-thumb-card.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.5);
}

.mg-thumb-card.is-active img {
    opacity: 1;
}

.mg-thumb-card.is-active .thumb-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #dc2626;
}

/* Lightbox Modal */
.mg-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.mg-lightbox-modal.is-open {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.94);
    backdrop-filter: blur(16px);
}

.lightbox-dialog {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px;
}

.lightbox-counter {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.lightbox-stage {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-nav-btn.is-prev {
    left: -70px;
}

.lightbox-nav-btn.is-next {
    right: -70px;
}

.lightbox-nav-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-bottom-bar {
    width: 100%;
    padding: 16px 0 0;
    text-align: center;
}

.lightbox-caption {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

body.mg-no-scroll {
    overflow: hidden !important;
}

/* ==========================================================================
   6. VARIANTS LINEUP (block-product-list) - TINH GỌN & HIỆN ĐẠI
   ========================================================================== */
.mg-variants-section {
    background: #f8fafc;
    padding: 85px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mg-variant-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 45px;
}

.mg-variant-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.mg-variant-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.mg-variant-card.is-featured-variant {
    border: 2px solid #dc2626;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.15);
}

.variant-ribbon {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    padding: 5px 0;
    letter-spacing: 0.8px;
}

.variant-card-header {
    padding: 26px 26px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.variant-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.variant-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.variant-price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v-caption {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.v-price-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: #dc2626;
    letter-spacing: -0.5px;
    margin: 2px 0;
}

.v-finance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 4px;
}

.chip-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    flex-shrink: 0;
}

.variant-card-body {
    padding: 22px 26px;
    flex-grow: 1;
}

.v-specs-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.variant-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #475569;
}

.variant-feature-list svg {
    color: #dc2626;
    flex-shrink: 0;
}

.variant-warranty-item {
    color: #16a34a !important;
    font-weight: 700 !important;
}

.variant-warranty-item svg {
    color: #22c55e !important;
}

.variant-card-footer {
    padding: 20px 26px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.mg-btn-block {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Bảng so sánh ngang bên dưới */
.mg-variants-table-box {
    margin-top: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
}

.variants-table-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variants-table-heading svg {
    color: #dc2626;
}

.mg-variants-table {
    width: 100%;
    border-collapse: collapse;
}

.mg-variants-table th {
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg-variants-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.mg-variants-table tr:hover td {
    background: #f8fafc;
}

.mg-variants-table .col-name strong {
    color: #0f172a;
    font-weight: 800;
}

.mg-variants-table .col-price .price-val {
    color: #dc2626;
    font-weight: 800;
    font-size: 1.05rem;
}

/* ==========================================================================
   7. TECHNICAL SPECS (block-product-parameter) - BẢNG THÔNG SỐ TINH GỌN
   ========================================================================== */
.mg-specs-section {
    background: #ffffff;
    padding: 85px 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Dải 4 Thông Số Cốt Lõi */
.mg-quick-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 35px;
    margin-bottom: 30px;
}

.quick-spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}

.quick-spec-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transform: translateY(-2px);
}

.quick-spec-card .q-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-spec-card .q-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-spec-card .q-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.3px;
}

.quick-spec-card .q-value {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.quick-spec-card .q-value small {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* Bảng Thông Số Tab Phân Nhóm */
.mg-specs-detail-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px 30px;
}

.mg-specs-nav-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.spec-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.spec-tab-btn svg {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.spec-tab-btn:hover {
    color: #0f172a;
    border-color: #cbd5e1;
}

.spec-tab-btn.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.spec-tab-btn.is-active svg {
    color: #ef4444;
}

.mg-spec-tab-pane {
    display: none;
    animation: fadeInSpec 0.3s ease;
}

.mg-spec-tab-pane.is-active {
    display: block;
}

@keyframes fadeInSpec {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mg-specs-dl-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    margin: 0;
}

.mg-specs-group { margin-bottom: 24px; }
.mg-specs-group-title { color: #0f172a; font-size: 1.15rem; margin: 0 0 20px; border-left: 4px solid #d6001c; padding-left: 12px; }

.mg-specs-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 14px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.9rem;
}

.mg-specs-row:last-child {
    border-bottom: none;
}

.mg-specs-row dt {
    color: #64748b;
    font-weight: 500;
}

.mg-specs-row dd {
    color: #0f172a;
    font-weight: 700;
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.specs-download-bar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* ==========================================================================
   8. CTA BANNER (LÁI THỬ & CAM KẾT ĐẠI LÝ)
   ========================================================================== */
.mg-cta-banner-section {
    background: #090d16;
    padding: 70px 0;
    color: #ffffff;
    border-top: 1px solid #1e293b;
}

.mg-cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 45px 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    gap: 40px;
}

.cta-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ef4444;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cta-title {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 12px 0;
    text-transform: uppercase;
}

.cta-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.cta-perks-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 600;
}

.cta-perks-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
}

.mg-cta-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

.mg-cta-btn-wrap .mg-btn {
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mg-cta-btn-wrap .mg-btn-white {
    background: #ffffff;
    color: #0f172a;
    border: none;
}

.mg-cta-btn-wrap .mg-btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.mg-cta-btn-wrap .mg-btn-outline-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.mg-cta-btn-wrap .mg-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
    .mg-car-hero-grid {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .mg-car-hero-content {
        display: contents; /* Promotes title & details to direct children of flex container */
    }

    .mg-hero-title-block {
        order: 1; /* Title & badges on top */
    }

    .mg-car-hero-stage-container {
        order: 2; /* Car & interactive colors immediately visible */
    }

    .mg-hero-details-block {
        order: 3; /* Specs, Price & CTAs */
    }

    .mg-hero-pills-row {
        justify-content: center;
    }

    .mg-hero-stat-chips {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
    }

    .mg-stat-chip {
        text-align: left;
    }

    .price-meta-line {
        justify-content: center;
    }

    .price-display-line {
        justify-content: center;
    }

    .mg-hero-promo-panel {
        text-align: left;
    }

    .mg-hero-cta-cluster {
        justify-content: center;
    }

    .mg-btn-hero-primary,
    .mg-btn-hero-secondary {
        width: 100%;
        max-width: 480px;
        justify-content: center;
    }

    /* Grand Stage Responsive */
    .mg-car-hero-section.mg-hero-grand-stage {
        padding: 30px 0 45px;
    }

    .mg-grand-platform {
        min-height: 340px;
        padding: 10px 0 20px;
    }

    .mg-grand-car-img {
        max-height: 380px;
    }

    .stage-turntable-grand {
        height: 75px;
        bottom: -16px;
    }

    .stage-shadow-grand {
        height: 32px;
        bottom: -4px;
    }

    .mg-stage-platform {
        min-height: 300px;
        padding: 20px 10px 30px;
    }

    .mg-car-hero-img {
        max-height: 280px;
    }

    .stage-turntable-ring {
        height: 55px;
        bottom: -12px;
    }

    .stage-contact-shadow {
        height: 26px;
        bottom: -2px;
    }

    .mg-lifestyle-img {
        height: 300px;
    }

    .mg-features-grid {
        grid-template-columns: 1fr;
    }

    .mg-quick-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mg-specs-dl-compact {
        grid-template-columns: 1fr;
    }

    .lightbox-nav-btn.is-prev {
        left: 15px;
    }

    .lightbox-nav-btn.is-next {
        right: 15px;
    }

    .mg-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .cta-perks-row {
        justify-content: center;
    }

    .mg-cta-btn-wrap {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mg-sticky-subnav {
        top: 60px;
        padding: 8px 0;
    }

    .mg-sticky-nav-links {
        display: none; /* Ẩn tabs trên mobile để không chật chội */
    }

    .mg-car-hero-section.mg-hero-grand-stage {
        padding: 24px 0 35px;
    }

    .mg-grand-hero-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .mg-grand-hero-slogan {
        font-size: 0.92rem;
        margin-bottom: 12px;
    }

    .mg-grand-meta-strip {
        gap: 8px 12px;
        padding: 8px 16px;
        border-radius: 20px;
    }

    .meta-item {
        font-size: 0.78rem;
    }

    .meta-price-val {
        font-size: 1.1rem;
    }

    .mg-grand-platform {
        min-height: 240px;
        padding: 5px 0 15px;
    }

    .mg-grand-car-img {
        max-height: 260px;
    }

    .stage-turntable-grand {
        height: 50px;
        bottom: -10px;
    }

    .stage-shadow-grand {
        height: 22px;
        bottom: -2px;
    }

    .stage-reflection-grand {
        height: 14px;
        bottom: -14px;
    }

    .mg-grand-color-dock {
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 24px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .mg-grand-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .mg-btn-grand-primary,
    .mg-btn-grand-secondary,
    .mg-btn-grand-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .stage-floating-badge {
        font-size: 0.58rem;
        padding: 3px 8px;
    }

    .badge-warranty {
        top: 0;
        left: 5px;
    }

    .badge-origin {
        top: 0;
        right: 5px;
    }

    /* Cinema Gallery Mobile */
    .mg-cinema-stage {
        aspect-ratio: 16 / 10;
        max-height: 380px;
        border-radius: 14px;
    }

    .cinema-nav-btn {
        width: 40px;
        height: 40px;
    }

    .cinema-nav-btn.is-prev {
        left: 10px;
    }

    .cinema-nav-btn.is-next {
        right: 10px;
    }

    .cinema-top-bar {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .cinema-category-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .cinema-fullscreen-trigger {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .cinema-bottom-bar {
        padding: 20px 14px 14px;
        gap: 10px;
    }

    .cinema-caption-title {
        font-size: 0.92rem;
    }

    .cinema-counter-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .mg-thumb-card {
        flex: 0 0 110px;
        height: 72px;
    }

    .lightbox-dialog {
        width: 96%;
    }

    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
    }

    .lightbox-nav-btn.is-prev {
        left: 8px;
    }

    .lightbox-nav-btn.is-next {
        right: 8px;
    }

    .mg-color-interactive-box {
        padding: 24px 16px;
    }

    .mg-color-render-stage {
        min-height: 280px;
    }

    .mg-render-img {
        max-height: 200px;
    }

    .feature-card-media {
        height: 190px;
    }

    .feature-card-body {
        padding: 20px;
    }

    .mg-quick-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-spec-card {
        padding: 14px 16px;
    }

    .mg-specs-detail-box {
        padding: 18px 16px;
    }

    .spec-tab-btn {
        padding: 8px 12px;
        font-size: 0.76rem;
    }

    .specs-download-bar .mg-btn {
        white-space: normal;
        max-width: 100%;
        line-height: 1.4;
        text-align: center;
        padding: 10px 14px;
    }

    .mg-table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mg-variants-table {
        min-width: 600px;
    }
}
