

/* Start:/local/js/project/ui/style.css?17920500278046*/
/* ==========================================================================
   project.ui — элементы форм: поле с подписью, радио-карточки, сегменты,
   тумблер, чекбокс, счётчик количества, кнопки, плашка .notice.
   Нужно корзине, оформлению, будущему кабинету.
   ========================================================================== */

/* --- Поле с подписью ---------------------------------------------------- */
.form-field { display: grid; gap: 6px; min-width: 0; }

.form-field__label { color: var(--text-muted); font-size: 12px; }

.input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    appearance: none;
}

.input::placeholder { color: #B5A3A4; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(140 96 97 / .15); }
.input:user-invalid { border-color: var(--danger); }

.form-grid { display: grid; gap: 14px; }

@media (min-width: 768px) {
    .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
    .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}

/* --- Кнопки ------------------------------------------------------------- */
.btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn-block:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.btn-block--outline { border-color: var(--text); background: #fff; color: var(--text); }
.btn-block--outline:hover { border-color: var(--text); background: var(--text); color: #fff; }

.btn-block--lg { width: 100%; min-height: 52px; border-radius: 6px; font-size: 16px; }

.btn-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Радио-карточка (доставка, оплата) ---------------------------------- */
.choices { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }

.choice {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.choice:hover { border-color: var(--accent); }

.choice:has(.choice__input:checked) {
    border-color: var(--accent);
    background: var(--band);
}

.choice:has(.choice__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice__input,
.check-box {
    flex: none;
    margin: 0;
    appearance: none;
    cursor: pointer;
}

.choice__input {
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.choice__input:checked { border: 5px solid var(--accent); }
.choice__input:focus-visible { outline: none; }

.choice__icon { width: 20px; height: 20px; color: var(--text); }

.choice__body { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-size: 14px; font-weight: 500; line-height: 1.25; }
.choice__sub { color: var(--accent); font-size: 12px; line-height: 1.3; }
.choice__aside { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; }

.choice__badge {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* --- Переключатель «физлицо / юрлицо» ----------------------------------- */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: var(--band);
}

.segmented__option { position: relative; }

.segmented__option input { position: absolute; opacity: 0; pointer-events: none; }

.segmented__option span {
    display: block;
    padding: 10px 22px;
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.segmented__option input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.segmented__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Тумблер ------------------------------------------------------------ */
.switch {
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    margin: 0;
    border-radius: 11px;
    background: var(--line);
    appearance: none;
    cursor: pointer;
    transition: background-color .2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: translate .2s;
}

.switch:checked { background: var(--accent); }
.switch:checked::after { translate: 16px 0; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Чекбокс ------------------------------------------------------------ */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: #fff;
}

.check-box:checked {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: inherit; }

/* --- Счётчик количества ------------------------------------------------- */
.qty {
    display: inline-flex;
    align-items: center;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.qty__btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.qty__btn:disabled { color: var(--line); cursor: default; }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

.qty__input {
    width: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 17px;
    text-align: center;
    appearance: textfield;
}

.qty__input::-webkit-inner-spin-button,
.qty__input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

/* --- Инфо-плашка -------------------------------------------------------- */
.notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px 18px;
    border-radius: 6px;
    background: var(--band);
    font-size: 13px;
    line-height: 1.45;
}

.notice .icon { grid-row: span 2; width: 20px; height: 20px; }
.notice__title { margin: 0; font-size: 14px; font-weight: 500; }
.notice__text { margin: 0; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    .choice, .switch, .switch::after, .segmented__option span, .btn-block { transition: none; }
}

/* End */


/* Start:/local/js/project/catalog/style.css?179213927223845*/
/* ==========================================================================
   Раздел каталога: заголовок, подразделы, промо-баннер, фильтр,
   панель сортировки, сетка/список товаров, пагинация, SEO-текст.
   Фильтр — <dialog>: на мобильных открывается на весь экран (js/menus.js),
   на десктопе стоит в левой колонке как обычный блок.
   ========================================================================== */

/* --- Заголовок раздела -------------------------------------------------- */
.catalog-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    margin: 6px 0 16px;
}

.catalog-head__title {
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.catalog-head__count { color: var(--text-muted); font-size: 13px; }

@media (min-width: 1024px) {
    .catalog-head { gap: 24px; margin: 26px 0 30px; }
    .catalog-head__title { font-size: 48px; }
    .catalog-head__count { font-size: 16px; }
}

/* --- Подразделы --------------------------------------------------------- */
.subcats {
    display: flex;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 2px;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
}

.subcats::-webkit-scrollbar { display: none; }

.subcats__link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
}

.subcats__link:hover { border-color: var(--accent); }

.subcats__link[aria-current="page"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.subcats__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 1024px) {
    .subcats { flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; overflow: visible; }
    .subcats__link { height: 38px; padding: 0 18px; font-size: 15px; }
}

/* --- Промо-баннер раздела ----------------------------------------------- */
.cat-promo { margin-top: 20px; }

.cat-promo__track { --per-view: 1; --gap: 0px; margin: 0; padding: 0; }

.cat-promo__slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--wine-900);
    color: #fff;
}

.cat-promo__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 420;
    object-fit: cover;
    object-position: 75% center;
}

.cat-promo__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 96px 20px 22px;
    background: linear-gradient(0deg, var(--wine-900) 0%, rgb(58 9 13 / .82) 55%, rgb(58 9 13 / 0) 100%);
}

.cat-promo__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cat-promo__title {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.cat-promo__text {
    margin: 10px 0 0;
    color: rgb(255 255 255 / .85);
    font-size: 13px;
    line-height: 1.45;
}

.cat-promo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.cat-promo__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #fff;
    color: var(--wine-900);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.cat-promo__btn:hover { background: var(--cream); border-color: var(--cream); }

.cat-promo__btn--ghost { border-color: rgb(255 255 255 / .7); background: transparent; color: #fff; }
.cat-promo__btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .12); }

.cat-promo__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (min-width: 1024px) {
    .cat-promo { margin-top: 40px; }

    .cat-promo__slide { border-radius: var(--radius-tile); }
    .cat-promo__img { aspect-ratio: 1498 / 380; object-position: right center; }

    .cat-promo__body {
        top: 0;
        right: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(72%, 860px);
        padding: 0 72px;
        background: linear-gradient(90deg, var(--wine-900) 0%, rgb(58 9 13 / .9) 55%, rgb(58 9 13 / 0) 100%);
    }

    .cat-promo__eyebrow { font-size: 13px; }
    .cat-promo__title { max-width: 14em; margin-top: 18px; font-size: 44px; }
    .cat-promo__text { max-width: 34em; margin-top: 18px; font-size: 16px; line-height: 1.5; }
    .cat-promo__actions { gap: 12px; margin-top: 28px; }
    .cat-promo__btn { flex: none; min-height: 48px; padding: 0 32px; font-size: 16px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .cat-promo__img { aspect-ratio: 1498 / 440; }
    .cat-promo__body { padding-inline: 48px; }
    .cat-promo__title { font-size: 36px; }
}

/* --- Раскладка: фильтр + товары ----------------------------------------- */
.catalog { padding-block: 20px 40px; }

@media (min-width: 1024px) {
    .catalog {
        display: grid;
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
        padding-block: 44px 56px;
    }
}

@media (min-width: 1280px) {
    .catalog { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; }
}

@media (min-width: 1600px) {
    .catalog { grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 48px; }
}

/* --- Фильтр ------------------------------------------------------------- */
:where(.filters) :where(a, button, summary, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.filters {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--text);
}

.filters[open] {
    display: flex;
    flex-direction: column;
    animation: filters-in .25s ease-out;
}

@keyframes filters-in { from { transform: translateX(100%); } }

.filters::backdrop { background: rgb(58 9 13 / .3); }

.filters__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.filters__title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
}

.filters__reset-all {
    color: var(--accent);
    font-size: 13px;
    text-underline-offset: 3px;
}

.filters__reset-all:hover { color: var(--text); }

.filters__close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.filters__close .icon { width: 24px; height: 24px; }

.filters__form { display: flex; flex: 1; flex-direction: column; min-height: 0; }

.filters__body {
    flex: 1;
    padding: 0 var(--gutter);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.filters__foot {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: #fff;
}

.filters__apply { width: 100%; min-height: 46px; border-radius: 6px; font-size: 15px; font-weight: 500; }

.filters__reset { color: var(--text-muted); font-size: 13px; text-underline-offset: 3px; }
.filters__reset:hover { color: var(--accent); }

@media (min-width: 1024px) {
    /* В колонке: обычный блок, хотя <dialog> и закрыт */
    .filters,
    .filters[open] {
        position: static;
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        background: none;
        animation: none;
    }

    .filters__head { padding: 0 0 18px; }
    .filters__title { font-size: 24px; }
    .filters__close { display: none; }

    .filters__body { padding: 0; overflow: visible; }
    .filters__foot { gap: 14px; padding: 20px 0 0; border: 0; background: none; }
    .filters__apply { min-height: 44px; }
}

/* Группа фильтра */
.fgroup { border-bottom: 1px solid var(--line); }

.fgroup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.fgroup__head::-webkit-details-marker { display: none; }
.fgroup__head:hover { color: var(--accent); }

.fgroup__chevron { width: 18px; height: 18px; transition: rotate .2s; }
.fgroup[open] .fgroup__chevron { rotate: 180deg; }

.fgroup__content { padding-bottom: 18px; }

/* Дополнительные группы за кнопкой «Ещё N фильтров» */
.filters__extra-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.filters__extra-toggle .icon { width: 16px; height: 16px; transition: rotate .2s; }
.filters__extra-toggle[aria-expanded="true"] .icon { rotate: 180deg; }
.filters__extra-toggle:hover { color: var(--text); }

/* Значения: чекбоксы */
.fvalues { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.fvalue {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.25;
    cursor: pointer;
}

.fvalue__name { flex: 1; min-width: 0; }
.fvalue__count { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.fvalue:has(:disabled) { opacity: .45; cursor: default; }

.fcheck {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}

.fvalue:hover .fcheck:not(:disabled) { border-color: var(--accent); }

.fcheck:checked {
    border-color: var(--accent);
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.fcheck:disabled { cursor: default; }

.fmore {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.fmore:hover { color: var(--text); }

.fsearch.input { height: 38px; margin-bottom: 16px; padding-inline: 12px; font-size: 13px; }

.fempty { margin: 0; color: var(--text-muted); font-size: 13px; }

/* Значения: тумблеры */
.fswitch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    line-height: 1.25;
    cursor: pointer;
}

/* Диапазон: поля «от / до» */
.frange-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.frange-field { position: relative; display: block; }

.frange-field__prefix {
    position: absolute;
    top: 50%;
    left: 14px;
    translate: 0 -50%;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.frange-field .input { height: 40px; padding: 0 10px 0 38px; font-size: 14px; font-variant-numeric: tabular-nums; }

/* Диапазон: ползунок из двух input[type=range] */
.frange {
    --from: 0%;
    --to: 100%;
    position: relative;
    height: 20px;
    margin-top: 14px;
}

.frange::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 8px;
    left: 8px;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg,
    var(--line) var(--from), var(--accent) var(--from),
    var(--accent) var(--to), var(--line) var(--to));
}

.frange__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: none;
    appearance: none;
    pointer-events: none;
}

.frange__input:focus { outline: none; }
.frange__input::-webkit-slider-runnable-track { background: none; }
.frange__input::-moz-range-track { background: none; }

.frange__input::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text);
    border-radius: 50%;
    background: #fff;
    appearance: none;
    pointer-events: auto;
    cursor: grab;
}

.frange__input::-moz-range-thumb {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text);
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: grab;
}

.frange__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(140 96 97 / .3); }
.frange__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(140 96 97 / .3); }

