/* Shared storefront typeface, matching the category navigation. */
html body {
    --rw-storefront-font: "Roboto Condensed", sans-serif;
    font-family: var(--rw-storefront-font) !important;
}
.header .main-nav__link,
.header .main-nav__subs-link,
.header .auth__text {
    font-family: inherit !important;
}


.header-middle--5 .header-middle__info-items {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-middle--5 .header-middle__info-items .shop-info {
    margin-left: 0;
    margin-right: 0;
}


.header-middle--5 .shop-cart .shop-info__text-wrapper {
    margin-left: 10px;
}

.header-middle--5 .shop-info__counter {
    background-color: #b9121b !important;
    color: #ffffff !important;
}

/* Показывать счётчик 0 у пустой корзины */
.header-middle--5 .shop-cart.is-empty .shop-cart__counter {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    align-items: center;
    justify-content: center;
}

/* Если JS темы очищает текст счётчика — рисуем 0 сами */
.header-middle--5 .shop-cart.is-empty .shop-cart__counter:empty::before {
    content: "0";
}

/* Настройка смарт поиска */
.header-middle--5 .header-middle__item--custom-first {
    flex: 1 1 420px;
    max-width: 900px;
}

.header-middle--5 .header-middle__item--custom-first form {
    width: 100% !important;
}

.header-middle--5 .header-middle__item--custom-first input[type="text"],
.header-middle--5 .header-middle__item--custom-first input[type="search"] {
    width: 100% !important;
    box-sizing: border-box;
}

/* Уменьшаем промежутки между баннерами альтернативного слайдера */
.slider--alternative > .container > .row {
    margin-left: -2px;
    margin-right: -2px;
}

.slider--alternative > .container > .row > [class*="col-"] {
    padding-left: 2px;
    padding-right: 2px;
}
/* Свечение поиска только при наведении */
.header-middle--5 .header-middle__item--custom-first form {
    border-radius: 3px;
    transition: box-shadow 0.2s ease;
}

.header-middle--5 .header-middle__item--custom-first form:hover {
    box-shadow:
        0 0 0 1px rgba(185, 18, 27, 0.35),
        0 0 14px rgba(185, 18, 27, 0.18);
}

/* Карточки категорий одинаковой высоты */
.categories .category-item__inner {
    height: 290px;
    display: flex;
    flex-direction: column;
}

/* Одинаковая зона под изображение */
.categories .category-item__image {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

/* Картинка крупнее, но без искажения пропорций */
.categories .category-item__image img {
    width: 130%;
    height: 130%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* Название категории занимает одинаковую нижнюю область */
.categories .category-item__content {
    flex: 1;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 12px 12px;
    box-sizing: border-box;
}

/* Альтернативный слайдер 2x2 */
.slider--alternative {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.slider--alternative > .container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.slider--alternative > .container > .row {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Баннеры 2, 3 и 4 той же высоты, что основной слайдер */
.slider--alternative .slider__tile {
    height: 330px !important;
}

/* Небольшой промежуток между рядами */
.slider--alternative .slider__column:nth-of-type(n+3) {
    margin-top: 4px;
}

/* Два баннера главного слайдера — одинаковая увеличенная высота */
.slider--alternative .slider__items,
.slider--alternative .slider__item,
.slider--alternative .slider__tile {
    height: 490px !important;
}
/* Стрелки правого баннера — как у левого */
.slider__side-items .owl-nav button.owl-prev,
.slider__side-items .owl-nav button.owl-next {
    background: #fff !important;
    color: #222 !important;
}
/* Убираем большой зазор между названием и характеристиками */
.products__list.list-view .product-item__info {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

.products__list.list-view .product-item__title {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.products__list.list-view .product-item__description {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.products__list.list-view .product-item__features {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
/* Подартикулы: сначала сверху вниз, затем во вторую колонку */
.product-page .skus {
    display: block;
    column-count: 2;
    column-gap: 24px;
    column-rule: 1px solid rgb(243, 244, 245);
    background: none !important;
}

.product-page .skus-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

/* Один подартикул не растягиваем странно */
.product-page .skus-item {
    min-width: 0;
}

/* На более узких экранах возвращаем одну колонку */
@media (max-width: 991px) {
    .product-page .skus {
        column-count: 1;
        column-rule: none;
    }
}
/* Карточка товара: центр + блок покупки справа */
@media (min-width: 1200px) {

.product-page #s-cart-wrapper .product-cart > form {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(190px, 2fr);
        column-gap: 24px;
        align-items: start;
    }

    .product-page .product-layout__middle {
        grid-column: 1;
        min-width: 0;
    }

    .product-page .purchase {
        grid-column: 2;
        min-width: 0;
        margin-top: 0 !important;
    }
}
/* Точные пропорции карточки товара */
@media (min-width: 1200px) {

    /* Левая часть — галерея */
    .product-page .product-page__row > .product-photos {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }

    /* Правая общая часть */
    .product-page .product-page__row > #s-cart-wrapper {
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }

    /* Внутри справа: 42% страницы под центр, 18% под покупку */
.product-page #s-cart-wrapper .product-cart > form {
    grid-template-columns: minmax(0, 1fr) 270px;
    column-gap: 75px;
}
}
/* Подартикулы: растягиваем каждую строку на всю ширину колонки */
.product-page .skus-item {
    width: 100%;
}

.product-page .skus-item__label {
    width: 100%;
}

.product-page .skus-item__label .custom-control-label {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

/* Метраж слева */
.product-page .skus-item__label .sku-name {
    flex: 0 0 auto;
    width: auto;
    margin: 0 !important;
    font-weight: 700;
}

/* Цена прижимается к правому краю своей колонки */
.product-page .skus-item__label .sku-price {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto !important;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Артикул скрываем */
.product-page .skus-item__label .product-sku {
    display: none !important;
}
/* Заголовок "Вариация длины" */
.product-page .features-list__link {
    font-size: 17px !important;
}
/* Отступ перед блоком вариаций длины */
.product-page .features-list__link {
    display: block;
    margin-top: 34px !important;
}
/* Верхние характеристики товара */
.product-page .product-layout__middle .features-list {
    width: 100% !important;
    max-width: none !important;
}

/* Название | пунктир | значение */
.product-page .product-layout__middle .features-list__item {
    display: grid !important;
    grid-template-columns: max-content minmax(20px, 1fr) 250px;
    column-gap: 8px;
    align-items: baseline;

    width: 100% !important;
    min-width: 0;
}

/* Название характеристики */
.product-page .product-layout__middle .features-list__name {
    min-width: 0;
}

/* Пунктир растягивается между колонками */
.product-page .product-layout__middle .features-list__line {
    min-width: 20px;
}

/* Все значения начинаются строго с одной позиции */
.product-page .product-layout__middle .features-list__value {
    width: auto !important;
    max-width: none !important;
    min-width: 0;

    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;

    text-align: left;
}
/* Характеристики и вариации имеют строго одинаковую ширину */
.product-page .product-layout__middle .features-list,
.product-page .product-layout__middle .skus {
    width: 100% !important;
    max-width: none !important;
}
/* Тонкая рамка вокруг всего блока вариаций */
.product-page .skus {
    border: 1px solid rgb(243, 244, 245);
    padding: 14px 16px;
    box-sizing: border-box;
}
.product-page #s-cart-wrapper .product-cart > form {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 75px;
}
.product-page .purchase {
    width: 100%;
}
/* Правый блок покупки реально занимает всю ширину своей колонки */
.product-page .purchase,
.product-page .purchase .add2cart,
.product-page .purchase .add-form-wrapper {
    width: 100% !important;
    max-width: none !important;
}

/* Строка количество + В корзину */
.product-page .purchase .product-buttons {
    width: 100%;
}

/* Кнопка В корзину забирает оставшееся место */
.product-page .purchase .product-add {
    flex: 1 1 auto;
}

.product-page .purchase .product-add .btn {
    width: 100% !important;
}
/* Нижние характеристики — принудительно одна широкая колонка */
@media (min-width: 1200px) {

    /* Общая ширина блока */
    .product-features--narrow {
        width: calc(100% - 395px) !important;
        max-width: calc(100% - 395px) !important;
    }

    /* Полностью отключаем двухколоночную раскладку темы */
    .product-features--narrow .features-list {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        column-count: 1 !important;
        columns: auto !important;

        grid-template-columns: none !important;
        grid-auto-flow: row !important;
    }

    /* Каждая характеристика занимает ВСЮ ширину */
    .product-features--narrow .features-list__item {
        display: flex !important;

        width: 100% !important;
        max-width: none !important;

        flex: 0 0 100% !important;
        flex-basis: 100% !important;

        grid-column: 1 / -1 !important;

        float: none !important;
        box-sizing: border-box;
    }

    /* Название слева */
    .product-features--narrow .features-list__name {
        flex: 0 0 auto !important;
    }

    /* Пунктир занимает всё свободное место */
    .product-features--narrow .features-list__line {
        flex: 1 1 auto !important;
    }

    /* Значение справа */
    .product-features--narrow .features-list__value {
        flex: 0 0 auto !important;
    }
}
/* Основное фото товара — всегда одинаковый квадрат */
@media (min-width: 1200px) {

    .product-page .product-photos__main {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        height: auto !important;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    /* Если картинка лежит внутри ссылки */
    .product-page .product-photos__main > a {
        width: 100% !important;
        height: 100% !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Само большое изображение */
    .product-page .product-photos__main img {
        width: 100% !important;
        height: 100% !important;

        max-width: none !important;
        max-height: none !important;

        object-fit: contain;
        object-position: center;
    }
}
.rw-product-codes {
    display: grid;
    grid-template-columns: 60% 40%;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #d9dde0;
    background: #fff;
}

.rw-product-code {
    min-width: 0;
    padding: 9px 14px 10px;
}

.rw-product-code + .rw-product-code {
    border-left: 1px solid #d9dde0;
}

.rw-product-code__label {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 1.3;
    color: #8a8f93;
}

.rw-product-code__value {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #20262a;
}

.js-rw-sku {
    white-space: nowrap !important;
    font-size: 13px;

}
/* Подтверждение удаления из корзины */

/* Не удалять — мягкий красный */
.wa-button.js-cancel {
    background: #fdecec !important;
    border: 1px solid #e6a3a7 !important;
    color: #a53a40 !important;
    box-shadow: none !important;
}

.wa-button.js-cancel:hover,
.wa-button.js-cancel:focus {
    background: #f9dddd !important;
    border-color: #d98b91 !important;
    color: #922f35 !important;
}

/* Удалить — мягкий зелёный */
.wa-button.js-confirm {
    background: #eaf5ee !important;
    border: 1px solid #a9cfb5 !important;
    color: #3f7552 !important;
    box-shadow: none !important;
}

.wa-button.js-confirm:hover,
.wa-button.js-confirm:focus {
    background: #dceee3 !important;
    border-color: #8fbea0 !important;
    color: #336244 !important;
}
/* Кнопки подтверждения удаления — 50/50 на всю ширину */

.wa-dialog-footer,
.wa-dialog-footer .wa-dialog-footer-buttons {
    display: flex !important;
    width: 100% !important;
    gap: 12px;
}

.wa-button.js-cancel,
.wa-button.js-confirm {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: none !important;
    margin: 0 !important;
}
/* Корзина Webasyst — крупные изображения товаров */

#js-order-cart .wa-product .wa-column-image {
    flex: 0 0 150px !important;
    width: 150px !important;
    max-width: 150px !important;
}

#js-order-cart .wa-product .wa-image-section {
    width: 140px !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#js-order-cart .wa-product .wa-image-section > a {
    width: 140px !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#js-order-cart .wa-product .wa-image-section img {
    width: 140px !important;
    height: 140px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}
/* Корзина: скрываем SKU-картинку до замены на главное фото */
#js-order-cart .wa-image-section img {
    opacity: 0;
}

#js-order-cart .wa-image-section img.rw-main-image-ready {
    opacity: 1;
}
/* Карта сайта: вся ширина страницы */
.main__row:has(.htmlmap) > .sidebar {
    display: none;
}

.main__row:has(.htmlmap) > .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Заголовки */
.htmlmap {
    padding: 20px 0 40px;
}

.htmlmap > h1 {
    margin: 0 0 28px;
}

.htmlmap .htmlmap-content > p {
    margin: 0 0 24px;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

/* Сетка блоков */
.htmlmap .htmlmap-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.htmlmap .htmlmap-row::before,
.htmlmap .htmlmap-row::after {
    display: none;
}

.htmlmap .htmlmap-row > [class^="htmlmap-column-"],
.htmlmap .htmlmap-row > [class^="htmlmap-column-"] > .htmlmap-list {
    display: contents;
}

/* Каждая основная категория — отдельный блок */
.htmlmap .htmlmap-list > li {
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid #d9dde1;
    border-radius: 8px;
    background: #fff;
    list-style: none;
}

.htmlmap .htmlmap-list > li > a {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.htmlmap a {
    color: #252a2d;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.htmlmap a:hover,
.htmlmap a:focus-visible {
    color: #007c91;
    text-decoration: underline;
}

/* Вложенные категории */
.htmlmap .htmlmap-list > li ul {
    margin: 12px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.htmlmap .htmlmap-list > li ul ul {
    list-style: circle;
}

.htmlmap .htmlmap-list > li ul li {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1199px) {
    .htmlmap .htmlmap-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .htmlmap .htmlmap-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .htmlmap .htmlmap-list > li {
        padding: 20px;
    }
}
.htmlmap .htmlmap-content .htmlmap-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 1199px) {
    .htmlmap .htmlmap-content .htmlmap-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .htmlmap .htmlmap-content .htmlmap-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
}
/* Контакты в подвале — по правой границе контейнера */
@media (min-width: 768px) {
    .footer > .container > .row > .footer__item[itemtype="http://schema.org/Organization"] {
        text-align: right;
    }
}
/* Размер текста в подвале */
.footer .footer__title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.footer .footer__list-item,
.footer .footer__link {
    font-size: 20px;
    line-height: 1.6;
}

.footer .footer-app__account {
    font-size: 14px;
    line-height: 1.5;
}
/* Подвал: информация — логотип — контакты */
.rw-footer .rw-footer__grid {
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(220px, 1.1fr) minmax(220px, 1.2fr) minmax(310px, 1.4fr);
    gap: 32px;
    align-items: start;
}

.rw-footer .rw-footer__info {
    text-align: left;
}

.rw-footer .rw-footer__brand {
    text-align: center;
}

.rw-footer .rw-footer__contacts {
    text-align: right;
}

.rw-footer .rw-footer__brand .logo {
    display: inline-block;
    margin: 0;
    max-width: 100%;
}

.rw-footer .rw-footer__brand .logo__image {
    display: block;
    width: 360px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.rw-footer .rw-footer__copyright {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #252a2d;
}

.rw-footer .rw-footer__copyright a {
    color: inherit;
    text-decoration: none;
}

.rw-footer .rw-footer__copyright a:hover {
    text-decoration: underline;
}

.rw-footer .footer__title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.rw-footer .footer__list-item,
.rw-footer .footer__link {
    font-size: 16px;
    line-height: 1.6;
}

.rw-footer .currency-toggle {
    max-width: 180px;
    margin: 16px auto 0;
}

.rw-footer .rw-footer__social {
    margin-top: 24px;
    text-align: center;
}

/* Убираем прежний копирайт из подключаемого footer.html */
.rw-footer .footer-app__copyright {
    display: none !important;
}

.rw-footer .footer-app {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 767px) {
    .rw-footer .rw-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .rw-footer .rw-footer__brand {
        grid-row: 1;
    }

    .rw-footer .rw-footer__info,
    .rw-footer .rw-footer__contacts {
        text-align: center;
    }

    .rw-footer .rw-footer__brand .logo__image {
        width: 280px;
    }
}
.rw-footer .rw-footer__brand .logo__image {
  width: 260px;
  max-width: 100%;
  height: auto;
}
.rw-footer .rw-footer__copyright {
  margin-top: 0;
}
/* Хлебные крошки RadioWave */
.breadcrumbs-plugin.breadcrumbs {
    margin: 0 0 18px !important;
    padding: 10px 0 0 !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: #858b90;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item_href {
    color: #51585e;
    text-decoration: none;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item_href:hover {
    color: #b9121b;
    text-decoration: none;
}

/* Разделители между уровнями */
.breadcrumbs-plugin .breadcrumbs-plugin__item__arrow {
    display: inline-block;
    margin: 0 1px;
    font-size: 0;
    vertical-align: middle;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__arrow::before {
    content: "—";
    font-size: 12px;
    color: #b8bdc1;
}

/* Компактная кнопка раскрытия */
.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 24px;
    margin-left: 3px;
    padding: 0;
    font-size: 0;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 3px;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__arrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1px solid #757d83;
    border-bottom: 1px solid #757d83;
    transform: translateY(-2px) rotate(45deg);
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__arrow:hover {
    background: #f2f3f4;
}

.breadcrumbs-plugin .breadcrumbs-plugin__home-icon {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    opacity: 0.6;
}

/* Выпадающий список */
.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu {
    top: 100%;
    left: 0;
    min-width: 220px;
    max-width: min(360px, 85vw);
    max-height: 320px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 6px;
    background: #fff;
    border: 1px solid #e2e5e7;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link {
    display: block;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #51585e;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
    border-radius: 3px;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link:hover {
    color: #b9121b;
    background: #f5f6f7;
    text-decoration: none;
}

@media (max-width: 767px) {
    .breadcrumbs-plugin.breadcrumbs {
        font-size: 12px;
        line-height: 1.9;
        margin-bottom: 14px !important;
    }

    .breadcrumbs-plugin .breadcrumbs-plugin__item__arrow {
        margin: 0 6px;
    }
}
/* Более просторное меню хлебных крошек */
.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu {
    width: 380px;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: 420px;
    padding: 8px;
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(25, 32, 38, 0.14);
    scrollbar-width: thin;
    scrollbar-color: #c7ccd1 transparent;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link {
    padding: 11px 14px;
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: #424a52;
    border-radius: 5px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    transition: background-color 0.15s, color 0.15s;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link:hover {
    color: #bd1820;
    background: #faf0f1;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu::-webkit-scrollbar {
    width: 6px;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu::-webkit-scrollbar-thumb {
    background: #c7ccd1;
    border: 1px solid #fff;
    border-radius: 6px;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 767px) {
    .breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu {
        width: 300px;
        max-height: 300px;
    }
}
.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link {
    transition: background-color 0.15s ease;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu__link:hover {
    background-color: #eceef0;
    color: #252a2e;
}
.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs-plugin .breadcrumbs-plugin__item__brothers__menu:hover {
    border-color: #cbd0d5;
    box-shadow: 0 8px 28px rgba(25, 32, 38, 0.22);
}
/* Увеличение сайта только на широких экранах */
@media screen and (min-width: 2300px) {
    body {
        zoom: 1.12;
    }
}
/* Более читаемый текст фильтров на широких экранах */
@media screen and (min-width: 2300px) {
    #s-category-filters .custom-control-label,
    #s-category-filters .category-filter__group-input {
        font-size: 14px;
    }

    #s-category-filters .category-filter__group-title {
        font-size: 15px;
    }

    #s-category-filters .category-filter__title {
        font-size: 16px;
    }
}
/* Размер текста в списке артикулов */
#s-product-form .skus .sku-name,
#s-product-form .skus .sku-price {
    font-size: 16px;
}

#s-product-form .skus .custom-control-label {
    line-height: 1.5;
}
/* Информационная подсказка фильтра */
#rw-filters-count {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 16px;

  background: #fff;
  border: 1px solid rgba(185, 18, 27, 0.35);
  border-radius: 5px;
  box-shadow:
    0 0 0 1px rgba(185, 18, 27, 0.35),
    0 0 14px rgba(185, 18, 27, 0.18);

  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: #343b42;
}

/* Маленький указатель к выбранному параметру */
#rw-filters-count::before {
  content: "";
  display: block;
  position: absolute;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  left: -5px;
  top: calc(50% - 4px);

  background: #fff;
  border-left: 1px solid rgba(185, 18, 27, 0.55);
  border-bottom: 1px solid rgba(185, 18, 27, 0.55);
  transform: rotate(45deg);
  pointer-events: none;
}

#rw-filters-count::after {
  content: none;
  display: none;
}

/* Когда подсказка располагается снизу — указатель сверху */
#rw-filters-count.rw-counter-below::before {
  left: auto;
  right: 18px;
  top: -5px;
  border: 0;
  border-left: 1px solid rgba(185, 18, 27, 0.55);
  border-top: 1px solid rgba(185, 18, 27, 0.55);
}

#rw-filters-count .rw-filters-count__text {
  color: inherit;
  white-space: nowrap;
}

/* Убираем дублирующую ссылку сброса от плагина */
#s-category-filters a.filters-reset {
  display: none !important;
}
/* Квадратный образец цвета с отступом от текста */
#s-category-filters .icon16.color {
  display: inline-block;
  float: none !important;
  width: 14px;
  height: 14px;
  margin: 0 8px 0 0 !important;
  border-radius: 2px !important;
  vertical-align: -2px;
}
/* Состояния флажков в фильтрах */

/* Доступный: белый квадрат с чёткой рамкой */
#s-category-filters .custom-checkbox
.custom-control-label::before {
  box-sizing: border-box;
  border: 1px solid #858d95;
  border-radius: 3px;
  background: #fff;
}

/* Выбранный: фирменный цвет */
#s-category-filters .custom-checkbox
.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #b9121b;
  background: #b9121b;
}

/* Белая галочка выбранного варианта */
#s-category-filters .custom-checkbox
.custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px 13px;
}

/* Заблокированный: светлый квадрат */
#s-category-filters .custom-checkbox
.custom-control-input:disabled:not(:checked) ~ .custom-control-label::before {
  border-color: #a6adb4;
  background: #eceef0;
}

/* Диагональная черта внутри заблокированного квадрата */
#s-category-filters .custom-checkbox
.custom-control-input:disabled:not(:checked) ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13L13 3' fill='none' stroke='%23858d95' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Приглушённый текст заблокированного варианта */
#s-category-filters .custom-checkbox
.custom-control-input:disabled ~ .custom-control-label,
#s-category-filters .custom-checkbox
.custom-control-input:disabled ~ .custom-control-label a {
  color: #858d95;
  cursor: not-allowed;
}

/* Если выбранный вариант заблокирован — сохраняем галочку */
#s-category-filters .custom-checkbox
.custom-control-input:disabled:checked ~ .custom-control-label::before {
  border-color: #858d95;
  background: #858d95;
}
/* Лёгкая рамка блока фильтров */
#s-category-filters {
  border: 1px solid #d7dce1;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
/* Убираем заголовок и стрелку над фильтрами */
#s-category-filters .category-filter__collapse {
  display: none;
}
/* Убираем пустую строку заголовка и отступ перед фильтрами */
#s-category-filters .category-filter__collapse {
  display: none;
  margin: 0;
  padding: 0;
}

