.main-brand-section{
    padding: 70px 0 70px;
    /*background: #fff;*/
}

.main-brand-section *{
    box-sizing: border-box;
}

.mbs-inner{
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* PC: 제목 옆에 탭 배치 */
.mbs-head{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    margin-bottom: 40px;
}

.mbs-title{
    flex: 0 0 auto;
    margin: 0;
    font-size: 30px;
    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: #12377c;
}

.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: 14px;
    align-items: center;
    padding: 0 0 4px;
}

.mbs-brand-wrap{
    margin-bottom: 40px;
}

.mbs-brand-item{
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    -webkit-user-drag: none;
    user-drag: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 54px;
    text-align: center;
    white-space: nowrap;
}

.mbs-brand-box{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: none;
    height: 54px;
    padding: 0 22px;
    border: 1px solid #f3f4f6;
    border-radius: 999px;
    background: #f3f4f6;
    color: #777;
    transition: all .2s ease;
}

.mbs-brand-name{
    display: block;
    width: auto;
    max-width: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: inherit;
    letter-spacing: -0.3px;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
}

.mbs-brand-item.is-active .mbs-brand-box{
    background: #111;
    border-color: #111;
    color: #fff;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

.mbs-brand-item.is-active .mbs-brand-name{
    font-weight: 900;
}

/* =========================
   차량 카드 영역
========================= */
.mbs-car-track{
    gap: 26px;
    align-items: flex-start;
    padding-bottom: 18px;
}

.mbs-car-item{
    flex: 0 0 calc((100% - 104px) / 5);
    min-width: 280px;
    text-decoration: none;
    color: #222;
    text-align: center;
    -webkit-user-drag: none;
    user-drag: none;
}

.mbs-car-card{
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    min-height: 270px;
}

.mbs-car-thumb{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 186px;
    margin-bottom: 0;
    padding: 14px 14px 8px;
    background: transparent;
    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-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 72px;
    padding: 12px 18px 20px;
    text-align: center;
}

.mbs-car-brand-row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.mbs-car-logo{
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mbs-car-logo img{
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.mbs-car-logo-text{
    display: block;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    color: #333;
    letter-spacing: -0.5px;
}

.mbs-car-logo.has-image .mbs-car-logo-text{
    display: none;
}

.mbs-car-logo.is-text-logo .mbs-car-logo-text{
    display: block;
}

.mbs-car-brand-text{
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 31px);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #777;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mbs-car-title{
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.3px;
    word-break: keep-all;
    text-align: center;
}

.mbs-empty{
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    color: #888;
    font-size: 16px;
    font-weight: 700;
    background: #fafafa;
    border-radius: 16px;
}

/* =========================
   화살표 버튼
========================= */
.mbs-arrow{
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: rgba(0,0,0,.8);
    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-brand-wrap .mbs-arrow,
.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: -66px;
}

.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){
    .main-brand-section .mbs-car-card{
        min-height: 320px;
    }

    .main-brand-section .mbs-car-thumb{
        height: 236px;
    }

    .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;
    }

    /* PC에서도 제조사 분류는 가격대 분류처럼 텍스트 버튼으로 표시 */
    .main-brand-section .mbs-brand-name{
        display: block;
    }

    /* PC에서는 차량 영역 하단 스크롤바를 숨김 */
    .main-brand-section .mbs-progress{
        display: none;
    }

    .main-brand-section .mbs-car-track{
        padding-bottom: 18px;
    }
}

@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: 0px 0 5px;
    }

    .mbs-inner{
        padding: 0 16px;
    }

    /* 모바일: 제목 바로 뒤에 전체 | 국산 | 수입 붙이기 */
    .mbs-head{
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
        margin-bottom: 25px;
    }

    .mbs-title{
        flex: 0 0 auto;
        min-width: 0;
        margin: 0;
        font-size: 19px;
        line-height: 1.18;
        letter-spacing: -1px;
        padding-top: 0;
        white-space: nowrap;
    }

    .mbs-tab-groups{
        flex: 0 0 auto;
        width: auto;
        margin-left: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        flex-wrap: nowrap;
        padding-top: 1px;
    }

    .mbs-tabs{
        gap: 6px;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .mbs-tab{
        font-size: 15px;
        line-height: 1.2;
    }

    .mbs-tab-divider{
        font-size: 14px;
        line-height: 1;
    }

    .mbs-brand-wrap{
        margin-bottom: 25px;
    }

    .mbs-brand-track{
        gap: 10px;
        align-items: center;
        padding-bottom: 2px;
    }

    .mbs-brand-item{
        width: auto;
        min-width: 0;
        height: 40px;
    }

    .mbs-brand-box{
        height: 40px;
        padding: 0 18px;
        border-radius: 999px;
    }

    .mbs-brand-name{
        font-size: 15px;
        line-height: 1;
    }

    .mbs-car-track{
        gap: 18px;
    }

    .mbs-car-item{
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }

    .mbs-car-card{
        min-height: 168px;
        border-radius: 10px;
    }

    .mbs-car-thumb{
        height: 108px;
        margin-bottom: 0;
        padding: 10px 10px 6px;
        border-radius: 0;
    }

    .mbs-car-info{
        gap: 0;
        min-height: 50px;
        padding: 8px 10px 14px;
        align-items: center;
        text-align: center;
    }

    .mbs-car-brand-row{
        gap: 5px;
        justify-content: center;
        text-align: center;
    }

    .mbs-car-logo{
        width: 19px;
        height: 19px;
    }

    .mbs-car-logo-text{
        font-size: 9px;
    }

    .mbs-car-brand-text{
        font-size: 12px;
        line-height: 1.2;
        max-width: calc(100% - 24px);
    }

    .mbs-car-title{
        font-size: 15px;
        line-height: 1.35;
        text-align: center;
    }

    .mbs-arrow,
    .mbs-arrow.is-show{
        display: none !important;
    }
}