.frange-limits {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
}

@media (min-width: 1024px) {
    .fvalues { gap: 14px; }
}

/* --- Панель над товарами ------------------------------------------------ */
.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.catalog-toolbar__found { display: none; margin: 0; color: var(--accent); font-size: 14px; }

.filters-open {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.filters-open .icon { width: 18px; height: 18px; }

.filters-open__count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.filters-open__count:empty { display: none; }
.filters-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sort { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; margin: 0; }
.sort__label { display: none; color: var(--accent); font-size: 14px; white-space: nowrap; }

.sort__select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A090D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    text-overflow: ellipsis;
    appearance: none;
    cursor: pointer;
}

.sort__select:hover { border-color: var(--accent); }
.sort__select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.view-switch { display: none; gap: 4px; }

.view-switch__btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}

.view-switch__btn:hover { color: var(--text); }
.view-switch__btn[aria-pressed="true"] { background: var(--band); color: var(--wine-700); }
.view-switch__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.view-switch__btn .icon { width: 20px; height: 20px; }

@media (max-width: 1023px) {
    /* Прилипает под мобильной шапкой */
    .catalog-toolbar {
        position: sticky;
        top: var(--sticky-offset);
        z-index: 20;
        margin-inline: calc(var(--gutter) * -1);
        padding: 10px var(--gutter);
        background: var(--page-bg);
    }
}

