/* --- Стили для Единой Шапки --- */
:root {
    --mainbar-height: 0px;
}

header.main-header {
    background: #fff;
    width: 100%;
    position: relative;
    z-index: 100;
}

/* Класс для блокировки скролла (добавляется скриптом) */
html.scroll-disabled,
body.scroll-disabled {
    overflow: hidden !important;
}


.live-search__ul {
    width: 88%;
    left: 7px;
    max-height: 80vh;
    padding: 15px;
    border-radius: 0;
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
}

.live-search__item {
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
}

.live-search__more a {
    color: #D28A0D;
}

.live-search__name {
    margin: 0;
    color: #798190;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.highlight {
    font-weight: 500;
    background: transparent;
    color: #D49B36;
}

.live-search__more {
    justify-content: center;
    margin: 0;
    padding: 10px;
    color: #D28A0D;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border: none !important;
    background: #F6F6F6;
    transition: .2s;
}

.live-search__price span {
    margin: 0 !important;
}

.live-search__price .price-new {
    color: #798190;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.live-search__price {
    justify-content: flex-end;
}

.live-search__price .price-old {
    color: #798190
}

/* общий hover как был */
.live-search__item:hover {
    background: rgba(0, 0, 0, .03);
}

/* чтобы можно было положить оверлей */
.live-search__image {
    position: relative;
    padding: 0;
}

/* серый оверлей поверх изображения */
.live-search__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .03); /* подстрой интенсивность */
    opacity: 0;
    transition: opacity .01s ease;
    pointer-events: none;
}

/* включаем оверлей при наведении на весь item */
.live-search__item:hover .live-search__image::after,
.live-search__item:focus-within .live-search__image::after {
    opacity: 1;
}

/* чтобы img не оставлял лишних зазоров */
.live-search__image img {
    display: block;
}


.live-search__more:hover {
    background: #BC7800;
    color: #fff;
}

.live-search__more:hover a {
    color: #fff;
}

/* =========================================
   MOBILE HEADER (<= 991px)
   ========================================= */
