.products-filters {
    backdrop-filter: none;
    background: #ffffffa8;

    & .block-title {
        /* width: fit-content; */
        gap: 10px;
        cursor: pointer;
        align-items: center;

        @media (width <=768px) {
            justify-content: center;
            margin: auto;

        }

        &.open {
            padding-bottom: 20px;
        }

        & svg {
            width: 15px;
        }

        & h3 {
            font-size: 16px;
        }
    }

    & #filters-form {
        overflow: hidden;
        height: 0;
        gap: 1%;
        position: relative;

        @media (width <=768px) {
            flex-direction: column;
            gap: 15px;
            /* height: auto; */
        }

        &.open {
            height: auto;
            overflow: visible;
        }

        & .filters-form_btns {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: auto;
            margin-bottom: 25px;

            & .button {

                @media(width <=768px) {
                    background: transparent;
                    /* outline: none; */
                    box-shadow: none;
                    padding: 10px;
                    border-radius: 10px;
                    border: 1px solid #fff;
                    cursor: pointer;
                    color: #fff;
                    text-transform: uppercase;

                    &.filter-apply-btn {
                        background: #fff;
                        color: #000;
                        padding: 10px;
                        border-radius: 10px;

                    }
                }

            }

        }

        & #reset-filters-btn {
            @media (width >=768px) {
                position: absolute;
                right: 0;
                top: -40px;
                cursor: pointer;
                background: transparent;
                border: none;
            }

        }


        & .filter-item {

            & .filter-item_title {
                margin: 0 0 10px;
                font-weight: 600;

                @media (width <=768px) {
                    color: #fff;
                }
            }

            & .filter-item_wrap {
                display: flex;
                flex-direction: column;
                width: fit-content;
                /* max-width: 130px; */
                max-height: 200px;
                flex-wrap: wrap;
                gap: 0 10px;

                @media (width <=768px) {
                    flex-direction: row;
                    width: 100%;
                }

                & .price-filter_inputs {
                    display: flex;
                    gap: 8px;

                    @media (width <=768px) {
                        width: 100%;
                    }

                    & .price-filter_field {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;
                        font-size: 12px;
                        color: #374957;
                        flex: 1;

                        @media (width <=768px) {
                            color: #fff;
                        }

                        & input[type="number"] {
                            width: 100%;
                            padding: 8px 10px;
                            border: 1px solid #d7dee3;
                            border-radius: 8px;
                            font-size: 14px;
                            color: #374957;
                        }
                    }
                }

                & .price-filter_slider {
                    position: relative;
                    height: 24px;
                    margin-top: 4px;


                    & .range-highlight {
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        height: 8px;
                        /* чуть толще обычного трека */
                        background: var(--accent-color);
                        /* цвет выделения */
                        border-radius: 4px;
                        pointer-events: none;
                        z-index: 1;
                    }

                    @media (width <=768px) {
                        width: 100%;
                    }

                    & input[type="range"] {
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        pointer-events: none;
                        appearance: none;
                        -webkit-appearance: none;
                        background: transparent;
                        margin: 0;
                        border: none;
                        padding: 0;

                        &::-webkit-slider-runnable-track {
                            height: 4px;
                            background: #49555e;
                            border-radius: 999px;
                            border: 0;
                        }

                        &::-webkit-slider-thumb {
                            -webkit-appearance: none;
                            appearance: none;
                            width: 16px;
                            height: 16px;
                            border-radius: 50%;
                            background: #374957;
                            border: 2px solid #fff;
                            margin-top: -6px;
                            pointer-events: auto;
                            cursor: pointer;
                            z-index: 2;
                            position: relative;
                        }

                        &::-moz-range-track {
                            height: 4px;
                            background: #d7dee3;
                            border-radius: 999px;
                            border: 0;
                        }

                        &::-moz-range-thumb {
                            width: 16px;
                            height: 16px;
                            border: 2px solid #fff;
                            border-radius: 50%;
                            background: #374957;
                            cursor: pointer;
                            pointer-events: auto;
                        }
                    }
                }
            }

            label[for^="pa_"] {
                padding: 3px 8px;
                background: #ffffff63;
                border-radius: 13px;
                margin-bottom: 6px;
                cursor: pointer;
                /* width: fit-content; */
                font-size: 14px;

                & input {
                    appearance: none;
                }

                &:has(input[disabled]) {
                    cursor: not-allowed;
                    opacity: 0.5;
                }
            }

            label[for^="pa_"]:has(input:checked) {
                background: var(--accent-color);
                color: #fff;
                transition: all .5s;
            }

            @media (hover: hover) {
                label[for^="pa_"]:hover {
                    scale: 1.05;
                    background: var(--accent-color);
                    color: #fff;
                    transition: all .5s;
                }
            }

            #price-max-range::-webkit-slider-runnable-track {
                background: transparent
            }
        }
    }

    &.open {
        position: fixed;
        top: 110px;
        z-index: 9999;
        inset: 20px;
        background: #267a6487;
        backdrop-filter: blur(30px);
        box-shadow: 0px 0px 110px 110px #000000a3;

        & #filters-form {
            height: 100%;
            overflow-y: scroll;
        }

        @media(width <=768px) {
            & svg {
                & path {
                    fill: #fff;
                }
            }

            & h3 {
                font-size: 16px;

                @media (width <=768px) {
                    color: #fff;

                }
            }
        }
    }
}