/* =========================
   NEW HEADER
   ========================= */

.new-header-version .header-bg {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    padding-top: 0 !important;

    background: linear-gradient(
            to bottom,
            #045f52b8 0,
            #045f52b8 41px,
            rgba(255, 255, 255, 0.82) 41px,
            rgba(255, 255, 255, 0.82) 100%
    );

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* =========================
   TOP GREEN ROW
   ========================= */

.new-header-version .header--block-top {
    display: flex;
    align-items: center;

    height: 41px;
    min-height: 41px;

    margin: 0;
    padding: 0;

    background: transparent;
    border-bottom: 0;
}


/* Ліва частина: телефони / Telegram / Instagram */
.new-header-version .header--block-info {
    display: flex;
    align-items: center;

    height: 41px;

    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    top: auto !important;
}

.new-header-version .header--block-info > a {
    display: inline-flex;
    align-items: center;

    height: auto;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;

    line-height: 1.2;
}

.new-header-version .header--block-info > a svg,
.new-header-version .header--block-info > a img {
    display: block;
    flex: 0 0 auto;
}


/* Права частина: О нас / Доставка / ... + локалі */
.new-header-version .header--top-right {
    display: flex;
    align-items: center;

    height: 41px;

    margin: 0 0 0 auto !important;
    padding: 0 !important;
}

.new-header-version .header--top-menu,
.new-header-version .header--lang {
    display: flex;
    align-items: center;

    height: 100%;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.new-header-version .header--top-menu .top--menu {
    display: flex;
    align-items: center;

    height: 100%;

    margin: 0 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* =========================
   TOP BAR
   ========================= */

.new-header-version .header--topbar {
    width: 100%;
    height: 41px;
}

.new-header-version .header--topbar .container-fluid {
    height: 100%;
}


/* =========================
   LOGO
   ========================= */

.new-header-version .header--logo {
    position: relative;
    z-index: 5;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}

.new-header-version .header--logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 54px;

}


/* =========================
   MAIN WHITE ROW
   ========================= */

.new-header-version .header--main {
    background: transparent;
    border-bottom: 1px solid #eee;

}

.new-header-version .header--block-middle {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 95px;

    gap: 16px;

    margin: 0;
    padding: 0;

    background: transparent;
}


/* =========================
   SEARCH
   ========================= */

.new-header-version .header--search {
    flex: 0 0 340px;
    max-width: 340px;

    margin-left: auto;
}

@media (max-width: 1024px) {

    .new-header-version .header--search {

        max-width: 270px;

    }
}

.new-header-version #search {
    margin-top: 0;
}

.new-header-version #search .input-lg {
    border: 1px solid #eee;
}


/* =========================
   CART
   ========================= */

.new-header-version .header--cart {
    flex: 0 0 auto;

    margin-top: 0;
}

.new-header-version #cart #cart-total {
    color: #000;
}


/* =========================
   NEW MEGAMENU
   ========================= */

.new-header-version .new-megamenu {
    position: static;
}


/* =========================
   CATALOG TRIGGER
   ========================= */

.new-header-version .new-megamenu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    height: 44px;
    padding: 0 18px;

    border: 0;
    border-radius: 6px;

    background: #045f52b8;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.new-header-version .new-megamenu__trigger:hover {
    background: #FFBBC3;
}


/* =========================
   BURGER ICON
   ========================= */

.new-header-version .new-megamenu__burger {
    display: flex;
    flex-direction: column;

    gap: 4px;

    width: 18px;
}

.new-header-version .new-megamenu__burger span {
    display: block;

    width: 18px;
    height: 2px;

    background: currentColor;
}


/* =========================
   MEGAMENU PANEL
   ========================= */

.new-header-version .new-megamenu__panel {
    position: absolute;

    top: 100%;
    left: 0px;
    right: 0px;

    width: 100%;
    max-width: none;
    height: 420px;

    display: none;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;

    z-index: 2000;
}

