/*
Theme Name: PromoHolod
Author: Ваше имя
Description: Тема для сайта PromoHolod
*/
body, html {
    font-family: 'Gotham Pro', -apple-system, sans-serif;
    font-weight: 400;
}

.container {
    width: 90%;
    max-width: 1350px;
    padding: 0 15px;
    margin: 0 auto;
}
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-submenu {
    display: none;
}
.nav-submenu.open {
    display: block;
}


/*=====Верняя часть header=====*/
.container-up{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
}

.header-grid__col {

    position: relative;
    -ms-flex-align: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}


/*Лого и слогон*/
.container-up > .logo{
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    width: 200px;
    padding: 0 32px;
}

.container-up > .logo > img{
    display: block;
    width: 100%;
    max-width: 238px;
}

.logo-description{
    -webkit-box-flex: 1.2;
    -ms-flex: 1.2;
    flex: 1.2;
    padding: 0 32px;
    color: #999ea6;
    font-size: clamp(.7em,1vw,.8em);
    line-height: 1.6;
    white-space: nowrap;
}

.logo-description:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: calc((100% - 40px) / 2);
    width: 1px;
    height: 40px;
    background-color: #e8eef2;
}

/*Контакты header*/

.header-contacts {
    -webkit-box-flex: 2;
    -ms-flex: 2;
    flex: 2;
    min-width: 320px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 32px;
}

.header-contacts:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: calc((100% - 40px)/2);
    width: 1px;
    height: 40px;
    background-color: #e8eef2;
}

.header-contacts_item_callback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.header_callback_btn{
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%;
    font-size: clamp(.8em,1.29vw,1.05em);
    font-weight: 500;
    line-height: 1.8;
    white-space: nowrap;
}


.header_callback_btn>a {
    cursor: pointer;
    display: inline-block;
    background: #003151;
    color: #fff !important;
    width: 100%;
    padding: 9px 5px;
    line-height: 1;
    border-radius: 2px;
    text-align: center;
    font-weight: 400;
    font-size: clamp(.8em,1vw,.84em);
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
    max-width: 180px;
}

.header-contacts_item_link{
    font-family: 'Gotham Pro', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    display: inline;
    margin: 0px;
    padding: 0px;
    color: inherit;
    line-height: inherit;
    text-decoration: none;
}

.header-contacts_item_link:hover{
    color: #007bff;
}

.header-contacts_items_phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}

.header-contacts_item_phone {
    display: grid;
    grid-template-columns: 175px auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    max-width: 280px;
    white-space: nowrap;
}

.header-contacts_item_phone .header-contacts_item_link {
    display: block;
    text-align: right;
    white-space: nowrap;
}

.header-contacts_item_phone > span {
    color: #404040;
    font-size: clamp(1em, 1vw, .8em);
    line-height: 1.4;
}

.header-contacts__item_worktime {
    color: #999ea6;
    font-size: clamp(.7em,1vw,.8em);
    line-height: 1.6;
    width: 100%;
    max-width: 280px;
    text-align: right;
    margin-top: 2px;
}


/* Основные стили контейнеров Поиска и карзины */


.header-search,
.header-cart,
.header-hamburger{
    width: 85px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart{
    display: none;
}

.header-search:before,
.header-cart :before ,
.header-hamburger:before{
    content: "";
    display: block;
    position: absolute;
    left: 0;

    width: 1px;
    height: 100%;
    background-color: #e8eef2;
}

/* Ссылка на всю область */
.header-search > a,
.header-cart > a ,
.header-hamburger >a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}




/* Затемнение фона при наведении */
.header-search > a:hover,
.header-cart > a:hover,
.header-hamburger> a:hover {
    background: rgba(0, 0, 0, 0.05); /* Затемнение */
}

/* Стили SVG */
.header-search svg,
.header-cart svg {
    width: 21px;
    height: 21px;
    fill: #333; /* Исходный цвет */
    transition: fill 0.3s ease;
    pointer-events: none; /* Чтобы не перехватывали клики */
}

/* Изменение цвета SVG при наведении */
.header-search > a:hover svg,
.header-cart > a:hover svg {
    fill: #007bff; /* Голубой цвет */
}
.header-search{
    display: none;
}


/* Счетчик корзины */
.ms2_total_count {
    position: absolute;
    top: 35%;
    left: 55%;
    transform: translate(-50%, -50%);
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}

/*=====Нижняя часть header=====*/


.container-down.is-fixed {
    position: fixed;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); /* по желанию */
    background-color: #fff; /* желательно, чтобы не было прозрачности */
    transition: 0.5s all;
}


/* Основные стили меню */
.nav {
    border-top: 1px solid #e0e6ed;
    position: relative;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
}

.nav-menu__container {
    display: flex;
    width: 100%;
}

.nav-menu__items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: auto;
}


.nav-menu__item {
    position: relative;
    padding: 15px 20px;
    display: inline-block;
    color: #333;
    line-height: 1.2;
    text-decoration: none;
    flex: auto;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-menu__item:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    max-width: 0;
    height: 2px;
    background-color: #007bff;
    transition: max-width 0.4s ease-in-out;
}

.nav-menu__item:hover:before,
.nav-menu__item.active:before {
    max-width: 100%;
}



.nav-menu__item_catalog {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    background-color: #003151;
    padding: 0 1.8rem;
    color: #fff !important;
}

