.category-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(126, 231, 135, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(19, 16, 48, 0.96), rgba(12, 11, 34, 0.96)),
        radial-gradient(circle at top right, rgba(126, 231, 135, 0.16), transparent 42%);
    box-shadow: 0 14px 34px rgba(3, 8, 20, 0.28);
}

.category-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-filter-field__label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.category-filter-field__control {
    width: 100%;
    min-height: 48px;
    padding: 0 48px 0 14px;
    border: 1px solid rgba(126, 231, 135, 0.28);
    border-radius: 12px;
    background-color: rgba(11, 14, 33, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 18px center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.category-filter-field__control:hover {
    border-color: rgba(126, 231, 135, 0.6);
}

.category-filter-field__control:focus {
    outline: none;
    border-color: rgba(126, 231, 135, 0.8);
    box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.14);
}

.category-filter-field__control:disabled,
.category-filters__reset:disabled {
    cursor: wait;
    opacity: 0.65;
}

.category-filter-field__control option {
    color: #ffffff;
    background-color: #101424;
}

.category-filters__reset {
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(120deg, #1b8f58, #2ecc71);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.category-filters__reset:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.2);
}

.category-filters__reset:active {
    transform: translateY(1px);
}

.category-filters__status {
    grid-column: 1 / -1;
    min-height: 1.35rem;
    margin: -2px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.category-filters.is-loading .category-filters__status {
    color: var(--site-green);
}

.category-filters__status.is-error {
    color: #ff8e8e;
}

html[data-theme="light"] .category-filters {
    border-color: var(--border-soft);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 251, 0.94)),
        radial-gradient(circle at top right, rgba(114, 88, 239, 0.12), transparent 40%);
    box-shadow: 0 16px 34px var(--shadow-color);
}

html[data-theme="light"] .category-filter-field__label {
    color: var(--text-secondary);
}

html[data-theme="light"] .category-filter-field__control {
    border-color: var(--border-soft);
    background-color: rgba(255, 255, 255, 0.96);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5L7 9.5L11 5.5' stroke='%23182235' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .category-filter-field__control:hover {
    border-color: rgba(114, 88, 239, 0.36);
}

html[data-theme="light"] .category-filter-field__control:focus {
    border-color: rgba(114, 88, 239, 0.5);
    box-shadow: 0 0 0 3px rgba(114, 88, 239, 0.12);
}

html[data-theme="light"] .category-filter-field__control option {
    color: var(--text-primary);
    background-color: #ffffff;
}

html[data-theme="light"] .category-filters__reset {
    background: linear-gradient(135deg, var(--fiolet), #8c74ff);
    box-shadow: 0 12px 22px rgba(114, 88, 239, 0.18);
}

html[data-theme="light"] .category-filters__reset:hover {
    box-shadow: 0 16px 28px rgba(114, 88, 239, 0.22);
}

html[data-theme="light"] .category-filters__status {
    color: var(--text-muted);
}

html[data-theme="light"] .category-filters.is-loading .category-filters__status {
    color: var(--fiolet);
}

html[data-theme="light"] .category-filters__status.is-error {
    color: #c94b5b;
}

.load-more.is-disabled {
    pointer-events: none;
    opacity: 0.65;
}

.category-empty-state {
    width: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    border: 1px dashed rgba(126, 231, 135, 0.26);
    border-radius: 18px;
    background-color: rgba(11, 14, 33, 0.6);
}

.category-empty-state__title {
    margin: 0 0 10px;
    color: var(--site-green);
    font-size: 1.8rem;
    font-weight: 700;
}

.category-empty-state__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
}

html[data-theme="light"] .category-empty-state {
    border-color: var(--border-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.92));
    box-shadow: 0 12px 28px var(--shadow-color);
}

html[data-theme="light"] .category-empty-state__title {
    color: var(--fiolet);
}

html[data-theme="light"] .category-empty-state__text {
    color: var(--text-secondary);
}

@media screen and (max-width: 1180px) {
    .category-filters {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .category-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
