.s-checkout-order-page .wa-quantity-cart-section .wa-button[type=button],
.s-checkout-order-page .wa-quantity-section .wa-button[type=button] {
    min-width: 30px;
    min-height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1em;
    background: transparent;
    color: #c4c4c4;
}

.s-checkout-order-page .wa-quantity-cart-section .wa-button[type=button]:hover,
.s-checkout-order-page .wa-quantity-section .wa-button[type=button]:hover {
    background: transparent;
    border-color: transparent;
    color: #000;
}

.s-checkout-order-page .wa-quantity-cart-section .wa-button[type=button] .wa-description,
.s-checkout-order-page .wa-quantity-section .wa-button[type=button] .wa-description {
    font-size: 12px;
    line-height: 16px;
    color: #aaa;
}

:root {
    --vp-brand-gradient: linear-gradient(125deg,
        #71B831 0%,     #71B831 32.25%,
        #43B400 33.75%, #43B400 65.25%,
        #009C00 66.75%, #009C00 100%);
    /* hover/active: тот же градиент под лёгким затемняющим слоем */
    --vp-brand-gradient-dark: linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)),
        var(--vp-brand-gradient);
}

/* Зелёные кнопки темы. Родная рамка (1px сплошного #50a816) на градиенте
   читалась бы грязным контуром — прячем, геометрия кнопок не меняется. */
.btn-theme {
    background-image: var(--vp-brand-gradient);
    border-color: transparent;
}

.btn-theme:hover,
.btn-theme:focus-visible,
.btn-theme:active,
.btn-theme.active,
.btn-theme.show {
    background-image: var(--vp-brand-gradient-dark);
    border-color: transparent;
}

.btn-theme:disabled,
.btn-theme.disabled {
    background-image: none;
}

/* Контурные зелёные кнопки («Оформити» на карточке) заливаются градиентом
   при наведении/нажатии; в покое остаются прозрачными с зелёной рамкой. */
.btn-outline-theme:hover,
.btn-outline-theme:active,
.btn-outline-theme.active {
    background-image: var(--vp-brand-gradient);
}

/* Крупные зелёные кнопки чекаута и диалога быстрого заказа.
   Кнопки количества «+/−» в кошике не трогаем: правило ТЗ п.13 выше
   специфичнее и сбрасывает их фон в transparent вместе с картинкой. */
.s-checkout-order-page .wa-button[type=button],
.s-checkout-order-page .wa-order-form-wrapper .wa-step-confirm-section .wa-section-body .wa-actions-section .wa-button,
.wa-order-dialog .wa-button.blue[type=button],
.wa-order-dialog button.wa-done-signup-button,
.wa-order-dialog .wa-request-onetime-password-button {
    background-image: var(--vp-brand-gradient);
    border-color: transparent;
}

.s-checkout-order-page .wa-button[type=button]:hover,
.s-checkout-order-page .wa-order-form-wrapper .wa-step-confirm-section .wa-section-body .wa-actions-section .wa-button:hover,
.wa-order-dialog .wa-button.blue[type=button]:hover,
.wa-order-dialog button.wa-done-signup-button:hover,
.wa-order-dialog .wa-request-onetime-password-button:hover {
    background-image: var(--vp-brand-gradient-dark);
    border-color: transparent;
}

.s-checkout-order-page .wa-button[type=button]:disabled,
.s-checkout-order-page .wa-order-form-wrapper .wa-step-confirm-section .wa-section-body .wa-actions-section .wa-button:disabled {
    background-image: none;
}

/* Активная кнопка переключателя языка RU/UA. Стили самих переключателей —
   инлайновые <style> в html/header/{desktop,mobile}/blocks/lang.html
   (десктопный красит через #50a816 !important — поэтому здесь важность
   и специфичность выше). */
.lang-switcher .lang-item.active {
    background: var(--vp-brand-gradient) !important;
    color: #fff !important;
}

.mobile-lang-switcher .mobile-lang-btn.active {
    background: var(--vp-brand-gradient);
    border-color: #009C00;
    color: #fff;
}


.b-product-submit .btn-theme.js-submit-button {
    --vp-cart-shift: 402.86px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-image: none;
}

.b-product-submit .btn-theme.js-submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(100% + var(--vp-cart-shift));
    z-index: -1;
    background: repeating-linear-gradient(125deg,
        #71B831 0,     #71B831 108px,
        #43B400 113px, #43B400 218px,
        #009C00 223px, #009C00 325px,
        #71B831 330px);
    animation: vp-cart-flow 9s linear infinite;
    will-change: transform;
    pointer-events: none;
    transition: filter .15s ease-in-out;
}

