.filter {
    width: 300px;
    border: 1px solid rgba(221, 218, 216, 0.7);
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 29, 27, 0.06);
    padding: 14px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: min-content;
}

.filter-modal-open {
    display: none;
}

@media (max-width: 1024px) {
    .filter {
        display: none;
    }

    .filter-modal-open {
        display: block;
    }
}

.filter-title {
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(221, 218, 216, 0.7);
    color: #1f1d1b;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.filter-catalog-nav {
    border: 1px solid rgba(221, 218, 216, 0.7);
    border-radius: 14px;
    background: #faf9f8;
    overflow: hidden;
}

.filter-catalog-nav-toggle,
.filter-catalog {
    width: 100%;
    border: 0;
    background: transparent;
    color: #1f1d1b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.filter-catalog-nav-toggle {
    min-height: 48px;
    padding: 0 14px;
    font-weight: 800;
}

.filter-catalog-nav-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.filter-catalog-nav-toggle > .fas,
.filter-catalog > .fas {
    flex: 0 0 auto;
    color: #6d6a66;
    font-size: 12px;
    transition: transform .2s, color .2s;
}

.filter-catalog-nav-toggle[aria-expanded="true"] > .fas {
    transform: rotate(180deg);
    color: #1f1d1b;
}

.filter-catalog-nav-body {
    padding: 8px;
    border-top: 1px solid rgba(221, 218, 216, 0.7);
}

.filter-catalog-group {
    border-radius: 12px;
    overflow: hidden;
}

.filter-catalog-group + .filter-catalog-group {
    margin-top: 4px;
}

.filter-catalog {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s, color .2s;
}

.filter-catalog:hover,
.filter-catalog[aria-expanded="true"] {
    background: #fff;
}

.filter-catalog[aria-expanded="true"] > .fas {
    transform: rotate(90deg);
    color: #1f1d1b;
}

.filter-catalog span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.filter-catalog-children {
    margin: 2px 0 8px;
    padding: 4px 0 4px 10px;
    border-left: 2px solid rgba(221, 218, 216, 0.9);
}

.filter-parent {
    min-height: 36px;
    padding: 8px 9px 8px 12px;
    color: #6d6a66;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s, color .2s, transform .2s;
}

.filter-parent:hover {
    background: #fff;
    color: #1f1d1b;
    transform: translateX(2px);
    text-decoration: none;
}

.filter-parent .fas {
    opacity: 0;
    color: #1f1d1b;
    font-size: 11px;
    transition: opacity .2s, transform .2s;
}

.filter-parent:hover .fas {
    opacity: 1;
    transform: translateX(2px);
}

.filter-parent-empty {
    padding: 10px 12px;
    color: #8f8a85;
    font-size: 13px;
}

.filter-search-but,
.filter-search-box {
    width: 100%;
}

.filter-button,.filter-button-remove {
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
}

.range-slider {
    width: 100%;
    height: 32px;
    margin-top: 10px;
    text-align: left;
    position: relative;
}

.range-slider .rangeValues {
    display: block;
}

.range-slider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 14px;
    height: 5px;
    border-radius: 999px;
    background: #ddd;
}

.filter input[type=range],
.filter-modal-body input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 2px;
    height: 28px;
    cursor: grab;
    pointer-events: none;
    z-index: 2;
}

.filter input[type=range].is-active,
.filter-modal-body input[type=range].is-active {
    z-index: 3;
}

.filter input[type=range]::-webkit-slider-runnable-track,
.filter-modal-body input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

.filter input[type=range]::-webkit-slider-thumb,
.filter-modal-body input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #1f1d1b;
    box-shadow: 0 0 0 4px rgba(31, 29, 27, 0.08);
    margin-top: -6px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.filter input[type=range]:focus,
.filter-modal-body input[type=range]:focus {
    outline: none;
}

.filter input[type=range]:focus::-webkit-slider-runnable-track,
.filter-modal-body input[type=range]:focus::-webkit-slider-runnable-track {
    background: transparent;
}

.filter input[type=range]::-moz-range-track,
.filter-modal-body input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: transparent;
    border: none;
    border-radius: 3px;
}

.filter input[type=range]::-moz-range-thumb,
.filter-modal-body input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #1f1d1b;
    box-shadow: 0 0 0 4px rgba(31, 29, 27, 0.08);
    cursor: pointer;
    pointer-events: auto;
}

.range-inp {
    width: calc(50% - 5px);
    border: 1px solid rgba(221, 218, 216, 0.9);
    border-radius: 12px;
    background: #faf9f8;
    color: #1f1d1b;
    padding: 9px 10px;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
    appearance: textfield;
    -moz-appearance: textfield;
}

.range-inp:focus {
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 29, 27, 0.08);
    border-color: rgba(31, 29, 27, 0.35);
}

.range-inp::-webkit-inner-spin-button,
.range-inp::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-inps {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.filter-block .filter-title {
    border: none;
    cursor: auto;
}

.filter-title-collapse {
    cursor: pointer;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(221, 218, 216, 0.7);
    color: #1f1d1b;
    font-size: 16px;
    font-weight: 700;
    transition: .2s;
}

.filter-title-collapse:hover {
    background: #faf9f8;
}

.filter-title-collapse i {
    transform: rotate(90deg);
    margin-left: 10px;
    transition: .3s;
}

.filter-title-collapse i.rotate {
    transform: rotate(-90deg);
}

.filter-collapse-section {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(221, 218, 216, 0.7);
    color: #6d6a66;
    font-size: 14px;
    transition: .2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-collapse-section.is-checked {
    color: #1f1d1b;
    font-weight: 700;
    background: #faf9f8;
}

.filter-collapse-section input {
    width: 16px;
    aspect-ratio: 1;
    cursor: pointer;
    accent-color: #1f1d1b;
}

.filter-options-search {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid rgba(221, 218, 216, 0.7);
}

.filter-options-search-input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 1px solid rgba(221, 218, 216, 0.9);
    border-radius: 12px;
    background: #faf9f8;
    color: #1f1d1b;
    padding: 0 12px;
    outline: none;
    transition: .2s;
}

.filter-options-search-input:focus {
    background: #fff;
    border-color: rgba(31, 29, 27, 0.35);
    box-shadow: 0 0 0 3px rgba(31, 29, 27, 0.08);
}

.filter-options-search i {
    color: #6d6a66;
    font-size: 13px;
}

.filter-options-empty {
    padding: 14px 12px;
    color: #6d6a66;
    font-size: 14px;
    text-align: center;
}

.filter-catalog-element {
    width: 100%;
    max-height: 300px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #bab7b5 #faf9f8;
}

.filter-catalog-element::-webkit-scrollbar {
    width: 8px;
}

.filter-catalog-element::-webkit-scrollbar-track {
    background: #faf9f8;
}

.filter-catalog-element::-webkit-scrollbar-thumb {
    background-color: #bab7b5;
    border-radius: 6px;
}

.filter-catalog-element::-webkit-scrollbar-thumb:hover {
    background-color: #6d6a66;
}

.filter-modal-body {
    background-color: white;
}

.search-but,.filter-button{
    width: 100%;
    background: black;
    color: white;
    border-radius: 8px;
}
