.ev-category-bg {
    background: #fff;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0;
}

.category-section {
    background: #fff;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.category-section__container {
    max-width: 1220px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    padding: 0 20px;
    overflow: visible;
}

.category-section__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
    background: #fff;
    padding: 0;
}

.category-section__label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    width: fit-content;
    margin-bottom: 0;
    color: #23282d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.category-section__title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    background: #fff;
    color: #23282d;
}

/* Category Tabs Container */
.category-tabs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #fff;
}

/* Category Switch Header */
.category-switch-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding-right: 30px;
}

.category-switch-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.category-switch-text {
    font-size: 18px;
    font-weight: 700;
    color: #23282d;
    font-family: 'Roboto', sans-serif;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    align-items: flex-end;
    background: #fff;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    padding-bottom: 12px;
    flex: 1;
}



.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    position: relative;
    background: #fff;
    color: #23282d;
    font-size: 14px;
    font-weight: 700;
    padding: 0 24px;
    border: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
    margin-right: -1px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
    height: 52px;
    width: 195px;
    min-width: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    background: #f5f5f5;
}

.category-tab.active {
    background: #23282d;
    color: #fff;
    z-index: 5;
    position: relative;
    border-bottom: none;
}

.category-tab-arrow {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    background: none;
    z-index: 10;
}

.category-tab.active .category-tab-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #23282d;
    background: none;
}



/* Subcategories Horizontal Scroll */
.category-subcategories {
    background: #fff;
    position: relative;
}

.subcategories-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
}

.subcategories-grid {
    display: flex;
    gap: 20px;
    background: #fff;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.subcategories-nav-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin: 0;
}

.subcategories-nav-btn:hover {
    background: #333;
}

.subcategories-nav-btn img {
    width: 16px;
    height: 16px;
}

.subcategories-nav-left {
    left: -48px;
}

.subcategories-nav-left img {
    transform: scaleX(-1);
}

.subcategories-nav-right {
    right: -48px;
}

.subcategories-grid::-webkit-scrollbar {
    display: none;
}

.subcategory-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 220px;
}

.subcategory-item:hover {
    transform: translateY(-2px);
}

.subcategory-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.subcategory-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

.subcategory-info {
    padding: 16px;
    background: #fff;
}

.subcategory-name {
    font-size: 20px;
    font-weight: 500;
    color: #222222;
    margin: 0 0 4px 0;
    text-align: center;
}

.subcategory-name-kana {
    font-size: 13px;
    font-weight: 700;
    color: #666666;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}



/* Loading and No Data States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.no-subcategories {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.category-tabs-container {
    display: flex;
    align-items: center;
    background: #fff;
    margin: 0 20px;
    min-height: 50px;
}

.category-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-behavior: smooth;
    margin: 0 12px;
    align-items: center !important;
    justify-content: flex-start;
    min-height: 50px;
    margin-top:15px
}

/* Responsive Design */
@media (max-width: 900px) {
    .category-section__container {
        padding: 0 20px;
    }
    
    .category-section__header {
        margin-left: 0;
    }
    
    .category-section__title {
        font-size: 24px;
    }
    
    .category-tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .category-switch-text {
        font-size: 16px;
    }
    
    .category-tabs {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0 0 16px 0;
        gap: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .category-tabs::after {
        left: 0;
        right: 0;
    }
    
    .category-tab {
        width: 100%;
        min-width: 0;
        flex: 1 1 0;
        font-size: 12px;
        padding: 12px 0 8px 0;
        border-radius: 0;
        border: 1px solid #bbb;
        border-bottom: none;
        margin-right: 0;
        text-align: center;
        box-sizing: border-box;
        height: 52px;
    }
    
    .category-tab:not(:last-child) {
        border-right: none;
    }
    
    .category-tab.active {
        border-bottom: none;
        background: #23282d;
        color: #fff;
        position: relative;
        z-index: 2;
    }
    
    .category-tab-arrow {
        position: absolute;
        left: 50%;
        bottom: -12px;
        transform: translateX(-50%);
        z-index: 3;
    }
    
    .subcategories-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .subcategories-nav-btn img {
        width: 14px;
        height: 14px;
    }
    
    .subcategories-nav-left {
        left: -44px;
    }
    
    .subcategories-nav-right {
        right: -44px;
    }
    
    .subcategories-grid {
        gap: 16px;
    }
    
    .subcategory-item {
        width: 180px;
    }
    
    .subcategory-img {
        width: 180px;
        height: 180px;
        object-fit: contain;
        background: #f8f9fa;
        padding: 16px;
    }
    
    .subcategory-info {
        padding: 12px;
    }
    
    .subcategory-name {
        font-size: 14px;
    }
    
    .subcategory-name-kana {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ev-category-bg {
        padding: 40px 0;
    }
    
    .category-section__title {
        font-size: 20px;
    }
    
    .category-section__container {
        padding: 0 16px;
    }
    
    .category-switch-text {
        font-size: 14px;
    }
    
    .category-tabs {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0 0 16px 0;
        gap: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .category-tabs::after {
        left: 0;
        right: 0;
    }
    
    .category-tab {
        width: 100%;
        min-width: 0;
        flex: 1 1 0;
        font-size: 11px;
        padding: 12px 0 8px 0;
        border-radius: 0;
        border: 1px solid #bbb;
        border-bottom: none;
        margin-right: 0;
        text-align: center;
        box-sizing: border-box;
        height: 48px;
    }
    
    .category-tab:not(:last-child) {
        border-right: none;
    }
    
    .category-tab.active {
        border-bottom: none;
        background: #23282d;
        color: #fff;
        position: relative;
        z-index: 2;
    }
    
    .category-tab-arrow {
        position: absolute;
        left: 50%;
        bottom: -12px;
        transform: translateX(-50%);
        z-index: 3;
    }
    
    .subcategories-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .subcategories-nav-btn img {
        width: 12px;
        height: 12px;
    }
    
    .subcategories-nav-left {
        left: -40px;
    }
    
    .subcategories-nav-right {
        right: -40px;
    }
    
    .subcategories-grid {
        gap: 12px;
    }
    
    .subcategory-item {
        width: 160px;
    }
    
    .subcategory-img {
        width: 160px;
        height: 160px;
        object-fit: contain;
        background: #f8f9fa;
        padding: 12px;
    }
    
    .subcategory-info {
        padding: 10px;
    }
    
    .subcategory-name {
        font-size: 13px;
    }
    
    .subcategory-name-kana {
        font-size: 11px;
    }

    .category-tabs-container{
        margin: 0 0px;
    }

    .category-tabs{
        margin: 0 0px;
    }
}

/* Category Switch Styles */
.category-switch-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 20px;
    gap: 20px;
}

.category-switch-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}





.category-nav-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    margin: 0;
}

.category-nav-btn:hover {
    background: #333;
}

.category-nav-btn img {
    width: 16px;
    height: 16px;
}
.category-nav-left{
    margin-top:7px
}
.category-nav-left img {
    transform: rotate(180deg);
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    white-space: nowrap;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    text-wrap: auto;
}

.category-tab:last-child {
    border-right: none;
}

.category-tab-arrow {
    margin-top: -6px;
} 