.b-product-submit .btn-theme.js-submit-button:hover::before,
.b-product-submit .btn-theme.js-submit-button:focus-visible::before,
.b-product-submit .btn-theme.js-submit-button:active::before {
    filter: brightness(.84);
}

.b-product-submit .btn-theme.js-submit-button:disabled::before,
.b-product-submit .btn-theme.js-submit-button.disabled::before {
    display: none;
}

@keyframes vp-cart-flow {
    from { transform: translateX(calc(-1 * var(--vp-cart-shift))); }
    to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .b-product-submit .btn-theme.js-submit-button::before {
        animation: none;
    }
}

.productsets-wrap .productsets-button.productsets-bundle-buy[data-productsets-bsub] {
    background-image: var(--vp-brand-gradient);
}

.productsets-wrap .productsets-button.productsets-bundle-buy[data-productsets-bsub]:hover {
    background-image: var(--vp-brand-gradient-dark);
}

.pagination .page-item.active > .page-link,
.pagination .page-link.active {
    background-image: var(--vp-brand-gradient);
    border-color: transparent;
}


/* ── 2026-10-27: мобильный UX (вёрстка .l-main--mobile, т.е. всё < 1024px) ── */

/* 1. Подкатегории на странице категории — одна строка с горизонтальной прокруткой 
      вместо столбика высоких карточек. Шаблон: shop html/category/types/categories_02.html */
.l-main--mobile .b-categories-02 .row {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.l-main--mobile .b-categories-02 .row::-webkit-scrollbar { display: none; }
.l-main--mobile .b-categories-02 .row > .b-categories-02__item {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    margin: 0;
}
/* плитка: иконка сверху, под ней название и счётчик, всё по центру; ширина одинаковая — ряд ровный */
.l-main--mobile .b-categories-02 .row > .b-categories-02__item { width: 112px; }
.l-main--mobile .b-categories-02 .b-categories-02__link { border-radius: 12px; }
.l-main--mobile .b-categories-02 .b-categories-02__link > .card-body {
    flex-direction: column;
    justify-content: center;
    padding: 10px 8px !important; /* перебиваем утилиту .p-5 (!important в Bootstrap) */
    gap: 6px !important;
    text-align: center;
}
.l-main--mobile .b-categories-02 .b-categories-02__image { width: 40px; flex: 0 0 auto; }
.l-main--mobile .b-categories-02 .b-categories-02__image img { width: 40px; height: 40px; object-fit: contain; }
.l-main--mobile .b-categories-02 .b-categories-02__name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: .8125rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    hyphens: auto;
}
.l-main--mobile .b-categories-02 .b-categories-02__name .fs-sm { font-size: .75rem !important; }
/* в ленте показываем все подкатегории — кнопка «Показать ещё» не нужна */
.l-main--mobile .b-categories-02 .b-categories__item-hidden.is-hidden { display: block !important; }
.l-main--mobile .b-categories-02 .js-categories-load-wrapper { display: none; }
.l-main--mobile .b-categories.b-categories-02.mb-8 { margin-bottom: 1.25rem !important; }

/* 2. Мобильное меню: вкладки «Каталог» / «Информация» (html/header/mobile/blocks/nav.html) */
.b-mobile-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background-color: var(--bs-secondary-bg);
}
.b-mobile-tabs__btn {
    flex: 1 1 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--bs-body-color);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
}
.b-mobile-tabs__btn.is-active {
    background-image: var(--vp-brand-gradient);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.b-mobile-tabs__pane:not(.is-active) { display: none; }
.b-nav-categories__nav_image { filter: none!important; }
.b-menu-dropdown__image { filter: none!important; }


/* Кнопка-стрелка «внутрь» подкатегорий: крупнее и на подложке, чтобы читалась как кнопка */
.b-mobile-nav .nav-next.dropdown-toggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-self: center;
    border-radius: 10px;
    background-color: rgba(67, 180, 0, .12);
    color: #2f8a00;
}
.b-mobile-nav .nav-next.dropdown-toggle::after {
    width: 9px;
    height: 9px;
    margin: 0 3px 0 0;
    border: 0;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}
.b-mobile-nav .nav-link.dropend { align-items: center; }
[data-bs-theme="dark"] .b-mobile-nav .nav-next.dropdown-toggle {
    background-color: rgba(113, 184, 49, .2);
    color: #8fd14f;
}
.b-nav-categories:not(.b-nav-pages) .navbar-nav {
    gap: 1.25rem !important;   /* минимальное межпунктовое расстояние: 32px -> 20px */
    /* пункты растягиваются на всю ширину родителя, свободное место
       распределяется в промежутки (правка 2026-08-26 по фидбеку) */
    justify-content: space-between;
}