#s-category-filters .category-filter__form {
  margin-top: 0;
  padding-top: 0;
}
/* Убираем лишний отступ над первой характеристикой */
#s-category-filters .category-filter__group:first-child {
  margin-top: 0 !important;
}
/* Бегунки: серая дорожка и фирменная красная обводка */
#s-category-filters .noUi-target {
  background: #d7dce1 !important;
}

#s-category-filters .noUi-connect {
  background: #737b83 !important;
}

#s-category-filters .noUi-handle {
  background: #fff !important;
  border: 2px solid #b9121b !important;
  box-shadow: none !important;
}
/* Плавающая корзина: сравнение и широкая кнопка */
.fly-cart .fly-cart__box {
  box-sizing: border-box;
  width: 400px;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  gap: 16px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Убираем контакты и избранное только в плавающем блоке */
.fly-cart .phones--fly-cart,
.fly-cart .shop-favorite {
  display: none !important;
}

/* Сравнение оставляем слева */
.fly-cart .shop-compare {
  flex: 0 0 48px;
  margin: 0;
  padding: 0;
}

/* Корзина занимает оставшуюся ширину */
.fly-cart .shop-cart {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 60px;
  margin: 0;
  padding: 10px 40px;
  background: #b9121b;
  border-radius: 10px;
  color: #fff;
  transition: background-color 0.2s ease;
}

.fly-cart .shop-cart:hover {
  background: #a01018;
}

/* Убираем рисунок корзины, сохраняя счётчик */
.fly-cart .shop-cart .shop-info__icon {
  display: none !important;
}

.fly-cart .shop-cart .shop-info__icon-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  width: auto;
  height: auto;
  margin: 0;
}

