/* PWB.KZ — нижняя панель навигации (мобильная версия, как в приложении)
   Разметка: html/bottom_nav.tpl. Подключается в head.tpl после pwb-dark-mode.css.
   Показывается только на экранах до 991px, на десктопе ничего не меняется.
   Тёмная тема переключается тем же атрибутом html[data-theme="dark"], что и весь сайт. */

:root {
    --pwb-nav-h: 60px;
    --pwb-nav-bg: #ffffff;
    --pwb-nav-fg: #6b6b76;
    --pwb-nav-fg-strong: #222222;
    --pwb-nav-line: rgba(0, 0, 0, .09);
    --pwb-nav-accent: var(--okay-basic-company, #b62474);
    --pwb-nav-pill: rgba(182, 36, 116, .13);
    --pwb-nav-shadow: 0 -4px 18px rgba(30, 10, 40, .08);
    --pwb-nav-badge-bg: #b62475;
    --pwb-nav-badge-fg: #ffffff;
}
html[data-theme="dark"] {
    --pwb-nav-bg: #1e1e24;
    --pwb-nav-fg: #a6a6b3;
    --pwb-nav-fg-strong: #f1f1f5;
    --pwb-nav-line: rgba(255, 255, 255, .10);
    --pwb-nav-accent: #e0589f;
    --pwb-nav-pill: rgba(224, 88, 159, .20);
    --pwb-nav-shadow: 0 -4px 18px rgba(0, 0, 0, .45);
}

.pwb-nav,
.pwb-sheet,
.pwb-sheet-backdrop { display: none; }

@media (max-width: 991px) {

    /* Место под панель, чтобы она не закрывала футер и последние товары */
    body { padding-bottom: calc(var(--pwb-nav-h) + env(safe-area-inset-bottom, 0px)); }

    /* Плавающие кнопки поднимаем над панелью */
    body .whatsapp-container,
    body .to_top { bottom: calc(var(--pwb-nav-h) + 16px + env(safe-area-inset-bottom, 0px)); }

    /* ---------- Шапка на мобильных: остаётся только строка поиска ----------
       Кнопка меню, каталог и информеры скрыты (они в нижней панели), но
       остаются в разметке: из них берут данные счётчики, ajax их обновляет.
       На главной поиск, как и раньше, прячется при прокрутке. */
    html body header.header { display: none !important; }
    html body.pwb-has-search header.header {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 8000;
        padding-top: env(safe-area-inset-top, 0px);
    }
    html body.pwb-has-search header.header .header__bottom,
    html body.pwb-has-search header.header .header__bottom > div,
    html body.pwb-has-search header.header .header__bottom_panel {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body.pwb-has-search header.header .header__bottom .container { padding: 0 !important; max-width: none !important; }
    html body.pwb-has-search header.header .menu_switcher,
    html body.pwb-has-search header.header .catalog_button,
    html body.pwb-has-search header.header .header_informers,
    html body.pwb-has-search header.header .categories_nav { display: none !important; }

    html body.pwb-has-search header.header #fn_search.fn_search_mob {
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding: 10px 12px 14px !important;
    }
    html:not([data-theme="dark"]) body.pwb-has-search header.header #fn_search.fn_search_mob {
        background: linear-gradient(to right, #732d7d, #b62475) !important;
    }
    html body.pwb-has-search header.header #fn_search.fn_search_mob .search__button {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        height: 45px !important;
    }
    html body.main_page.search_scrolled header.header { display: none !important; }

    /* Остальные страницы (товар, кабинет и т.д.): шапки нет, отступ только под вырез экрана */
    html body .main { padding-top: env(safe-area-inset-top, 0px) !important; }
    /* Главная, корзина, избранное: место под строку поиска (10 + 45 + 14 = 69px) */
    html body.pwb-has-search .main,
    html body.main_page .main,
    html body.cart_page .main { padding-top: calc(69px + env(safe-area-inset-top, 0px)) !important; }

    /* ---------- Панель ---------- */
    .pwb-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9000;
        height: calc(var(--pwb-nav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--pwb-nav-bg);
        border-top: 1px solid var(--pwb-nav-line);
        box-shadow: var(--pwb-nav-shadow);
        font-family: inherit;
        transition: transform .22s ease;
    }
    html.pwb-kb .pwb-nav { transform: translateY(110%); }
    html.pwb-kb body { padding-bottom: 0; }

    .pwb-nav__item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        color: var(--pwb-nav-fg);
        font: inherit;
        font-size: 11px;
        line-height: 1.15;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .pwb-nav__item:hover,
    .pwb-nav__item:focus { color: var(--pwb-nav-fg); text-decoration: none; }
    .pwb-nav__item:focus-visible { outline: 2px solid var(--pwb-nav-accent); outline-offset: -4px; border-radius: 12px; }

    .pwb-nav__icon {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 30px;
        border-radius: 15px;
        transition: background-color .2s ease, transform .15s ease;
    }
    .pwb-nav__icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .pwb-nav__label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .pwb-nav__item:active .pwb-nav__icon { transform: scale(.9); }

    /* Активная вкладка: страница, на которой вы сейчас, или открытая шторка */
    .pwb-nav__item.is-active,
    .pwb-nav__item[aria-expanded="true"] {
        color: var(--pwb-nav-accent);
        font-weight: 700;
    }
    .pwb-nav__item.is-active:hover,
    .pwb-nav__item[aria-expanded="true"]:hover { color: var(--pwb-nav-accent); }
    .pwb-nav__item.is-active .pwb-nav__icon,
    .pwb-nav__item[aria-expanded="true"] .pwb-nav__icon { background: var(--pwb-nav-pill); }

    /* Пока открыта шторка, подсвечена только «Каталог» */
    html.pwb-sheet-open .pwb-nav__item.is-active:not([aria-expanded="true"]) {
        color: var(--pwb-nav-fg);
        font-weight: 500;
    }
    html.pwb-sheet-open .pwb-nav__item.is-active:not([aria-expanded="true"]) .pwb-nav__icon { background: transparent; }

    /* Счётчик корзины: малиновый #B62475 с белой цифрой, как был счётчик в шапке */
    .pwb-nav__badge {
        position: absolute;
        top: -4px;
        left: calc(50% + 5px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        box-sizing: border-box;
        border: 2px solid var(--pwb-nav-bg);
        border-radius: 9px;
        background: var(--pwb-nav-badge-bg);
        color: var(--pwb-nav-badge-fg);
        font-size: 10px;
        font-weight: 700;
        line-height: 14px;
        text-align: center;
    }
    .pwb-nav__badge[hidden] { display: none; }
    .pwb-nav__badge.is-bump { animation: pwbNavBump .45s ease; }
    @keyframes pwbNavBump {
        0%   { transform: scale(1); }
        35%  { transform: scale(1.4); }
        100% { transform: scale(1); }
    }

    /* ---------- Шторка «Каталог» ---------- */
    .pwb-sheet-backdrop {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: calc(var(--pwb-nav-h) + env(safe-area-inset-bottom, 0px));
        z-index: 9001;
        background: rgba(10, 6, 16, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility 0s linear .22s;
    }
    .pwb-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--pwb-nav-h) + env(safe-area-inset-bottom, 0px));
        z-index: 9002;
        /* Поднимаем шторку почти до верхнего края экрана; нижняя панель остаётся видимой. */
        max-height: calc(100vh - var(--pwb-nav-h) - env(safe-area-inset-bottom, 0px) - 10px);
        max-height: calc(100dvh - var(--pwb-nav-h) - env(safe-area-inset-bottom, 0px) - 10px);
        background: var(--pwb-nav-bg);
        color: var(--pwb-nav-fg-strong);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
        transform: translateY(calc(100% + var(--pwb-nav-h)));
        visibility: hidden;
        transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s;
        outline: none;
    }
    html.pwb-sheet-open { overflow: hidden; }
    html.pwb-sheet-open .pwb-sheet-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity .22s ease, visibility 0s;
    }
    html.pwb-sheet-open .pwb-sheet {
        transform: translateY(0);
        visibility: visible;
        transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s;
    }

    .pwb-sheet__head { flex: 0 0 auto; padding: 8px 20px 6px; }
    .pwb-sheet__grip {
        display: block;
        width: 40px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: 2px;
        background: var(--pwb-nav-line);
    }
    .pwb-sheet__title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        color: var(--pwb-nav-fg-strong);
    }

    .pwb-sheet__list,
    .pwb-sheet__sub {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .pwb-sheet__list {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0 8px 12px;
    }
    .pwb-sheet__list li { margin: 0; padding: 0; list-style: none; }

    .pwb-sheet__row {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 7px 12px;
        border-radius: 14px;
        color: var(--pwb-nav-fg-strong);
        font-size: 15px;
        font-weight: 600;
        line-height: 1.25;
        text-decoration: none;
        cursor: pointer;
        list-style: none;
        -webkit-tap-highlight-color: transparent;
    }
    .pwb-sheet__row:hover,
    .pwb-sheet__row:focus { color: var(--pwb-nav-fg-strong); text-decoration: none; }
    .pwb-sheet__row:active { background: var(--pwb-nav-pill); }
    .pwb-sheet__row::-webkit-details-marker { display: none; }
    .pwb-sheet__row:focus-visible,
    .pwb-sheet__sublink:focus-visible { outline: 2px solid var(--pwb-nav-accent); outline-offset: -2px; }

    .pwb-sheet__img {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--pwb-nav-pill);
    }
    .pwb-sheet__name { flex: 1 1 auto; min-width: 0; }

    .pwb-sheet__chev {
        flex: 0 0 auto;
        width: 9px;
        height: 9px;
        margin: 0 6px 3px 0;
        border-right: 2px solid var(--pwb-nav-fg);
        border-bottom: 2px solid var(--pwb-nav-fg);
        transform: rotate(45deg);
        transition: transform .2s ease;
    }
    .pwb-sheet__group[open] > .pwb-sheet__row .pwb-sheet__chev {
        transform: rotate(225deg);
        margin-bottom: -3px;
    }
    .pwb-sheet__group[open] > .pwb-sheet__row { color: var(--pwb-nav-accent); }

    .pwb-sheet__sub { padding: 0 0 6px 60px; }
    .pwb-sheet__sublink {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 6px 12px;
        border-radius: 12px;
        color: var(--pwb-nav-fg-strong);
        font-size: 14px;
        font-weight: 500;
        line-height: 1.25;
        text-decoration: none;
    }
    .pwb-sheet__sublink:hover,
    .pwb-sheet__sublink:focus { color: var(--pwb-nav-fg-strong); text-decoration: none; }
    .pwb-sheet__sublink:active { background: var(--pwb-nav-pill); }
    .pwb-sheet__sublink--all { color: var(--pwb-nav-accent); font-weight: 700; }
    .pwb-sheet__sublink--all:hover,
    .pwb-sheet__sublink--all:focus { color: var(--pwb-nav-accent); }
}