@media (min-width: 1024px) {
    .catalog-toolbar { gap: 16px; margin-bottom: 22px; }
    .catalog-toolbar__found { display: block; }
    .filters-open { display: none; }

    .sort { flex: none; margin-left: auto; }
    .sort__label { display: block; }
    .sort__select { width: auto; min-width: 186px; }

    .view-switch { display: flex; }
}

/* Выбранные значения */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 calc(var(--gutter) * -1) 16px;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
}

.active-filters::-webkit-scrollbar { display: none; }

.active-filters__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px 0 14px;
    border-radius: var(--radius-pill);
    background: var(--band);
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}

.active-filters__chip:hover { background: var(--band-deep); }
.active-filters__chip .icon { width: 14px; height: 14px; stroke-width: 2; }

.active-filters__clear {
    color: var(--accent);
    font-size: 13px;
    white-space: nowrap;
    text-underline-offset: 3px;
}

.active-filters__clear:hover { color: var(--text); }

.active-filters :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 1024px) {
    .active-filters { flex-wrap: wrap; margin: 0 0 28px; padding: 0; overflow: visible; }
}

/* --- Сетка товаров ------------------------------------------------------ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
}

@media (min-width: 1600px) {
    .catalog-grid { gap: 40px 50px; }
}

/* Узкие карточки: кнопка уходит под цену */
@media (max-width: 1023px) {
    .catalog-grid .product-card__body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 1fr auto auto auto;
        padding: 10px 10px 12px;
    }

    .catalog-grid .product-card__title { margin-bottom: 10px; font-size: 13px; }
    .catalog-grid .product-card__price { grid-row: 2; }
    .catalog-grid .product-card__current { font-size: 17px; }
    .catalog-grid .product-card__stock { grid-row: 3; font-size: 11px; }
    .catalog-grid .product-card__cart { grid-row: 4; grid-column: 1; width: 100%; margin-top: 10px; }

    .catalog-grid .product-card__badges { top: 8px; }
    .catalog-grid .badge { font-size: 10px; }
}