@media (max-width: 991px) {
    .header-mobile-wrapper {
        display: block;
        padding: 11px 25px;
        background: #D49B36;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
    }

    .mobile-header-menu .menu-catalog .level-2 > li {
        margin-bottom: 10px;
    }

    .menu-catalog .level-2 > li > a {
        position: relative;
        display: flex;
        width: 100%;
        min-height: 100%;
        border: 0 solid transparent;
        border-radius: 0;
        padding: 10px;
        background: #FFF;

        box-shadow: 0 2px 7px rgba(0, 0, 0, .07);
    }

    button.mobile-menu-catalog__back {
        margin-bottom: 20px !important;
        display: flex;
        width: 100px;
        height: 30px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border: 0 solid transparent;
        border-radius: 4px;
        background: #DFE4EA;
        max-width: 100px;
        color: #798190;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .mobile-header-menu__cross svg {
        display: flex;
        justify-content: center;
        align-items: center;
    }


    .menu-catalog .level-2 > li > a svg {
        display: none;
    }

    /* Шапка на мобильном "липнет" к верху */
    header.main-header {
        position: fixed;
        top: 0;
        z-index: 1500;
    }

    /* Мобильные слои меню: скрыты по умолчанию, показываем через .is-open */
    .mobile-header-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 3000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-110%);
        transition: transform .25s ease;
        will-change: transform;
    }

    #mobile-menu-catalog {
        transform: translateX(110%);
    }

    /* ВАЖНО: перебиваем правило с #id правильной специфичностью */
    #mobile-menu-main.is-open {
        transform: translateX(0);
    }

    #mobile-menu-catalog.is-open {
        transform: translateX(0);
    }


    /* Верхний ряд */
    .mobile-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px; /* Отступы между элементами */
    }

    .mobile-menu-btn {
        cursor: pointer;
        border-radius: 8px;
        border: 2px solid #FFF;
        background: #D49B36;
        color: #fff;
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn svg path {
        stroke: #fff;
    }

    .mobile-menu-btn:hover {
        background: #BC7800;
    }

    .menu-catalog .level-2 > li > a .text .brands {
        display: none;
    }

    .menu-catalog .level-2 > li > a .text {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .menu-catalog .level-2 > li > a .text .title {
        color: #374355;
        font-family: Roboto;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 0;
    }

    .mobile-menu-btn:focus, .mobile-menu-btn:active {
        background: #D28A0D;
    }


    /* ПОИСК В ЦЕНТРЕ */
    .mobile-search-center {
        flex-grow: 1; /* Растягиваем поиск */
        width: 100%;
    }

    .header-search-block {
        flex-grow: 1;
        max-width: 550px;
    }

    .header-search__input {
        border-radius: 8px;
        background: #F6F6F6;
        border: 2px solid #fff;
        padding-left: 15px;
        height: 44px;
    }

    .header-search__input:focus {
        border: 2px solid #fff;
    }

    .header-search__btn {
        height: 44px;
        width: 55px;
        background: #fff;
        border-radius: 8px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        top: unset;
        right: 0;
        transform: none;
        transition: .3s;
    }

    .header-search__btn:hover {
        background: #fff;
        border-color: #fff;
        border-radius: 8px;
    }

    .header-search__btn svg {
        width: 16px;
        height: 16px;
        transition: .3s;
    }

    .header-search__btn:hover svg path {
        stroke: #EF9A06;
    }

    /* КОРЗИНА */
    .mobile-cart-wrapper {
        flex-shrink: 0;
        margin: 0 5px;
    }

    .mobile-cart-wrapper .header-cart__info,
    .mobile-cart-wrapper span:not(.header-cart__total-items),
    .mobile-cart-wrapper .header-cart__dropdown {
        display: none !important;
    }

    /* Нижний ряд (Если вдруг поиск не поместится, можно использовать) */
    .mobile-search-row {
        display: none;
    }

    .header-logo img {
        max-width: 50px;
        width: auto;
    }

    .category-page, .universal-page, .account-page, .account-subpage, .blog-page, .product-page {
        margin-top: 0;
    }

    /* --- СТИЛИ ПУНКТОВ МЕНЮ (GRID) --- */
    .mobile-header-menu-group .item {
        display: inline-block;
        width: 100%;
        vertical-align: top;
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .mobile-header-menu-group .item-btn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px;
        background: #f8f9fa;
        border: 1px solid #eee;
        border-radius: 4px;
        text-align: left;
        color: #333;
        font-size: 13px;
        cursor: pointer;
        text-decoration: none;
    }

    .mobile-header-menu-group .item-btn:hover {
        background: #fff;
        border-color: #d59b38;
    }

    .item__icon {
        margin-right: 10px;
        display: flex;
        align-items: center;
    }

    .item__icon svg {
        width: 20px;
        height: 20px;
    }

    .item__text {
        flex-grow: 1;
    }

    .item__total {
        background: #d59b38;
        color: #fff;
        font-size: 10px;
        padding: 1px 5px;
        border-radius: 10px;
    }

    /* Ссылки (Инфо, Соцсети) */
    .mobile-header-menu-group__title {
        font-weight: 700;
        margin: 15px 0 10px;
        padding-left: 5px;
    }

    .mobile-header-menu__list {
        padding: 0 5px;
        list-style: none;
    }

    .mobile-header-menu__list li {
        margin-bottom: 8px;
    }

    .mobile-header-menu__list a {
        color: #555;
        text-decoration: none;
        font-size: 14px;
    }

    .mobile-header-menu__socials {
        padding: 0 5px;
        list-style: none;
        display: flex;
        gap: 10px;
    }

    .mobile-header-menu__socials span {
        font-size: 20px;
        color: #999;
        cursor: pointer;
    }

    /* Скрываем десктоп */
    .header-desktop-wrapper {
        display: none !important;
    }


    .live-search__ul {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);

        width: 90vw;
        box-sizing: border-box;

        max-height: 80vh;
        overflow-y: auto;
        list-style: none;
        padding: 15px;
        background: #fff;
        border-radius: 3px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, .2);
    }

    .mobile-header-menu {
        width: calc(100vw - (100vw - 100%));
        top: 72px;
        box-shadow: unset;
    }

    .mobile-header-menu.active {
        box-shadow: unset;
    }

    .mobile-header-menu__logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-header-menu-top {
        padding: 15px 0;
        margin: 0 10px;
        width: calc(100% - 20px);
        border-bottom: solid 1px #DFE4EA;
    }

    .mobile-menu-main__close {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .2s;
    }

    .mobile-menu-main__close:hover svg path {
        stroke: #D49B36;
    }

    .mobile-header-menu-group {
        padding: 15px 10px;
    }

    .mobile-header-menu-group .item {
        padding: 0;
    }

    .mobile-header-menu-group .item-btn {
        width: 100%;
        padding: 0;
        background: transparent;
        border: 0 solid transparent;
        border-radius: 0;
    }

    .mobile-header-menu__list li {
        margin-bottom: 20px;
    }

    .menu-catalog ul, .mobile-header-menu__list, .mobile-header-menu ul {
        margin: 0;
        padding: 0;
    }

    .menu-catalog ul, .mobile-header-menu__list, .mobile-header-menu ul {
        margin: 10px 0 0;
    }

    .mobile-header-menu__list a:hover, .mobile-header-menu-group .item:hover .item__text {
        color: #BC7800;
    }

    .mobile-header-menu__list a:focus, .mobile-header-menu__list a:active {
        color: #D28A0D;
    }

    .mobile-header-menu-group .item:hover .item__icon {
        background-color: #D49B36;;
    }

    .mobile-header-menu-group .item:focus .item__icon, .mobile-header-menu-group .item:active .item__icon {
        background-color: #D49B36;
    }

    .mobile-header-menu__list a {
        color: #374355;
    }
}

