/* ===================================================
   DUAL BRAND BANNER — OMODA | JAECOO
   Layout 2 cột, video nền, thumbnail slider, tab gradient
   =================================================== */

/* ---- Wrapper tổng ---- */
.dbb-section {
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 1;
    transition: z-index 0.3s ease;
}

/* Đưa banner lên trên header khi mở panel xe */
.dbb-section.is-active {
    z-index: 10;
}

.dbb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 900px;
    position: relative;
    overflow: hidden; /* Ngăn card nội dung đẩy grid cao hơn chiều cao được set */
    transition: grid-template-columns 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Cột (panel) ---- */
.dbb-col {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Đường kẻ ngăn cách 2 cột */
.dbb-col--omoda::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(215,25,33,0.6) 40%, rgba(37,99,235,0.6) 70%, transparent);
    z-index: 5;
}

/* ---- Video nền ---- */
.dbb-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.dbb-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dbb-col:hover .dbb-video-bg video {
    transform: scale(1.04);
}

/* Overlay gradient từ trong suốt -> đen (từ trên xuống) */
.dbb-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.25) 30%,
        rgba(0,0,0,0.75) 65%,
        rgba(0,0,0,0.92) 100%
    );
    transition: background 0.5s ease;
}

.dbb-col--omoda .dbb-overlay {
    background: linear-gradient(
        to bottom,
        rgba(10,0,0,0.10) 0%,
        rgba(20,0,0,0.25) 30%,
        rgba(80,5,10,0.70) 65%,
        rgba(10,0,0,0.92) 100%
    );
}

.dbb-col--jaecoo .dbb-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,10,0.10) 0%,
        rgba(0,0,20,0.25) 30%,
        rgba(5,20,80,0.70) 65%,
        rgba(0,0,10,0.92) 100%
    );
}

/* ---- Brand label (dọc từng chữ, giữa chiều cao cột) ---- */
.dbb-brand-label {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    z-index: 10;
    display: flex;
    flex-direction: row;        /* line dọc bên trái | chars bên phải */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
}

/* Đường kẻ dọc màu brand — ngắn = ~1/3 cột chữ */
.dbb-brand-line {
    width: 3px;
    height: clamp(28px, 4vw, 52px); /* ~1/3 chiều cao stack chữ */
    align-self: center;
    border-radius: 2px;
    flex-shrink: 0;
    animation: fadeInDown 0.5s ease forwards;
}

