

/* Start:/local/templates/versiya/components/bitrix/catalog.smart.filter/versiya_top/style.css?17851623847506*/
/* ===== Верхний умный фильтр VERSIYA (использует переменные template_styles.css) ===== */

.vfilter { position: relative; }

/* строка фильтров — лёгкая, без рамки/фона (sticky отвечает .catalog__bar) */
.vfilter__sheet {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.vfilter__mhead { display: none; } /* виден только в мобильном drawer */
.vfilter__overlay { display: none; }

.vfilter__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* группа-дропдаун */
.vfilter__group { position: relative; }
.vfilter__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid var(--light-gray);
    border-radius: 50px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}
.vfilter__toggle:hover { border-color: var(--brown); }
.vfilter__group.is-selected .vfilter__toggle { border-color: var(--accent); color: var(--accent); }
.vfilter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--accent);
    color: #F2ECE1;
    font-size: 11px;
}
.vfilter__chev { width: 14px; height: 14px; transition: transform .25s; }
.vfilter__group.is-open .vfilter__chev { transform: rotate(180deg); }

/* панель со значениями */
.vfilter__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    min-width: 240px;
    max-width: 320px;
    max-height: 340px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.vfilter__group.is-open .vfilter__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.vfilter__opts { display: flex; flex-direction: column; gap: 2px; }
.vfilter__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}
.vfilter__opt:hover { background: var(--cream); }
.vfilter__opt.is-disabled { opacity: .4; cursor: not-allowed; }
.vfilter__opt input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.vfilter__opt-name { flex: 1; }
.vfilter__opt-count { font-size: 12px; color: var(--warm-gray); }

/* цена */
.vfilter__price { display: flex; align-items: center; gap: 8px; }
.vfilter__price-input {
    width: 100px;
    padding: 9px 12px;
    border: 1.5px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
}
.vfilter__price-input:focus { border-color: var(--accent); }
.vfilter__price-dash { color: var(--warm-gray); }

/* кнопки */
.vfilter__actions { display: inline-flex; gap: 8px; }
.vfilter__apply, .vfilter__reset {
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.vfilter__apply { background: var(--accent); color: #F2ECE1; }
.vfilter__apply:hover { background: var(--accent-dark); }
.vfilter__reset { background: transparent; color: var(--warm-gray); }
.vfilter__reset:hover { color: var(--black); }

/* чипы выбранного */
.vfilter__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vfilter__chips:empty { display: none; }
.vfilter__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 12px;
    border-radius: 50px;
    background: var(--cream);
    border: 1px solid var(--light-gray);
    font-size: 12px;
    font-weight: 500;
    color: var(--black);
}
.vfilter__chip i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--white);
    color: var(--warm-gray);
    font-size: 14px;
    line-height: 1;
}
.vfilter__chip:hover i { background: var(--accent); color: #F2ECE1; }

/* размещаем бар и кнопки в одну строку */
.vfilter__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vfilter__form .vfilter__bar { flex: 0 1 auto; }
.vfilter__form .vfilter__chips { flex-basis: 100%; }

/* ======================= МОБИЛЬНЫЙ DRAWER ======================= */
@media (max-width: 640px) {
    .vfilter__sheet {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        top: auto;
        z-index: 1000;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 32px rgba(39,13,14,.18);
        transform: translateY(100%);
        transition: transform .3s ease;
        padding: 0 16px 16px;
    }
    body.filter-open .vfilter__sheet { transform: translateY(0); }

    .vfilter__overlay {
        display: block;
        position: fixed; inset: 0;
        background: rgba(39,13,14,.45);
        opacity: 0; visibility: hidden;
        transition: opacity .3s, visibility .3s;
        z-index: 999;
    }
    body.filter-open .vfilter__overlay { opacity: 1; visibility: visible; }

    .vfilter__mhead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky; top: 0;
        background: var(--white);
        padding: 16px 0 12px;
        border-bottom: 1px solid var(--light-gray);
        margin-bottom: 12px;
    }
    .vfilter__mtitle { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
    .vfilter__close { font-size: 28px; line-height: 1; color: var(--warm-gray); width: 36px; height: 36px; }

    .vfilter__form { display: block; }
    .vfilter__bar { flex-direction: column; align-items: stretch; gap: 0; }
    /* на мобильных группы — это аккордеон во всю ширину */
    .vfilter__group { border-bottom: 1px solid var(--light-gray); }
    .vfilter__toggle {
        width: 100%;
        justify-content: space-between;
        border: none;
        border-radius: 0;
        padding: 16px 2px;
        font-size: 15px;
    }
    .vfilter__group.is-selected .vfilter__toggle { color: var(--accent); }
    .vfilter__panel {
        position: static;
        min-width: 0; max-width: none;
        border: none; box-shadow: none; border-radius: 0;
        padding: 0 2px 14px;
        max-height: none;
        opacity: 1; visibility: visible; transform: none;
        display: none;
    }
    .vfilter__group.is-open .vfilter__panel { display: block; }

    .vfilter__actions {
        position: sticky; bottom: 0;
        background: var(--white);
        display: flex; gap: 10px;
        margin: 12px 0 0;
        padding: 12px 0;
    }
    .vfilter__apply, .vfilter__reset { flex: 1; padding: 14px; font-size: 14px; }
    .vfilter__reset { border: 1.5px solid var(--light-gray); }

    .vfilter__chips { margin-top: 12px; }
    .vfilter__price-input { flex: 1; width: auto; }
}

/* End */


/* Start:/local/templates/versiya/components/bitrix/system.pagenavigation/versiya/style.css?17851623841801*/
/* Compact server-side catalog pagination. Kept with the pager template so
   Bitrix loads it regardless of which catalog.section template is active. */
.catalog__pager {
    width: 100%;
    margin-top: 38px;
}

.vpager {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.vpager__list {
    display: flex;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vpager__list > li {
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.vpager__btn,
.vpager__dots {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    font: 600 13px/1 var(--font-body);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.vpager__btn:hover,
.vpager__btn:focus-visible {
    border-color: var(--wine);
    outline: none;
}

.vpager__btn.is-active {
    border-color: var(--wine);
    background: var(--wine);
    color: var(--cream);
}

.vpager__btn.is-disabled {
    opacity: .35;
}

.vpager__btn--arrow svg {
    width: 17px;
    height: 17px;
}

.vpager__dots {
    border-color: transparent;
    background: transparent;
    color: var(--warm-gray);
}

@media (max-width: 640px) {
    .catalog__pager { margin-top: 28px; }
    .vpager__list { gap: 4px; }
    .vpager__btn,
    .vpager__dots {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 12px;
    }
}

/* End */
/* /local/templates/versiya/components/bitrix/catalog.smart.filter/versiya_top/style.css?17851623847506 */
/* /local/templates/versiya/components/bitrix/system.pagenavigation/versiya/style.css?17851623841801 */
