@media (min-width: 992px) {
    .box-dopmenu #additional-menu {
        width: calc(75% - 14px);
        margin-left: calc(25% + 14px);
        min-height: 44px;
        padding: 0 10px;
        background: #ffffff;
        border: 1px solid #e8edf2;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(32, 45, 58, 0.09);
    }

    .box-dopmenu #additional-menu .nav-dopmenu {
        min-height: 44px;
    }

    .box-dopmenu #additional-menu .nav-dopmenu > li > a {
        min-height: 40px;
        margin: 2px 3px;
        border-radius: 7px;
    }

    .box-dopmenu #additional-menu .nav-dopmenu > li > a:hover,
    .box-dopmenu #additional-menu .nav-dopmenu > li.open > a {
        background: #f3f8f5;
    }

    #menu-vertical #menu-vertical-list {
        background: #ffffff;
        border: 1px solid #e8edf2;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(32, 45, 58, 0.09);
        padding: 8px 0;
    }

    #menu-vertical #menu-vertical-list > li > a {
        margin: 2px 8px;
        border-radius: 7px;
    }

    #menu-vertical #menu-vertical-list > li > a:hover,
    #menu-vertical #menu-vertical-list > li.menu-open > a {
        background: #f3f8f5;
    }
}

/* Зробити індикатори додаткових фото невидимими, зберігши перемикання */
.ch-g-dots {
    opacity: 0 !important;
}

/* Приховати вибір категорії у пошуку на всіх пристроях */
.header-search .categories,
.header-search .btn-search-select {
    display: none !important;
}

/* Приховати блок категорій у результатах живого пошуку */
.header-search .search_categories_box {
    display: none !important;
}

.footer-ribbon-box {
    display: none !important;
}

/* Header buttons: account, compare, wishlist and cart */
@media (min-width: 992px) {
    header .box-account a,
    header .box-compare a,
    header .box-wishlist a,
    header .box-cart a,
    header .box-cart button,
    header #cart > a,
    header #cart > button,
    header a[href*="route=account/account"],
    header a[href*="route=product/compare"],
    header a[href*="route=account/wishlist"] {
        border-radius: 7px;
        transition: background-color 0.2s ease, color 0.2s ease,
            box-shadow 0.2s ease;
    }

    header .box-account a:hover,
    header .box-compare a:hover,
    header .box-wishlist a:hover,
    header .box-cart a:hover,
    header .box-cart button:hover,
    header #cart > a:hover,
    header #cart > button:hover,
    header a[href*="route=account/account"]:hover,
    header a[href*="route=product/compare"]:hover,
    header a[href*="route=account/wishlist"]:hover {
        background-color: #f3f8f5;
        color: #00a86b !important;
        box-shadow: 0 2px 8px rgba(32, 45, 58, 0.06);
    }

    header .box-account a:hover i,
    header .box-compare a:hover i,
    header .box-wishlist a:hover i,
    header .box-cart a:hover i,
    header .box-cart button:hover i,
    header #cart > a:hover i,
    header #cart > button:hover i,
    header a[href*="route=account/account"]:hover i,
    header a[href*="route=product/compare"]:hover i,
    header a[href*="route=account/wishlist"]:hover i {
        color: #00a86b !important;
    }

    header .box-account a:hover svg,
    header .box-compare a:hover svg,
    header .box-wishlist a:hover svg,
    header .box-cart a:hover svg,
    header .box-cart button:hover svg,
    header #cart > a:hover svg,
    header #cart > button:hover svg,
    header a[href*="route=account/account"]:hover svg,
    header a[href*="route=product/compare"]:hover svg,
    header a[href*="route=account/wishlist"]:hover svg {
        stroke: #00a86b !important;
    }
}

/* Компактне бокове меню категорій на головній */
@media (min-width: 992px) {

    .common-home #menu-vertical #menu-vertical-list {
        height: 430px !important;
        max-height: 430px !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .common-home #menu-vertical #menu-vertical-list > li {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .common-home #menu-vertical #menu-vertical-list > li > a {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 2px 12px !important;

        display: flex !important;
        align-items: center !important;

        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        box-sizing: border-box !important;
    }

    .common-home #menu-vertical #menu-vertical-list > li > a .fa,
    .common-home #menu-vertical #menu-vertical-list > li > a .arrow {
        margin-left: auto !important;
    }
}


/* ===== Точне центрування пунктів без слайдера і переносів ===== */
@media (min-width: 992px) {
    .box-dopmenu #additional-menu {
        text-align: center !important;
    }

    .box-dopmenu #additional-menu .nav-dopmenu {
        display: table !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        float: none !important;
        white-space: nowrap !important;
        text-align: left !important;
    }

    .box-dopmenu #additional-menu .nav-dopmenu > li {
        display: block !important;
        float: left !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .box-dopmenu #additional-menu .nav-dopmenu > li > a {
        white-space: nowrap !important;
        font-weight: 600 !important;
    }

    .box-dopmenu #additional-menu .nav-dopmenu::after {
        content: "" !important;
        display: block !important;
        clear: both !important;
    }
}


