/* ═══ Нова шапка (preview) ══════════════════════════════════════════════ */

:root {
    --nh-gray:          #F5F5F5;
    --nh-topbar-h:      62px;
    --nh-topbar-gap:    70px;   /* відстань між пунктами верхньої полоси */
    --nh-lang-right:    147px;  /* UA RU від правого краю */
    --nh-lang-gap:      15px;
    --nh-logo-top:      40px;   /* лого від сірої полоси */
    --nh-logo-w:        260px;
    --nh-logo-h:        79px;
    --nh-cart-right:    132px;  /* кошик від правого краю */
    --nh-nav-top:       40px;   /* меню від лого */
    --nh-nav-gap:       100px;  /* відстань між пунктами меню */
    --nh-mega-h:        362px;
    --nh-mega-img-w:    341px;
    --nh-mega-img-h:    319px;
    --nh-mega-img-right:390px;
    --nh-mega-col1:     390px;  /* перша колонка тексту від лівого краю */
    --nh-mega-col2:     786px;  /* друга колонка тексту від лівого краю */
    --nh-mega-line-gap: 39px;
}

#new-header {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    position: relative;
    padding-bottom: 40px;
}

/* ── Верхня сіра полоса ── */
#new-header .nh-topbar {
    background: var(--nh-gray);
    height: var(--nh-topbar-h);
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#new-header .nh-topbar-links {
    display: flex;
    gap: var(--nh-topbar-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}

#new-header .nh-topbar-links a {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

#new-header .nh-topbar-links a:hover {
    text-decoration: underline;
}

/* зелена заливка (Термін виготовлення та графік роботи) */
#new-header .nh-topbar-links a.nh-green {
    background: #009933;
    color: #fff;
    padding: 6px 14px;
    border-radius: 2px;
}

#new-header .nh-topbar-links a.nh-green:hover {
    text-decoration: none;
    background: #007a29;
}

/* UA RU справа */
#new-header .nh-lang {
    position: absolute;
    right: var(--nh-lang-right);
    top: 50%;
    transform: translateY(-50%);
}

#new-header .nh-lang form div {
    display: flex;
    gap: var(--nh-lang-gap);
}

#new-header .nh-lang .language-select {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
}

#new-header .nh-lang .language-select:hover {
    text-decoration: underline;
}

/* ── Середина: лого + кошик ── */
#new-header .nh-middle {
    position: relative;
    margin-top: var(--nh-logo-top);
    display: flex;
    justify-content: center;
}

#new-header .nh-logo img {
    width: var(--nh-logo-w);
    height: var(--nh-logo-h);
    object-fit: contain;
    display: block;
}

/* Кошик — стандартний вигляд/текст/відступи як на поточному сайті */
#new-header .nh-cart {
    position: absolute;
    right: var(--nh-cart-right);
    top: 0;
}

/* ── Нижнє меню ── */
#new-header .nh-nav {
    margin-top: var(--nh-nav-top);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--nh-nav-gap);
}

#new-header .nh-nav-item {
    font-size: 19px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}

/* сірий прямокутник під "Магазин" */
#new-header .nh-nav-item.nh-active {
    background: var(--nh-gray);
    min-width: 125px;
    padding: 0 20px;
}

#new-header .nh-nav-item:hover {
    text-decoration: underline;
}

/* ── Мега-меню (overlay поверх контенту сторінки) ── */
#new-header .nh-mega {
    display: none;
    background: var(--nh-gray);
    height: var(--nh-mega-h);
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1000;
}

#new-header .nh-mega.nh-open {
    display: block;
}

#new-header .nh-mega-panel {
    display: none;
    height: 100%;
    position: relative;
}

#new-header .nh-mega-panel.nh-open {
    display: block;
}

#new-header .nh-mega-col {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
}

#new-header .nh-mega-col-1 { left: var(--nh-mega-col1); }
#new-header .nh-mega-col-2 { left: var(--nh-mega-col2); }

#new-header .nh-mega-col li + li {
    margin-top: var(--nh-mega-line-gap);
}

#new-header .nh-mega-col a {
    font-size: 19px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
}

#new-header .nh-mega-col a:hover {
    text-decoration: underline;
}

#new-header .nh-mega-photo {
    position: absolute;
    right: var(--nh-mega-img-right);
    top: 50%;
    transform: translateY(-50%);
    width: var(--nh-mega-img-w);
    height: var(--nh-mega-img-h);
    object-fit: cover;
    background: #e0e0e0;
}

@media (max-width: 1800px) {
    #new-header .nh-mega-photo { display: none; }
}

/* ── Простий fallback для менших екранів ── */
@media (max-width: 1400px) {
    :root {
        --nh-topbar-gap: 30px;
        --nh-nav-gap: 40px;
        --nh-lang-right: 40px;
        --nh-cart-right: 40px;
        --nh-mega-col1: 60px;
        --nh-mega-col2: 480px;
        --nh-mega-img-right: 60px;
    }
}

@media (max-width: 991px) {
    #new-header .nh-topbar { height: auto; padding: 30px 0; }
    #new-header .nh-topbar-links { flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
    #new-header .nh-lang { position: static; transform: none; margin-left: 20px; }
    #new-header .nh-middle { flex-direction: column; align-items: center; gap: 20px; }
    #new-header .nh-cart { position: static; }
    #new-header .nh-nav { flex-wrap: wrap; gap: 10px 25px; margin-top: 25px; }
    #new-header .nh-mega-photo { display: none; }
    #new-header .nh-mega { height: auto; padding: 30px 0; }
    #new-header .nh-mega-col { position: static; transform: none; padding: 0 30px; }
    #new-header .nh-mega-col + .nh-mega-col { margin-top: 20px; }
}

#new-header .nh-shop-mobile { display: none; }

@media (max-width: 767px) {
    #new-header .nh-shop-desktop { display: none; }
    #new-header .nh-shop-mobile { display: flex; }
}