.fly-cart .shop-cart .shop-cart__counter {
  position: static;
  background: #fff;
  color: #b9121b;
}

/* Название и сумма внутри кнопки */
.fly-cart .shop-cart .shop-info__text-wrapper {
  display: block !important;
  margin: 0;
  text-align: center;
}

.fly-cart .shop-cart .shop-info__text-header {
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.fly-cart .shop-cart .shop-info__text-content {
  margin-top: 3px;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.3;
}
/* Плавающая корзина: спокойные цвета и читаемые счётчики */
.fly-cart:not(.fly-cart--bottom) .fly-cart__inner {
  width: auto !important;
  max-width: none !important;
  left: 12px !important;
  right: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Светлая кнопка вместо сплошной красной заливки */
.fly-cart .shop-cart {
  background: #fff !important;
  border: 1px solid #98434a;
  color: #343b42 !important;
}

.fly-cart .shop-cart:hover {
  background: #f8f2f3 !important;
}

.fly-cart .shop-cart .shop-info__text-header {
  color: #343b42 !important;
}

.fly-cart .shop-cart .shop-info__text-content {
  color: #525b64 !important;
  font-size: 15px;
}

/* Оба счётчика: крупные белые цифры на бордовом фоне */
.fly-cart .shop-info__counter {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 26px;
  width: auto;
  height: 26px;
  padding: 0 6px;
  background: #98434a !important;
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1 !important;
}

/* Счётчик сравнения не прижимается к соседней кнопке */
.fly-cart .shop-compare .shop-info__counter {
  top: -8px;
  right: -8px;
}

/* Счётчик корзины внутри кнопки */
.fly-cart .shop-cart .shop-info__icon-wrapper {
  top: 8px;
  right: 8px;
}
/* Счётчики в шапке — в цвет плавающей корзины */
.header-middle--5 .shop-info__counter {
  background-color: #98434a !important;
  color: #fff !important;
}
/* Убираем избранное из шапки и плавающей панели */
.header .shop-favorite,
.fly-cart .shop-favorite {
  display: none !important;
}
/* Выбранный артикул: фирменный красный кружок */
#s-product-form .skus .custom-radio
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #b9121b !important;
  border-color: #b9121b !important;
}

/* Белая точка внутри выбранного кружка */
#s-product-form .skus .custom-radio
.custom-control-input:checked ~ .custom-control-label::after {
  background-image: radial-gradient(
    circle at center,
    #fff 0,
    #fff 3px,
    transparent 3.5px
  ) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* Более широкий блок покупки на компьютере */
@media (min-width: 1200px) {
  .product-page #s-cart-wrapper .product-cart > form {
    grid-template-columns: minmax(0, 1fr) 380px;
    column-gap: 40px;
  }
}

/* Тонкая рамка, как у списка артикулов */
.product-page .purchase {
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgb(243, 244, 245);
}

/* Слегка скруглённая кнопка */
.product-page .purchase .product-add .btn {
  border-radius: 7px !important;
}
/* Карточка товара: блок покупки */
#s-product-form .purchase {
  border: 1px solid #cbd1d6 !important;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(35, 43, 50, 0.04);
}

/* Убираем сравнение из блока покупки */
#s-product-form .purchase .product-compare,
#s-product-form .purchase .product__compare {
  display: none !important;
}

/* Кнопка занимает свободную ширину рядом с количеством */
#s-product-form .purchase .product-buttons {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

#s-product-form .purchase .product-add {
  flex: 1 1 auto;
  min-width: 0;
}

/* В корзину: белая кнопка с приглушённой бордовой рамкой */
#s-product-form .purchase .product-add .btn {
  box-sizing: border-box;
  width: 100%;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 18px !important;

  background: #fff !important;
  border: 2px solid #98434a !important;
  border-radius: 9px !important;

  color: #343b42 !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: normal !important;

  box-shadow: none !important;
  transition: background-color 0.15s, border-color 0.15s;
}

#s-product-form .purchase .product-add .btn:hover {
  background: #f7f2f3 !important;
  border-color: #824047 !important;
}

#s-product-form .purchase .product-add .btn:focus-visible {
  outline: 3px solid rgba(152, 67, 74, 0.22);
  outline-offset: 3px;
}
/* Количество товара рядом с кнопкой «В корзину» */
#s-product-form .purchase .product-quantity {
  box-sizing: border-box;
  height: 54px;
  padding: 0 4px;

  background: #fff !important;
  border: 2px solid #98434a !important;
  border-radius: 9px;
  overflow: hidden;
}

/* Минус и плюс */
#s-product-form .purchase .product-quantity .decrease-volume,
#s-product-form .purchase .product-quantity .increase-volume {
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px;
  color: #824047 !important;
  font-size: 20px;
  transition: background-color 0.15s;
}

#s-product-form .purchase .product-quantity .decrease-volume:hover,
#s-product-form .purchase .product-quantity .increase-volume:hover {
  background: #f7f2f3 !important;
}

/* Число между кнопками */
#s-product-form .purchase .product-quantity__field {
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #343b42 !important;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
/* Заголовок товара и наличие */
@media (min-width: 992px) {
  .product-page .rw-product-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
  }

  .product-page .rw-product-heading .product-page__header {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding-right: 0;
  }

  .product-page .rw-title-stock {
    flex: 0 0 145px;
    text-align: right;
    font-size: 15px;
    line-height: 1.4;
  }

  /* Исходный статус оставляем для работы переключения артикулов */
  .product-page #s-product-form .product-stocks {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .product-page .rw-title-stock {
    display: none;
  }
}
/* Оформление наличия возле заголовка */
.product-page .rw-title-stock {
  font-size: 16px;
  font-weight: 600;
}

.product-page .rw-title-stock .product-stocks__high {
  color: #21864b !important;
}

.product-page .rw-title-stock .product-stocks__low,
.product-page .rw-title-stock .product-stocks__critical {
  color: #946519 !important;
}

.product-page .rw-title-stock .product-stocks__none,
.product-page .rw-title-stock .product-stocks__stock-none {
  color: #737b83 !important;
}
/* Артикул должен помещаться внутри своей ячейки */
#s-product-form .rw-product-code {
  min-width: 0;
}

#s-product-form .rw-product-code__value.js-rw-sku {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 8px;
  white-space: nowrap;
}
/* Аннотация и характеристики под карточкой товара */
.product-page .rw-product-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;

  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #343b42;
}

/* Два блока с одинаковой высотой */
.product-page .rw-product-details > .product-overview,
.product-page .rw-product-details > #product-features {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 22px 24px !important;

  background: #fff;
  border: 1px solid #e3e6e9;
  border-radius: 8px;
}

/* Убираем внешние отступы сетки темы внутри блоков */
.product-page .rw-product-details > div > .row {
  margin: 0;
}

.product-page .rw-product-details > div > .row > .col-12 {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
}

/* Заголовки обоих блоков */
.product-page .rw-product-details .product-page__title {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0;
  margin: 0 0 20px !important;
  padding: 0 0 12px !important;

  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 600;
  color: #343b42;
  text-transform: uppercase;

  border: 0 !important;
  border-bottom: 1px solid #e3e6e9 !important;
}

.product-page .rw-product-details .product-page__title::before,
.product-page .rw-product-details .product-page__title::after {
  display: none !important;
}

