@media screen and (min-width: 767px) {
    .filter-sidebar {
        transform: translateX(-100%) !important;
    }
}

@media screen and (max-width: 767px) {
    .filter-sidebar {
        opacity: 0 !important;
    }
    .filter-sidebar.bvabi-catalog-sidebar {
        opacity: 1 !important;
    }
}

.catalog__sidebar {
    display: flex;
}
.catalog__sidebar .filter-bl {
    background: #e4cccc;
    padding: 10px;
    margin-right: 20px;
}
.catalog__sidebar .filter-bl h6 {
    margin: 0
}

.catalog__sidebar .filter-sidebar-main .os-scrollbar {
    transition: opacity 0.2s ease;
}
.catalog__sidebar:not(.opened) .filter-sidebar-main .os-scrollbar {
    opacity: 0;
}



.filter-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    display: none;
    background: rgba(0, 0, 0, 0.11);
    backdrop-filter: blur(5px);
    z-index: 500;
}

/* ======================= */
/*         OLD
/* ======================= */

:root {
    --vabi-selector-color-bg: #ddd;
    --vabi-selector-color-bg-hover: #ccc;
    --vabi-selector-color-text: #000;
    --vabi-selector-color-active: #3E3E41;
    --vabi-selector-color-border: #a1a1a1;
    --vabi-selector-color-border-active: #343434;
    --vabi-selector-color-shadow: rgba(0, 0, 0, 0.2);
    --vabi-selector-color-list-bg: #fff;
    --vabi-selector-color-list-bg-hover: #EFF0F2;
    --vabi-selector-color-inner: #9f9f9f;

    --vabi-filter-sidebar-bg: #fff;
    /*--vabi-filter-sidebar-bg: #F4F4F8;*/
}