.dbb-col--omoda .dbb-brand-line {
    background: linear-gradient(180deg, #d71921, #ff6b6b);
    box-shadow: 0 0 10px rgba(215,25,33,0.7);
}

.dbb-col--jaecoo .dbb-brand-line {
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    box-shadow: 0 0 10px rgba(37,99,235,0.7);
}

/* Container chứa từng ký tự xếp dọc */
.dbb-brand-chars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.dbb-brand-char {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    line-height: 1.1;
    display: block;
    opacity: 0;
    animation: dbbCharFadeIn 0.4s ease forwards;
}

/* Stagger animation cho từng ký tự */
.dbb-brand-chars .dbb-brand-char:nth-child(1)  { animation-delay: 0.05s; }
.dbb-brand-chars .dbb-brand-char:nth-child(2)  { animation-delay: 0.10s; }
.dbb-brand-chars .dbb-brand-char:nth-child(3)  { animation-delay: 0.15s; }
.dbb-brand-chars .dbb-brand-char:nth-child(4)  { animation-delay: 0.20s; }
.dbb-brand-chars .dbb-brand-char:nth-child(5)  { animation-delay: 0.25s; }
.dbb-brand-chars .dbb-brand-char:nth-child(6)  { animation-delay: 0.30s; }
.dbb-brand-chars .dbb-brand-char:nth-child(7)  { animation-delay: 0.35s; }
.dbb-brand-chars .dbb-brand-char:nth-child(8)  { animation-delay: 0.40s; }
.dbb-brand-chars .dbb-brand-char:nth-child(9)  { animation-delay: 0.45s; }
.dbb-brand-chars .dbb-brand-char:nth-child(10) { animation-delay: 0.50s; }

@keyframes dbbCharFadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.dbb-brand-char--space {
    height: 6px; /* khoảng cách giữa các từ */
    font-size: 0;
}

/* Màu từng chữ theo brand */
.dbb-col--omoda .dbb-brand-char {
    color: #fff;
    text-shadow: 0 0 20px rgba(215,25,33,0.6), 0 2px 12px rgba(0,0,0,0.8);
}

.dbb-col--jaecoo .dbb-brand-char {
    color: #fff;
    text-shadow: 0 0 20px rgba(37,99,235,0.6), 0 2px 12px rgba(0,0,0,0.8);
}

/* ---- Content panel (nằm phía dưới cột) ---- */
.dbb-content {
    position: relative;
    z-index: 10;
    padding: 0 24px 0;
}

/* ---- TABS DÒNG XE ---- */
div.dbb-tabs-container {
    margin-top: 16px !important;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 16px !important;
    width: 100%;
    position: relative;
}

.dbb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

.dbb-tabs.swiper-wrapper {
    flex-wrap: nowrap;
}

/* Nút mũi tên cho slider tab xe */
.dbb-tabs-container .dbb-tab-next,
.dbb-tabs-container .dbb-tab-prev {
    color: rgba(255,255,255,0.7);
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    margin-top: -14px;
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.dbb-tabs-container .dbb-tab-next::after,
.dbb-tabs-container .dbb-tab-prev::after {
    font-size: 14px;
}
.dbb-tabs-container .dbb-tab-next:hover,
.dbb-tabs-container .dbb-tab-prev:hover {
    color: #fff;
    background: rgba(0,0,0,0.8);
}
.dbb-tabs-container .dbb-tab-prev {
    left: 0px;
}
.dbb-tabs-container .dbb-tab-next {
    right: 0px;
}

.dbb-tab-item {
    position: relative;
    cursor: pointer;
    opacity: 0.65;
    padding: 10px 8px 14px;
    transition: opacity 0.3s ease;
    /* flex-basis được set bằng JS theo số xe thực tế */
    flex: 0 0 25%;      /* fallback: tối đa 4 xe/hàng */
    max-width: 25%;     /* fallback */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Layout Vertical (Mặc định) */
.dbb-tab-item.layout-vertical {
    text-align: center;
}
.dbb-tab-item.layout-vertical .dbb-tab-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.dbb-tab-item.layout-vertical .dbb-tab-info-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.dbb-tab-item.layout-vertical .dbb-tab-label {
    white-space: nowrap;
    text-align: center;
}
.dbb-tab-item.layout-vertical .dbb-tab-price {
    text-align: center;
}
.dbb-tab-item.layout-vertical .dbb-tab-bottom {
    width: 100%;
}

/* Layout Horizontal */
.dbb-tab-item.layout-horizontal {
    text-align: left;
}
.dbb-tab-item.layout-horizontal .dbb-tab-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
}
.dbb-tab-item.layout-horizontal .dbb-tab-img-col {
    flex-shrink: 0;
}
.dbb-tab-item.layout-horizontal .dbb-tab-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.dbb-tab-item.layout-horizontal .dbb-tab-label {
    white-space: normal;
    text-align: left;
}
.dbb-tab-item.layout-horizontal .dbb-tab-price {
    text-align: left;
}
.dbb-tab-item.layout-horizontal .dbb-tab-bottom {
    width: 100%;
    margin-top: 8px;
}

.dbb-tab-item:hover,
.dbb-tab-item.active {
    opacity: 1;
}

.dbb-tab-label {
    display: inline-block;
    font-family: 'Michroma', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    transition: all 0.4s ease;
    line-height: 1.3;
}

/* Thumbnail nhỏ của từng model trong tab */
.dbb-tab-thumb {
    display: block;
    width: 70px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0.8) drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: all 0.4s ease;
    /* margin: 0 auto đã bỏ vì parent có align-items: center */
}

.dbb-tab-item:hover .dbb-tab-thumb,
.dbb-tab-item.active .dbb-tab-thumb {
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    transform: translateY(-2px);
}

/* Tab active/hover — gradient text như anlac.com */
.dbb-tab-item:hover .dbb-tab-label,
.dbb-tab-item.active .dbb-tab-label {
    background-image: linear-gradient(270deg, #b31d2f 0.68%, #7550a8 36.18%, #685ab4 51.41%, #2e75d8 66%, #94b0e8 83.6%, #50bbca 98.86%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Underline gradient nhiều màu khi active */
.dbb-tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, #b31d2f 0.68%, #7550a8 36.18%, #685ab4 51.41%, #2e75d8 66%, #94b0e8 83.6%, #50bbca 98.86%);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dbb-tab-item:hover::after,
.dbb-tab-item.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Tab giá nhỏ bên dưới tên xe */
.dbb-tab-price {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    margin-top: 1px;
    letter-spacing: 0;
}

.dbb-tab-item.active .dbb-tab-price,
.dbb-tab-item:hover .dbb-tab-price {
    color: rgba(255,255,255,0.85);
}

/* Thông số trong tab */
.dbb-tab-specs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    width: 100%;
}

.dbb-tab-spec-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dbb-tab-item:hover .dbb-tab-spec-item,
.dbb-tab-item.active .dbb-tab-spec-item {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.15);
}

.dbb-tab-spec-item i {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    width: 12px;
    text-align: center;
}

.dbb-tab-item:hover .dbb-tab-spec-item i,
.dbb-tab-item.active .dbb-tab-spec-item i {
    color: #fff;
}

/* ---- Panel thông tin xe (hiển thị khi click tab) ---- */
.dbb-car-panel {
    display: none;
    animation: dbbFadeSlide 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.dbb-car-panel.active {
    display: block;
}

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

/* Nút đóng panel */
.dbb-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.dbb-panel-close:hover {
    background: rgba(0,0,0,1);
    transform: scale(1.15);
    color: #ff4757;
    border-color: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.7);
}

/* Giới hạn chiều cao card để không bị tràn khỏi màn hình */
.dbb-car-panel .car-card {
    height: auto !important;
    min-height: 0 !important;
    /* KHÔNG set overflow:visible — giữ overflow:hidden mặc định để clip ::after spinning border */
}
.dbb-car-panel .car-card::-webkit-scrollbar {
    display: none;
}

/* Ảnh xe chính trong panel */
.dbb-panel-img-wrap {
    position: relative;
    margin-bottom: 10px;
    text-align: center;
}

.dbb-panel-car-img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    transition: transform 0.5s ease;
}

