.main-brand-section{
    padding: 64px 0 56px;
    background: #fff;
}

.main-brand-section *{
    box-sizing: border-box;
}

.mbs-inner{
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
}

/* PC: 제목 옆에 탭 배치 */
.mbs-head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    margin-bottom: 60px;
}

.mbs-title{
    flex: 0 0 auto;
    margin: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #111;
    padding-top: 0;
}

.mbs-tab-groups{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
    flex-wrap: nowrap;
    min-width: 0;
    padding-top: 6px;
}

.mbs-tabs{
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.mbs-tabs-rtype{
    position: relative;
    padding-right: 0;
}

.mbs-tab{
    border: 0;
    background: none;
    padding: 0;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    color: #b3b3b3;
    cursor: pointer;
    letter-spacing: -0.3px;
}

.mbs-tab.is-active{
    color: #0869f9;
}

.mbs-tab-divider{
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: #b7b7b7;
}

.mbs-brand-wrap,
.mbs-car-wrap{
    position: relative;
}

.mbs-brand-viewport,
.mbs-car-viewport{
    overflow: hidden;
}

.mbs-brand-track,
.mbs-car-track{
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
}

.mbs-brand-track::-webkit-scrollbar,
.mbs-car-track::-webkit-scrollbar{
    display: none;
}

.mbs-brand-track{
    gap: 28px;
    align-items: flex-start;
    padding: 4px 0;
}

.mbs-brand-wrap{
    margin-bottom: 60px;
}

.mbs-brand-item{
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    -webkit-user-drag: none;
    user-drag: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-width: 100px;
    text-align: center;
}

.mbs-brand-circle{
    width: 98px;
    height: 98px;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    overflow: hidden;
}

.mbs-brand-item.is-active .mbs-brand-circle{
    background: #efeff1;
    border-color: #efeff1;
}

.mbs-brand-circle img{
    max-width: 58%;
    max-height: 58%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.mbs-brand-all{
    font-size: 24px;
    font-weight: 800;
    color: #111;
    line-height: 1;
}

.mbs-brand-name{
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #8c8c8c;
    letter-spacing: -0.3px;
    white-space: nowrap;
    text-align: center;
}

.mbs-brand-item.is-active .mbs-brand-name{
    color: #111;
}

/* =========================
   차량 카드 영역
========================= */
.mbs-car-track{
    gap: 26px;
    align-items: flex-start;
    padding-bottom: 18px;
}

.mbs-car-item{
    flex: 0 0 calc((100% - 104px) / 5);
    min-width: 220px;
    text-decoration: none;
    color: #222;
    text-align: left;
    -webkit-user-drag: none;
    user-drag: none;
}

.mbs-car-thumb{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 156px;
    margin-bottom: 12px;
    padding: 14px 14px;
    background: #f3f4f7;
    border-radius: 12px;
    overflow: hidden;
}

.mbs-car-thumb img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.mbs-car-empty-thumb{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f3f4f7;
    color: #999;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
}

.mbs-car-title{
    display: block;
    width: 100%;
    margin: 0;
    padding-left: 2px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.3px;
    word-break: keep-all;
    text-align: left;
}

.mbs-empty{
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-size: 16px;
    font-weight: 700;
    background: #fafafa;
    border-radius: 16px;
}

/* =========================
   화살표 버튼
   - 기본 숨김
   - JS에서 슬라이드 가능한 영역만 .is-show 부여
========================= */
.mbs-arrow{
    position: absolute;
    top: 40px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #b6b6b6;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.mbs-arrow.is-show{
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mbs-car-wrap .mbs-arrow{
    top: 50%;
    transform: translateY(-50%);
}

.mbs-arrow:hover{
    color: #666;
}

.mbs-brand-wrap .mbs-arrow-prev,
.mbs-car-wrap .mbs-arrow-prev{
    left: -66px;
}

.mbs-brand-wrap .mbs-arrow-next,
.mbs-car-wrap .mbs-arrow-next{
    right: -46px;
}

.mbs-progress{
    position: relative;
    height: 4px;
    background: #dcdcdc;
    border-radius: 10px;
    margin-top: 6px;
    overflow: hidden;
}

.mbs-progress-bar{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 120px;
    background: #7d7d7d;
    border-radius: 10px;
    transition: transform .2s ease, width .2s ease;
}

@media (min-width: 769px){
    .mbs-brand-track,
    .mbs-car-track{
        cursor: grab;
    }

    .mbs-brand-track.is-dragging,
    .mbs-car-track.is-dragging{
        cursor: grabbing;
        scroll-behavior: auto;
    }

    .mbs-brand-track.is-dragging *,
    .mbs-car-track.is-dragging *{
        cursor: grabbing !important;
    }
}

@media (max-width: 1280px){
    .mbs-inner{
        padding: 0 20px;
    }

    .mbs-title{
        font-size: 33px;
    }

    .mbs-head{
        gap: 38px;
    }

    .mbs-tab-groups{
        gap: 24px;
    }

    .mbs-tab{
        font-size: 18px;
    }

    .mbs-car-item{
        flex: 0 0 calc((100% - 52px) / 3);
        min-width: 210px;
    }

    .mbs-brand-wrap .mbs-arrow-prev,
    .mbs-car-wrap .mbs-arrow-prev{
        left: -8px;
    }

    .mbs-brand-wrap .mbs-arrow-next,
    .mbs-car-wrap .mbs-arrow-next{
        right: -8px;
    }
}

/* 모바일 */
@media (max-width: 768px){
    .main-brand-section{
        padding: 46px 0 24px;
    }

    .mbs-inner{
        padding: 0 16px;
    }

    .mbs-head{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        margin-bottom: 25px;
    }

    .mbs-title{
        font-size: 25px;
        line-height: 1.18;
        letter-spacing: -1px;
        padding-top: 0;
    }

    .mbs-tab-groups{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 28px;
        flex-wrap: wrap;
        padding-top: 0;
    }

    .mbs-tabs{
        gap: 10px;
    }

    .mbs-tab{
        font-size: 18px;
    }

    .mbs-tab-divider{
        font-size: 16px;
    }

    .mbs-brand-wrap{
        margin-bottom: 25px;
    }

    .mbs-brand-track{
        gap: 16px;
        align-items: flex-start;
        padding-bottom: 2px;
    }

    .mbs-brand-item{
        gap: 8px;
        min-width: 64px;
    }

    .mbs-brand-circle{
        width: 64px;
        height: 64px;
    }

    .mbs-brand-all{
        font-size: 18px;
    }

    .mbs-brand-name{
        font-size: 12px;
        line-height: 1.2;
    }

    .mbs-car-track{
        gap: 18px;
    }

    .mbs-car-item{
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }

    .mbs-car-thumb{
        height: 108px;
        margin-bottom: 10px;
        padding: 10px 10px;
        border-radius: 10px;
    }

    .mbs-car-title{
        font-size: 15px;
        line-height: 1.35;
        padding-left: 2px;
    }

    .mbs-arrow,
    .mbs-arrow.is-show{
        display: none !important;
    }
}