.c-switch {
    --c-switch-w: 42px;
    --c-switch-h: 24px;
    --c-switch-pad: 3px;
    --c-switch-border: #77767D;
    --c-switch-bg: transparent;
    --c-switch-bg-checked: #19191B;
    --c-switch-border-checked: #19191B;
    --c-switch-thumb: #ffffff;
    --c-switch-thumb-off: #a1a1a1;
    --c-switch-gap: 10px;

    /*display: inline-flex;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--c-switch-gap);
    cursor: pointer;
    user-select: none;
}

/* Доступный скрытый input */
.c-switch__input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* Трек */
.c-switch__track {
    position: relative;
    inline-size: var(--c-switch-w);
    block-size: var(--c-switch-h);
    border-radius: calc(var(--c-switch-h) / 2);
    border: 1px solid var(--c-switch-border);
    background: var(--c-switch-bg);
    flex: 0 0 var(--c-switch-w);
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

/* Бегунок */
.c-switch__thumb {
    position: absolute;
    top: var(--c-switch-pad);
    left: var(--c-switch-pad);
    inline-size: calc(var(--c-switch-h) - (var(--c-switch-pad) * 2));
    block-size: calc(var(--c-switch-h) - (var(--c-switch-pad) * 2));
    border-radius: 999px;
    background: var(--c-switch-thumb-off);
    transition: transform .18s ease, background .2s ease;
}

/* Checked */
.c-switch__input:checked + .c-switch__track {
    background: var(--c-switch-bg-checked);
    border-color: var(--c-switch-border-checked);
}

.c-switch__input:checked + .c-switch__track .c-switch__thumb {
    background: var(--c-switch-thumb);
    transform: translateX(calc(var(--c-switch-w) - var(--c-switch-h)));
}

/* Hover / active */
.c-switch:hover .c-switch__track {
    /*transform: translateY(-0.5px);*/
}
.c-switch:active .c-switch__track {
    transform: translateY(0);
}

/* Focus-visible (как у checkbox) */
.c-switch__input:focus-visible + .c-switch__track {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Disabled */
.c-switch__input:disabled + .c-switch__track {
    opacity: .55;
    cursor: not-allowed;
}
.c-switch__input:disabled ~ .c-switch__text {
    opacity: .7;
    cursor: not-allowed;
}

.c-switch__text {
    line-height: 1.25;
}


/* Component vars (можно вынести в :root) */
.c-check {
    --c-check-size: 18px;
    --c-check-radius: 5px;
    --c-check-border: #77767D;
    --c-check-bg: transparent;
    --c-check-bg-checked: #19191B;
    --c-check-border-checked: #19191B;
    --c-check-icon: #a1a1a1;
    --c-check-icon-checked: #ffffff;
    --c-check-gap: 10px;

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--c-check-gap);
    cursor: pointer;
    user-select: none;
}

/* Real input stays accessible but invisible */
.c-check__input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* Visual box */
.c-check__box {
    position: relative;
    inline-size: var(--c-check-size);
    block-size: var(--c-check-size);
    border-radius: var(--c-check-radius);
    border: 1px solid var(--c-check-border);
    background: var(--c-check-bg);
    flex: 0 0 var(--c-check-size);
    transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

/* Icon */
.c-check__icon {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    fill: none;
    stroke: var(--c-check-icon);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(0);
    transition: transform .12s ease, stroke .2s ease;
}

/* Checked state */
.c-check__input:checked + .c-check__box {
    background: var(--c-check-bg-checked);
    border-color: var(--c-check-border-checked);
}

.c-check__input:checked + .c-check__box .c-check__icon {
    stroke: var(--c-check-icon-checked);
    transform: scale(1);
}

/* Hover / active (аккуратно) */
.c-check:hover .c-check__box {
    /*transform: translateY(-0.5px);*/
}

.c-check:active .c-check__box {
    transform: translateY(0);
}

/* Focus (как в Bootstrap: заметно, но не кислотно) */
.c-check__input:focus-visible + .c-check__box {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Disabled */
.c-check__input:disabled + .c-check__box {
    opacity: .55;
    cursor: not-allowed;
}

.c-check__input:disabled ~ .c-check__text {
    opacity: .7;
    cursor: not-allowed;
}

/* Text */
.c-check__text {
    /*line-height: 1.25;*/
    line-height: 1;
}










/*{*/
/*    #151517*/
/*}*/

.filter-desktop-container {
    display: flex;
    /*align-items: center;*/
    align-items: flex-start;
    justify-content: space-between;
}

.filter-desktop-container .filter-flex {
    display: flex;
    align-items: baseline;

    /*justify-content: space-between;*/
}

.filter-desktop-container .ms-3 {
    margin-right: 10px;
}

.filter-desktop-container .me-1 {
    margin-right: 3px;
}

.d-sm-none {

}

.viewtype_radio {
    margin-bottom: 5px;
}


/* ============================= */
/*          FILTER FLOW          */
/* ============================= */

.filter-flow {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 149;
    /*box-shadow: 0 0 10px #c0c0c0;*/
    /*background: #fff;*/
    background: var(--vabi-filter-sidebar-bg);

    transform: translateX(-271px);
}


.filter-flow.fixed_wwer {
    transform: translateX(0);
}

.filter-trigger {
    cursor: pointer;
    padding: 10px 15px;
    /*background-color: #FFFFFF;*/
    background-color: var(--vabi-filter-sidebar-bg);
    color: #58595b;
    border-radius: 4px 0 0 4px;
    white-space: nowrap;
    position: relative;
    z-index: 3;
    /*transition: all 0.3s ease;*/
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;


    /*box-shadow: 0 0 10px #c0c0c0;*/
}

.filter-trigger:before {
    content: ' ';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -10px;
    right: 0;
    width: 30px;
    /*background-color: #FFFFFF;*/
    background-color: var(--vabi-filter-sidebar-bg);
    z-index: -1;
}

.filter-trigger:after {
    content: ' ';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    /*background-color: #ececec;*/
    /*background: #fff;*/
    background: var(--vabi-filter-sidebar-bg);
    z-index: -1;
}


.filter-flow .filter-trigger {
    /*border-right: 1px solid #fff;*/
    border-right: 1px solid var(--vabi-filter-sidebar-bg);
}

.filter-flow.fixed_wwer .filter-trigger {
    border-right: 1px solid #ccc;
}


.filter-content {
    position: fixed;
    top: 0;
    /*left: -270px;*/
    width: 270px;
    max-width: 270px;
    /*background-color: #FFFFFF;*/
    background-color: var(--vabi-filter-sidebar-bg);

    border-left: 1px solid #ddd;
    padding: 0;
    margin: 0;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2;
    height: 100%;
}

.filter-flow .filter-trigger .opened {
    display: block;
}

.filter-flow .filter-trigger .closed {
    display: none;
}

/*.filter-flow.active .filter-trigger .opened {*/
/*    display: none;*/
/*}*/

/*.filter-flow.active .filter-trigger .closed {*/
/*    display: block;*/
/*}*/

.filter-content .content {
    padding: 0.5em;
    margin-top: 10px;
    overflow-y: auto;
    height: calc(100% - 180px);
}

.filter-flow.active .filter-content {
    left: 0;
}

.filter-flow {
    z-index: 600 !important;
}

.filter-flow.active .filter-trigger {
    /*transform: translateX(-270px);*/
}

.filter-content .accordion-button {
    display: flex;
    /*max-width: 200px;*/
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    padding: 6px 12px 4px 14px;
    background-color: var(--vabi-selector-color-bg);
    flex-wrap: wrap;
    margin: 0 10px 1px 0;
    font-size: 13px;
    transition: background-color 0.3s ease;
    color: #58595b;
    width: 100%;
    height: 100%;
}

.filter-content .accordion-button:hover {
    color: #58595b;
    background-color: var(--vabi-selector-color-bg-hover);
}

.filter-content .accordion-button.opened {
    color: #58595b;
    background-color: var(--vabi-selector-color-bg-hover);
}

.br-accordion {
    max-height: calc(100% - 100px);
}

.header-filter {
    font-weight: 400;
    color: #58595b;
    font-size: 22px;
    margin-right: 10px;
    margin-left: 10px;
    font-weight: 600;
    padding-top: 10px;
    padding: 10px;
    padding-left: 20px;
    background: #fff;

    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header-collection {
    font-size: 20px !important;
    text-align: left !important;
    padding-left: 9px;
}

.filter-flow .link-buttons {
    padding-left: 10px;
    padding-right: 10px;
}

.filter-flow .link-buttons .vabi-btn {
    min-width: 100px !important;
    /*width: 100% !important;*/
    max-width: 100% !important;
}

.btn-clean {
    background-color: transparent !important;
    border: 1px solid #ddd !important;
    color: #494949 !important;
}

.btn-clean:hover {
    background-color: var(--vabi-selector-color-bg-hover) !important;
}

.filter-content {
    position: fixed;
    top: 0;
    left: 0; /* пусть висит на краю вёрстки */
    width: 290px;
    height: 100%;
    /*background: #fff;*/
    background: var(--vabi-filter-sidebar-bg);
    box-shadow: -4px 0 10px rgba(0, 0, 0, .1);
    transform: translateX(calc(100% - 48px)); /* старт: полностью за кадром */
    transition: none !important; /* отключаем CSS-анимации */
}

.filter-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: var(--vabi-filter-sidebar-bg);
    /*background: #fff;*/
    box-shadow: 0 0 5px rgba(0, 0, 0, .1);
    transform: translateX(0); /* старт: на краю экрана */
}

.pager, .content .pager {
    left: 60px !important;
}

.accordion-item {
    background: #fff;
    /*padding: 10px;*/
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 7px 3px 3px 3px;
}

.accordion-item .accordion-body,
.accordion-item .accordion-body ul {
    padding-top: 0;

    overflow: hidden;
}

.accordion-item .accordion-body,
.accordion-item .accordion-body ul,
.accordion-item .accordion-body ul li {
    background: transparent !important;
}

.filter-bg.instant-show {
    opacity: 1;
    display: block;
}

.instant-show [data-filter-flow-trigger] {
    translate: none;
    rotate: none;
    scale: none;
    transform: translate(287px, 0px)
}

.instant-show [data-filter-flow-content] {
    translate: none;
    rotate: none;
    scale: none;
    transform: translate(0px, 0px);
}


.filter-trigger {
    transition: opacity 0.2s ease;
}

.filter-trigger.opened {

    opacity: 0;
    /*padding: 0;*/
    /*width: 0;*/
}

.filter-content {
    background: #F4F4F8;
}

.header-filter {

}

.filter-content .accordion-button {
    background: transparent;
    text-transform: none;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    display: block;
}

.filter-content .accordion-button:hover {
    /*color: #000;*/
    background-color: transparent;
}

.show-more-filter {
    color: #b6882f;
    border-bottom: none;
    padding-left: 18px;
    margin-top: -9px;
    margin-bottom: 10px;
    font-size: 14px;
    /* line-height: 20px; */
    position: relative;
    transform: translate(0, 0);
    transition: color 0.1s ease;
    display: inline;
    top: -7px;
    cursor: pointer !important;
}

.show-more-filter:hover {
    color: #b6882f;

}

.show-more-filter:after {
    content: "";
    transform-origin: 3px 6px;
    border-color: #b6882f;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-left-style: solid;
    border-left-width: 2px;
    width: 6px;
    height: 6px;
    transition: transform .3s, border-color .3s;
    display: block;
    position: absolute;
    top: 0px;
    right: -18px;
    transform: rotate(-45deg);
}

[data-accordion-body].triggered ul {
    overflow-y: visible;
}

[data-accordion-body].triggered .show-more-filter {
    display: none;
}


/* ======================================== */
/*              FILTER SIDEBAR
/* ======================================== */

.filter-bg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    display: none;
    background: rgba(0, 0, 0, 0.11);

    z-index: 500;
}

/* Основной контейнер сайдбара */
.filter-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10000;
    /*width: 270px;*/
    width: 320px;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 10px;
    overflow: hidden;
    background-color: #f6f6f9;
    position: fixed;

    box-shadow: 0 0 10px #00000029;
    /*opacity: 0;*/
}

/*.filter-sidebar:after {*/
/*    position: absolute;*/
/*    content: '';*/
/*    right: 8px;*/
/*    top: 50%;*/
/*    margin-top: -12px;*/
/*    width: 24px;*/
/*    height: 24px;*/

/*    background-position: center center;*/
/*    background-repeat: no-repeat;*/
/*    background-size: 24px;*/
/*    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%2358595b" viewBox="0 0 16 16"><path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2z"/></svg>');*/
/*}*/

.filter-sidebar [data-item] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.filter-sidebar:not(.instant-show) {
    transform: translateX(-300px);
    background-color: #fff;
}

.filter-sidebar:not(.instant-show) [data-item-main] {
    display: none;
}

.filter-sidebar [data-item-main] {
    padding-right: 20px;
}

.filter-sidebar [data-item-main] > * {
    height: 100% !important;
    max-height: 100%;
}


.filter-sidebar:not(.instant-show) [data-item] {
    opacity: 0;
}


.filter-sidebar .filter-sidebar-trigger {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-sidebar .filter-sidebar-trigger svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.filter-sidebar .filter-sidebar-trigger:hover svg {
    transform: scale(1.1);
}

.filter-sidebar.instant-show .filter-sidebar-trigger {
    display: none;
}


/* Заголовок сайдбара */
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
}

.filter-sidebar-header,
.filter-sidebar .filter-sidebar-header {
    color: #58595b;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0 10px 20px;
    background: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    flex-grow: 0;
}

/* Основной контент и кнопки */
.filter-sidebar .filter-sidebar-main {
    flex-grow: 1;
    overflow-y: auto;

    flex-direction: column;
}

.filter-sidebar .filter-sidebar-footer {
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.filter-sidebar .filter-sidebar-buttons {
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-sidebar .filter-sidebar-buttons .vabi-btn {
    min-width: auto !important;
    max-width: none !important;
    margin: 0;
}

.filter-sidebar-buttons .vabi-btn:nth-of-type(2) {
    margin-left: 10px;
}

/* Секция фильтра */
.filter-sidebar .filter-section {
    background: #fff;
    border-radius: 20px;
    /*margin: 10px auto;*/
    /*margin: 10px auto;*/
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 16px 0;
    /*overflow: hidden;*/
    /*width: 100%;*/
    /*margin-right: 20px !important;*/
}

.filter-sidebar .filter-section .filter-section-scroll {
    transition: max-height 0.25s ease;
}

.filter-sidebar .filter-section-header {
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: #58595b;
    /*padding-left: 17px;*/
}
.filter-sidebar .filter-section-header.mb {
    margin-bottom: 5px;
}


.filter-sidebar .filter-scroll-trigger {
    padding: 5px 5px 0;
    cursor: pointer;
    font-size: 12px;
}

/* Прокручиваемая часть */
.filter-sidebar .filter-section-scroll {
    max-height: 147px;
    overflow: hidden;
}

.filter-sidebar .filter-section-scroll.is-expanded {
    max-height: 230px !important;
}

/* Список чекбоксов */
.filter-sidebar .filter-section-scroll ul {
    list-style: none;
    margin: 0;
    padding: 7px 0;
    font-size: 1em;
    height: 100%;
    z-index: 100;
}

.filter-sidebar .filter-section-scroll ul li {
    padding: 0 3px;
    background-color: var(--vabi-selector-color-list-bg);
    transition: background-color 0.2s ease;
}

.filter-sidebar .filter-section-scroll ul li > * {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.25em 0;
    white-space: nowrap;
    cursor: pointer;
}

.filter-sidebar .filter-section-scroll ul li .custom-checkbox {
    position: relative;
    display: inline-block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 5px;
    cursor: pointer;
}

.filter-sidebar .filter-section-scroll ul li .name {
    line-height: 20px;
    padding-left: 10px;
    padding-top: 0;
    position: relative;
    top: -1px;
}

/* Блок ценового фильтра */
.filter-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 15px 10px 0;
}

.filter-price .smaller {
    font-size: 13px;
}

.filter-price .col {
    flex: 0 0 50%;
}

.filter-price .col:nth-child(2) {
    margin-left: 10px;
}

.filter-price .col .input,
.filter-price .col .input input {
    max-width: 100%;
}


.filter-price .col .input input {
    max-width: 100%;
    background-color: #f1f1f5;
    border-color: #f1f1f5;
    transition: background-color .3s, border-color .3s;
    /*border: 1px solid #d3d4dd;*/
    border-radius: 12px;
    width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 16px;
    padding: 5px 8px;
}

.filter-price .col .input,
.filter-price .col .input input:focus {
    background-color: #fff;
    border-color: #f1f1f5;
}

.filter-price .col .input input {
    max-width: 85%;
}

.filter-sidebar {
    /*position: relative;*/
}
/*.filter-sidebar:before {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    content: '';*/
/*    background: rgba(0, 0, 0, 0.11);*/
/*    z-index: -1;*/
/*    opacity: 0;*/
/*    transition: opacity 0.2s ease;*/
/*    will-change: opacity;*/
/*}*/

/*.filter-sidebar.loading:before {*/
/*    z-index: 1;*/
/*    opacity: 1;*/
/*}*/

.filter-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.filter-sidebar.loading .filter-spinner {
    display: flex;
}

.filter-spinner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.filter-spinner-icon {
    position: relative;
}

.filter-spinner-icon svg {
    width: 32px;
    height: 32px;
    animation: filterSpinnerRotate 1s linear infinite;
}

.filter-spinner-text {
    font-size: 14px;
    color: #3E3E41;
    font-weight: 500;
    text-align: center;
}

@keyframes filterSpinnerRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Альтернативный простой spinner без SVG */
.filter-spinner-icon-simple {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3E3E41;
    border-radius: 50%;
    animation: filterSpinnerRotate 1s linear infinite;
}

.vabi-btn {
    cursor: pointer !important;
}


.found-count {
    font-size: 16px;
    /*font-size: 16px;*/
    color: #58595b;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}