.dbb-car-panel.active .dbb-panel-car-img {
    animation: carSlideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes carSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Swatches màu xe */
.dbb-color-swatches {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.dbb-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 8px 0 8px 0;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.dbb-color-dot:hover,
.dbb-color-dot.active {
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4), 0 2px 8px rgba(0,0,0,0.5);
}

/* Tên + giá xe */
.dbb-car-name {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.2;
}

.dbb-car-price {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.dbb-col--omoda .dbb-car-price { color: #ff6b6b; }
.dbb-col--jaecoo .dbb-car-price { color: #60a5fa; }

/* Thông số tóm tắt */
.dbb-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 8px 0;
    margin-bottom: 10px;
}

.dbb-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;
    gap: 3px;
    position: relative;
    padding: 0 4px;
}

.dbb-spec-item + .dbb-spec-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    width: 1px;
    height: 80%;
    background: rgba(255,255,255,0.15);
}

.dbb-spec-item i {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.dbb-spec-item span {
    font-size: 9px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: rgba(255,255,255,0.85);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Nút CTA */
.dbb-actions {
    display: flex;
    gap: 8px;
}

.dbb-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    border-radius: 12px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.dbb-btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px 0 10px 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.dbb-btn:hover::before { opacity: 1; }

/* Omoda CTA */
.dbb-col--omoda .dbb-btn-primary {
    background: #d71921;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(215,25,33,0.4);
}

.dbb-col--omoda .dbb-btn-primary:hover {
    background: #b31217;
    box-shadow: 0 6px 20px rgba(215,25,33,0.6);
    transform: translateY(-2px);
}

.dbb-col--omoda .dbb-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.dbb-col--omoda .dbb-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* Jaecoo CTA */
.dbb-col--jaecoo .dbb-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}

.dbb-col--jaecoo .dbb-btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,0.6);
    transform: translateY(-2px);
}