/* Відкритий стан */
.new-header-version .new-megamenu.is-open .new-megamenu__panel {
    display: flex;

    margin: 0px 40px 0px 40px;
    padding: 0px 0px 0px 0px;
    max-width: 1820px;
}


.new-header-version .header--logo-desktop {
    margin-right: 24px;
}

/* =========================
   MEGAMENU INNER
   ========================= */

.new-header-version .new-megamenu__inner {
    display: flex;

    width: 100%;
    height: 100%;

    max-width: none;
    margin: 0;
}

/* =========================
   COLUMNS
   ========================= */

.new-header-version .new-megamenu__column {
    height: 100%;

    padding: 12px 0;

    border-right: 1px solid #eee;

    overflow: hidden;
}

.new-header-version .new-megamenu__column--level1 {
    width: 28%;
}

.new-header-version .new-megamenu__column--level2 {
    width: 28%;
}

.new-header-version .new-megamenu__column--level3 {
    width: 44%;
    overflow-y: auto;
}

.new-header-version .new-megamenu__column:last-child {
    border-right: 0;
}


/* =========================
   LISTS
   ========================= */

.new-header-version .new-megamenu__list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.new-header-version .new-megamenu__item {
    margin: 0;
    font-size: 16px;
}

/* =========================
   LINKS
   ========================= */

.new-header-version .new-megamenu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 10px 18px;

    color: #222;

    text-decoration: none;

    cursor: pointer;

    transition: background-color 0.15s ease,
    color 0.15s ease;
}

.new-header-version .new-megamenu__link:hover,
.new-header-version .new-megamenu__item.is-active > .new-megamenu__link {
    background: #f5f5f5;
    color: #045f52;
}


/* =========================
   ARROW
   ========================= */

.new-header-version .new-megamenu__arrow {
    margin-left: 12px;
    font-size: 24px;

}


/* =========================
   LEVEL VISIBILITY
   ========================= */

.new-header-version .new-megamenu__level2-group,
.new-header-version .new-megamenu__level3-group {
    display: none;
}

.new-header-version .new-megamenu__level2-group.is-active,
.new-header-version .new-megamenu__level3-group.is-active {
    display: block;
}


/* =========================
   LEVEL 3 — MULTI COLUMN
   ========================= */

.new-header-version
.new-megamenu__level3-group.is-active
.new-megamenu__list {
    column-count: 2;
    column-gap: 24px;
}

.new-header-version
.new-megamenu__level3-group.is-active
.new-megamenu__item {
    break-inside: avoid;
}


/* =========================
   NEW HEADER — SCROLL STATE
   ========================= */