/* Содержимое аннотации */
.product-page .rw-product-details .product-overview__description {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.product-page .product-overview__description img {
  display: block !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Длинные значения характеристик помещаются в правом блоке */
.product-page .rw-product-details .features-list__name,
.product-page .rw-product-details .features-list__value {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* На узком экране блоки остаются друг под другом */
@media (max-width: 991px) {
  .product-page .rw-product-details {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* В корзину: категории и рекомендации */
.product-item .add-to-cart .product-add .btn {
  box-sizing: border-box;
  min-height: 54px !important;
  padding: 0 22px !important;

  background: #fff !important;
  border: 2px solid #98434a !important;
  border-radius: 9px !important;

  color: #343b42 !important;
  font-size: 17px !important;
  font-weight: 600;
  line-height: normal !important;

  box-shadow: none !important;
  transition: background-color 0.15s, border-color 0.15s;
}

.product-item .add-to-cart .product-add .btn:hover {
  background: #f7f2f3 !important;
  border-color: #824047 !important;
}

.product-item .add-to-cart .product-add .btn:focus-visible {
  outline: 3px solid rgba(152, 67, 74, 0.22);
  outline-offset: 3px;
}

.product-item .add-to-cart .product-add .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Более широкая и низкая кнопка в рекомендациях */
.related-products .product-item .add-to-cart .product-add .btn {
  width: 190px !important;
  max-width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
}
/* Убираем избранное из карточек товаров */
.product-item .product-favorite {
  display: none !important;
}

/* Сравнение: цвет рамки кнопки «В корзину» при наведении */
.product-item .product-compare:hover,
.product-item .product-compare:focus-visible {
  color: #98434a !important;
}

.product-item .product-compare:hover svg,
.product-item .product-compare:focus-visible svg {
  fill: currentColor !important;
}
/* Убираем количество из списка рекомендаций */
.related-products .product-item .add-to-cart .product-quantity {
  display: none !important;
}
/* Выравниваем ширину галереи в окне покупки */
.rw-quick-product .product-photos--dialog {
  width: 100% !important;
  max-width: none !important;
}

/* Если миниатюр нет — фото занимает всю ширину */
.rw-quick-product .product-photos--dialog:not(:has(.product-photos__list)) {
  grid-template-columns: minmax(0, 1fr) !important;
}
/* Общая нижняя линия кнопок в окне с более чем 20 артикулами */
@media (min-width: 768px) {
  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-body {
    align-items: stretch;
  }

  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-left,
  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-right {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding-bottom: 70px;
  }

  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-left .purchase {
    position: static !important;
  }

  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-left .rw-dialog-actions {
    position: absolute !important;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 !important;
    height: 48px;
  }

  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-right > .rw-dialog-continue {
    position: absolute !important;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    margin: 0 !important;
  }

  #s-dialog-wrapper .rw-quick-product--many .rw-dialog-variants {
    margin-bottom: 0 !important;
  }
}
/* Единое ограничение высоты: без отдельной прокрутки внутреннего блока */
#s-dialog-wrapper .product-dialog.rw-quick-product {
  height: auto !important;
  max-height: min(960px, calc(100dvh - 24px)) !important;
}

#s-dialog-wrapper .rw-quick-product > form {
  height: auto !important;
  max-height: calc(min(960px, calc(100dvh - 24px)) - 52px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#s-dialog-wrapper .product-dialog.rw-quick-product .rw-dialog-body {
  flex: 0 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#s-dialog-wrapper .s-dialog-content:has(.rw-quick-product) {
  max-height: calc(100dvh - 24px) !important;
}
/* Убираем выступ блока покупки за нижнюю границу */
#s-dialog-wrapper .rw-quick-product--many .rw-dialog-actions,
#s-dialog-wrapper .rw-quick-product--many .rw-dialog-actions .product-add {
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#s-dialog-wrapper .rw-quick-product--many .rw-dialog-actions .product-add input[type="submit"] {
  display: block !important;
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
}
/* Подпись над количеством добавленного товара */
#s-dialog-wrapper .rw-quick-product .product-quantity {
  position: relative !important;
  overflow: visible !important;
}

#s-dialog-wrapper .rw-quick-product .product-quantity::before {
  content: "Уже в корзине!";
  position: absolute;
  left: 0;
  bottom: calc(100% + 7px);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #357a57;
  pointer-events: none;
}
/* Корзина видна поверх затемнения окна покупки */
body:has(#s-dialog-wrapper .rw-quick-product)
.fly-cart:not(.fly-cart--bottom) {
  z-index: 100001 !important;
}

body:has(#s-dialog-wrapper .rw-quick-product)
.fly-cart:not(.fly-cart--bottom) .fly-cart__box {
  background: #fff !important;
}
/* Заголовок товара: размер автоматически подбирается через JS */
@media (min-width: 992px) {
  .product-page .rw-product-heading {
    min-width: 0;
  }

  .product-page .rw-product-heading .product-page__header {
    min-width: 0;
    white-space: nowrap;
  }
}
/* Верхние характеристики — на всю ширину среднего блока */
.product-page .product-layout__middle .features-list {
  width: 100% !important;
  max-width: none !important;
}

/* Название | растягивающийся пунктир | значение */
.product-page .product-layout__middle .features-list__item {
  display: grid !important;
  grid-template-columns: auto minmax(20px, 1fr) max-content !important;
  column-gap: 10px;
  align-items: baseline;
  width: 100% !important;
}

/* Одинаковая ширина колонки значений для всех строк */
.product-page .product-layout__middle .features-list {
  display: grid !important;
  grid-template-columns: auto minmax(20px, 1fr) max-content;
  column-gap: 10px;
}

.product-page .product-layout__middle .features-list__item {
  grid-column: 1 / -1;
  grid-template-columns: subgrid !important;
}

.product-page .product-layout__middle .features-list__line {
  width: auto !important;
  min-width: 20px;
}

.product-page .product-layout__middle .features-list__value {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}
/* Артикулы основной карточки — таблица как в быстром заказе */
.product-page #s-product-form .skus {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--rw-sku-rows), auto);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}
.product-page #s-product-form .skus-item {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e5e8eb;
  border-top: 0;
  background: #fff;
}
.product-page #s-product-form .skus-item__label {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.product-page #s-product-form .skus-item .custom-control-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 33px;
  margin: 0 !important;
  padding: 7px 10px 7px 34px !important;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 14px !important;
  line-height: 1.25;
  color: #343b42;
}
.product-page #s-product-form .skus-item .custom-control-label::before {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
  border: 1px solid #bfc6cd !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
}
.product-page #s-product-form .skus-item .custom-control-label::after { display: none !important; }
.product-page #s-product-form .skus-item input:checked + label { background: #f7f2f3; }
.product-page #s-product-form .skus-item input:checked + label::before {
  border: 4px solid #98434a !important;
  background: #fff !important;
}
.product-page #s-product-form .skus-item input:focus-visible + label { outline: 2px solid #98434a; outline-offset: -2px; }
.product-page #s-product-form .skus-item input:disabled + label { opacity: .45; cursor: not-allowed; }
.product-page #s-product-form .sku-name { min-width: 0; overflow-wrap: anywhere; }
.product-page #s-product-form .sku-price { flex: 0 0 auto; color: #343b42 !important; font-size: 14px !important; font-weight: 600; }
.product-page #s-product-form .rw-sku-heading {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px 9px 34px;
  border: 1px solid #e5e8eb;
  background: #f8f9fa;
  font-size: 14px;
  font-weight: 600;
}
.product-page #s-product-form .rw-page-table-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.product-page #s-product-form .skus { column-count: auto !important; column-rule: none !important; }
.product-page #s-product-form .skus-item { width: auto !important; }
.product-page #s-product-form .skus-item .custom-control-label { position: relative; white-space: normal !important; }
.product-page #s-product-form .sku-name { flex: 1 1 auto !important; font-weight: 400; }
@media (max-width: 991px) {
  .product-page #s-product-form .skus { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .product-page #s-product-form .rw-page-table-head { grid-template-columns: minmax(0, 1fr); }
  .product-page #s-product-form .rw-page-table-head .rw-sku-heading + .rw-sku-heading { display: none; }
}
/* Артикулы: компактные строки и читаемый текст */
.product-page #s-product-form .skus-item .custom-control-label {
  min-height: 32px !important;
  padding: 5px 10px 5px 32px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.product-page #s-product-form .skus .sku-name {
  font-size: 16px !important;
  font-weight: 400 !important;
}

.product-page #s-product-form .skus .sku-price {
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Спокойное выделение выбранного артикула */
.product-page #s-product-form .skus .custom-radio
.custom-control-input:checked ~ .custom-control-label {
  background: #f7f2f3 !important;
}

.product-page #s-product-form .skus .custom-radio
.custom-control-input:checked ~ .custom-control-label::before {
  box-sizing: border-box !important;
  background: #fff !important;
  border: 4px solid #98434a !important;
}

.product-page #s-product-form .skus .custom-radio
.custom-control-input:checked ~ .custom-control-label::after {
  display: none !important;
}
/* Ссылка редактирования товара для администратора */
.rw-product-edit {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;

  display: block;
  padding: 20px 12px;
  border-radius: 0 5px 5px 0;

  background: #b9121b;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  writing-mode: vertical-rl;

  transition: background 0.2s;
}

.rw-product-edit:hover {
  background: #971017;
}
/* Скрываем старую кнопку редактирования в категориях */
body:has(#s-category-wrapper) .nav-admin__button {
  display: none !important;
}
/* КОРЗИНА: единый блок оформления */
body:has(#js-order-page) .breadcrumbs,
body:has(#js-order-page) .breadcrumbs-plugin {
  display: none !important;
}
#js-order-cart {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#js-order-cart > .order-page__body {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
}
#js-order-cart .wa-order-cart-wrapper,
#js-order-cart .wa-products,
#js-order-cart .wa-order-cart-wrapper .wa-cart-body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#js-order-cart .wa-product .wa-weight,
#js-order-cart .wa-quantity-cart-section .wa-field-wrapper .wa-unit {
  display: none !important;
}
#js-order-cart .wa-quantity-cart-section .wa-button .wa-text,
#js-order-cart .wa-quantity-cart-section .wa-button .wa-description {
  display: none !important;
}
#js-order-cart .wa-quantity-cart-section .wa-button .wa-icon-wrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 17px !important;
  line-height: 1 !important;
}
#js-order-cart .wa-quantity-cart-section .wa-button .wa-icon-wrapper svg {
  width: 17px !important;
  height: 17px !important;
  vertical-align: middle;
}
#js-order-page #js-order-cart input.js-product-quantity {
  text-align: center !important;
  text-indent: 0 !important;
}
@media (min-width: 992px) {
  /* Колонки товаров и оформления */
  #js-order-page > .rw-order-layout { align-items: flex-start; }
  #js-order-page > .rw-order-layout > .rw-order-products {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 0;
  }
  #js-order-page > .rw-order-layout > .rw-order-products + .rw-order-checkout {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 0;
  }
  /* Окантовка */
  #js-order-cart .wa-products .wa-product,
  #js-order-form {
    box-sizing: border-box;
    border: 2px solid #cbd1d8 !important;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: 0 3px 12px rgba(25, 35, 45, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }
  #js-order-cart .wa-products .wa-product:hover,
  #js-order-form:hover {
    border-color: #aeb7c2 !important;
    box-shadow: 0 4px 16px rgba(25, 35, 45, 0.08);
  }
  #js-order-form > .order-page__section-header { border-radius: 8px 8px 0 0; }
  #js-order-cart .wa-products .wa-product {
    position: relative;
    margin: 0 0 1px !important;
    padding: 10px 16px !important;
  }
  #js-order-cart .wa-products .wa-product:last-child { margin-bottom: 0 !important; }
  /* Расположение элементов */
  #js-order-cart .wa-product .wa-product-body {
    display: grid !important;
    grid-template-columns: minmax(100px, 28%) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    grid-template-areas: "image details details" "image quantity price";
    gap: 8px 12px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
  #js-order-cart .wa-product .wa-product-body > * {
    display: block !important;
    box-sizing: border-box;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Фото */
  #js-order-cart .wa-product .wa-column-image {
    grid-area: image;
    align-self: center;
    width: 100% !important;
    max-width: none !important;
  }
  #js-order-cart .wa-product .wa-image-section,
  #js-order-cart .wa-product .wa-image-section > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 90px !important;
  }
  #js-order-cart .wa-product .wa-image-section img {
    width: 100% !important;
    height: 90px !important;
    max-width: 100% !important;
    max-height: 90px !important;
    object-fit: contain !important;
  }
  /* Название */
  #js-order-cart .wa-product .wa-column-details {
    grid-area: details;
    align-self: start;
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 34px !important;
  }
  #js-order-cart .wa-product .wa-details-section,
  #js-order-cart .wa-product .wa-details-section .wa-details {
    min-width: 0;
    max-width: 100%;
  }
  #js-order-cart .wa-product .wa-details-section .wa-name {
    display: block !important;
    max-width: 100%;
    margin-right: 0 !important;
    font-size: 15px !important;
    line-height: 1.45;
    color: #30363d;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: justify;
    text-align-last: left;
    transition: color 180ms ease;
  }
  #js-order-cart .wa-product .wa-details-section a.wa-name:hover { color: #b9121b; }
  /* Количество */
  #js-order-cart .wa-product .wa-product-body > .wa-column-quantity {
    grid-area: quantity;
    display: flex !important;
    align-items: center;
    align-self: center;
    justify-self: start;
    width: max-content !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  #js-order-cart .wa-quantity-cart-section {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
    height: 32px;
    margin: 0 !important;
    padding: 0 8px;
    border: 0 !important;
    background: transparent !important;
  }
  #js-order-cart .wa-quantity-cart-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 150px;
    height: 32px;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    pointer-events: none;
  }
  #js-order-cart .wa-quantity-cart-section:focus-within::before { border-color: #b7c0c9; }
  #js-order-cart .wa-quantity-cart-section .wa-button-wrapper {
    flex: 0 0 30px;
    width: 30px;
  }
  #js-order-cart .wa-quantity-cart-section .wa-button {
    width: 30px;
    min-width: 30px;
    min-height: 30px !important;
    padding: 0 !important;
    color: #626a73 !important;
    background: transparent !important;
  }
  #js-order-cart .wa-quantity-cart-section .wa-field-wrapper {
    flex: 0 0 60px;
    width: 60px;
    margin: 0 4px !important;
    border: 0 !important;
    background: transparent !important;
  }
  #js-order-cart .wa-quantity-cart-section input.js-product-quantity {
    box-sizing: border-box;
    width: 60px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #30363d;
  }
  /* Цена за единицу */
  #js-order-cart .wa-column-quantity .wa-product-fractional-prices {
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 0 0 25px !important;
    line-height: 1.2;
    white-space: nowrap;
  }
  #js-order-cart .wa-column-quantity .wa-product-price {
    margin: 0 !important;
    color: #9299a1;
    font-size: 12px;
    white-space: nowrap;
  }
  /* Общая стоимость */
  #js-order-cart .wa-product .wa-column-price {
    grid-area: price;
    align-self: center;
    width: auto !important;
    max-width: 100% !important;
    text-align: right !important;
  }
  #js-order-cart .wa-product .wa-price-section .wa-price-total {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    color: #30363d;
    white-space: nowrap;
  }
  /* Удаление */
  #js-order-cart .wa-product .js-delete-product {
    position: absolute;
    top: 10px;
    right: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #b9121b !important;
    font-size: 0 !important;
    cursor: pointer;
    transition: background-color 180ms ease;
  }
  #js-order-cart .wa-product .js-delete-product .wa-icon {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 16px !important;
  }
  #js-order-cart .wa-product .js-delete-product svg {
    width: 16px;
    height: 16px;
    color: inherit !important;
    fill: currentColor;
  }
  #js-order-cart .wa-product .js-delete-product:hover { background: rgba(185, 18, 27, 0.08); }
}
/* Корзина: название и выбранный артикул одним текстом */
@media (min-width: 992px) {

  #js-order-cart .wa-product .wa-details-section .wa-details {
    font-size: 15px;
    line-height: 1.45;
  }

  #js-order-cart .wa-product .wa-details-section .wa-name,
  #js-order-cart .wa-product .wa-details-section .wa-sku {
    display: inline !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: inherit;
  }

  #js-order-cart .wa-product .wa-details:has(.wa-sku:not(:empty)) .wa-name::after {
    content: ",";
  }

  #js-order-cart .wa-product .wa-details-section .wa-sku::before {
    content: "\00a0";
  }
}
/* Корзина: крупнее название и длина */
#js-order-cart .wa-product .wa-details-section .wa-name,
#js-order-cart .wa-product .wa-details-section .wa-sku {
  font-size: 16px !important;
}
/* Корзина: слегка уплотняем текст товара */
#js-order-cart .wa-product .wa-details-section .wa-name,
#js-order-cart .wa-product .wa-details-section .wa-sku {
  font-weight: 500 !important;
  -webkit-text-stroke: 0.15px currentColor;
}
/* Корзина: единая правая граница названий */
@media (min-width: 992px) {

  #js-order-cart .wa-product .wa-column-details {
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding-right: 34px !important;
  }

  #js-order-cart .wa-product .wa-details-section .wa-details {
    display: block !important;
    width: 100%;
    min-width: 0;