.dbb-col--jaecoo .dbb-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.dbb-col--jaecoo .dbb-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .dbb-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dbb-col {
        min-height: 520px;
    }

    .dbb-col--omoda::after {
        display: none;
    }

    .dbb-tab-thumb {
        width: 55px;
        height: 32px;
    }

    .dbb-panel-car-img {
        max-height: 130px;
    }

    .dbb-content {
        padding: 0 16px 16px;
    }

    /* Hiển thị card dạng popup overlay trên mobile thay vì đẩy layout */
    .dbb-car-panel {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        z-index: 50;
    }

    .dbb-brand-char {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dbb-tab-item {
        padding: 8px 10px 12px;
    }

    .dbb-tab-label {
        font-size: 10px;
    }

    .dbb-tab-thumb {
        width: 48px;
        height: 28px;
    }
}

/* ---- Brand label nằm ngang (nằm ngay dưới menu header) ---- */
.dbb-brand-label--horizontal {
    position: absolute;
    top: 115px; /* top-bar (~32px) + header-main (80px) + gap nhỏ (~3px) */
    bottom: auto !important;  /* reset bottom: 0 từ .dbb-brand-label */
    left: 28px;
    right: auto;
    height: auto;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    animation: fadeInDown 0.7s ease forwards;
    transition: top 0.35s ease;
}

/* Khi header đã cuộn (top-bar ẩn) → điều chỉnh lại vị trí */
body.scrolled .dbb-brand-label--horizontal {
    top: 84px; /* chỉ còn header-main (80px) + gap nhỏ (4px) */
}

.dbb-brand-label--horizontal .dbb-brand-line {
    width: 40px;
    height: 3px;
    align-self: auto;
    border-radius: 2px;
    flex-shrink: 0;
}