/* ============================================================
   Боковое меню: «Избранное» и «Тема» внизу (разметка в mobile_menu.tpl)
   Меню общее для мобильной и десктопной версий, поэтому правила вне @media.
   ============================================================ */
.hc-offcanvas-nav ul.pwb-menu-tools { margin-top: 0; }
.hc-offcanvas-nav .pwb-menu-tools__item {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}
.hc-offcanvas-nav .pwb-menu-tools__item > i,
.hc-offcanvas-nav .pwb-menu-tools__item .theme_icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 12px 0 0;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
}
.hc-offcanvas-nav .pwb-menu-tools__text { flex: 1 1 auto; min-width: 0; }

/* Светлая тема: предлагаем тёмную; тёмная тема: предлагаем светлую */
.hc-offcanvas-nav .pwb-menu-tools__text--to-light { display: none; }
html[data-theme="dark"] .hc-offcanvas-nav .pwb-menu-tools__text--to-dark { display: none; }
html[data-theme="dark"] .hc-offcanvas-nav .pwb-menu-tools__text--to-light { display: block; }

/* Количество в избранном */
.hc-offcanvas-nav .pwb-menu-tools__count {
    flex: 0 0 auto;
    min-width: 22px;
    height: 22px;
    margin-left: 10px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 11px;
    background: #b62475;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}
.hc-offcanvas-nav .pwb-menu-tools__count[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .pwb-nav,
    .pwb-nav__icon,
    .pwb-sheet,
    .pwb-sheet-backdrop,
    .pwb-sheet__chev { transition: none !important; }
    .pwb-nav__badge.is-bump { animation: none; }
}

/* ============================================================
   PWB Liquid Glass v9 — единый мобильный блок «поиск + баннер»
   Стили объединены в один блок; поисковые подсказки не обрезаются.
   ============================================================ */
@media (max-width: 991px) {
    /* Быстрый поиск используется не только на главной, но и в корзине/избранном.
       Убираем обрезание выпадающего списка во всех местах, где показан поиск. */
    html body.pwb-has-search header.header {
        z-index: 10040 !important;
        overflow: visible !important;
    }
    html body.pwb-has-search header.header .header__bottom,
    html body.pwb-has-search header.header .header__bottom > div,
    html body.pwb-has-search header.header .header__bottom .container,
    html body.pwb-has-search header.header .fn_header__sticky,
    html body.pwb-has-search header.header .header__bottom_panel {
        overflow: visible !important;
    }
    html body.pwb-has-search header.header #fn_search.fn_search_mob {
        position: relative !important;
        z-index: 10050 !important;
        overflow: visible !important;
        contain: none !important;
        clip-path: none !important;
    }

    /* Сам список может быть создан скриптом за пределами формы поиска. */
    html body.pwb-has-search .ui-autocomplete,
    html body.pwb-has-search [role="listbox"],
    html body.pwb-has-search [class*="search"][class*="result"],
    html body.pwb-has-search [class*="search"][class*="suggest"],
    html body.pwb-has-search [class*="autocomplete"] {
        z-index: 10070 !important;
    }

    /* Шапка и все её обёртки должны пропускать выпадающий AJAX-список. */
    html body.main_page.pwb-has-search header.header {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        padding: env(safe-area-inset-top, 0px) 0 0 !important;
        box-sizing: border-box !important;
        z-index: 10040 !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html body.main_page.pwb-has-search header.header .header__bottom,
    html body.main_page.pwb-has-search header.header .header__bottom > div,
    html body.main_page.pwb-has-search header.header .header__bottom .container,
    html body.main_page.pwb-has-search header.header .fn_header__sticky,
    html body.main_page.pwb-has-search header.header .header__bottom_panel {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body.main_page.pwb-has-search header.header .menu_switcher,
    html body.main_page.pwb-has-search header.header .catalog_button,
    html body.main_page.pwb-has-search header.header .header_informers,
    html body.main_page.pwb-has-search header.header .categories_nav {
        display: none !important;
    }

    /* Самая высокая точка стека — форма и её AJAX-подсказки. */
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob {
        display: block !important;
        position: relative !important;
        z-index: 10050 !important;
        isolation: isolate !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px 12px 10px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        contain: none !important;
        clip-path: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Стеклянный слой появляется только после того, как найдено
       реальное изображение текущего баннера. Градиент-подложка не мигает. */
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob::before {
        content: "";
        position: absolute;
        z-index: 0;
        inset: -12px 0 0;
        pointer-events: none;
        opacity: 0;
        background: none;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        filter: blur(13px) saturate(165%);
        transform: scale(1.04);
        transition: opacity .18s ease;
    }

    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob.pwb-banner-glass-ready::before {
        opacity: 1;
        background-image:
            linear-gradient(120deg, rgba(67,25,75,.68), rgba(182,36,117,.55)),
            var(--pwb-banner-glass-image);
    }

    html[data-theme="dark"] body.main_page.pwb-has-search header.header #fn_search.fn_search_mob.pwb-banner-glass-ready::before {
        background-image:
            linear-gradient(120deg, rgba(25,18,32,.78), rgba(73,24,57,.70)),
            var(--pwb-banner-glass-image);
    }

    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(115deg,
            rgba(255,255,255,.15) 0%,
            rgba(255,255,255,.035) 38%,
            transparent 68%,
            rgba(255,255,255,.055) 100%);
    }

    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search__input {
        position: relative !important;
        z-index: 2 !important;
        background: rgba(25,24,31,.58) !important;
        color: #f7f3f8 !important;
        border: 1px solid rgba(255,255,255,.16) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 18px rgba(20,8,25,.10) !important;
        -webkit-backdrop-filter: blur(20px) saturate(175%);
        backdrop-filter: blur(20px) saturate(175%);
    }

    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search__input::placeholder {
        color: rgba(247,243,248,.78);
    }

    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search__button {
        position: absolute !important;
        z-index: 3 !important;
        top: 10px !important;
        right: 12px !important;
        height: 45px !important;
        background: rgba(113,43,124,.78) !important;
        border: 1px solid rgba(255,255,255,.14) !important;
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
    }

    /* Основной блок страницы и баннер — во всю ширину дисплея. */
    html body.main_page {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: clip !important;
    }

    html body.main_page .main {
        width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        /* Высота строки поиска: 10px сверху + 45px поле + 10px снизу. */
        padding-top: calc(65px + env(safe-area-inset-top, 0px)) !important;
    }

    html body.main_page .main > .container:first-child {
        position: relative !important;
        left: 50% !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    html body.main_page .main > .container:first-child > .main_banner {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        /* Верхние углы остаются прямыми, скругляем только нижние. */
        border-radius: 0 0 26px 26px !important;
        overflow: hidden !important;
        transform: none !important;
        box-sizing: border-box !important;
        background: transparent !important;
    }

    html body.main_page .main > .container:first-child > .main_banner > *,
    html body.main_page .main > .container:first-child > .main_banner .swiper,
    html body.main_page .main > .container:first-child > .main_banner .swiper-container,
    html body.main_page .main > .container:first-child > .main_banner .slick-slider,
    html body.main_page .main > .container:first-child > .main_banner .slick-list,
    html body.main_page .main > .container:first-child > .main_banner .owl-carousel,
    html body.main_page .main > .container:first-child > .main_banner .owl-stage-outer,
    html body.main_page .main > .container:first-child > .main_banner .carousel,
    html body.main_page .main > .container:first-child > .main_banner .splide,
    html body.main_page .main > .container:first-child > .main_banner .splide__track {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    html body.main_page .main > .container:first-child > .main_banner img {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    /* Подсказки: более высокий слой, чем поиск и слайдер.
       Перечислены как типовые имена, а также любой элемент с autocomplete. */
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search__results,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search_results,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .fn_search_results,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .fn_search_result,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search__suggestions,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .search-suggestions,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .autocomplete,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob .ui-autocomplete,
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob [role="listbox"],
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob [class*="result"],
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob [class*="suggest"],
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob [class*="autocomplete"] {
        z-index: 10070 !important;
    }

    /* Некоторые реализации Okay/модулей добавляют список к body. */
    body > .ui-autocomplete,
    body > [role="listbox"],
    body > .search__results,
    body > .search_results,
    body > .fn_search_results,
    body > [class*="search"][class*="result"],
    body > [class*="search"][class*="suggest"],
    body > [class*="autocomplete"] {
        z-index: 10070 !important;
    }
}

@media (max-width: 991px) {
    html body.main_page.search_scrolled header.header { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    html body.main_page.pwb-has-search header.header #fn_search.fn_search_mob::before {
        transition: none !important;
    }
}


/* ============================================================
   PWB product heading + rounded mobile quick search
   ============================================================ */
/* The product heading card contains the H1 and SKU/article line.
   :has() lets us round the existing wrapper without changing product.tpl. */
html body.product_page .fn_ajax_content :is(div, section, header, article):has(> h1):has([class*="sku" i]),
html body.product_page .fn_ajax_content :is(div, section, header, article):has(> h1):has([class*="article" i]),
html body.product_page .fn_ajax_content :is(.product__heading, .product_heading, .product_header, .product__header, .product_name, .product__name, .product_name_wrap, .product__name-wrap, .product_title, .product__title) {
    border-radius: 28px !important;
}

/* Keep a long product name and its SKU comfortably inside the round frame. */
html body.product_page .fn_ajax_content :is(div, section, header, article):has(> h1):has([class*="sku" i]) > h1,
html body.product_page .fn_ajax_content :is(div, section, header, article):has(> h1):has([class*="article" i]) > h1 {
    border-radius: 22px !important;
}

html body.product_page .fn_ajax_content [class*="sku" i],
html body.product_page .fn_ajax_content [class*="article" i] {
    border-radius: 999px;
}

@media (max-width: 991px) {
    /* Search input and its overlaid button form one softer, rounded control. */
    html body.pwb-has-search header.header #fn_search.fn_search_mob .search__input {
        border-radius: 24px !important;
    }
    html body.pwb-has-search header.header #fn_search.fn_search_mob .search__button {
        border-radius: 18px !important;
        overflow: hidden;
    }
    /* The glass search wrapper has matching rounded outer corners. */
    html body.pwb-has-search header.header #fn_search.fn_search_mob {
        border-radius: 26px !important;
    }
}

/* ============================================================
   PWB v12 — round the OUTER quick-search suggestion panel
   В v11 скругление было применено к внутренним строкам/обёрткам карточки.
   Теперь скругляется внешний popup целиком, включая область цены.
   ============================================================ */
@media (max-width: 991px) {
    /* Dropdown внутри шапки: стандартный jQuery UI и варианты OkayCMS.
       Селекторы намеренно относятся к внешнему контейнеру списка. */
    html body.pwb-has-search header.header .ui-autocomplete,
    html body.pwb-has-search header.header [role="listbox"],
    html body.pwb-has-search header.header .search__results,
    html body.pwb-has-search header.header .search_results,
    html body.pwb-has-search header.header .fn_search_results,
    html body.pwb-has-search header.header .fn_search_result,
    html body.pwb-has-search header.header .search__suggestions,
    html body.pwb-has-search header.header .search-suggestions,
    html body.pwb-has-search header.header .search__dropdown,
    html body.pwb-has-search header.header .search-dropdown,
    html body.pwb-has-search header.header .search__popup,
    html body.pwb-has-search header.header .search-popup,
    html body.pwb-has-search header.header [class*="search" i][class*="result" i],
    html body.pwb-has-search header.header [class*="search" i][class*="suggest" i],
    html body.pwb-has-search header.header [class*="autocomplete" i],
    /* Некоторые поисковые модули выводят popup отдельным дочерним блоком body. */
    html body.pwb-has-search > .ui-autocomplete,
    html body.pwb-has-search > [role="listbox"],
    html body.pwb-has-search > .search__results,
    html body.pwb-has-search > .search_results,
    html body.pwb-has-search > .fn_search_results,
    html body.pwb-has-search > .fn_search_result,
    html body.pwb-has-search > [class*="search" i][class*="result" i],
    html body.pwb-has-search > [class*="search" i][class*="suggest" i],
    html body.pwb-has-search > [class*="autocomplete" i] {
        border: 1px solid rgba(255,255,255,.24) !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        background: #1e1e23 !important;
        background-clip: padding-box !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.30) !important;
        z-index: 10090 !important;
    }

    /* Внутренние части больше не получают отдельные овальные рамки.
       Радиус принадлежит только внешнему popup-контейнеру. */
    html body.pwb-has-search header.header .ui-autocomplete > .ui-menu-item,
    html body.pwb-has-search header.header .ui-autocomplete .ui-menu-item-wrapper,
    html body.pwb-has-search header.header [role="listbox"] > [role="option"] {
        border-radius: 0 !important;
        overflow: visible !important;
    }

    /* Если результат — отдельный внешний блок, он округляется как единая карточка.
       Здесь не скругляются его дочерние части: цена, фото и название остаются
       внутри общей внешней рамки. */
    html body.pwb-has-search header.header [class*="search" i][class*="result" i],
    html body.pwb-has-search header.header [class*="search" i][class*="suggest" i],
    html body.pwb-has-search header.header [class*="autocomplete" i] {
        border-radius: 24px !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
    }
}