text-align: left;
    text-align-last: left;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  #js-order-cart .wa-product .wa-details-section .wa-name,
  #js-order-cart .wa-product .wa-details-section .wa-sku {
    display: inline !important;
    white-space: normal !important;
  }
}
/* Корзина: компактная сумма без переноса */
@media (min-width: 992px) {

  #js-order-cart .wa-product .wa-product-body {
    grid-template-columns: minmax(90px, 25%) minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  /* Уменьшаем промежуток перед ценой за единицу */
  #js-order-cart .wa-column-quantity .wa-product-fractional-prices {
    margin-left: 12px !important;
  }

  /* Общая стоимость мельче и чуть левее */
  #js-order-cart .wa-product .wa-column-price {
    padding-right: 4px !important;
  }

  #js-order-cart .wa-product .wa-price-section .wa-price-total {
    font-size: 18px !important;
    white-space: nowrap;
  }
}
/* Подтверждение удаления: цвета кнопок */
.wa-order-dialog .wa-dialog-footer .js-confirm {
  background: #b9121b !important;
  border: 1px solid #b9121b !important;
  color: #fff !important;
  box-shadow: none !important;
}

.wa-order-dialog .wa-dialog-footer .js-confirm:hover {
  background: #9e1017 !important;
  border-color: #9e1017 !important;
}

.wa-order-dialog .wa-dialog-footer .js-cancel {
  background: #f4f5f6 !important;
  border: 1px solid #d7dce1 !important;
  color: #505861 !important;
  box-shadow: none !important;
}

.wa-order-dialog .wa-dialog-footer .js-cancel:hover {
  background: #e9ecef !important;
  border-color: #bcc4cc !important;
}
/* Удалить: мягкий оттенок */
.wa-order-dialog .wa-dialog-footer .js-confirm {
  background: rgba(185, 18, 27, 0.07) !important;
  border-color: rgba(185, 18, 27, 0.25) !important;
  color: #b9121b !important;
}

.wa-order-dialog .wa-dialog-footer .js-confirm:hover {
  background: rgba(185, 18, 27, 0.12) !important;
  border-color: rgba(185, 18, 27, 0.4) !important;
}
/* Корзина: отступ цены за штуку от количества */
@media (min-width: 992px) {
  #js-order-cart .wa-column-quantity .wa-product-fractional-prices {
    margin-left: 27px !important;
  }
}
/* Корзина: расширяем левый блок */
@media (min-width: 992px) {
  #js-order-page > .rw-order-layout > .rw-order-products {
    flex: 0 0 36% !important;
    max-width: 36% !important;
  }

  #js-order-page > .rw-order-layout > .rw-order-products + .rw-order-checkout {
    flex: 0 0 64% !important;
    max-width: 64% !important;
  }
}
/* Корзина: вспышка плюса и минуса */
#js-order-cart .wa-quantity-cart-section .rw-quantity-flash,
#js-order-cart .wa-quantity-cart-section .rw-quantity-flash .wa-icon-wrapper {
  animation: rw-quantity-flash 450ms ease-out;
}

#js-order-cart .js-increase {
  --rw-flash-color: #246341;
}

#js-order-cart .js-decrease {
  --rw-flash-color: #781d32;
}

@keyframes rw-quantity-flash {
  0%, 35% {
    color: var(--rw-flash-color);
  }

  100% {
    color: #626a73;
  }
}
/* Корзина: убираем ввод купона */
#js-order-cart .wa-coupon-section {
  display: none !important;
}
/* Корзина: компактный итог под правым краем товаров */
#js-order-cart .wa-cart-details {
  display: block !important;
  margin-top: 12px !important;
}

#js-order-cart .wa-cart-details .wa-column-price {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
  text-align: right !important;
}

#js-order-cart .wa-cart-details .wa-weight-section {
  order: 0 !important;
  margin: 0 0 8px !important;
  font-size: 12px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #9ba1a8 !important;
  white-space: nowrap !important;
}

#js-order-cart .wa-cart-details .wa-weight-section br {
  display: none !important;
}

#js-order-cart .wa-cart-details .wa-price-section {
  order: 1 !important;
  margin: 0 !important;
}

#js-order-cart .wa-cart-details .wa-price-section .wa-price-total {
  margin: 0 !important;
}
/* Корзина: размер и выравнивание итогов */
#js-order-cart .wa-cart-details {
  width: 100% !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

#js-order-cart .wa-cart-details .wa-column-price {
  padding-right: 0 !important;
}

#js-order-cart .wa-cart-details .wa-weight-section {
  font-size: 13px !important;
}

#js-order-cart .wa-cart-details .wa-price-section .wa-price-total {
  font-size: 36px !important;
  line-height: 1.3 !important;
}
/* Оформление: строка покупателя на уровне верха первого товара */
@media (min-width: 992px) {
  #js-order-form > .order-page__body {
    padding-top: 10px !important;
  }

  #js-order-form .wa-order-form-wrapper,
  #js-order-form .wa-step-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #js-order-form .wa-step-auth-section > .wa-section-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    row-gap: 5px;
  }
}
/* Оформление: убираем заголовок покупателя и ссылку входа */
#js-order-form .wa-step-auth-section > .wa-section-header {
  display: none !important;
}
/* Оформление: переключатель типа покупателя 50/50 */
#js-order-form .js-type-toggle {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box;
}

#js-order-form .js-type-toggle > [data-id] {
  flex: 0 0 50% !important;
  width: 50% !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 8px !important;
  text-align: center;
  font-size: 16px;
  border-radius: 0 !important;
}

#js-order-form .js-type-toggle > .rw-type-company {
  order: 0;
}

#js-order-form .js-type-toggle > .rw-type-person {
  order: 1;
}
/* Оформление: тип покупателя на всю ширину */
#js-order-form .wa-line:has(.js-type-toggle),
#js-order-form .wa-field-wrapper:has(.js-type-toggle) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

#js-order-form .wa-toggle.js-type-toggle {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
}

#js-order-form .wa-toggle.js-type-toggle > [data-id] {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
/* Верхнее меню: белая строка с разделителями */
@media (min-width: 992px) {
  .header .header-bottom {
    background: #fff !important;
    border-bottom: 1px solid #e2e5e8 !important;
  }

  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item > .catalog-nav__link {
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #30363d !important;
    box-shadow: inset -1px 0 0 #e2e5e8 !important;
    transition:
      background-color 180ms ease,
      color 180ms ease,
      box-shadow 180ms ease;
  }

  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item:last-child > .catalog-nav__link {
    box-shadow: none !important;
  }

  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item:hover > .catalog-nav__link {
    background: #f5f6f7 !important;
    color: #20262d !important;
  }

  /* Текущий раздел: бордовое подчёркивание */
  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item > .catalog-nav__link.rw-current-section {
    color: #252b32 !important;
    box-shadow:
      inset 0 -2px 0 #b9121b,
      inset -1px 0 0 #e2e5e8 !important;
  }

  .header .catalog-nav--inline > .catalog-nav__list > .catalog-nav__item:last-child > .catalog-nav__link.rw-current-section {
    box-shadow: inset 0 -2px 0 #b9121b !important;
  }

  /* Текущая подкатегория в выпадающем меню */
  .header .catalog-nav--inline .categories-nav__link.rw-current-section {
    border-radius: 0 !important;
    background: #f5f6f7 !important;
    color: #b9121b !important;
    box-shadow: inset 2px 0 0 #b9121b !important;
  }

  .header .catalog-nav--inline .catalog-nav__link:focus-visible,
  .header .catalog-nav--inline .categories-nav__link:focus-visible {
    outline: 2px solid #b9121b;
    outline-offset: -2px;
  }
}
/* Оформление: город слева, регион справа */
#wa-step-region-section .wa-country-wrapper {
  display: none !important;
}

#wa-step-region-section .rw-region-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 24px;
  width: 100% !important;
  margin: 0 !important;
}

#wa-step-region-section .rw-region-grid::before,
#wa-step-region-section .rw-region-grid::after {
  display: none !important;
}

#wa-step-region-section .rw-city-column,
#wa-step-region-section .rw-region-column {
  float: none !important;
  clear: none !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#wa-step-region-section .rw-city-column {
  position: relative;
  order: 1;
}

#wa-step-region-section .rw-region-column {
  order: 2;
}

#wa-step-region-section .rw-city-column input,
#wa-step-region-section .rw-region-column select,
#wa-step-region-section .rw-region-column .s-styled-select {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

/* Выпадающий список городов — прямо под полем */
#wa-step-region-section .rw-city-dropdown.ui-autocomplete {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  z-index: 1200 !important;

  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: 280px !important;

  margin: 0 !important;
  padding: 4px 0 !important;
  overflow-x: hidden;
  overflow-y: auto;

  background: #fff !important;
  border: 1px solid #88b397 !important;
  border-radius: 6px !important;
  box-shadow: 0 5px 16px rgba(37, 81, 51, 0.13) !important;

  color: #343b42;
  font: 13px/1.45 Arial, sans-serif;
}

#wa-step-region-section .rw-city-dropdown .ui-menu-item {
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}

#wa-step-region-section .rw-city-dropdown .ui-menu-item-wrapper {
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 0 !important;
  background: #fff !important;
  color: #343b42 !important;
  cursor: pointer;
}