@media (min-width: 1200px) {


    /* Не зсуваємо нову шапку на -97px */
    .new-header-version .header-bg.header-bg-scroll {
        top: 0 !important;

        animation: none !important;

        background: rgba(255, 255, 255, 0.92) !important;

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        transition: background 0.35s ease,
        backdrop-filter 0.35s ease,
        -webkit-backdrop-filter 0.35s ease,
        box-shadow 0.35s ease;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    /* Ховаємо верхній зелений рядок */
    .new-header-version .header--topbar {
        height: 41px;

        overflow: hidden;

        opacity: 1;

        transition: height 0.35s ease,
        opacity 0.25s ease;
    }

    .new-header-version
    .header-bg.header-bg-scroll
    .header--topbar {
        height: 0;

        opacity: 0;
    }

    /* Робимо основний рядок компактним */
    .new-header-version
    .header-bg.header-bg-scroll
    .header--block-middle {
        min-height: 68px !important;
        height: 68px !important;

        padding-right: 0 !important;

        display: flex;
        align-items: center;
    }

    /* Всі основні елементи центруємо по вертикалі */
    .new-header-version
    .header-bg.header-bg-scroll
    .header--catalog,
    .new-header-version
    .header-bg.header-bg-scroll
    .header--search,
    .new-header-version
    .header-bg.header-bg-scroll
    .header--cart {
        display: flex;
        align-items: center;

        height: 68px;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Прибираємо старе absolute-position кошика */
    .new-header-version
    .header-bg.header-bg-scroll
    .header--cart {
        position: static !important;

        right: auto !important;
        bottom: auto !important;

        transform: none !important;

        z-index: auto;
    }

    /* Пошук не повинен розтягуватись через старі правила */
    .new-header-version
    .header-bg.header-bg-scroll
    .header--search {
        width: auto !important;
        min-width: 0 !important;

        flex: 0 0 340px;
        max-width: 340px;

        margin-left: auto !important;
    }

    .new-header-version
    .header-bg.header-bg-scroll
    #search {
        margin: 0 !important;
    }

    /* Каталог */
    .new-header-version
    .header-bg.header-bg-scroll
    .new-megamenu__trigger {
        height: 42px;
    }

    /* Логотип */
    .new-header-version
    .header-bg.header-bg-scroll
    .header--logo {
        height: auto !important;

        margin-top: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        transform: none !important;
    }

    .new-header-version
    .header-bg.header-bg-scroll
    .header--logo img {
        height: 42px !important;
        width: auto;
    }

}


.new-header-version .header--promo-link {
    font-size: 16px;
    font-weight: 500;

    color: #4a8b81;

    text-decoration: none;

    transition: color 0.2s ease;
}

.new-header-version .header--promo-link:hover {
    color: #ffbbc3;
}


.new-header-version .header--catalog,
.new-header-version .header--promo,
.new-header-version .header--new-products {
    flex: 0 0 auto;
    margin: 0;
}

.new-header-version .header--catalog {
    margin-right: 10px;
}

.header--block-middle > div {
    padding: 0 10px;
}

.new-header-version .header--block-top {
    width: 100%;
}

.new-header-version .header--main-container {
    position: relative;
}

.header--block-info a:first-child {
    margin-left: 0px;

}

.btnsmob {
    display: none;
}

@media (max-width: 960px) {
    .header--block-info a:nth-child(1) {
        left: 0px;
    }



    .btnsmob {
        border: 0;
        background: transparent;
        height: 29px;
        padding: 0;
        align-items: baseline;
        display: flex;
        justify-content: center;
        width: 29px;
        margin: 0;
        margin-right: 10px;
        margin-left: 15px;
    }

    .new-header-version .header--block-info {
        margin-left: 20px !important;
    }

    .mob--visible {
        left: 0px;
        top: -36px;
        transform: translateY(0);
    }

    .new-header-version .header--top-right {
        display: none;
        padding-right: 40px !important;
    }

    .header--cart {
        position: absolute;
        right: 10px;
        top: -30px;
        transform: translateY(0);
    }
}

.mobile-menu-wrapper {
    display: none;
}

.header--block-top .header--logo {
    display: none;
}


@media (max-width: 960px) {
    .header--block-info a:nth-child(1) {
        left: 40px;
        top: 10px;
        transform: translateY(0);
    }

    .header--block-top .header--logo {
        display: flex;
    }

    .new-header-version .header--search {
        top: 41px;

        width: 100%;
        max-width: 100%;
        margin-left: 0;
        background: #47837a;
        padding: 10px 10px;
    }

    .new-header-version .header--block-info a {
        /* display: none; */
    }

    .new-header-version .header--block-info > a:first-child {
        display: flex !important;
    }


    .new-header-version .header--block-middle {
        min-height: 0;
    }

    .new-header-version .header--block-middle .header--logo,
    .new-header-version .header--block-middle .header--catalog,
    .new-header-version .header--block-middle .header--promo,
    .new-header-version .header--block-middle .header--new-products {
        display: none;
    }


}

@media (max-width: 520px) {
    .header--block-info {
        display: none !important;
    }
}