.category-filters-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.category-filter-dropdown {
    position: relative;
}

.category-filter-dropdown__toggle {
    display: inline-flex;
    min-height: 2.75rem;
    min-width: 8rem;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #27272a;
    transition: border-color 0.15s ease;
}

.category-filter-dropdown__toggle:hover,
.category-filter-dropdown.is-open .category-filter-dropdown__toggle {
    border-color: #a1a1aa;
}

.category-filter-dropdown__toggle.has-active {
    border-color: #18181b;
}

.category-filter-dropdown__badge {
    display: inline-flex;
    min-width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #18181b;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: #fff;
}

.category-filter-dropdown__chevron {
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
    border-right: 2px solid #71717a;
    border-bottom: 2px solid #71717a;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.category-filter-dropdown.is-open .category-filter-dropdown__chevron {
    transform: rotate(-135deg) translateY(2px);
}

.category-filter-dropdown__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 16rem;
    max-width: min(22rem, calc(100vw - 2rem));
    max-height: 20rem;
    overflow-y: auto;
    border-radius: 0.5rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.category-filter-dropdown__panel--price {
    min-width: 18rem;
    max-height: none;
    overflow: visible;
}

.category-filters-horizontal__more {
    display: inline-flex;
    min-height: 2.75rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e4e4e7;
    background: #fff;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #27272a;
}

.category-filters-horizontal__more-icon {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 400;
}

.category-filters-vertical .panel-side {
    max-height: none;
    min-width: 0;
    width: 100%;
}

@media (max-width: 767px) {
    .category-filters-horizontal-scroll {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-filters-horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-filter-dropdown__toggle {
        min-width: 7rem;
        white-space: nowrap;
    }
}