#wa-step-region-section .rw-city-dropdown .ui-menu-item-wrapper:hover,
#wa-step-region-section .rw-city-dropdown .ui-state-active {
  background: #eff6f1 !important;
  color: #253d2d !important;
}

/* Способы получения: компактнее, без дат */
#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  height: auto !important;
  min-height: 66px !important;
  padding: 10px 14px !important;
}

#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper .wa-name,
#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper .wa-price {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper .wa-date {
  display: none !important;
}

@media (max-width: 575px) {
  #wa-step-region-section .rw-region-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
/* Не открывать подсказку ИНН для уже заполненного поля */
#wa-step-auth-section .rw-company-field:not(.rw-company-editing) > .rw-company-result {
  display: none !important;
}
/* Убираем пояснение про обязательные поля */
#wa-step-region-section .wa-required-text {
  display: none !important;
}
/* Оформление: скрываем лишний выбор варианта только для ПВЗ */
#wa-step-shipping-section.rw-pickup-selected
#js-delivery-variants-section {
  display: none !important;
}

/* Горизонтальное окно выбора ПВЗ — компьютеры */
@media (min-width: 992px) {
  #wa-shipping-pickup-dialog .wa-dialog-body {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: var(--rw-pvz-width, 1180px) !important;
    height: var(--rw-pvz-height, 660px) !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;

    background: #fff;
    border: 1px solid #d4dae0;
    border-radius: 10px;
    box-shadow: 0 18px 65px rgba(25, 35, 45, 0.25);
  }

  #wa-shipping-pickup-dialog .wa-dialog-header {
    flex: 0 0 auto;
    padding: 18px 0 18px 24px !important;
    border-bottom: 1px solid #e5e8ec;
  }

  #wa-shipping-pickup-dialog .wa-dialog-header .wa-header {
    text-align: center;
    font-size: 21px;
    line-height: 1.3;
  }

  #wa-shipping-pickup-dialog .wa-dialog-content {
    flex: 1 1 auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #wa-shipping-pickup-dialog .wa-content-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px;
    width: 100%;
    height: 100% !important;
    min-height: 0;
  }

  #wa-shipping-pickup-dialog .wa-content-section .wa-map-section {
    width: auto !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0 !important;
    padding: 14px !important;
    box-sizing: border-box;
    border-right: 1px solid #e5e8ec;
  }

  #wa-shipping-pickup-dialog #wa-shipping-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
    border-radius: 6px;
  }

  #wa-shipping-pickup-dialog .wa-content-section .wa-sidebar-section {
    width: auto !important;
    height: 100% !important;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  #wa-shipping-pickup-dialog .wa-sidebar-section > * {
    min-height: 0;
  }

  #wa-shipping-pickup-dialog .wa-filters-wrapper {
    flex: 0 0 auto;
    padding: 12px 16px !important;
  }

  #wa-shipping-pickup-dialog .wa-variants-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  #wa-shipping-pickup-dialog .wa-variants-list .wa-variant-wrapper {
    padding: 13px 16px !important;
    border-bottom: 1px solid #edf0f2;
    transition: background-color 0.15s ease;
  }

  #wa-shipping-pickup-dialog .wa-variants-list .wa-variant-wrapper:hover {
    background: #f3f5f7;
  }

  #wa-shipping-pickup-dialog .wa-mobile-content {
    display: none !important;
  }
}
/* ПВЗ: затемнение страницы вокруг окна */
#wa-shipping-pickup-dialog .wa-dialog-background {
  background: rgba(20, 27, 34, 0.48) !important;
  opacity: 1 !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ПВЗ: более выраженная граница и внешняя тень */
#wa-shipping-pickup-dialog .wa-dialog-body {
  border: 1px solid #bac3cc !important;
  box-shadow:
    0 20px 70px rgba(15, 23, 32, 0.35),
    0 3px 14px rgba(15, 23, 32, 0.14) !important;
}

/* Убираем даты из списка пунктов */
#wa-shipping-pickup-dialog .wa-variants-list .wa-date {
  display: none !important;
}

@media (min-width: 992px) {
  /* Расширяем колонку с адресами */
  #wa-shipping-pickup-dialog .wa-content-section {
    grid-template-columns: minmax(0, 1fr) 520px !important;
  }

  /* Название пункта в одну строку */
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper > .wa-name {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  /* Компактнее строки списка */
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper {
    padding: 12px 16px !important;
  }

  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-details {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
  }
}
/* ПВЗ: слегка затемнённый фон окна */
#wa-shipping-pickup-dialog .wa-dialog-body,
#wa-shipping-pickup-dialog .wa-dialog-header,
#wa-shipping-pickup-dialog .wa-dialog-content,
#wa-shipping-pickup-dialog .wa-sidebar-section {
  background: #f1f3f5 !important;
}

#wa-shipping-pickup-dialog .wa-filters-wrapper {
  background: #e9edf1 !important;
}

#wa-shipping-pickup-dialog
.wa-variants-list .wa-variant-wrapper {
  border-bottom-color: #dde2e7 !important;
}

#wa-shipping-pickup-dialog
.wa-variants-list .wa-variant-wrapper:hover {
  background: #e3e8ed !important;
}
/* ПВЗ: нейтральный фон и отчётливая рамка */
#wa-shipping-pickup-dialog .wa-dialog-body {
  background: #f3f3f3 !important;
  border: 2px solid #777 !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32) !important;
}

#wa-shipping-pickup-dialog .wa-dialog-header,
#wa-shipping-pickup-dialog .wa-dialog-content,
#wa-shipping-pickup-dialog .wa-sidebar-section {
  background: #f3f3f3 !important;
}

#wa-shipping-pickup-dialog .wa-filters-wrapper {
  background: #e8e8e8 !important;
}

#wa-shipping-pickup-dialog
.wa-variants-list .wa-variant-wrapper {
  background: transparent !important;
  border-bottom: 1px solid #d9d9d9 !important;
}

#wa-shipping-pickup-dialog
.wa-variants-list .wa-variant-wrapper:hover {
  background: #e5e5e5 !important;
}
/* ПВЗ: белый фон, корпоративная рамка и тень */
#wa-shipping-pickup-dialog .wa-dialog-body {
  background: #fff !important;
  border: 3px solid #b9121b !important;
  box-shadow:
    0 18px 65px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(0, 0, 0, 0.2) !important;
}

#wa-shipping-pickup-dialog .wa-dialog-header,
#wa-shipping-pickup-dialog .wa-dialog-content,
#wa-shipping-pickup-dialog .wa-sidebar-section,
#wa-shipping-pickup-dialog .wa-filters-wrapper,
#wa-shipping-pickup-dialog .wa-variants-list .wa-variant-wrapper {
  background: #fff !important;
}

#wa-shipping-pickup-dialog
.wa-variants-list .wa-variant-wrapper:hover {
  background: #f5f5f5 !important;
}
/* ПВЗ: скрываем название службы рядом со стоимостью */
#wa-shipping-pickup-dialog
.wa-variants-list .wa-service {
  display: none !important;
}

@media (min-width: 992px) {
  /* Больше места адресам и стоимости */
  #wa-shipping-pickup-dialog .wa-content-section {
    grid-template-columns: minmax(0, 1fr) 640px !important;
  }

  /* Компактная строка: название + цена */
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 95px;
    align-items: center;
    column-gap: 14px;

    height: auto !important;
    min-height: 44px !important;
    padding: 9px 16px !important;
    box-sizing: border-box;
  }

  /* Название ПВЗ по центру */
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper > .wa-name {
    margin: 0 !important;
    min-width: 0;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  /* Стоимость справа на той же высоте */
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper > .wa-details {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
    text-align: right !important;
    white-space: nowrap;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-price {
    margin: 0 !important;
    font-weight: 600;
    color: #303030;
  }
}
/* ПВЗ: единая левая граница названий, стоимость справа */
@media (min-width: 992px) {
  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper {
    grid-template-columns: minmax(0, 1fr) 95px !important;
    align-items: center !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #wa-shipping-pickup-dialog
  .wa-variants-list .wa-variant-wrapper > .wa-name {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
  }
}
/* ПВЗ: кнопка выбора пункта */
#wa-shipping-pickup-dialog .js-use-variant {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  box-sizing: border-box;

  width: 100%;
  min-height: 46px;
  margin: 20px 0 0 !important;
  padding: 12px 20px !important;

  background: #edf5ef !important;
  border: 1px solid #7caa88 !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 5px rgba(30, 70, 40, 0.08) !important;

  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-align: center;
  color: #285738 !important;
  cursor: pointer;

  transition: background-color 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.15s ease;
}

#wa-shipping-pickup-dialog .js-use-variant:hover {
  background: #dfede3 !important;
  border-color: #548761 !important;
  box-shadow: 0 3px 9px rgba(30, 70, 40, 0.14) !important;
}

#wa-shipping-pickup-dialog .js-use-variant:active {
  background: #d3e5d9 !important;
  box-shadow: inset 0 1px 3px rgba(30, 70, 40, 0.12) !important;
}

#wa-shipping-pickup-dialog .js-use-variant:focus-visible {
  outline: 2px solid #548761;
  outline-offset: 3px;
}
/* Оформление: убираем описание доставки, сведения и расписание */
#wa-step-details-section .wa-details-description,
#wa-step-details-section .wa-details-rates-section {
  display: none !important;
}
/* Тип покупателя и способ получения: убираем чёрную заливку */
#wa-step-auth-section .js-type-toggle {
  display: flex !important;
  gap: 10px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#wa-step-auth-section .js-type-toggle > span,
#wa-step-shipping-section .wa-types-list .wa-type-wrapper {
  box-sizing: border-box;
  background: #f7f7f7 !important;
  color: #343b42 !important;
  border: 1px solid #dedfe1 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background-color .18s ease,
    border-color .18s ease;
}

/* Покупатель: два равных блока */
#wa-step-auth-section .js-type-toggle > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px 12px !important;
  text-align: center;
}

/* Выбранный вариант: рамка как у кнопки «В корзину» */
#wa-step-auth-section .js-type-toggle > span.selected,
#wa-step-shipping-section .wa-types-list .wa-type-wrapper.is-active {
  background: #f7f7f7 !important;
  color: #343b42 !important;
  border-color: #a83b43 !important;
  box-shadow: inset 0 0 0 1px #a83b43 !important;
}

/* Текст и стоимость внутри блоков доставки */
#wa-step-shipping-section .wa-types-list .wa-type-wrapper .wa-name,
#wa-step-shipping-section .wa-types-list .wa-type-wrapper .wa-name a,
#wa-step-shipping-section .wa-types-list .wa-type-wrapper .wa-price {
  color: #343b42 !important;
}

/* Наведение */
#wa-step-auth-section .js-type-toggle > span:hover,
#wa-step-shipping-section .wa-types-list .wa-type-wrapper:not(.is-disabled):hover {
  background: #f0f0f0 !important;
  border-color: #a83b43 !important;
}
/* Способы оплаты */
#wa-step-payment-section .wa-methods-list .wa-method-wrapper {
  margin: 0 0 10px !important;
  background: #f7f7f7 !important;
  border: 1px solid #dedfe1 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #343b42 !important;
  transition:
    background-color .18s ease,
    border-color .18s ease;
}

#wa-step-payment-section .wa-methods-list .wa-method-wrapper.is-active {
  background: #f7f7f7 !important;
  border-color: #a83b43 !important;
  box-shadow: inset 0 0 0 1px #a83b43 !important;
}

#wa-step-payment-section .wa-methods-list .wa-method-wrapper:hover {
  background: #f0f0f0 !important;
  border-color: #a83b43 !important;
}