.l-desktop-header .b-nav-categories__nav-link {
    letter-spacing: -.02em;    /* чуть плотнее межбуквенное */
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .25rem;
}

.l-desktop-header .b-nav-categories__nav_image {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    margin-right: 0 !important;
}

/* Сам размер иконки задаём картинке ЯВНО: тема стягивает .img-fluid на
   width:110% контейнера, а контейнер иконки теперь на всю ширину пункта —
   без этого правила иконки раздувает до ширины текста (ТЗ: максимум 40x40). */
.l-desktop-header .b-nav-categories__nav_image img {
    width: 32px;
    height: 32px;
}


/* 3. Мобильный поиск: выдача в потоке на всю высоту окна, а не в выпадашке высотой 198px.
      Прокручивается тело offcanvas, «Все результаты» прилипает к низу. */
.b-search.b-search--mobile .b-search__dropdown-menu.show {
    position: static;
    min-width: 100%;
    margin-top: 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background-color: transparent;
}
.b-search.b-search--mobile .b-search__dropdown-menu .d-flex.flex-column { gap: 12px !important; }
.b-search.b-search--mobile .b-search__dropdown-menu-products {
    height: auto;
    max-height: none;
    overflow: visible;
}
.b-search.b-search--mobile .b-search__product {
    align-items: center;
    padding: 10px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--bs-border-color);
}
.b-search.b-search--mobile .b-search__product-image { flex: 0 0 56px; width: 56px; }
.b-search.b-search--mobile .b-search__product-name { font-size: .9375rem; line-height: 1.3; }
.b-search.b-search--mobile .js-search-submit {
    position: sticky;
    bottom: 0;
    background-color: var(--bs-body-bg);
    box-shadow: 0 -8px 12px var(--bs-body-bg);
}

/* 2026-10-27: пункт «Telegram» в нижней мобильной панели — фирменный синий Telegram,
   чтобы не терялся среди серых иконок (утилита .text-quaternary в теме с !important) */