@media screen and (max-width: 567px) {
    .mobile-header-menu {
        top: 64px;
    }
}

/* =========================================
   DESKTOP HEADER (>= 992px)
   ========================================= */
@media (min-width: 992px) {
    .header-mobile-wrapper {
        display: none !important;
    }

    .header-desktop-wrapper {
        display: block;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    /* TOP BAR - CENTERING */
    .header-top-bar {
        background-color: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        padding: 6px 0;
        font-size: 13px;
        position: relative;
        z-index: 102;
    }

    .top-menu-list {
        display: flex;
        align-items: center;
        gap: 60px;
        margin: 0;
        padding: 0;
    }

    .top-menu-list > li > a, .dropdown-trigger {
        color: #555;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.2s;
    }

    .top-menu-list > li > a:hover, .dropdown-trigger:hover {
        color: #d59b38;
    }

    .header-phone {
        transition: .3s;
    }

    .header-phone a {
        color: #374355;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration: none;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }

    .header-phone svg {
        width: auto;
        height: 14px;
    }

    .header-phone:hover a {
        color: #BC7800;
    }

    .header-phone:hover svg path {
        fill: #BC7800;
    }

    .top-links__name {
        color: #374355;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        transition: .3s;
    }

    .top-links__name svg {
        transition: .3s;
    }

    .top-links__name:hover svg path {
        fill: #BC7800;
        transition: .3s;
    }

    /* MAIN BAR: фиксируем через JS (не sticky, чтобы не "упирался" в <header>) */
    .header-main-bar {
        background: #d49b36;
        padding: 10px 0;
        transition: padding 0.3s, box-shadow 0.3s;
        z-index: 101;
    }

    /* sticky-bar оставляем как маркер/класс из верстки, но позиционирование не через sticky */
    .header-main-bar.sticky-bar {
        position: relative;
        top: auto;
    }

    .header-main-bar.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        padding: 10px 0;
        z-index: 9999;
    }

    body.has-fixed-mainbar main {
        padding-top: var(--mainbar-height);
    }

    /* ... Остальные стили десктопа ... */
    .has-dropdown {
        position: relative;
    }

    .has-dropdown .fa-chevron-down {
        font-size: 10px;
        margin-left: 4px;
        transition: transform 0.2s;
    }

    .top-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 251px;
        background: #fff;
        padding: 10px 0;
        border-radius: 0;
        background: #FFF;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
        z-index: 1000;
        list-style: none;
        margin: 2px 0 0;
    }

    .has-dropdown:hover .top-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .top-dropdown-menu li a {
        display: block;
        padding: 9px 15px;
        color: #798190;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .top-dropdown-menu li a:hover {
        background: #f8f9fa;
        color: #d59b38;
    }

    .main-bar-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }

    .header-logo img {
        max-height: 50px;
        width: auto;
    }

    .btn-catalog {
        background: #fff;
        color: #BC7800;
        min-width: 115px;
        padding: 0 12px;
        height: 44px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        transition: .2s;
    }

    .btn-catalog:hover {
        background: #BC7800;
        color: #fff;
    }

    .btn-catalog:hover .burger-icon svg path {
        stroke: #fff;
    }

    /* ====== DESKTOP CATALOG DROPDOWN (>= 992px) ====== */
    /* делаем контейнер позиционным, а не .header-catalog-wrapper */
    .main-bar-wrapper {
        position: relative;
    }

    .header-catalog-wrapper {
        position: static;
    }

    /* сам dropdown — на всю ширину контейнера */
    .catalog-dropdown-menu {
        position: absolute;
        top: calc(100% + 66px);
        left: 0;
        right: 0;
        width: auto;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
        z-index: 2000;
        padding: 10px 0 0;
    }


    .header-catalog-wrapper.is-open .catalog-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .catalog-dropdown-menu::before {
        content: none;
    }


    /* страховка от субпиксельных вылетов */
    body.catalog-open {
        overflow-x: hidden;
    }

    /* само мегаменю поверх подложки */
    .catalog-dropdown-menu > * {
        position: relative;
        z-index: 1;
    }

    /* ====== ВНУТРЕННЯЯ РАЗМЕТКА menu.twig: .menu-catalog ====== */
    .catalog-dropdown-menu .menu-catalog {
        display: flex;
        background: #F5F6F8;
        overflow: hidden;
    }


    /* левый столбец */
    .catalog-dropdown-menu .menu-catalog .level-1 {
        width: 260px;
        margin: 0;
        padding: 12px 0;
        list-style: none;
        border-right: 1px solid #D6DCE3;
        max-height: min(520px, calc(100vh - 170px));
        overflow-y: auto;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        cursor: pointer;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li > a {
        flex: 1;
        text-decoration: none;
        color: #798190;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-transform: none;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li .svg {
        flex-shrink: 0;
        opacity: .45;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li:hover,
    .catalog-dropdown-menu .menu-catalog .level-1 > li.is-active {
        background: #fff;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li:hover > a,
    .catalog-dropdown-menu .menu-catalog .level-1 > li.is-active > a {
        color: #d59b38;
    }

    .catalog-dropdown-menu .menu-catalog .level-1 > li.is-active .svg {
        opacity: 1;
    }

    /* правый блок */
    .catalog-dropdown-menu .menu-catalog-wrapper {
        flex: 1;
        padding: 16px 18px;
        overflow: hidden;
    }

    /* списки level-2 показываем по одному */
    .catalog-dropdown-menu .menu-catalog .level-2 {
        display: none;
        margin: 0;
        padding: 0;
        list-style: none;

        /* сетка “карточек” как на скрине */
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;

        max-height: min(520px, calc(100vh - 170px));
        overflow-y: auto;
        padding-right: 6px; /* чтобы скролл не налезал */
    }

    .catalog-dropdown-menu .menu-catalog .level-2.is-active {
        display: grid;
    }

    /* карточка */
    .catalog-dropdown-menu .menu-catalog .level-2 > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: #fff;
        border: 0 solid transparent;
        border-radius: 0;
        text-decoration: none;
        min-height: 70px;
    }

    .catalog-dropdown-menu .menu-catalog .level-2 > li > a:hover {
        border-color: rgba(213, 155, 56, .65);
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        transform: translateY(-1px);
    }

    /* картинка слева */
    .catalog-dropdown-menu .menu-catalog .level-2 > li img {
        width: 42px;
        height: 42px;
        max-width: 42px;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* текст */
    .catalog-dropdown-menu .menu-catalog .level-2 .text .title {
        display: block;
        color: #374355;
        font-family: Roboto;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0;
    }

    .catalog-dropdown-menu .menu-catalog .level-2 .text .brands {
        display: block;
        margin-top: 3px;
        color: #8a93a3;
        font-size: 12px;
        line-height: 1.2;
    }

    /* стрелку справа в карточке скрываем (как на скрине) */
    .catalog-dropdown-menu .menu-catalog .level-2 > li > a > svg {
        display: none;
    }


    .geary-top-header {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 60px;
    }

    .header-search-block {
        flex-grow: 1;
        max-width: 550px;
    }

    .header-search__input {
        border-radius: 8px;
        background: #F6F6F6;
        border: 2px solid #fff;
        padding-left: 15px;
        height: 44px;
    }

    .header-search__input:focus {
        border: 2px solid #fff;
    }

    .header-search__btn {
        height: 44px;
        width: 55px;
        background: #fff;
        border-radius: 8px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        top: unset;
        right: 0;
        transform: none;
        transition: .3s;
    }

    .header-search__btn:hover {
        background: #fff;
        border-color: #fff;
        border-radius: 8px;
    }

    .header-search__btn svg {
        width: 16px;
        height: 16px;
        transition: .3s;
    }

    .header-search__btn:hover svg path {
        stroke: #EF9A06;
    }

    .burger-icon {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .burger-icon svg {
        max-width: 20px;
        min-height: 20px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .header-bottom-bar {
        background: #fff;
        padding: 0;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);

        position: relative;
        z-index: 2100;
    }

    @media (min-width: 992px) {
        .catalog-dropdown-menu {
            z-index: 2000; /* ниже чем 2100 у header-bottom-bar */
        }
    }

    .bottom-menu-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 20px 10px;
        padding: 12px 0;
        margin: 0;
        font-size: 14px;
        font-weight: 500;
    }

    .bottom-menu-list li a {
        color: #374355;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration: none;
        transition: color 0.2s;
    }

    .bottom-menu-list li a:hover {
        color: #d59b38;
    }

    .bottom-menu-list li a:hover {
        color: #d59b38;
    }

    .promo-link {
        transition: .3s;
    }

    .promo-link a {
        min-width: 130px;
        width: 100%;
        min-height: 32px;
        color: #fff !important;
        color: #FFF;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 8px;
        background: #374355;
        transition: .3s;
    }

    .promo-link a:hover {
        background: #798190;
        transition: .3s;
    }
}


.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: .3s;
}

.action-item .icon-wrap, .header-cart__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-item:hover .icon-wrap svg {
    transition: .3s;
}

.action-item:hover .icon-wrap svg path {
    fill: #F6F6F6;
    transition: .3s;
}

.top-menu__compare-btn, .top-menu__wishlist-btn, .top-menu__account button, .header-cart__btn {
    height: unset;
    width: unset;
    display: flex;
    padding: 0;
    border: none;
    margin-left: 0;
    border-radius: 0;
    position: relative;
    background: none;
}

.action-item .badge-counter, .header-cart__total-items {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    width: 18px;
    height: 18px;
    padding: 3px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100%;
    background: #F23030;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.top-menu__compare-btn:hover, .top-menu__wishlist-btn:hover, .top-menu__account button:hover, .header-cart__btn:hover {
    background: transparent;
}

.top-menu__compare-btn svg, .top-menu__wishlist-btn svg, .top-menu__account button svg, .header-cart__btn svg {
    position: relative;
    top: 0;
    left: 0;
}

.action-icon {
    font-size: 20px;
    margin-bottom: 3px;
    color: #374355;
}

.action-label {
    font-size: 11px;
    color: #666;
}

.action-item:hover .action-icon, .action-item:hover .action-label {
    color: #d59b38;
}

.header-cart-wrapper .header-cart-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
    display: flex;
    justify-content: center;
}