/* =========================================================
   БОКОВЕ МЕНЮ НА ГОЛОВНІЙ — точне оформлення Chameleon
   Без зміни категорій, посилань і роботи підменю
   ========================================================= */
@media (min-width: 1200px) {

    /* Картка меню */
    .menu-header-box.mm_open_hp:not(.m-sticky) .menu-box {
        background: transparent !important;
        box-shadow: none !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        border: 1px solid #e8edf2 !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(32,45,58,.09) !important;
        box-sizing: border-box !important;
    }

    /* Заголовок створюється стилями, тому Twig не змінюється */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical::before {
        min-height: 48px !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        color: #ffffff !important;
        background: #00a86b !important;
        border-radius: 13px 13px 0 0 !important;
        font-family: Montserrat, Arial, sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
        box-sizing: border-box !important;
        white-space: pre !important;
    }

    html[lang^="uk"] .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical::before,
    html[lang^="ua"] .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical::before {
        content: "☰   КАТАЛОГ ТОВАРІВ" !important;
    }

    html[lang^="ru"] .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical::before {
        content: "☰   КАТАЛОГ ТОВАРОВ" !important;
    }

    /* Список категорій */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 8px 0 10px !important;
        overflow: visible !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 0 13px 13px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li {
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li + li {
        border-top: 0 !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li > a {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: calc(100% - 16px) !important;
        height: auto !important;
        min-height: 42px !important;
        margin: 0 8px !important;
        padding: 8px 34px 8px 12px !important;
        color: #25292d !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-decoration: none !important;
        transition: color .2s ease, background-color .2s ease !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li > a:hover,
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li.menu-open > a {
        color: #00a86b !important;
        background: #f3f8f5 !important;
    }

    /* Іконки категорій */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list .nsmenu-thumb {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        margin: 0 12px 0 0 !important;
        object-fit: contain !important;
        flex: 0 0 20px !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list .item-name {
        flex: 1 1 auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Стрілка справа */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list .arrow {
        position: absolute !important;
        top: 50% !important;
        right: 12px !important;
        width: 7px !important;
        height: 7px !important;
        margin-top: -4px !important;
    }

    /* Підменю лишається функціональним і відкривається праворуч */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical #menu-vertical-list > li > .ns-dd {
        left: 100% !important;
        top: 0 !important;
        z-index: 20 !important;
    }
}


/* =========================================================
   БОКОВЕ МЕНЮ: вирівнювання, 8 категорій і кнопка розгортання
   ========================================================= */
@media (min-width: 1200px) {

    /* Положення всього каталогу задається окремим файлом
       vg_catalog_top_menu_v103.css; тут прибираємо внутрішню компенсацію. */
    .menu-header-box.mm_open_hp:not(.m-sticky) #menu-vertical {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Показуємо спочатку тільки 8 категорій */
    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical #menu-vertical-list > li.vg-side-extra {
        display: none !important;
    }

    /* Після натискання показуємо решту нижче в цьому ж блоці */
    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical #menu-vertical-list.vg-side-expanded > li.vg-side-extra {
        display: flex !important;
    }

    /* Нижня кнопка "Усі категорії" */
    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical #menu-vertical-list > li.vg-side-show-all {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 8px 12px 2px !important;
        box-sizing: border-box !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical .vg-side-show-all-button {
        width: 100% !important;
        min-height: 42px !important;
        padding: 0 16px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;

        color: #00a86b !important;
        background: #edf8f3 !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;

        font-family: Montserrat, Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        cursor: pointer !important;
        transition: color .2s ease, background-color .2s ease !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical .vg-side-show-all-button:hover {
        color: #008f5b !important;
        background: #e3f4ec !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical .vg-side-show-all-arrow {
        display: inline-block !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        transition: transform .2s ease !important;
    }

    .menu-header-box.mm_open_hp:not(.m-sticky)
    #menu-vertical .vg-side-show-all.is-expanded .vg-side-show-all-arrow {
        transform: rotate(-90deg) !important;
    }
}

/* На мобільних і невеликих планшетах кнопка не втручається в штатне меню */
@media (max-width: 1199px) {
    #menu-vertical-list > li.vg-side-extra {
        display: block !important;
    }

    #menu-vertical-list > li.vg-side-show-all {
        display: none !important;
    }
}


/* =========================================================
   НАДІЙНЕ ПРИХОВУВАННЯ ВЕРХНЬОГО ГОРИЗОНТАЛЬНОГО МЕНЮ
   ========================================================= */
@media (min-width: 992px) {
    html.vg-page-scrolled .box-dopmenu,
    body.vg-page-scrolled .box-dopmenu,
    html.vg-page-scrolled #additional-menu,
    body.vg-page-scrolled #additional-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html.vg-page-scrolled #additional-menu .dropdown-menu,
    body.vg-page-scrolled #additional-menu .dropdown-menu,
    html.vg-page-scrolled #additional-menu [class*="dropdown"],
    body.vg-page-scrolled #additional-menu [class*="dropdown"] {
        display: none !important;
    }
}


