.uc-custom-catalog .js-sidebar-filters {
    display:none;
}
.uc-custom-catalog .t-catalog__card__price::before {
    content: 'От';
    margin-right: 6px;
    font-size: 14px;
}
a.custom-visual-btn {
    text-align:center;
}
.custom-price-inputs {
    display: flex;
    flex-wrap: nowrap;
}
.custom-filters-wrapper {
    flex-wrap: wrap;
}
.custom-filters-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-filter-price {
    display: flex;
    align-items: center;
    gap: 8px;}
.custom-filter-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.custom-price-title {
    font-size: 16px;
    max-width: 450px;
    font-family: var(--t-text-font, Arial);
    font-weight: 700;
}
.custom-filter-price-and-visualisation {
    display:flex;
    align-items:center;
    gap:8px;
}
input.custom-price-min, input.custom-price-max {
    width: fit-content;
    max-width: 60px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #afafaf;
    font-family: var(--t-text-font);
    font-weight: 600;
}
button.custom-price-apply {
    padding: 4px 10px;
    border: 1px solid #afafaf;
    color: #222222;
    font-family: var(--t-text-font,Arial);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
}
.custom-filter-search-and-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-filter-search {
    display: flex;
}
select.custom-sort-select {
    padding: 4px 6px;
    border-radius: 6px;
    font-family: var(--t-text-font,Arial);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #afafaf;
    color: #222222;
}

input.custom-search-input {
    padding: 4px 6px;
    border-radius: 6px;
    font-family: var(--t-text-font, Arial);
    font-weight: 600;
    font-size: 14px;
    color: #222222;
    outline: none;
    border: 1px solid #afafaf;
}
button.custom-search-button {
    padding: 4px 10px;
    border: 1px solid #afafaf;
    color: #222222;
    font-family: var(--t-text-font, Arial);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
}
a.custom-visual-btn {
    padding: 4px 10px;
    border: 1px solid #222222;
    color: #ffffff !important;
    font-family: var(--t-text-font, Arial);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    background-color: #222222;
    cursor: pointer;
    box-sizing: border-box;
}
.t-catalog__filter__search-and-sort.js-catalog-filter-search-and-sort {
    display: none;
}
.t-catalog__filter__options.t-catalog__filter__options_wrap {
    display: none;
}
.custom-price-separator {
    font-size:12px;
}
.custom-search-button-icon { display: none; }
.custom-search-button-text { display: inline; }

@media screen and (max-width: 960px) {
    .uc-custom-catalog .t-catalog__cont-wrapper .t-catalog__parts-switch-wrapper.t-catalog__parts-switch-wrapper_mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 960px) {
    .t-catalog__filter__search-and-sort.js-catalog-filter-search-and-sort {
        display: none;
    }
    .t-catalog__filter__options.t-catalog__filter__options_wrap {
        display: none;
    }
}

@media screen and (max-width: 520px) {
    .custom-filters-wrapper {
        gap:6px;
    }
    .custom-filter-price-and-visualisation {
        flex-direction:column;
        width:100%;
    }
    .custom-filter-price {
        width: 100%;
    }
    button.custom-price-apply {
        margin-left:auto;
    }
    .custom-filter-search-and-sort {
        justify-content: space-between;
        width:100%;
        flex-wrap:wrap;
    }
    a.custom-visual-btn {
        padding: 8px 10px;
        width: 100%;
    }
}

@media screen and (max-width: 460px) {
    /* На мобиле кнопка показывает иконку, текст скрыт */
    .custom-search-button-text { display: none; }
    .custom-search-button-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Кнопка-иконка: квадратная, без рамки слитной с инпутом */
    button.custom-search-button {
        padding: 6px 8px;
        border-radius: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Контейнер поиска — flex-row, инпут с шириной 0 и схлопнутыми отступами */
    .custom-filter-search {
        display: flex;
        align-items: center;
        gap: 0;
        overflow: hidden;
    }

    /* Инпут изначально свёрнут (нулевая ширина), без padding/border */
    .custom-filter-search input.custom-search-input {
        width: 0;
        padding: 0;
        border-width: 0;
        margin: 0;
        opacity: 0;
        transition: width 0.3s ease, padding 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    }

    /* Раскрытое состояние */
    .custom-filter-search.is-open input.custom-search-input {
        width: 116px;
        padding: 6px 8px;
        border: 1px solid #afafaf;
        margin-right: 2px;
        opacity: 1;
    }
}
@media screen and (max-width: 360px) {
    .custom-filter-price-wrap, .custom-filter-search-and-sort {
        flex-wrap: wrap;
    }
}
@media screen and (max-width: 320px) {
    button.custom-price-apply {
        margin-left:0;
    }
}