/* Название и описание способа оплаты */
#wa-step-payment-section .wa-method-wrapper .wa-name,
#wa-step-payment-section .wa-method-wrapper .wa-name a,
#wa-step-payment-section .wa-method-wrapper .wa-payment-name,
#wa-step-payment-section .wa-method-wrapper .wa-payment-name a {
  color: #343b42 !important;
}

#wa-step-payment-section .wa-method-wrapper .wa-description {
  color: #626970 !important;
}

/* Подтвердить заказ: зелёная кнопка */
#wa-step-confirm-section .js-submit-order-button {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 54px;
  padding: 14px 20px !important;
  background: #347c59 !important;
  border: 1px solid #347c59 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  cursor: pointer;
  transition:
    background-color .18s ease,
    border-color .18s ease;
}

#wa-step-confirm-section .js-submit-order-button:not(:disabled):hover {
  background: #2b694b !important;
  border-color: #2b694b !important;
}

#wa-step-confirm-section .js-submit-order-button:not(:disabled):active {
  background: #24583f !important;
  border-color: #24583f !important;
}

#wa-step-confirm-section .js-submit-order-button:focus-visible {
  outline: 2px solid #88b397;
  outline-offset: 3px;
}

#wa-step-confirm-section .js-submit-order-button:disabled {
  opacity: .55;
  cursor: default;
}

/* Скрываем отдельное поле индекса, сохраняя его значение */
#wa-step-details-section .wa-field-wrapper:has(
  [name="details[shipping_address][zip]"]
):not(:has([name="details[shipping_address][street]"])) {
  display: none !important;
}
/* Адрес доставки: белый фон и корпоративная рамка */
html #wa-step-details-section .rw-address-field input {
  background: #fff !important;
  border: 1px solid #b9121b !important;
  box-shadow: none !important;
  transition: box-shadow .18s ease;
}

/* Наведение и ввод: визуально утолщаем рамку без сдвига поля */
html #wa-step-details-section .rw-address-field input:hover,
html #wa-step-details-section .rw-address-field input:focus,
html #wa-step-details-section .rw-address-field input:active {
  background: #fff !important;
  border-color: #b9121b !important;
  box-shadow: inset 0 0 0 1px #b9121b !important;
  outline: none !important;
}
/* Оплата по счёту: убираем повторный ввод реквизитов */
#wa-step-payment-section.rw-invoice-selected .wa-payment-fields-wrapper {
  display: none !important;
}
/* Скрываем индекс в блоке местоположения */
html #wa-step-region-section .wa-field-wrapper:has(
  [name="region[zip]"]
) {
  display: none !important;
}
/* Сразу выводим город слева, регион справа */
#wa-step-region-section .wa-fields-group:has(
  input[name="region[city]"]
) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 24px;
}

/* Общие размеры двух колонок */
#wa-step-region-section .wa-field-wrapper:has(
  input[name="region[city]"]
),
#wa-step-region-section .wa-field-wrapper:has(
  select[name="region[region]"]
) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  grid-row: 1 !important;
}

/* Город — первая колонка */
#wa-step-region-section .wa-field-wrapper:has(
  input[name="region[city]"]
) {
  grid-column: 1 !important;
  order: 1 !important;
}

/* Регион — вторая колонка */
#wa-step-region-section .wa-field-wrapper:has(
  select[name="region[region]"]
) {
  grid-column: 2 !important;
  order: 2 !important;
}
/* Заранее резервируем место под вертикальную прокрутку */
html {
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
}
/* Город и регион: одинаковые размеры полей */
html #wa-step-region-section input[name="region[city]"],
html #wa-step-region-section select[name="region[region]"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-width: 1px !important;
  line-height: normal !important;
  vertical-align: top !important;
}

/* Фокус не должен менять размеры */
html #wa-step-region-section input[name="region[city]"]:focus,
html #wa-step-region-section select[name="region[region]"]:focus {
  border-width: 1px !important;
  outline: none !important;
}
/* Постоянный отступ между заголовком и полями местоположения */
html #wa-step-region-section > .wa-section-header {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

html #wa-step-region-section > .wa-section-header .wa-header {
  margin: 0 !important;
  padding: 0 !important;
}

html #wa-step-region-section > .wa-section-body,
html #wa-step-region-section > .wa-section-body > form,
html #wa-step-region-section .wa-fields-group {
  margin: 0 !important;
  padding: 0 !important;
}

/* Убираем служебную строку сразу, без ожидания JavaScript */
html #wa-step-region-section .wa-required-text,
html #wa-step-region-section .wa-country-wrapper,
html #wa-step-region-section .wa-zip-wrapper {
  display: none !important;
}

/* Одинаковые отступы колонок до и после инициализации */
html #wa-step-region-section .wa-field-wrapper:has(
  input[name="region[city]"]
),
html #wa-step-region-section .wa-field-wrapper:has(
  select[name="region[region]"]
) {
  margin: 0 !important;
  padding: 0 !important;
  align-self: start !important;
}

/* Обёртка списка региона тоже сразу занимает всю колонку */
html #wa-step-region-section .wa-field-wrapper:has(
  select[name="region[region]"]
) .s-styled-select {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
/* Постоянный отступ перед типами доставки */
html #wa-step-shipping-section {
  margin-top: 18px !important;
  padding-top: 0 !important;
}

html #wa-step-shipping-section > .wa-section-body,
html #wa-step-shipping-section > .wa-section-body > form {
  margin: 0 !important;
  padding: 0 !important;
}

html #wa-step-shipping-section #js-delivery-types-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Подпись над блоками */
html #js-delivery-types-section > .wa-header {
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* Сетка сразу задаётся CSS, без ожидания скриптов */
html #js-delivery-types-section .wa-types-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
}

html #js-delivery-types-section .wa-types-list > .wa-type-wrapper {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
/* Убираем служебные элементы сразу, до запуска JavaScript */
html #wa-step-region-section .wa-fields-group::before,
html #wa-step-region-section .wa-fields-group::after {
  content: none !important;
  display: none !important;
}
/* ПВЗ: сразу скрываем штатный список вариантов.
   Карта продолжает открываться через блок ПВЗ. */
html #wa-step-shipping-section:has(
  .wa-type-wrapper.is-active[data-id="pickup"]
) #js-delivery-variants-section {
  display: none !important;
}

/* Адресная доставка: скрываем список, только если вариант один.
   Если вариантов несколько, выбор остаётся доступным. */
html #wa-step-shipping-section:has(
  .wa-type-wrapper.is-active[data-id="todoor"]
) #js-delivery-variants-section:has(
  .js-set-dropdown-item
):not(:has(
  .js-set-dropdown-item ~ .js-set-dropdown-item
)) {
  display: none !important;
}

/* Поле адреса сразу занимает всю ширину,
   не дожидаясь класса от нашего скрипта */
html #wa-step-details-section .wa-field-wrapper:has(
  input[name="details[shipping_address][street]"]
) {
  position: relative;
  box-sizing: border-box !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Одинаковая высота и оформление до и после подключения DaData */
html #wa-step-details-section input[name="details[shipping_address][street]"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  background: #fff !important;
  border: 1px solid #b9121b !important;
  border-radius: 6px !important;
}

html #wa-step-details-section input[name="details[shipping_address][street]"]:hover,
html #wa-step-details-section input[name="details[shipping_address][street]"]:focus {
  background: #fff !important;
  border-color: #b9121b !important;
  box-shadow: inset 0 0 0 1px #b9121b !important;
  outline: none !important;
}
/* Оплата по счёту: скрываем повторные реквизиты сразу */
html #wa-step-payment-section .wa-payment-fields-wrapper:has(
  [name$="[company]"]
) {
  display: none !important;
}
/* Выбранный ПВЗ: адрес и стоимость под заголовком */
#js-delivery-types-section .wa-type-wrapper.rw-pvz-chosen > .wa-price {
  display: none !important;
}

#js-delivery-types-section .rw-pvz-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
  color: #343b42;
  font-size: 15px;
  line-height: 1.4;
}

#js-delivery-types-section .rw-pvz-summary__price {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
}
/* Доставка: одинаковое центрирование названий и стоимости */
#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
}

#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper > .wa-name,
#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper > .wa-price,
#wa-order-form-wrapper #js-delivery-types-section .wa-type-wrapper > .rw-pvz-summary {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

#wa-order-form-wrapper #js-delivery-types-section .rw-pvz-summary {
  justify-content: center !important;
  align-items: baseline !important;
}
/* Город и регион остаются видимыми при адресной доставке */
html.rw-address-selected #wa-step-region-section
.wa-field-wrapper:has([name="region[city]"]),
html.rw-address-selected #wa-step-region-section
.wa-field-wrapper:has([name="region[region]"]) {
  display: block !important;
}
/* Самовывоз на Заозерной: только Санкт-Петербург */
#wa-order-form-wrapper #js-delivery-types-section.rw-pickup-spb
.wa-type-wrapper[data-id="pickup"]:not(.rw-pvz-chosen) > .wa-price {
  font-size: 0 !important;
  line-height: 21px !important;
}

#wa-order-form-wrapper #js-delivery-types-section.rw-pickup-spb
.wa-type-wrapper[data-id="pickup"]:not(.rw-pvz-chosen) > .wa-price > * {
  display: none !important;
}

#wa-order-form-wrapper #js-delivery-types-section.rw-pickup-spb
.wa-type-wrapper[data-id="pickup"]:not(.rw-pvz-chosen) > .wa-price::before {
  content: "Самовывоз на Заозерной";
  font-size: 15px;
  font-weight: 400;
}

#wa-order-form-wrapper #js-delivery-types-section.rw-pickup-spb
.wa-type-wrapper[data-id="pickup"]:not(.rw-pvz-chosen) > .wa-price::after {
  content: "бесплатно";
  margin-left: 10px;
  font-size: 15px;
  font-weight: 600;
}
/* ПВЗ уже выбран: не показываем временную подпись по умолчанию */
html #wa-order-form-wrapper
#wa-step-shipping-section:has(
  input[name="shipping[variant_id]"][value]:not([value=""])
)
.wa-type-wrapper[data-id="pickup"].is-active:not(.rw-pvz-chosen) > .wa-price {
  visibility: hidden !important;
}
/* Не показываем варианты, пока не выбран доступный тип доставки */
html #wa-step-shipping-section:not(
  :has(#js-delivery-types-section .wa-type-wrapper.is-active)
) #js-delivery-variants-section {
  display: none !important;
}
/* Выбор варианта доставки: заметное выпадающее поле */
html #wa-step-shipping-section
#js-delivery-variants-section .js-variants-select > .wa-dropdown-toggle {
  box-sizing: border-box !important;
  min-height: 42px !important;
  padding: 10px 38px 10px 13px !important;

  background: #fff !important;
  border: 1px solid #03ad53 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05) !important;

  color: #343b42 !important;
  font-size: 15px !important;
  line-height: 20px !important;
  cursor: pointer !important;

  transition: box-shadow .15s ease;
}

html #wa-step-shipping-section
#js-delivery-variants-section .js-variants-select > .wa-dropdown-toggle:hover,
html #wa-step-shipping-section
#js-delivery-variants-section .js-variants-select > .wa-dropdown-toggle:focus-visible {
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #184db8,
              0 2px 6px rgba(0, 0, 0, .05) !important;
}
/* Сравнение: убираем «Главная» и пустой сайдбар */
.main__row:has(.compare-page) > .col-12:has(.breadcrumbs),
.main__row:has(.compare-page) > .sidebar {
  display: none !important;
}

/* Растягиваем блок сравнения на ширину сайта */
.main__row > div:has(> .compare-page) {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.compare-page {
  width: 100%;
}

.compare-page > .container {
  width: 100% !important;
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#compare-table {
  width: 100% !important;
}

/* Зелёная кнопка выбранного режима «Различные» */
.compare-page #compare-diff.is-selected {
  background: #347c59 !important;
  border-color: #347c59 !important;
  color: #fff !important;
}