/* ============================================================
   PWB — компактные карточки популярных категорий в мобильном каталоге
   ============================================================ */
@media (max-width: 991px) {
    .pwb-sheet__list > .pwb-sheet__popular-item {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 8px 12px !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }

    .pwb-sheet__popular {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pwb-sheet__popular-heading {
        display: block !important;
        margin: 0 2px 8px !important;
        color: var(--pwb-nav-fg) !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        letter-spacing: .01em !important;
    }

    .pwb-sheet__popular-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    .pwb-sheet__popular-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-width: 0 !important;
        min-height: 100px !important;
        height: 100px !important;
        margin: 0 !important;
        padding: 8px 5px 6px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        border: 1px solid var(--pwb-nav-line) !important;
        border-radius: 14px !important;
        background: linear-gradient(145deg, rgba(182, 36, 116, .12), rgba(125, 95, 145, .08)) !important;
        color: var(--pwb-nav-fg-strong) !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .pwb-sheet__popular-card:hover,
    .pwb-sheet__popular-card:focus,
    .pwb-sheet__popular-card:visited {
        color: var(--pwb-nav-fg-strong) !important;
        text-decoration: none !important;
    }

    .pwb-sheet__popular-card:active { transform: scale(.97); }

    .pwb-sheet__popular-name {
        position: relative !important;
        z-index: 2 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 2.2em !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        color: inherit !important;
        font-size: clamp(10px, 2.9vw, 12px) !important;
        font-weight: 700 !important;
        line-height: 1.12 !important;
        text-align: center !important;
        text-decoration: none !important;
        overflow-wrap: anywhere !important;
    }

    .pwb-sheet__popular-card img {
        position: static !important;
        display: block !important;
        flex: 0 0 62px !important;
        width: 62px !important;
        height: 62px !important;
        min-width: 62px !important;
        min-height: 62px !important;
        max-width: 62px !important;
        max-height: 62px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: transparent !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    html[data-theme="dark"] .pwb-sheet__popular-card {
        background: linear-gradient(145deg, #292930 0%, #232329 100%) !important;
        border-color: rgba(255, 255, 255, .08) !important;
    }

    html:not([data-theme="dark"]) .pwb-sheet__popular-card {
        background: linear-gradient(145deg, #f1eef3 0%, #e9e8ee 100%) !important;
        border-color: rgba(30, 30, 40, .08) !important;
    }

    @media (max-width: 360px) {
        .pwb-sheet__popular-grid { gap: 6px !important; }
        .pwb-sheet__popular-card {
            min-height: 92px !important;
            height: 92px !important;
            padding: 7px 4px 5px !important;
            border-radius: 12px !important;
        }
        .pwb-sheet__popular-name { font-size: 10px !important; }
        .pwb-sheet__popular-card img {
            flex-basis: 56px !important;
            width: 56px !important;
            height: 56px !important;
            min-width: 56px !important;
            min-height: 56px !important;
            max-width: 56px !important;
            max-height: 56px !important;
        }
    }
}


/* ============================================================
   PWB v17 — верхние углы баннера строго прямые.
   Скругление сохраняется только на нижних внешних углах баннера.
   ============================================================ */
@media (max-width: 991px) {
    html body.main_page .main_banner {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 26px !important;
        border-bottom-right-radius: 26px !important;
        overflow: hidden !important;
    }

    html body.main_page .main_banner *,
    html body.main_page .main_banner::before,
    html body.main_page .main_banner::after,
    html body.main_page .main_banner *::before,
    html body.main_page .main_banner *::after {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}

/* PWB v19: баннер без затемняющего слоя — исходная яркость изображения. */
@media (max-width: 991px) {
    html body.main_page .main > .container:first-child > .main_banner::before {
        content: none !important;
        display: none !important;
        background: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}


/* PWB — не позволяем фиксированному поиску перекрывать открытое боковое меню.
   HC Offcanvas Nav добавляет body.hc-nav-open при открытии меню.
   В обычном состоянии высокий слой поиска и подсказок остаётся без изменений. */
@media (max-width: 991px) {
    html body.hc-nav-open header.header {
        z-index: 8000 !important;
    }
}




/* PWB — поиск не должен перекрывать открытое боковое меню.
   Предыдущие правила не срабатывали: либо проигрывали по специфичности
   (z-index: 10050 / display: block !important выше), либо класс «меню открыто»
   стоит не там, где ожидали. Поэтому проверяем сразу несколько признаков
   открытого меню — каждый в отдельном правиле, чтобы один неподдерживаемый
   селектор не отключил остальные. Когда меню закрыто, поиск работает как раньше. */
@media (max-width: 991px) {
    html body.hc-nav-open.pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html body.hc-nav-open.pwb-has-search header.header { z-index: 8000 !important; }
    html body.main_page.hc-nav-open.pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html body.main_page.hc-nav-open.pwb-has-search header.header { z-index: 8000 !important; }
    html.hc-nav-open body.pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html.hc-nav-open body.pwb-has-search header.header { z-index: 8000 !important; }
    html body:has(.hc-offcanvas-nav.nav-open).pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html body:has(.hc-offcanvas-nav.nav-open).pwb-has-search header.header { z-index: 8000 !important; }
    html body:has(.hc-offcanvas-nav.nav-open).main_page.pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html body:has(.hc-offcanvas-nav.nav-open).main_page.pwb-has-search header.header { z-index: 8000 !important; }
    html body:has(.hc-nav-open).pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    html body:has(.hc-nav-open).pwb-has-search header.header { z-index: 8000 !important; }
}


/* PWB — шторка «Каталог товаров» (html.pwb-sheet-open): поиск уходит под неё.
   Шторка и подложка имеют z-index 9001/9002, а поиск — 10050, поэтому он
   лежал поверх шторки, а его «стеклянный» градиент (::before/::after) заходил
   на шторку. Теперь, пока шторка открыта, шапка и поиск ниже подложки,
   а градиентный слой отключён. После закрытия шторки всё как раньше. */
@media (max-width: 991px) {
    html.pwb-sheet-open body.pwb-has-search header.header,
    html.pwb-sheet-open body.main_page.pwb-has-search header.header {
        z-index: 8000 !important;
    }
    html.pwb-sheet-open body.pwb-has-search header.header #fn_search.fn_search_mob,
    html.pwb-sheet-open body.main_page.pwb-has-search header.header #fn_search.fn_search_mob {
        z-index: 1 !important;
        isolation: auto !important;
        pointer-events: none !important;
    }
    html.pwb-sheet-open body.main_page.pwb-has-search header.header #fn_search.fn_search_mob::before,
    html.pwb-sheet-open body.main_page.pwb-has-search header.header #fn_search.fn_search_mob::after {
        content: none !important;
        display: none !important;
    }
    html.pwb-sheet-open body.pwb-has-search .ui-autocomplete,
    html.pwb-sheet-open body.pwb-has-search [role="listbox"],
    html.pwb-sheet-open body.pwb-has-search [class*="autocomplete"] {
        z-index: 1 !important;
    }
}


/* ============================================================
   PWB — плавная анимация шторки «Каталог» и категорий (v2)
   Мягкие кривые, длинные «хвосты» и каскад: каждый следующий элемент
   стартует чуть позже предыдущего и как бы догоняет его.
   Только transform/opacity; учитывается prefers-reduced-motion.
   ============================================================ */
@media (max-width: 991px) {
    /* ---- Шторка ---- */
    .pwb-sheet {
        will-change: transform;
        /* закрытие: чуть быстрее, плавный разгон и торможение */
        transition: transform .40s cubic-bezier(.45, 0, .2, 1), visibility 0s linear .40s;
    }
    html.pwb-sheet-open .pwb-sheet {
        /* открытие: длинное мягкое торможение в конце */
        transition: transform .68s cubic-bezier(.16, .84, .24, 1), visibility 0s;
    }

    /* ---- Подложка ---- */
    .pwb-sheet-backdrop {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
        transition: opacity .40s ease, visibility 0s linear .40s,
                    -webkit-backdrop-filter .40s ease, backdrop-filter .40s ease;
    }
    html.pwb-sheet-open .pwb-sheet-backdrop {
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transition: opacity .55s ease, visibility 0s,
                    -webkit-backdrop-filter .55s ease, backdrop-filter .55s ease;
    }

    /* ---- Появление элементов: «догоняют» шторку и друг друга ---- */
    @keyframes pwbSheetRowIn {
        0%   { opacity: 0; transform: translate3d(0, 26px, 0); }
        60%  { opacity: 1; }
        100% { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    @keyframes pwbSheetHeadIn {
        from { opacity: 0; transform: translate3d(0, 10px, 0); }
        to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    html.pwb-sheet-open .pwb-sheet__head {
        animation: pwbSheetHeadIn .6s cubic-bezier(.16, .84, .24, 1) .08s backwards;
    }
    html.pwb-sheet-open .pwb-sheet__list > li {
        animation: pwbSheetRowIn .8s cubic-bezier(.16, .84, .24, 1) backwards;
        animation-delay: .80s;
    }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(1) { animation-delay: 0.14s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(2) { animation-delay: 0.20s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(3) { animation-delay: 0.26s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(4) { animation-delay: 0.32s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(5) { animation-delay: 0.38s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(6) { animation-delay: 0.44s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(7) { animation-delay: 0.50s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(8) { animation-delay: 0.56s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(9) { animation-delay: 0.62s; }
    html.pwb-sheet-open .pwb-sheet__list > li:nth-child(10) { animation-delay: 0.68s; }

    /* ---- Строка категории ---- */
    .pwb-sheet__row {
        transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.16, .84, .24, 1);
    }
    .pwb-sheet__row:active { transform: scale(.985); }

    /* ---- Стрелка ---- */
    .pwb-sheet__chev {
        transition: transform .5s cubic-bezier(.16, .84, .24, 1), margin .5s cubic-bezier(.16, .84, .24, 1);
    }

    /* ---- Подкатегории: плавное раскрытие/закрытие высоты ---- */
    .pwb-sheet__group { interpolate-size: allow-keywords; }

    @supports selector(::details-content) {
        .pwb-sheet__group::details-content {
            block-size: 0;
            opacity: 0;
            overflow: clip;
            transition: block-size .55s cubic-bezier(.25, .8, .25, 1),
                        opacity .35s ease,
                        content-visibility .55s allow-discrete;
        }
        .pwb-sheet__group[open]::details-content {
            block-size: auto;
            opacity: 1;
            transition: block-size .6s cubic-bezier(.16, .84, .24, 1),
                        opacity .5s ease .08s,
                        content-visibility .6s allow-discrete;
        }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li {
            animation: pwbSheetRowIn .6s cubic-bezier(.16, .84, .24, 1) backwards;
        }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(1) { animation-delay: .05s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(2) { animation-delay: .10s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(3) { animation-delay: .15s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(4) { animation-delay: .20s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(5) { animation-delay: .25s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(6) { animation-delay: .30s; }
        .pwb-sheet__group[open] > .pwb-sheet__sub > li:nth-child(n+7) { animation-delay: .34s; }
    }

    /* Запасной вариант для старых браузеров */
    @supports not selector(::details-content) {
        .pwb-sheet__group[open] > .pwb-sheet__sub {
            animation: pwbSheetRowIn .5s cubic-bezier(.16, .84, .24, 1) backwards;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwb-sheet,
    html.pwb-sheet-open .pwb-sheet,
    .pwb-sheet-backdrop,
    html.pwb-sheet-open .pwb-sheet-backdrop,
    .pwb-sheet__row,
    .pwb-sheet__chev,
    .pwb-sheet__group::details-content {
        transition-duration: .01s !important;
        transition-delay: 0s !important;
    }
    html.pwb-sheet-open .pwb-sheet__head,
    html.pwb-sheet-open .pwb-sheet__list > li,
    .pwb-sheet__group[open] > .pwb-sheet__sub,
    .pwb-sheet__group[open] > .pwb-sheet__sub > li {
        animation: none !important;
    }
}


/* ============================================================
   PWB — компактные отступы в блоках главной («Хиты», «Новинки», «Скидки»)
   Одинаково для светлой и тёмной темы. Лежит в этом файле, потому что он
   точно подключается на всех страницах. Значения менять здесь.
   ============================================================ */
html body.main_page .main-products.container {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
html body.main_page .main-products > .block { margin: 0 !important; }
html body.main_page .main-products .block.block--boxed,
html body.main_page .main-products .block--boxed {
    margin: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}
html body.main_page .main-products .block__header,
html body.main_page .main-products .block__header--promo,
html body.main_page .main-products .block__header--border {
    margin: 0 0 6px !important;
    padding: 0 !important;
    min-height: 0 !important;
}
html body.main_page .main-products .block__title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}
html body.main_page .main-products .block__header_button { margin: 2px 0 0 !important; padding: 0 !important; }
html body.main_page .main-products .block__body { margin: 0 !important; padding: 0 !important; }
html body.main_page .main-products .pwb-main-grid {
    gap: 12px 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body.main_page .main-products .pwb-main-grid > .product_item,
html body.main_page .main-products .swiper-slide.product_item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
html body.main_page .main-products .pwb-main-grid > .product_item { padding-left: 0 !important; padding-right: 0 !important; }
html body.main_page .main-products .product_preview,
html body.main_page .main-products .product_preview__content,
html body.main_page .main-products .product_preview__bottom {
    margin-bottom: 0 !important;
}
@media (max-width: 575px) {
    html body.main_page .main-products.container { margin-bottom: 10px !important; }
    html body.main_page .main-products .block--boxed { padding-top: 12px !important; padding-bottom: 12px !important; }
    html body.main_page .main-products .block__header { margin-bottom: 4px !important; }
    html body.main_page .main-products .pwb-main-grid { gap: 10px 8px !important; }
}


/* Карточки в сетке «Хиты»/«Новинки» на главной: высота по содержимому
   (в теме жёстко 340px, из-за этого под кнопками оставалось пустое место). */
html body.main_page .main-products .pwb-main-grid > .product_item {
    height: auto !important;
    min-height: 0 !important;
}
html body.main_page .main-products .pwb-main-grid .product_preview {
    height: auto !important;
    min-height: 0 !important;
}
html body.main_page .main-products .fn_products_slide {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