/* Вид «списком» (переключатель есть только на десктопе) */
@media (min-width: 1024px) {
    .catalog-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    [data-view="list"] .product-card {
        display: grid;
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    }

    [data-view="list"] .product-card__media img { height: 100%; }

    [data-view="list"] .product-card__body {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        align-content: center;
        column-gap: 40px;
        padding: 24px 32px;
    }

    [data-view="list"] .product-card__title {
        grid-row: 1 / 4;
        grid-column: 1;
        align-self: center;
        margin: 0;
        font-size: 17px;
        line-height: 1.35;
    }

    [data-view="list"] .product-card__price { grid-row: 1; grid-column: 2; justify-content: flex-end; }
    [data-view="list"] .product-card__stock { grid-row: 2; grid-column: 2; text-align: right; }
    [data-view="list"] .product-card__cart { grid-row: 3; grid-column: 2; justify-self: end; margin-top: 14px; }
}

/* Пустой результат */
.catalog-empty {
    padding: 40px 20px;
    border-radius: var(--radius-card);
    background: var(--band);
    text-align: center;
}

.catalog-empty__title { margin: 0; font-size: 18px; font-weight: 500; }
.catalog-empty__text { margin: 8px 0 0; color: var(--accent); font-size: 14px; }

/* --- «Показать ещё» и пагинация ----------------------------------------- */
.catalog-more { display: flex; justify-content: center; margin-top: 28px; }

.catalog-more__btn {
    width: 100%;
    max-width: 290px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .15s;
}

.catalog-more__btn:hover { background: var(--band); }
.catalog-more__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.catalog-more__btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.pager { margin-top: 20px; }