.login-btn-styled {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #FFF;
    color: #BC7800;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    min-width: 100px;
    min-height: 44px;
    transition: .3s;
}

.login-btn-styled:hover {
    background: #BC7800;
    color: #fff;
}

.login-btn-styled:focus, .login-btn-styled:active {
    background: #D28A0D;
    color: #fff;
}

@media (min-width: 1300px) {
    .bottom-menu-list {
        gap: 20px 30px;
    }

    .bottom-menu-list li a {
        font-size: 16px;
    }
}

@media (max-width: 567px) {
    .header-mobile-wrapper {
        padding: 10px;
    }

    .mobile-top-row .action-login {
        display: none;
    }

    .mobile-top-row .header-logo {
        display: none;
    }
}

@media (max-width: 380px) {
    .header-search__input {
        border-radius: 8px !important;
    }
}

/* Бургер -> крестик при открытом каталоге */
@media (min-width: 992px) {
    .header-catalog-wrapper .burger-icon svg path {
        transition: transform .18s ease, opacity .18s ease;
        transform-box: fill-box;
        transform-origin: 50% 50%;
    }

    .header-catalog-wrapper.is-open .burger-icon svg path:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .header-catalog-wrapper.is-open .burger-icon svg path:nth-child(2) {
        opacity: 0;
    }

    .header-catalog-wrapper.is-open .burger-icon svg path:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
}


