/* Catalog filters stabilization. Основной дизайн остаётся в style.css. */
#filters-modal[aria-hidden="true"] {
    display: none;
}

#product-filters.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

#pagination-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 24px 0;
}

#pagination-container .page-button {
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
}

#pagination-container .page-button.active {
    font-weight: 700;
}

.noxygen-no-products {
    width: 100%;
    list-style: none;
    padding: 24px;
    text-align: center;
}

@media (max-width: 640px) {
    .filters-modal-content {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .price_range_container_top {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}


/* Price range slider: visible and clickable in catalog filter. */
#price-range {
    position: relative;
    display: block;
    width: 100%;
    min-height: 32px;
    margin: 16px 0 8px;
}

#price-range.noUi-target {
    height: 4px;
    min-height: 4px;
    border: 0;
    border-radius: 999px;
    background: #d7dbe7;
    box-shadow: none;
}

#price-range .noUi-connect {
    background: #3960ff;
}

#price-range .noUi-handle {
    width: 18px !important;
    height: 18px !important;
    right: -9px !important;
    top: -7px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #3960ff !important;
    box-shadow: 0 2px 8px rgba(57, 96, 255, .35) !important;
    cursor: pointer !important;
}

#price-range .noUi-handle::before,
#price-range .noUi-handle::after {
    display: none !important;
}

#price-range .noUi-tooltip {
    display: none !important;
}

.noxygen-native-price-slider {
    height: 32px;
}

.noxygen-native-price-slider input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.noxygen-native-price-slider input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #3960ff;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
}

.noxygen-native-price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #3960ff;
    cursor: pointer;
    pointer-events: auto;
}

.noxygen-native-price-slider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 9px;
    height: 4px;
    border-radius: 999px;
    background: #d7dbe7;
}