.pager__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__link {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

a.pager__link:hover { border-color: var(--accent); }

.pager__link[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.pager__link--off { color: var(--line); }
.pager__link .icon { width: 16px; height: 16px; }
.pager__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pager__gap { min-width: 20px; color: var(--text-muted); font-size: 14px; text-align: center; }

@media (min-width: 1024px) {
    .catalog-more { margin-top: 40px; }
    .catalog-more__btn { max-width: 290px; }
}

/* --- SEO-текст раздела -------------------------------------------------- */
.catalog-seo { padding-block: 8px 32px; }

.catalog-seo__inner { display: grid; gap: 14px; }

.catalog-seo__title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.catalog-seo__text { color: var(--accent); font-size: 14px; line-height: 1.55; }
.catalog-seo__text p { margin: 0 0 1em; }
.catalog-seo__text p:last-child { margin-bottom: 0; }
.catalog-seo__text a { color: inherit; }

@media (min-width: 1024px) {
    .catalog-seo { padding-block: 24px 40px; }

    .catalog-seo__inner {
        grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
        gap: 48px;
    }

    .catalog-seo__title { font-size: 24px; }
    .catalog-seo__text { max-width: 1050px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .filters[open] { animation: none; }
    .fgroup__chevron, .filters__extra-toggle .icon, .subcats__link,
    .cat-promo__btn, .fcheck, .catalog-more__btn { transition: none; }
}
/* End */


/* Start:/local/templates/project/components/project/facet.filter/.default/style.css?1792145163550*/
/*
 * facet.filter .default: только то, чего нет в вёрстке. Сам фильтр и чипы - project.catalog.
 * В вёрстке чипы - ссылки, у нас кнопки (их строит script.js): снимаем у кнопок оформление браузера.
 */
button.active-filters__chip,
button.active-filters__clear {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

button.active-filters__clear {
    padding: 0;
    background: none;
    text-decoration: underline;
}
/* End */


/* Start:/local/templates/project/components/project/facet.list/.default/style.css?17921532273631*/
/* ==========================================================================
   Карточка товара в списках (.product-card) + то, чего нет в вёрстке.
   Шаблон carousel берёт этот же файл: $this->addExternalCss($templateFolder . '/../.default/style.css'),
   поэтому карточка выглядит одинаково в разделе, в каруселях под товаром и в поиске.
   Сетка, панель, пагинация, вид «списком» - project.catalog. Бейджи (.badge) - в шаблоне сайта.
   ========================================================================== */

/* --- Карточка товара ---------------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
}

.product-card:hover { box-shadow: var(--shadow-card-hover); }

.product-card__media { display: block; }

.product-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 340;
    object-fit: cover;
    object-position: center top;
}

/* товар без фото (card.php ставит модификатор): держим высоту, чтобы карточки в ряду не прыгали */
.product-card__media--empty {
    aspect-ratio: 340 / 266;
    background: var(--band, #f2f2f2);
}

.product-card__badges {
    position: absolute;
    top: 14px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__body {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto;
    column-gap: 12px;
    padding: 14px 13px 18px;
}

.product-card__title {
    grid-column: 1 / -1;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { color: var(--accent); }

.product-card__price {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin: 0;
}

.product-card__current { font-size: 22px; font-weight: 700; white-space: nowrap; }

.product-card__old {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* кнопка project:basket.button (CLASS = product-card__cart) */
.product-card__cart { grid-row: 2; grid-column: 2; align-self: center; }

.product-card__stock {
    grid-row: 3;
    grid-column: 1;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* --- Пустой результат и загрузка ---------------------------------------- */
.catalog-grid > .facet-list__empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    color: var(--text-muted);
    text-align: center;
}

.catalog__results.is-loading .catalog-grid { opacity: .5; transition: opacity .15s; }

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .catalog__results.is-loading .catalog-grid { transition: none; }
}

/* «Показать ещё» в вёрстке - кнопка, у нас ссылка (работает и без JS): выравниваем как кнопку */
a.catalog-more__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
/* End */


/* Start:/local/templates/project/components/project/basket.button/.default/style.css?179154247358*/
.js-buy.js-do--loading { opacity: .6; cursor: progress; }

/* End */
/* /local/js/project/ui/style.css?17920500278046 */
/* /local/js/project/catalog/style.css?179213927223845 */
/* /local/templates/project/components/project/facet.filter/.default/style.css?1792145163550 */
/* /local/templates/project/components/project/facet.list/.default/style.css?17921532273631 */
/* /local/templates/project/components/project/basket.button/.default/style.css?179154247358 */