/* ==========================================================
   DESKTOP CATALOG FINAL (NO MESS):
   - TOP(0): dropdown absolute (как раньше)
   - SCROLL: dropdown fixed под mainbar (как сейчас)
   - В обоих случаях: меню в ширину контейнера, подложка 100vw + тень
   ========================================================== */
@media (min-width: 992px) {

    /* --- базовые константы слоя --- */
    :root {
        --catalog-z: 2205; /* выше header-bottom-bar (2100), ниже live-search (2700) */
        --catalog-bg: #F5F6F8;
        --catalog-shadow: 0 15px 20px rgba(0, 0, 0, .15);
        --catalog-gap: 10px;
    }

    /* 1) dropdown по умолчанию (TOP=0): как раньше, absolute в контейнере */
    .catalog-dropdown-menu {
        position: absolute;

        top: calc(100% + 66px);
        left: 0;
        right: 0;
        width: auto;

        padding: var(--catalog-gap) 0 0; /* УБРАЛИ 62px — оно делало “кашу” */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity .15s ease, transform .15s ease, visibility .15s ease;

        z-index: var(--catalog-z);
        overflow: visible; /* чтобы ::before не клиппился */
    }

    .header-catalog-wrapper.is-open .catalog-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* 2) Подложка dropdown на всю ширину viewport + тень (как было) */
    .catalog-dropdown-menu::before {
        content: none;
    }

    .header-catalog-wrapper.is-open .catalog-dropdown-menu::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;

        left: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw); /* 100vw отцентрировано относительно контейнера */

        background: var(--catalog-bg);
        box-shadow: var(--catalog-shadow);
        z-index: 0;
        pointer-events: none;
    }

    /* контент меню поверх подложки */
    .header-catalog-wrapper.is-open .catalog-dropdown-menu > * {
        position: relative;
        z-index: 1;
    }

    /* 3) При скролле: dropdown fixed, но КОНТЕНТ той же ширины, что и вверху */
    .header-main-bar.is-fixed .header-catalog-wrapper.is-open .catalog-dropdown-menu {
        position: fixed;
        top: var(--mainbar-height);
        left: 0;
        right: 0;
        width: 100%;
        padding: var(--catalog-gap) 0 0; /* тот же отступ что в TOP=0 */
        transform: none; /* без сдвига */
    }

    /* чтобы внутренности меню оставались контейнерной ширины при fixed */
    .header-main-bar.is-fixed .header-catalog-wrapper.is-open .catalog-dropdown-menu .menu-catalog {
        max-width: 1170px; /* если у тебя контейнер другой — поставь его */
        margin-left: auto;
        margin-right: auto;
    }

    /* 4) Убираем влияние header-bottom-bar на "кашу" вверху */
    .header-bottom-bar {
        z-index: 2100;
        position: relative;
    }

    body.catalog-open .catalog-dropdown-menu {
        z-index: var(--catalog-z);
    }

    /* 5) НИКАКОГО blur на меню и header (оставляем чистыми) */
    body.catalog-open .catalog-dropdown-menu .menu-catalog {
        background: var(--catalog-bg);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 6) Лёгкая защита от горизонталки (только на время открытия) */
    html.catalog-open,
    body.catalog-open {
        overflow-x: hidden !important;
    }


    /* если тема делает body scroll-контейнером (height:100% / overflow:auto) — перебиваем только при открытии */
    html.catalog-open {
        height: 100% !important;
        overflow-y: auto !important;
    }

    body.catalog-open {
        height: auto !important; /* было height:100% */
        min-height: 100% !important;

        overflow: visible !important; /* было overflow:auto */
        overflow-x: hidden !important;

        /* flex НЕ трогаем, чтобы ничего не ломать */
    }

    /* 1) Blur overlay: ниже хедера и меню, выше контента страницы */
    body.catalog-open::after {
        content: "" !important;
        position: fixed;
        inset: 0;

        background: rgba(0, 0, 0, .12) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;

        z-index: 1500 !important; /* слой над страницей */
        pointer-events: auto; /* <-- КЛЮЧ: блокируем клики по странице */
    }
}


