.ws-filters-section {
    padding-block: 24px;
}

.ws-themes-grid-wrap {
    padding-block: 40px;
    min-height: 60vh;
}

.ws-themes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ws-themes-filters {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ws-themes-filters__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.ws-themes-filters__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ws-themes-filters__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ws-themes-search-wrap {
    position: relative;
}

.ws-themes-search-wrap svg {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #94a3b8;
    pointer-events: none;
}

.ws-themes-search {
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.875rem;
    width: 260px;
    transition: all 0.2s ease;
    background: #f8fafc;
    padding-left: 2.5rem !important;
}

.ws-themes-search:hover {
    border-color: var(--primary) !important;
}

.ws-themes-search:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ws-themes-select {
    padding: 0.625rem 2.25rem 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 0.5rem center;
    background-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-themes-select:focus {
    outline: none;
    border-color: var(--primary);
}

.ws-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-filter-toggle:hover,
.ws-filter-toggle.active {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.ws-filter-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.ws-filter-toggle__badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    min-width: 1.125rem;
    text-align: center;
}

/* Filter Panel */
.ws-themes-filter-panel {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ws-themes-filter-panel.active {
    display: block;
}

.ws-themes-filter-panel__inner {
    padding: 1.5rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

@media (max-width: 968px) {
    .ws-themes-filter-panel__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.ws-filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ws-filter-section__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Type Grid */
.ws-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ws-type-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-type-btn:hover,
.ws-type-btn.active,
.ws-cat-btn:hover,
.ws-cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.ws-cat-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Price Range Slider */
.ws-price-slider-wrap {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.ws-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ws-price-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.ws-price-separator {
    color: #94a3b8;
    font-size: 0.875rem;
}

.ws-range-slider {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 1.5rem 0;
}

.ws-range-slider__track {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    border-radius: 3px;
}

.ws-range-slider__input {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 0;
    left: 0;
}

.ws-range-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-range-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.ws-range-slider__input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.ws-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}

.ws-apply-price-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.625rem 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-apply-price-btn:hover {
    background: #4338ca;
}

/* Active Filters */
.ws-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ws-active-filters__label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-right: 0.25rem;
}

.ws-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 2rem;
    font-size: 0.8125rem;
    color: var(--primary);
}

.ws-filter-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ws-filter-tag__remove:hover {
    background: #4338ca;
}

.ws-clear-all {
    font-size: 0.8125rem;
    color: #ef4444;
    cursor: pointer;
    margin-left: auto;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.ws-clear-all:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Pagination */
.ws-themes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.ws-themes-pagination a,
.ws-themes-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ws-themes-pagination a {
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.ws-themes-pagination a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.ws-themes-pagination .current {
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.ws-themes-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    display: inline;
}

.ws-themes-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.ws-themes-empty svg {
    width: 4rem;
    height: 4rem;
}

@media (max-width: 1024px) {
    .ws-themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ws-themes-filters__top {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-themes-filters__left,
    .ws-themes-filters__right {
        width: 100%;
        justify-content: space-between;
    }

    .ws-themes-search {
        width: 100%;
        flex: 1;
    }

    .ws-themes-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}