/* ==========================================================
   🔥 Modern Style for basic-shop-gallery / list.skin.php
   (category.skin.php에서 생성되는 HTML 스타일 정의)
   ========================================================== */

/* category.skin.php에서 생성되는 <ul>에 자동으로 클래스가 부여된다고 가정
   혹은 basic 스킨의 category.skin.php의 <ul>에 .modern-category-tabs-ul 클래스를 추가해주어야 함 */

.modern-category-tabs ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* 탭 사이 간격 */
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: none !important; /* 기존 아미나 테두리 제거 */
}

.modern-category-tabs ul li {
    margin: 0 !important; /* 기존 마진 제거 */
    padding: 0 !important;
}

.modern-category-tabs ul li a {
    display: block;
    padding: 10px 20px !important;
    border-radius: 50px !important; /* 알약 모양 */
    background-color: #f1f5f9 !important; /* 회색 배경 */
    color: #475569 !important; /* 어두운 회색 글씨 */
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s;
    border: none !important; /* 기존 테두리 제거 */
}

.modern-category-tabs ul li a:hover {
    background-color: #e2e8f0 !important; /* 호버 시 약간 더 어두운 회색 */
    color: #334155 !important;
}

/* 활성화된 카테고리 (현재 페이지) */
.modern-category-tabs ul li.active a,
.modern-category-tabs ul li.selected a {
    background-color: #334155 !important; /* 짙은 군청색 배경 */
    color: #ffffff !important; /* 흰색 글씨 */
    box-shadow: 0 4px 10px rgba(51, 65, 85, 0.2);
    font-weight: 700 !important;
}

/* 카테고리 이름 뒤의 숫자 스타일 */
.modern-category-tabs ul li a span {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 3px;
    font-weight: normal;
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .modern-category-tabs ul {
        justify-content: center; /* 카테고리를 가운데 정렬 */
        gap: 5px;
    }
    .modern-category-tabs ul li a {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
}