.compare-page #compare-diff.is-selected:hover {
  background: #2c694c !important;
  border-color: #2c694c !important;
}
/* Быстрый заказ: кнопка не сдвигается при нажатии и отправке */
#s-dialog-wrapper .rw-quick-product .product-add input[type="submit"],
#s-dialog-wrapper .rw-quick-product .product-add input[type="submit"]:hover,
#s-dialog-wrapper .rw-quick-product .product-add input[type="submit"]:focus,
#s-dialog-wrapper .rw-quick-product .product-add input[type="submit"]:active,
#s-dialog-wrapper .rw-quick-product .product-add input[type="submit"]:disabled {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;

  margin: 0 !important;
  border-width: 2px !important;

  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;

  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;

  transition: background-color .15s ease,
              border-color .15s ease,
              opacity .15s ease !important;
}
/* Страница товара: подпись под количеством */
.product-page #s-product-form .product-quantity {
  position: relative !important;
  overflow: visible !important;
  margin-bottom: 26px !important;
}

.product-page #s-product-form .product-quantity::before {
  content: "Уже в корзине!";
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  bottom: auto;

  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #357a57;
  pointer-events: none;
}
/* Страница товара: стабильная строка покупки */
.product-page #s-product-form .product-buttons {
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  transition: none !important;
  animation: none !important;
}

.product-page #s-product-form .product-buttons > .product-add,
.product-page #s-product-form .product-buttons > .product-quantity {
  box-sizing: border-box !important;
  min-width: 0;
  margin: 0 !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

.product-page #s-product-form .product-add input[type="submit"],
.product-page #s-product-form .product-quantity {
  box-sizing: border-box !important;
  height: 54px !important;
  min-height: 54px !important;
  border-width: 2px !important;
}

.product-page #s-product-form .product-add input[type="submit"] {
  width: 100% !important;
  margin: 0 !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;

  transition: background-color .15s ease,
              border-color .15s ease,
              opacity .15s ease !important;
}
/* Центрируем подпись относительно блока количества */
.product-page #s-product-form .product-quantity::before {
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
}
/* Быстрый заказ: центрируем подпись над количеством */
#s-dialog-wrapper .rw-quick-product .product-quantity::before {
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
}
/* Быстрый заказ: подпись снизу по центру количества */
#s-dialog-wrapper .rw-quick-product .product-quantity {
  margin-bottom: 26px !important;
}

#s-dialog-wrapper .rw-quick-product .product-quantity::before {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  text-align: center;
}
/* Быстрый заказ: оставляем место под крестик */
#s-dialog-wrapper .rw-quick-product .product-dialog__title {
  box-sizing: border-box !important;
  width: calc(100% - 56px) !important;
  max-width: calc(100% - 56px) !important;
  min-width: 0 !important;
  padding-right: 0 !important;
}
/* Быстрый заказ: характеристики под блоком покупки */
#s-dialog-wrapper .rw-quick-product .rw-dialog-features {
  margin-top: 24px;
  border: 1px solid #dce1e6;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

#s-dialog-wrapper .rw-dialog-features__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
  padding: 11px 14px;
  font-size: 15px;
  line-height: 1.4;
}

#s-dialog-wrapper .rw-dialog-features__row + .rw-dialog-features__row {
  border-top: 1px solid #e8ebee;
}

#s-dialog-wrapper .rw-dialog-features__name {
  color: #737b83;
}

#s-dialog-wrapper .rw-dialog-features__value {
  min-width: 0;
  color: #343b42;
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* Компактные характеристики в быстром заказе */
#s-dialog-wrapper .rw-quick-product--single .rw-dialog-features {
  margin-top: 4px !important;
  border-color: #dce1e6;
  border-radius: 6px;
}

#s-dialog-wrapper .rw-quick-product--single .rw-dialog-features__row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px;
  padding: 7px 12px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

#s-dialog-wrapper .rw-quick-product--single .rw-dialog-features__name {
  color: #737b83;
}

#s-dialog-wrapper .rw-quick-product--single .rw-dialog-features__value {
  color: #343b42;
}
/* Товар без выбора артикула: одинаковый нижний край колонок */
@media (min-width: 768px) {
  #s-dialog-wrapper .rw-quick-product--single .rw-dialog-body {
    align-items: stretch !important;
  }

  #s-dialog-wrapper .rw-quick-product--single .rw-dialog-left {
    display: flex !important;
    min-height: 0;
  }

  #s-dialog-wrapper .rw-quick-product--single .product-dialog__images {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
  }

  #s-dialog-wrapper .rw-quick-product--single .product-photos--dialog {
    flex: 1 1 auto;
    align-items: stretch !important;
    align-content: stretch !important;
    grid-template-rows: minmax(0, 1fr);
    height: auto !important;
    margin: 0 !important;
  }

  #s-dialog-wrapper .rw-quick-product--single .product-photos__main {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0;
    align-self: stretch;
  }

  #s-dialog-wrapper .rw-quick-product--single .product-photos__list {
    align-self: start;
  }
}
/* Телефон: не показываем старую подсказку до запуска маски */
#wa-order-form-wrapper
input[name="auth[data][phone]"][placeholder*="*"]::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
/* Телефон: показываем только готовую подсказку нашей маски */
#wa-order-form-wrapper
input[name="auth[data][phone]"]:not(
  [placeholder="+7 (9XX) XXX-XX-XX"]
)::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
/* Телефон: более заметная подсказка */
#wa-order-form-wrapper
input[name="auth[data][phone]"][placeholder="+7 (9XX) XXX-XX-XX"]::placeholder {
  color: #737b83 !important;
  opacity: 1 !important;
}
/* Одинаковая высота полей покупателя */
#wa-step-auth-section input[type="text"],
#wa-step-auth-section input[type="tel"],
#wa-step-auth-section input[type="email"] {
  box-sizing: border-box !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Регион скрыт постоянно, включая обновления доставки и DaData */
html body #wa-order-form-wrapper #wa-step-region-section
.wa-field-wrapper:has([name="region[region]"]),
html body #wa-order-form-wrapper #wa-step-region-section
.rw-region-column,
html body #wa-order-form-wrapper #wa-step-region-section
.wa-region-wrapper,
html body #wa-order-form-wrapper
.wa-field-wrapper:has(
  input[name$="[region]"],
  select[name$="[region]"]
) {
  display: none !important;
}

/* Одна колонка вместо двух */
html body #wa-order-form-wrapper #wa-step-region-section
.wa-fields-group:has(input[name="region[city]"]),
html body #wa-order-form-wrapper #wa-step-region-section
.rw-region-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}

/* Город на всю ширину */
html body #wa-order-form-wrapper #wa-step-region-section
.wa-field-wrapper:has(input[name="region[city]"]) {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

html body #wa-order-form-wrapper #wa-step-region-section
input[name="region[city]"] {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
}

/* Город занимает всю ширину */
html #wa-order-form-wrapper #wa-step-region-section
.wa-fields-group:has(input[name="region[city]"]) {
  grid-template-columns: minmax(0, 1fr) !important;
}

html #wa-order-form-wrapper #wa-step-region-section
.wa-field-wrapper:has(input[name="region[city]"]) {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html #wa-order-form-wrapper input[name="region[city]"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Product specifications: stable columns, top-aligned multiline values. */
.product-page #product-features .features-list__item{display:grid!important;grid-template-columns:minmax(130px,30%) minmax(0,1fr)!important;column-gap:20px;align-items:start!important;padding:9px 0;border-bottom:1px solid #e7ebef}
.product-page #product-features .features-list__item:last-child{border-bottom:0}
.product-page #product-features .features-list__line{display:none!important}
.product-page #product-features .features-list__name{width:auto!important;min-width:0;max-width:none!important;white-space:normal!important;line-height:1.5;color:#6b7887}
.product-page #product-features .features-list__value{width:auto!important;min-width:0;max-width:none!important;text-align:left!important;justify-self:stretch;line-height:1.5;color:#343b42;overflow-wrap:anywhere;word-break:normal}
@media(max-width:575px){.product-page #product-features .features-list__item{grid-template-columns:minmax(0,1fr)!important;row-gap:4px}.product-page #product-features .features-list__name{font-weight:500}}

.product-page #product-features .features-list__item[hidden]{display:none!important}

.product-page #product-features .features-list__item[style*="display: none"],.product-page #product-features .features-list__item[style*="display:none"]{display:none!important}

/* Imported descriptions use the storefront font; sizes and emphasis remain intact. */
.product-page .product-overview__description,.product-page .product-overview__description *{font-family:inherit!important}

/* Catalog list: long specifications must not squeeze or wrap purchase controls. */
.products__list.list-view .product-item__info{min-width:0;}
.products__list.list-view .product-buttons{flex-wrap:nowrap;gap:10px;align-items:center;}
.products__list.list-view .product-buttons > .product-quantity,
.products__list.list-view .product-buttons > .product-add{flex:0 0 auto;margin:0;}
.products__list.list-view .product-add__button{white-space:nowrap;}
@media(min-width:992px){.products__list.list-view .product-item__offers{flex:0 0 260px;width:260px;min-width:260px;}}

@media(max-width:991px){
 .products__list.list-view .product-item__content{flex-wrap:wrap;}
 .products__list.list-view .product-item__offers{flex:0 0 100%;width:100%;min-width:0;max-width:100%;margin-top:12px;}
 .products__list.list-view .product-buttons{justify-content:flex-start;}
}

/* Regular-weight storefront category navigation. */
.header .catalog-nav--inline .catalog-nav__link,
.header .catalog-nav--inline .nav-dropdown__toggle{font-weight:400!important;}

/* Text controls and embedded storefront modules use the same family.
   Preserve their sizes/weights and the dedicated ruble/icon glyph fonts. */
html body input,
html body button,
html body select,
html body textarea,
html body .rw-oneclick__consent,
html body .tooltip,
html body .popover,
html body .rwa-checkout-success,
html body .rwa-welcome-dialog,
html body .leaflet-container,
html body .leaflet-tooltip,
html body .leaflet-popup-content-wrapper,
html body .leaflet-control-attribution,
html body .rw-towers__cluster {
    font-family: var(--rw-storefront-font) !important;
}

/* Regular-weight header text, consistent with category navigation. */
.header,
.header a,
.header strong,
.header b,
.header button,
.header label,
.header .auth__text,
.header .phones__address,
.header .shop-info__text-header,
.header .shop-info__text-content,
.header .shop-info__counter { font-weight: 400 !important; }

/* Slightly larger header text: one pixel above the existing desktop sizes. */
.header .main-nav__link,
.header .phones__link,
.header .phones__address,
.header .auth__text { font-size: 14px !important; }
.header .catalog-nav__link,
.header .catalog-nav--inline .nav-dropdown__toggle { font-size: 17px !important; }
.header .shop-info__text-header,
.header .shop-info__text-content,
.header input[name="search_query"] { font-size: 16px !important; }
.header a[href^="mailto:"],
.header a[href^="mailto:"] strong { font-size: 19px !important; }

/* Footer: three equally spaced entries in each information column. */
.rw-footer .rw-footer__useful { text-align: left; }
.rw-footer .rw-footer__region { display:flex; align-items:baseline; gap:4px; }
.rw-footer .rw-footer__region .shop-regions-btn-wrapper,
.rw-footer .rw-footer__region .shop-regions-open-window-btn { font:inherit; color:inherit; line-height:inherit; }
@media (min-width:768px) and (max-width:1100px) {
  .rw-footer .rw-footer__grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width:767px) {
  .rw-footer .rw-footer__useful { text-align:center; }
  .rw-footer .rw-footer__region { justify-content:center; }
}