/* 아주 작은 모바일 화면 대응 */
@media (max-width: 360px){
    .mbs-inner{
        padding: 0 14px;
    }

    .mbs-title{
        font-size: 19px;
        letter-spacing: -1.1px;
    }

    .mbs-tab-groups{
        margin-left: 8px;
    }

    .mbs-tabs{
        gap: 5px;
    }

    .mbs-tab{
        font-size: 17px;
    }

    .mbs-tab-divider{
        font-size: 13px;
    }

    .mbs-car-logo{
        width: 18px;
        height: 18px;
    }

    .mbs-car-brand-text{
        font-size: 11px;
        max-width: calc(100% - 23px);
    }

    .mbs-car-title{
        font-size: 14px;
        text-align: center;
    }
}

/* =========================================================
   제조사 분류명/차량 카드 표시 정리
   - 제조사 분류: 로고 없이 제조사명 텍스트 버튼으로 표시
   - 차량 카드: 차량명 위 제조사 로고/제조사명 숨김
========================================================= */
.main-brand-section .mbs-brand-name{
    display: block;
}

.main-brand-section .mbs-car-brand-row{
    display: none;
}

/* =========================================================
   PC 슬라이드 버튼 - 가격대 섹션과 동일한 구성
   - 배경/원형/그림자 제거
   - PC에서 좌우 바깥쪽에 화살표만 노출
   - 모바일에서는 기존처럼 숨김
========================================================= */
@media (min-width: 769px){
    .main-brand-section .mbs-arrow{
        position: absolute;
        width: auto;
        height: auto;
        border: 0;
        background: transparent !important;
        color: rgb(204 204 204 / 80%);
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        z-index: 5;
        display: none !important;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        box-shadow: none !important;
        padding: 0;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .main-brand-section .mbs-arrow.is-show{
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .main-brand-section .mbs-arrow:hover{
        background: transparent !important;
        color: rgba(0,0,0,.8);
        box-shadow: none !important;
    }

    .main-brand-section .mbs-brand-wrap .mbs-arrow{
        top: 50%;
        transform: translateY(-50%);
    }

    .main-brand-section .mbs-car-wrap .mbs-arrow{
        top: 50%;
        transform: translateY(-50%);
    }

    .main-brand-section .mbs-brand-wrap .mbs-arrow-prev,
    .main-brand-section .mbs-car-wrap .mbs-arrow-prev{
        left: -26px;
    }

    .main-brand-section .mbs-brand-wrap .mbs-arrow-next,
    .main-brand-section .mbs-car-wrap .mbs-arrow-next{
        right: -26px;
    }
}

@media (min-width: 769px) and (max-width: 1280px){
    .main-brand-section .mbs-brand-wrap .mbs-arrow-prev,
    .main-brand-section .mbs-car-wrap .mbs-arrow-prev{
        left: -8px;
    }

    .main-brand-section .mbs-brand-wrap .mbs-arrow-next,
    .main-brand-section .mbs-car-wrap .mbs-arrow-next{
        right: -8px;
    }
}

@media (max-width: 768px){
    .main-brand-section .mbs-arrow,
    .main-brand-section .mbs-arrow.is-show{
        display: none !important;
    }
}

/* =========================================================
   전체 배경(#f3f6fb) 위에 흰색 카드 배경으로 감싸기
   - 섹션 자체는 투명하게 두고, 내부 영역(.mbs-inner)만 흰색 박스로 표시
   - 기존 슬라이드/분류/차량 구성은 변경하지 않음
========================================================= */
.main-brand-section{
    background: transparent;
}

.main-brand-section .mbs-inner{
    background: #fff;
    border-radius: 24px;
    padding: 32px 46px 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

@media (max-width: 1280px){
    .main-brand-section .mbs-inner{
        width: calc(100% - 40px);
        padding: 38px 28px 32px;
    }
}

@media (max-width: 768px){
    .main-brand-section .mbs-inner{
        width: calc(100% - 32px);
        padding: 28px 16px 20px;
        border-radius: 20px;
    }
}