.dbb-col--omoda .dbb-brand-label--horizontal .dbb-brand-line {
    background: linear-gradient(90deg, #d71921, #ff6b6b);
    box-shadow: 0 0 10px rgba(215,25,33,0.6);
}

.dbb-col--jaecoo .dbb-brand-label--horizontal .dbb-brand-line {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    box-shadow: 0 0 10px rgba(37,99,235,0.6);
}

.dbb-brand-name {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.dbb-col--omoda .dbb-brand-name {
    text-shadow: 0 0 30px rgba(215,25,33,0.5), 0 2px 20px rgba(0,0,0,0.7);
}

.dbb-col--jaecoo .dbb-brand-name {
    text-shadow: 0 0 30px rgba(37,99,235,0.5), 0 2px 20px rgba(0,0,0,0.7);
}

/* Brand Name Colors inside Tab Label */
.dbb-brand-omoda {
    color: #d71921;
}
.dbb-brand-jaecoo {
    color: #60a5fa;
}

/* ===================================================
   FULL WIDTH MODES (OMODA FULL / JAECOO FULL)
   =================================================== */

.dbb-mode-omoda-full .dbb-grid {
    grid-template-columns: 100% 0%;
}
.dbb-mode-jaecoo-full .dbb-grid {
    grid-template-columns: 0% 100%;
}

.dbb-col {
    /* Đảm bảo nội dung không vỡ khi width = 0 */
    min-width: 0;
}

/* Ẩn đường phân cách nếu 1 bên đang full */
.dbb-mode-omoda-full .dbb-col--omoda::after,
.dbb-mode-jaecoo-full .dbb-col--omoda::after {
    opacity: 0;
}

/* Ẩn nội dung khi cột bị thu về 0% (tránh overlap) */
.dbb-mode-omoda-full .dbb-col--jaecoo > *,
.dbb-mode-jaecoo-full .dbb-col--omoda > * {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* TOGGLE BUTTONS */
.dbb-toggle-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
    display: none; /* Mặc định ẩn */
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.dbb-toggle-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.dbb-toggle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dbb-toggle-btn .dbb-toggle-name {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.dbb-toggle-btn .dbb-toggle-line {
    width: 35px;
    height: 5px; /* Tăng độ dày để thấy viền rõ hơn */
    border-radius: 2px;
    background: transparent !important;
}

.dbb-toggle-btn i {
    font-size: 24px;
    -webkit-text-fill-color: transparent;
}

.dbb-toggle-omoda {
    left: 28px;
}
.dbb-toggle-omoda .dbb-toggle-name {
    -webkit-text-stroke: 1.5px #d71921;
}
.dbb-toggle-omoda .dbb-toggle-line {
    border: 1.5px solid #d71921;
}
.dbb-toggle-omoda i {
    -webkit-text-stroke: 1.5px #d71921;
}

.dbb-toggle-jaecoo {
    right: 28px;
}
.dbb-toggle-jaecoo .dbb-toggle-name {
    -webkit-text-stroke: 1.5px #2563eb;
}
.dbb-toggle-jaecoo .dbb-toggle-line {
    border: 1.5px solid #2563eb;
}
.dbb-toggle-jaecoo i {
    -webkit-text-stroke: 1.5px #2563eb;
}

.dbb-toggle-jaecoo {
    right: 28px;
    left: auto;
}

.dbb-toggle-omoda {
    left: 28px;
    right: auto;
}

/* Hiện nút theo mode */
.dbb-mode-omoda-full .dbb-toggle-jaecoo {
    display: flex;
}
.dbb-mode-jaecoo-full .dbb-toggle-omoda {
    display: flex;
}

/* Ẩn các nút điều hướng slider (nếu có) khi ở chế độ full */
.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-prev,
.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-next,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-prev,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-next {
    display: none !important;
}

/* Flex các tab xe (chia đều) thay vì slider nếu có swiper */
.dbb-mode-omoda-full .dbb-col--omoda .dbb-tabs,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tabs {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0;
    width: 100% !important;
    transform: none !important;
}

.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item {
    flex: 1 1 0% !important;
    max-width: none !important;
    width: auto !important;
    align-items: center !important;
    text-align: center !important;
}

.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item.layout-horizontal .dbb-tab-top,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item.layout-horizontal .dbb-tab-top {
    justify-content: center !important;
}

.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item.layout-horizontal .dbb-tab-info-col,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item.layout-horizontal .dbb-tab-info-col {
    align-items: center !important; 
    text-align: center !important;
}

.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item.layout-horizontal .dbb-tab-bottom,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item.layout-horizontal .dbb-tab-bottom {
    display: flex !important;
    justify-content: center !important;
}

.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item.layout-horizontal .dbb-tab-label,
.dbb-mode-omoda-full .dbb-col--omoda .dbb-tab-item.layout-horizontal .dbb-tab-price,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item.layout-horizontal .dbb-tab-label,
.dbb-mode-jaecoo-full .dbb-col--jaecoo .dbb-tab-item.layout-horizontal .dbb-tab-price {
    text-align: center !important;
}

@media (max-width: 768px) {
    /* Trở về grid 1fr trên mobile, vô hiệu full mode vì màn dọc */
    .dbb-mode-omoda-full .dbb-grid,
    .dbb-mode-jaecoo-full .dbb-grid {
        grid-template-columns: 1fr;
    }
    .dbb-toggle-btn {
        display: none !important;
    }
    .dbb-mode-omoda-full .dbb-col--jaecoo > *,
    .dbb-mode-jaecoo-full .dbb-col--omoda > * {
        opacity: 1;
        pointer-events: auto;
    }
}
