.header {
    border-bottom: 2px solid #F3F4F6;
}
@media screen and (min-width: 1048px){
        .header{
            height: 100%;
        max-height: 80px;
    }
    .header .inner_header {
         max-height: 80px;
    }
}

.header .inner_header {
    display: flex;
    justify-content: space-between;
       align-items: center;

}
.account_icon{
    padding: 5px 12px;
}
.navUser-item--cart{
    padding: 15px;
}
.account_icon:hover, .navUser-item--cart:hover{
    background-color: #e9ebef;
    border-radius: 10px;
}
.header .search_block {
    border: 2px solid #E5E7EB;
        padding: 2px 2px 2px 10px;
    border-radius: 50px;
    background-color: #F3F3F5;
    display: flex;
    justify-content: space-between;
        width: 100%;
    max-width: 576px;
    height: 100%;
    max-height: 48px;
}
.header .search_block #customSearchForm{
        width: 100%;
    display: inline-flex;
}
.header .search_block .search_input {
    border: none;
    background-color: transparent;
    color: #717182;
    font-size: 14px;
    line-height: 20px;
    width: 100%;
}

.header .search_block .search_btn {
    border: 0;
    background-color: var(--primary-cta-color);
    width: 40px;
    height: 40px;
    border-radius: 40px;
}
.header .search_block .search_btn:hover{
    background-color: #3a8ac8;
}
.header .icons_block {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header .icons_block span {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--black-main-color);
}

.header .icons_block .cart_icon {
    position: relative;
}

.header .icons_block .cart_counter {
    width: 20px;
    height: 20px;
    background-color: #7BC143;
    text-align: center;
    color: var(--white-main-color);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    position: absolute;
    top: 0px;
    right: 0px;
}

.header .icons_block .menu_icon {
    display: none;
}

.header .icons_block .menu_icon img {
    width: 15px;
}

/* NAVBAR BASE */
header aside .close_side_bar {
    display: none;
}

header .nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

header .nav-menu li {
    position: relative;
    left: 0;
    z-index: 9;
}

header .nav-menu a {
    text-decoration: none;
    color: var(--primary-text-color);
    display: block;
    font-size: 0.875rem;
    line-height: 45px;
    height: 48px;
}

/* DROPDOWN */
/*header .dropdown-menu {
    left: 0;
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    min-width: 340px;
    border-radius: 15px;
    background-color: var(--white-main-color);
    margin-top: 5px;
}*/

/*.first_layer_menu {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
}

header .dropdown-menu li {
    width: 100%;
}

header .dropdown-menu li a {
    padding: 15px 20px;
    color: var(--primary-text-color);
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .dropdown-menu li:last-child a {
    border-bottom: none;
}

header .dropdown-menu li a:hover {
    color: var(--primary-cta-color);
    border-radius: 15px;
}

.inner_dropdown_menu {
    display: none;
    position: absolute;
    left: 95%;
    top: 10px;
    background-color: #ffffff;
    border-radius: 15px;
    min-width: 180px;
    border: 1px solid #ebe6e7;
}*/
header .dropdown-menu {
    display: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    min-width: 340px;
    border-radius: 10px;
    background-color: var(--white-main-color);
    position: absolute;
    z-index: 10;
    left: 0;
    top: 46px;
    box-sizing: border-box;
    padding: 20px;
}

.first_layer_menu {
    width: 100%;
    height: 20%;
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
}

header .dropdown-menu li {
    width: 100%;
    padding-right: 5px;
}
header .dropdown-menu li:hover{
    background-color: #fbf9f4;
    border-radius: 10px;
}
header .dropdown-menu li a {
    padding: 10px 15px;
    color: var(--primary-text-color);
   /* white-space: nowrap;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .dropdown-menu li:last-child a {
    border-bottom: none;
}

/*header .dropdown-menu li a:hover {
     color: var(--primary-cta-color);
     border-radius: 15px;
}*/

.inner_dropdown_menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    min-width: 230px;
    border: 1px solid #ebe6e7;
    margin-left: 0px!important;*/
    padding: 10px 5px 10px 10px!important;
}
.menu-link{
    display: inline-flex;
    align-content: center;
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

/* SHOW DROPDOWN ON HOVER */
header .dropdown:hover .dropdown-menu {
    display: block;
    padding-right: 5px;
}

header .dropdown .main_menu_item:hover .inner_dropdown_menu {
    display: block;
}

/* OPTIONAL: styling hover on main links */
header .nav-menu>li>a:hover {
    color: var(--primary-cta-color);
}

header .dropdown svg path {
    stroke: var(--primary-text-color);
}




@media screen and (max-width: 1024px) {
    .header .inner_header {
        flex-wrap: wrap;
    }

    .header .logo_block {
        width: 50%;
        flex: none;
    }

    .header .icons_block {
        width: 50%;
        flex: none;
    }

    .header .search_block {
        width: 100%;
        order: 1;
    }

    .header .icons_block .menu_icon {
        display: block;
    }

    header aside {
        position: relative;
    }

    header aside .close_side_bar {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    header aside .close_side_bar svg {
        width: 20px;
        ;
    }

    header .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-inline: 0;
        padding: 0px 15px!important;
    }

    header .nav-menu li {
        width: 100%;
    }

    header .nav-menu a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header .dropdown-menu {
        position: relative;
        top: 10px;
        border: 0;
    }

    header .dropdown-menu a {
        padding: 5px 10px;
        border: 0;
    }

    header .dropdown-menu a:hover {
        box-shadow: none;
    }



    /* Disable hover dropdown on mobile */
    header .dropdown:hover .dropdown-menu {
        display: none;
    }

    header .dropdown .main_menu_item:hover .inner_dropdown_menu {
        display: none;
    }

    /* Hide dropdowns by default on mobile */
    header .dropdown-menu,
    header .inner_dropdown_menu {
        display: none;
    }

    /* Show when active */
    header .dropdown.active>.dropdown-menu {
        display: block;
    }

    header .main_menu_item.active>.inner_dropdown_menu {
        display: block;
    }

    header .dropdown>a svg,
    header .main_menu_item>a svg {
        transition: transform 0.3s ease;
    }

    header .dropdown.active>a svg,
    header .main_menu_item.active>a svg {
        transform: rotate(180deg);
    }
    
}
@media screen and (max-width: 456px) {
        header .inner_dropdown_menu, header .third_level_menu, header .dropdown-menu{
        padding-left: 0px!important;
        min-width: 100%!important;
    }
    .navUser-item--cart{
        padding: 10px;
    }
    .header .icons_block{
        gap: 3px;
    }
}