/* ============================
   Z-INDEX FINAL (DESKTOP) — единственный источник правды
   - top-dropdown-menu и live-search__ul всегда выше всех баров
   - при catalog-open: header-bottom-bar и catalog-dropdown-menu выше вообще всего
   ============================ */
@media (min-width: 992px) {

    /* ---- БАЗА: шапка поверх страницы ---- */
    header.main-header {
        position: relative;
        z-index: 6000 !important;
    }

    /* порядок баров (важно: top-bar выше main-bar, чтобы его dropdown перекрывал всё) */
    .header-bottom-bar {
        position: relative;
        z-index: 6010 !important;
    }

    .header-main-bar {
        position: relative;
        z-index: 6020 !important;
    }

    .header-main-bar.is-fixed {
        z-index: 6030 !important;
    }

    /* “плавает” поверх страницы */
    .header-top-bar {
        position: relative;
        z-index: 6040 !important;
    }

    /* ---- САМОЕ ВЫСОКОЕ в обычном режиме ---- */
    .header-top-bar .top-dropdown-menu {
        z-index: 7000 !important;
    }

    .header-search-block {
        position: relative;
        z-index: 7050 !important;
    }

    .header-search-block .live-search__ul {
        z-index: 7100 !important;
    }

    /* ---- КОГДА ОТКРЫТ КАТАЛОГ: он главный ---- */
    body.catalog-open::after {
        z-index: 8000 !important;
    }

    /* blur overlay над страницей */
    body.catalog-open header.main-header {
        z-index: 9000 !important;
    }

    /* шапка над overlay */
    body.catalog-open .header-bottom-bar {
        z-index: 12010 !important; /* выше top-dropdown/live-search */
    }

    body.catalog-open .header-catalog-wrapper.is-open .catalog-dropdown-menu {
        z-index: 12020 !important; /* выше всего */
    }

    /* при открытом каталоге отключаем клики/слои у dropdown/search */
    body.catalog-open .top-dropdown-menu,
    body.catalog-open .live-search__ul {
        display: none !important;
    }

    .catalog-dropdown-menu .menu-catalog .level-2 > li > a:hover {
        border-color: unset;
        box-shadow: 0 4px 9px rgba(0, 0, 0, .08);
        transform: none;
    }
}