/* Особый стиль для Каталога */
.nav-menu__item_catalog {
    font-weight: 700;
    color: #fff!important;
}

.nav-menu__item_catalog>a{
    color: #fff;
}


/* Пункты меню */

.nav-submenu-new .nav-submenu__item-link {
    padding: 20px 30px 20px 20px;
    border-right: 3px solid rgba(0,123,255,0);
}


.nav-menu__item {
    position: relative;
    padding: 15px 20px;
    display: inline-block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-submenu__item > a:hover {
    color: #007bff;
}



/* Основные стили для подменю */
/* Стили для выпадающего меню Каталога */
.nav-menu__item_catalog {
    position: relative; /* Для корректного позиционирования подменю */
}

.nav-menu .nav-menu__items > .nav-menu__item_catalog:hover + .nav>.nav-submenu,
.nav-submenu:hover {
    display: block;
}

/* Базовые стили подменю */
.nav-submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}


.nav-menu__item_has-childs:hover .nav-submenu,
.nav-menu__item_has-childs.active .nav-submenu {
    display: block;
}

/* Контейнер для подменю (ограничивает ширину контента) */
.nav-submenu__container {
    max-width: 1318px;

    margin: 0 auto;
    padding: 0;
}

/* Обертка для колонок */
.nav-submenu__columns {
    display: flex;
    min-height: 400px;
    background-color: #fff;
}

/* Левая колонка (категории) */
.nav-submenu__left {
    width: 35%; /* Фиксированная ширина в процентах */
    background-color: #e8eef2;
    border-right: 1px solid #e0e6ed;
    padding: 20px 0;
    overflow-x: hidden;
}

/* Правая колонка (подкатегории) */
.nav-submenu__right {
    max-height: 400px;
    flex: 1;
    padding: 30px;
    overflow-y: scroll;
    background: #fff;
    overflow-x: hidden;
}

/* Стили для пунктов меню в левой колонке */
.nav-submenu__item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    margin-right: -1px;
}

.nav-submenu__item:hover,
.nav-submenu__item.active {
    background: #fff;
    color: #007bff;
    border-right: 3px solid #007bff;
}

.nav-submenu__item-link {
    color: #003151;
    font-weight: 600;
    display: block;
    font-size: 15px;
}

/* Бургер кнопка */
.header-hamburger{
    display: none;
}


.header-hamburger__link {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}






/* Стили для подкатегорий в правой колонке */
.nav-submenu-childs {
    display: none;
}

.nav-submenu-childs.active {
    display: block;
}

.nav-submenu-new__cont {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
}

.nav-submenu-new__block {
    break-inside: avoid;
}

.nav-submenu-childs__title {
    font-weight: 700;
    color: #003151;
    display: block;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 18px;
}

.nav-submenu-childs__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-submenu-childs__item {
    color: #555;
    transition: color 0.2s ease;
    padding: 3px 0;
    font-size: 16px;
}

.nav-submenu-childs__item:hover {
    color: #007bff;
}

/* Горизонтальная линия разделитель */
.nav-submenu__divider {
    border-top: 1px solid #e0e6ed;
    margin: 20px 0;
}





/* Показываем мобильную версию только на мобильных */
@media (min-width: 1201px) {
    .mobile-menu-version {
        display: none !important;
    }
}

/* Показываем десктопную версию только на десктопах */
@media (max-width: 1200px) {
    .desktop-menu-version {
        display: none !important;
    }
}

.desktop-menu-version {
    display: flex;
    width: 100%;
}

.nav-submenu__bg {
    display: none;
}


.nav-submenu__bg {
    position: absolute;
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    /* width: 100%; */
    height: 100%;
    z-index: -1;
    /* background-color: #fff; */
}

.nav-submenu__bg-menu {
    width: calc((350px)/2 + min(400px, 38vw));
    background: #e8eef2;
}

/* Улучшаем отображение скроллбара */
.nav-submenu__right::-webkit-scrollbar {
    width: 4px;
}

.nav-submenu__right::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 2px;
}

/* Фикс для Firefox */
@-moz-document url-prefix() {
    .nav-submenu__right {
        scrollbar-width: thin;
        scrollbar-color: #007bff transparent;
    }
}


/*body*/

/* Улучшаем отображение скроллбара */
body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 2px;
}

/* Фикс для Firefox */
@-moz-document url-prefix() {
    body{
        scrollbar-width: thin;
        scrollbar-color: #007bff transparent;
    }
}



/* Для активного элемента в мобильной версии */


/* Общие стили для подменю */
.nav-submenu-childs {
    display: none;
    transition: all 0.3s ease;
}

.js-submenu-panel {
    display: none;
}


/* Search styles */
.header-search {
    position: relative;
    width: 85px;
    height: 100%;
}

.search-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-toggle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form {
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.6s ease;
    z-index: 1;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 12px 40px 12px 15px;
    outline: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Active state */
.search-container.active .search-form {
    width: 500px;
    height: 40px;
}

.search-container.active .search-input {
    opacity: 1;
    padding: 12px;
}

/* Hover effects */
.search-toggle:hover svg {
    fill: #007bff;
}

.search-form:focus-within {
    box-shadow: 0 2px 15px rgba(0,123,255,0.2);
}

@media (max-width: 756px) {
    .search-container.active .search-form {
        width: 300px;

    }

}

@media (max-width: 420px) {
    .search-container.active .search-form {
        width: 250px;

    }
}