.b-mobile-fixed-panel .b-panel-telegram .icon { color: #229ED9 !important; }

/* 2026-10-27: пункт «Мессенджеры» в нижней мобильной панели (html/header/mobile/blocks/fixed_panel.html).
   Иконка и подпись по кругу Telegram → WhatsApp → Viber, по 3 с (цикл 9 с, отрицательные задержки сдвигают фазу).
   По клику — шторка #offcanvasMessengers. */
/* иконки лежат внутри span (absolute), а тема даёт размер только .icon>svg — задаём контейнеру размер явно (как .icon-2xl>svg) */
.b-mobile-fixed-panel .b-panel-msg__icons { position: relative; width: 1.5rem; height: 1.5rem; }
.b-mobile-fixed-panel .b-panel-msg__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: vpMsgCycle 9s infinite;
}
.b-mobile-fixed-panel .b-panel-msg__icon svg { width: 100%; height: 100%; fill: currentColor; }
.b-mobile-fixed-panel .b-panel-telegram .b-panel-msg__icon--tg { color: #229ED9 !important; animation-delay: 0s; }
.b-mobile-fixed-panel .b-panel-telegram .b-panel-msg__icon--wa { color: #25D366 !important; animation-delay: -6s; }
.b-mobile-fixed-panel .b-panel-telegram .b-panel-msg__icon--vb { color: #7360F2 !important; animation-delay: -3s; }

.b-mobile-fixed-panel .b-panel-msg__labels { display: grid; justify-items: center; white-space: nowrap; }
.b-mobile-fixed-panel .b-panel-msg__label { grid-area: 1 / 1; opacity: 0; animation: vpMsgFade 9s infinite; }
.b-mobile-fixed-panel .b-panel-msg__label--wa { animation-delay: -6s; }
.b-mobile-fixed-panel .b-panel-msg__label--vb { animation-delay: -3s; }

@keyframes vpMsgCycle {
    0%     { opacity: 0; transform: scale(.75); }
    4%     { opacity: 1; transform: scale(1); }
    30%    { opacity: 1; transform: scale(1); }
    34%    { opacity: 0; transform: scale(.75); }
    100%   { opacity: 0; transform: scale(.75); }
}
/* подписи — только плавная смена прозрачности, без масштаба, чтобы текст не «прыгал» */
@keyframes vpMsgFade {
    0%   { opacity: 0; }
    4%   { opacity: 1; }
    30%  { opacity: 1; }
    34%  { opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .b-mobile-fixed-panel .b-panel-msg__icon,
    .b-mobile-fixed-panel .b-panel-msg__label { animation: none; }
    .b-mobile-fixed-panel .b-panel-msg__icon--tg,
    .b-mobile-fixed-panel .b-panel-msg__label--tg { opacity: 1; }
}

.b-msg-offcanvas.offcanvas-bottom {
    --bs-offcanvas-height: auto;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding-bottom: env(safe-area-inset-bottom);
}
.b-msg-offcanvas__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
}
.b-msg-offcanvas__btn:active { filter: brightness(.92); }
.b-msg-offcanvas__btn--tg { background: #229ED9; }
.b-msg-offcanvas__btn--wa { background: #25D366; }
.b-msg-offcanvas__btn--vb { background: #7360F2; }
.b-msg-offcanvas__icon { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; }
.b-msg-offcanvas__icon svg { width: 100%; height: 100%; fill: currentColor; }

/* 2026-10-27: фильтр по бренду в сайдбаре категории (shop html/sidebar/brand_filter.html): логотипы по 3 в ряд,
   быстрый поиск, клик = галочка brend[] в форме фильтров. Логика — custom-fixes.js. */
.b-brand-filter__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.b-brand-filter__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px 6px;
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.b-brand-filter__item[hidden], .b-brand-filter__item.is-collapsed { display: none !important; }
.b-brand-filter__item:hover { border-color: #43B400; }
.b-brand-filter__item.is-active { border-color: #43B400; box-shadow: inset 0 0 0 1px #43B400; }
.b-brand-filter__item.is-active::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #43B400 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.b-brand-filter__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
}
.b-brand-filter__image img { max-width: 100%; max-height: 36px; object-fit: contain; }
.b-brand-filter__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bs-gray-200, #eee);
    font-weight: 600;
    font-size: .8125rem;
}
.b-brand-filter__name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .6875rem;
    line-height: 1.2;
}
.b-brand-filter__empty { padding: 6px 0; }

/* 2026-10-27: футер на мобильном — разделы-аккордеоны оформлены как меню:
   строки на всю ширину с разделителями, крупная стрелка справа, поворот при раскрытии */
@media (max-width: 767.98px) {
    .b-footer-01 .b-footer-nav {
        border-bottom: 1px solid var(--bs-border-color, #e6e6e6);
    }
    .b-footer-01 .row > .col-12:first-child > .b-footer-nav {
        border-top: 1px solid var(--bs-border-color, #e6e6e6);
    }
    /* тема держит display:block !important — стрелку прижимаем вправо абсолютом */
    .b-footer-01 .b-footer-nav > .navbar-toggler {
        position: relative;
        width: 100%;
        min-height: 52px;
        margin: 0 !important; /* перебиваем утилиту mb-4 */
        padding: .5rem 44px .5rem 0 !important;
        font-size: 1rem;
        line-height: 1.3;
        text-align: left;
        border-radius: 0;
        box-shadow: none;
    }
    .b-footer-01 .b-footer-nav > .navbar-toggler:focus { box-shadow: none; }
    .b-footer-01 .b-footer-nav > .navbar-toggler:focus-visible { outline: 2px solid #43B400; outline-offset: 2px; }
    .b-footer-01 .b-footer-nav > .navbar-toggler::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 30px;
        height: 30px;
        margin: -15px 0 0;
        border: 0;
        border-radius: 50%;
        background: rgba(67, 180, 0, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2343B400' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") center / 14px no-repeat;
        transition: transform .2s ease, background-color .2s ease;
    }
    .b-footer-01 .b-footer-nav > .navbar-toggler[aria-expanded="true"]::after {
        transform: rotate(180deg);
        background-color: rgba(67, 180, 0, .2);
    }
    .b-footer-01 .b-footer-nav > .navbar-collapse > ul {
        margin: 0;
        padding: 0 0 .75rem;
    }
    .b-footer-01 .b-footer-nav > .navbar-collapse li { margin: 0 !important; }
    .b-footer-01 .b-footer-nav > .navbar-collapse li > a {
        display: block;
        padding: .5rem 0 .5rem .875rem;
        border-left: 2px solid rgba(67, 180, 0, .35);
        font-size: .9375rem;
    }
    /* отступ блока «Контакты» от меню */
    .b-footer-01 .col-md-3.offset-md-1 { margin-top: 1.75rem; }
}
