/* ============================================================
   배때지 V2 SHOP 정렬 라디오 바
   - PC: 상단 정렬바 / 모바일: 가로 스크롤, 터치 최적화
   ============================================================ */

.v2sortbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 0 12px;
    margin: 0 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.v2sortbar::-webkit-scrollbar { display: none; }

.v2sort-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid #e4e4e8;
    background: #fff;
    color: #555;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
    min-height: 40px;           /* 터치 타깃 */
}
.v2sort-pill:hover { border-color: #bdbdff; color: #222; }

/* 라디오 점 */
.v2sort-radio {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #cfcfd6;
    background: #fff;
    position: relative;
    flex: none;
    transition: border-color .15s ease;
}

/* 선택 상태 */
.v2sort-pill.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}
.v2sort-pill.is-active .v2sort-radio {
    border-color: #fff;
}
.v2sort-pill.is-active .v2sort-radio::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

/* 태블릿 이상: 상단 정렬바 형태 (좌측 정렬, 여백) */
@media (min-width: 768px) {
    .v2sortbar {
        flex-wrap: wrap;
        padding: 2px 0 16px;
    }
    .v2sort-pill { font-size: 14px; padding: 10px 17px; }
}

/* 모바일 소형: 살짝 촘촘하게 (그래도 40px 터치 유지) */
@media (max-width: 380px) {
    .v2sort-pill { padding: 9px 13px; font-size: 13px; }
}