.product-page-tabs.product-page-tabs--fixed {
    top: 70px;
}

.product-page-tabs.product-page-tabs--fixed ul {
    left: -8px;
}

#PWPreviewWidgetButtonWrapper {
    bottom: 60px!important;
    position: absolute!important;
}

@media screen and (max-width: 991px) {
    .product-page-tabs.product-page-tabs--fixed {
        top: -10px;
    }

    .category-page, .universal-page, .account-page, .account-subpage, .blog-page, .product-page {
        margin-top: 80px;
    }

    .lottie-container {
        bottom: 60px!important;
        position: absolute!important;
    }
}

@media screen and (max-width: 567px) {
    .product-page-tabs.product-page-tabs--fixed {
        top: -18px;
    }

    @media (max-width: 991px) {
        .category-page, .universal-page, .account-page, .account-subpage, .blog-page, .product-page {
            margin-top: 70px;
        }
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    header {
        margin-bottom: 10px;
    }
}

@media (min-width: 767px) and (max-width: 991px) {
    .mobile-header-menu-body {
        flex-direction: row;
        gap: 50px;
    }

    .mobile-header-menu-body .mobile-header-menu-group:first-of-type {
        padding: 15px 30px 0 10px;
        border-right: 1px solid #DFE4EA;
    }

    .mobile-header-menu-group:last-child {
        margin-top: auto;
        display: none;
    }
}

.btn-primary {
    color: #d59b38;
    background: #fff;
}

.notification.fixed:before {
    opacity: 0.9!important;
}

.product-page__social-button:first-of-type svg path {
    fill: #4340ea;
}