/* =========================================================
   ВИПРАВЛЕННЯ ВИПАДАЮЧОГО "КАТАЛОГ ТОВАРІВ"
   Прибирає накладання та показує всі категорії
   ========================================================= */
@media (min-width: 992px) {

    #additional-menu {
        position: relative !important;
        overflow: visible !important;
    }

    #additional-menu .nav-dopmenu,
    #additional-menu .left-dopmenu {
        overflow: visible !important;
    }

    /* На сторінці має бути тільки один великий блок */
    #additional-menu li.dropdown > .nsmenu-bigblock-additional {
        box-sizing: border-box !important;
        max-width: calc(100vw - 30px) !important;
        max-height: 650px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    #additional-menu .nsmenu-bigblock-additional .chm-list-menu {
        display: flex !important;
        width: 100% !important;
        max-height: 650px !important;
        overflow: hidden !important;
    }

    #additional-menu .nsmenu-bigblock-additional .chm-list-menu-item-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-height: 650px !important;
        padding: 20px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #additional-menu .nsmenu-bigblock-additional
    .chm-list-menu-item-child > .dflex.flex-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        align-content: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #additional-menu .nsmenu-type-category-full-image .nsmenu-parent-block {
        min-width: 0 !important;
        margin-bottom: 18px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    #additional-menu .nsmenu-type-category-full-image .nsmenu-parent-title {
        display: block !important;
        width: 100% !important;
        margin: 0 0 8px !important;
        color: #25292d !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    #additional-menu .nsmenu-type-category-full-image .nsmenu-ischild {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #additional-menu .nsmenu-type-category-full-image .nsmenu-ischild li {
        display: block !important;
        width: 100% !important;
        margin: 0 0 5px !important;
    }

    #additional-menu .nsmenu-type-category-full-image
    .nsmenu-parent-block .nsmenu-ischild li a {
        display: block !important;
        width: 100% !important;
        color: #69727d !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    /* Додатковий захист: випадковий другий блок не показувати */
    #additional-menu li.dropdown.open
    > .nsmenu-bigblock-additional ~ .nsmenu-bigblock-additional {
        display: none !important;
    }
}

/* Антимерехтіння верхнього меню */
@media (min-width: 992px) {
    .box-dopmenu {
        backface-visibility: hidden !important;
        transform: translateZ(0) !important;
    }
}


/* =========================================================
   VG: кнопка каталогу в шапці — без зеленого фону
   Лише три чорні лінії. ПК і планшети.
   ========================================================= */
@media (min-width: 992px) {
    header .box-menu-top .btn-menu-top,
    header .box-menu-top .btn-menu-top.vh1-bl,
    header .box-menu-top .btn-menu-top.vh2 {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #111111 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

    header .box-menu-top .btn-menu-top:hover,
    header .box-menu-top .btn-menu-top:focus,
    header .box-menu-top .btn-menu-top:active,
    header .box-menu-top .btn-menu-top.active {
        color: #111111 !important;
        background: #f3f5f6 !important;
        background-color: #f3f5f6 !important;
        outline: none !important;
        box-shadow: none !important;
    }

    header .box-menu-top .btn-menu-top .icon-menu-line,
    header .box-menu-top .btn-menu-top .icon-menu {
        width: 24px !important;
        height: 20px !important;
        color: #111111 !important;
        stroke: #111111 !important;
        fill: none !important;
    }

    header .box-menu-top .btn-menu-top .icon-menu-line path,
    header .box-menu-top .btn-menu-top .icon-menu path,
    header .box-menu-top .btn-menu-top svg path {
        stroke: #111111 !important;
    }

    /* У цій кнопці залишаємо тільки значок меню */
    header .box-menu-top .btn-menu-top .text-category,
    header .box-menu-top .btn-menu-top .icon-arrow {
        display: none !important;
    }
}

/* =========================================================
   МОБІЛЬНА ВЕРСІЯ — збільшений логотип у шапці
   ========================================================= */
@media (max-width: 767px) {
    header .logo-top {
        overflow: visible !important;
        z-index: 3 !important;
    }

    header #logo {
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        min-height: 54px !important;
    }

    header #logo a {
        display: inline-flex !important;
        align-items: center !important;
        overflow: visible !important;
    }

    header #logo img {
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        transform: scale(1.22) !important;
        transform-origin: left center !important;
    }
}

/* На дуже вузьких екранах трохи менше, щоб не торкалося телефону */
@media (max-width: 374px) {
    header #logo img {
        transform: scale(1.14) !important;
    }
}


/* =========================================================
   VG: вирівнювання верхнього меню по робочій зоні на ПК
   Зсуваємо блок трохи ліворуч без зміни ширини та посилань.
   ========================================================= */
@media (min-width: 1200px) {
    .box-dopmenu {
        position: relative !important;
        left: -12px !important;
    }
}

