﻿.top-nav {
    padding: 6px 0;
    border-bottom: 1px solid #D8D8D8;
    display: none;
}

.top-container {
    
}
.top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu li {

}

.top-menu a{
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: 600;
}

.top-menu a:hover {
    color: var(--main-red-color);
    text-decoration: none;
}

.lang-switcher {
    font-weight: 600;
    color: var(--main-black-color);
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 62px;
    width: 62px;
}
.lang-toggle {
    position: relative;
    width: 18px;
    height: 10px;
    background-color: var(--main-red-color);
    border-radius: 10px;
}

.lang-toggle:after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    position: absolute;
    left: 1px;
    top: 1px;
    border-radius: 50%;
}

.lang-toggle.curr-uk-ua:after,
.lang-toggle.curr-ru-ru:after {
    left: auto;
    right: 1px;
}

.lang-name {
    margin-left: 6px;
    flex: 0 0 38px;
    min-width: 38px;
    white-space: nowrap;
}

.warehouses {
    position: relative;
    min-width: 175px;
    z-index: 4;
}

.warehouses-list {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 9;

    display: none;
    padding: 0;
    overflow: hidden;

    animation:fadeEffect .3s;

    border-radius: 4px;
    background: #FFF;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 2px 6px 0px rgba(0, 0, 0, 0.15);
}

.warehouses.active .warehouses-list {
    display: block;
}

.warehouses-item {
    color: #2e2e2e;    
    padding: 5px 10px 5px 5px;
    width: 100%;
    border-radius: 0;
}

.warehouses-item:hover {
    background-color: #f7f7f7;
}

.warehouses-switcher {
    width: 100%;
    height: 38px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    padding: 0 5px;
    color: #2e2e2e;
    line-height: 1.2;

    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.warehouses:hover .warehouses-switcher,
.warehouses.active .warehouses-switcher {
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15), 0px 0px 0px 1px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

.warehouses-switcher::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #cccccc transparent transparent transparent;

    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -3px;

    transition: all 0.2s ease-in-out;
}

.warehouses.active .warehouses-switcher::after {
    transform: rotate(180deg);
}

.warehouses-item,
.warehouses-switcher {
    font-size: 12px;
    text-align: left;
}

.warehouses-switcher i {
    display: none;
}

.warehouses-item span b,
.warehouses-switcher span b{
    font-size: 16px;
    color: #f8c630;
    font-weight: 600;
    display: block;
}

@keyframes fadeEffect {
    from{opacity:0}
    to{opacity:1}
}

.mobile-header-actions {
    display: block;
}

.mobile-header-actions button {
    line-height: 0;
}

.mobile-header-actions button + button {
    margin-left: 15px;
}

.btn-mobile-menu svg{
    width: 24px;
    height: 24px;
}

.btn-mobile-search svg {
    width: 22px;
    height: 22px;
}

.logo-container {
    max-width: 100px;
    height: auto;
    max-height: 76px;
}

.logo-link {
    display: block;
    line-height: 0;
}

.header-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    /* max-width: 375px; */
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    display: none;
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    padding: 20px 50px;
    box-shadow: 0px 0px 5px #aaa;
}

.search-container.active {
    display: block;
}

.header-middle-right {
    display: flex;
    align-items: center;
}

.header-login {
    order: 2;
    position: relative;
}

.header-login:hover img{
    opacity: .8;
}

.header-login:hover span{
    color: var(--main-red-color);
}

.header-phone {
    display: none;
}

.search-container input.form-control {
    width: 100%;
    padding-right: 50px;
}

.serach-btn {
    position: absolute;
    top: 18px;
    right: 0;
    background: transparent;
    padding: 0;
    width: 48px;
    height: 48px;
    padding-right: 6px;
    padding-top: 6px;
    border-radius: 10px;
    border: 0;
}

.serach-btn:hover svg {
    opacity: 0.8;
}

.mobile-search-close {
    position: absolute;
    left: 0;
    background: transparent;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 54px;
    color: #f8c630;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    padding-left: 6px;
}

.header-login span {
    display: none;
}

.cart-container {
    margin-right: 23px;
}

.btn-basket {
    position: relative;
    background: transparent;
    padding: 0;
    color: var(--main-black-color);
    line-height: 1;
    padding: 0;
    margin-top: 11px;
    border: 0;
}

.btn-basket:hover img{
    opacity: .8;
}

.btn-basket:hover #cart-total-price{
    color: var(--main-red-color);
}

.header-login-link {
    display: block;
    line-height: 0;
    margin-top: 6px;
    cursor: pointer;
    color: inherit;
    text-align: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
}

a.header-login-link:hover {
    text-decoration: none;
}

.header-login-link img,
.btn-basket img{
    width: 20px;
    height: 24px;
}

#cart-total {
    position: absolute;
    background: #f03136;
    text-align: center;
    font-size: 10px;
    border-radius: 50%;
    color: #fff;
    min-width: 16px;
    min-height: 16px;
    line-height: 16px;
    top: -10px;
    left: 12px;
}

#cart-total-price {
    display: none;
}

.header-login--account {
    z-index: 82;
}

.header-account-trigger {
    position: relative;
    z-index: 2;
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 81;
    display: none;
    width: 220px;
    max-width: calc(100vw - 24px);
    padding: 8px 0;
    background: #ffffff;
    border: 1px solid #D8D8D8;
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    line-height: 1.25;
    text-align: left;
}

.header-account-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 8px;
}

.header-login--account:hover .header-account-dropdown,
.header-login--account:focus-within .header-account-dropdown {
    display: block;
}

.header-account-email {
    padding: 9px 14px 10px;
    border-bottom: 1px solid #E5E5E5;
    color: #666666;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.header-account-dropdown-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    color: #2e2e2e;
    background: transparent;
    border: 0;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    box-sizing: border-box;
}

.header-account-dropdown-link:hover,
.header-account-dropdown-link:focus-visible {
    background: #f8c630;
    color: #2e2e2e;
    outline: none;
    text-decoration: none;
}

.header-account-logout {
    color: #f03136;
}

/* main menu */
#mainmenu {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    background: #fff;
    box-shadow: 0 0 7px #555;
    padding: 20px 0;
    width: 300px;
    transition: left .3s;
    z-index: 999;
}

#mainmenu.active {
    left: 0;
}

#mainmenu > .container {
    padding-left: 0;
    padding-right: 0;
}

.mobile-top-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

.mobile-top-container .lang-container{
    margin-left: auto;
}

.mobile-top-container .mainmenu-close{
    margin-left: auto;
}

.menu-catalog {
    margin-bottom: 10px;
}

.menu-catalog-title {
    font-size: 18px;
    font-weight: 700;
    padding: 0 15px;
    margin-bottom: 10px;
}

.menu-catalog-title .iconn-catalog-grid {
    display: none;
}

.mainmenu-container {
    height: calc(100vh - 100px);
    overflow: auto;
}

.mainmenu-container ul {
    list-style: none;
}

.menu-list-dropdown > .sub-menu {
    padding: 0;
    padding-left: 20px;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.menu-list-dropdown.active-menu > .sub-menu{
    z-index: 9;
    transition: all 0.2s;
    opacity: 1;
    visibility: visible;
    overflow: initial;
    transition: all 0.2s ease-in-out;
    max-height: 100%;
}

@media screen and (max-width: 991px) {
    .menu-list-dropdown > .sub-menu {
        max-height: 0px;
    }
}

.menu-list-dropdown > a {
    pointer-events: none;
}

.menu-list-dropdown .menu-caret {
    width: 24px;
    height: 24px;
    background-size: 5px 10px;
    transition: all 0.2s ease-in-out;
}

.menu-list a {
    text-decoration: none;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    display: block;
    padding: 12px 0px;
    margin-left: 15px;
    margin-right: 15px;
}

.menu-list li.active-menu > a,
.menu-list li:hover > a {
    color: #f8c630;
    text-decoration: none;
}

.menu-list li.active-menu > a .menu-caret {
    transform: rotate(90deg);
    transition: all 0.2s ease-in-out;
}

.menu-list-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.menu-information {
    margin-bottom: 20px;
}

.menu-information ul {
    margin-left: 15px;
    margin-right: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #D8D8D8;
}

.menu-information ul li {

}

.menu-information ul li a{
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 0;
}

.menu-information ul li a i {
    filter: invert(60%) sepia(3%) saturate(4363%) hue-rotate(342deg) brightness(94%) contrast(69%);
    margin-right: 0;
}

.menu-information--title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    padding: 0 15px;
    margin-bottom: 10px;
}

.menu-information-links {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
}

.menu-information-links ul {}
.menu-information-links ul li {

}
.menu-information-links ul li a {
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.mobile-menu-social {
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
}

.mobile-menu-social a {
    display: block;
    text-decoration: none;
    width: 32px;
    height: 32px;
}

.mobile-menu-social a + a {
    margin-left: 12px;
}

@media screen and (min-width: 375px) {
    .mobile-header-actions button + button {
        margin-left: 20px;
    }

    .cart-container {
        margin-right: 33px;
    }

    .warehouses {
        min-width: 200px;
    }

    .warehouses-switcher {
        padding-left: 10px;
        padding-right: 10px;
    }

    .warehouses-item {
        padding-left: 32px;
    }

    #mainmenu {
        width: 350px;
    }

    .warehouses-switcher {
        padding-left: 0;
        padding-right: 15px;
    }

    .warehouses-switcher i {
        display: block;
    }
}

@media screen and (min-width: 576px) {

}

@media screen and (min-width: 768px) {

    .header-middle {
        max-width: 100%;
    }

    .btn-mobile-menu {
        margin-right: 25px;
    }

    .btn-mobile-menu svg {
        width: 30px;
        height: 30px;
    }

    .btn-mobile-search {
        display: none;
    }

    .serach-btn {
        top: 0;
    }
    
    .search-container {
        display: block;
        max-width: 300px;
        width: 100%;
        position: relative;
        top: 3px;
        padding: 0;
        box-shadow: none;
    }

    .mobile-search-close {
        display: none;
    }

    .logo-container {
        min-width: 130px;
        max-width: 130px;
        margin-right: 25px;
    }

    .header-login {
        margin-left: 25px;
        margin-top: -1px;
        width: 124px;
        order: 0;
    }

    .header-login-link {
        text-decoration: none;
        text-align: center;
        display: block;
        line-height: 1;
    }

    .header-login-link img{
        width: 26px;
        height: 30px;
    }

    .header-login span {
        display: block;
        font-size: 14px;
        font-weight: 600;
        width: 100%;
        white-space: nowrap;
        max-width: 124px;
        overflow: hidden;
    }

    .cart-container {
        margin-left: 25px;
        margin-right: 0;
    }

    .btn-basket {
        width: 82px;
        margin-top: 6px;
    }

    .btn-basket img {
        width: 26px;
        height: 30px;
    }

    #cart-total {
        min-width: 20px;
        min-height: 20px;
        font-size: 12px;
        line-height: 20px;
        left: 44px;
        top: -8px;
    }

    #cart-total-price {
        display: block;
        width: 100%;
        font-weight: 600;
        font-size: 14px;
    }
    

}

@media screen and (min-width: 992px) {

    .mobile-header-actions {
        display: none;
    }

    .top-nav {
        display: block;
    }

    /* Above #mainmenu (z-index: 50) so the warehouses dropdown is not clipped */
    header {
        position: relative;
        z-index: 51;
    }

    .top-menu a {
        font-size: 14px;
    }

    .top-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 15px;
        min-width: 0;
    }    
    .top-menu {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        flex-wrap: wrap;
        column-gap: 20px;
        row-gap: 6px;
        margin-right: auto;
        min-width: 0;
        padding: 10px 0;
    }

    .top-menu li + li {
        margin-left: 0;
    }

    .top-menu a {
        display: block;
        white-space: nowrap;
    }

    .top-menu--empty {
        min-height: 38px;
    }

    .lang-switcher {
        margin-right: 15px;
    }

    .header-middle {
        padding: 15px 0 20px;
        justify-content: flex-start;
    }

    .logo-container {
        margin-right: 30px;
        margin-top: -3px;
    }

    .search-container {
        max-width: 645px;
    }

    .header-phone {
        display: block;
        line-height: 0;
        margin-left: 22px;
    }

    .header-phone a {
        display: block;
        position: relative;
        padding-left: 35px;
        font-size: 27px;
        font-weight: 700;
        text-decoration: none;
        line-height: 1;
        letter-spacing: -0.02em;
        color: var(--main-red-color);
        white-space: nowrap;
    }

    .header-phone-number {
        display: block;
    }

    .header-phone-callback {
        display: block;
        font-size: 12px;
        font-weight: 600;
        margin-left: 35px;
        margin-top: 4px;
        line-height: 1.1;
        white-space: nowrap;
        color: inherit;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .header-phone a svg {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .header-phone:hover a {
        opacity: 0.8;
    }

    .header-phone-callback:hover,
    .header-phone-callback:focus-visible {
        color: var(--main-red-color);
        outline: none;
        transition: all 0.2s ease-in-out;
    }

    .header-login {
        margin-top: -1px;
    }

    .btn-basket {
        margin-top: 4px;
    }

    /* main menu */

    .mobile-top-container {
        display: none;
    }

    #mainmenu > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    #mainmenu.active {
        left: 0;
    }

    #mainmenu {
        box-shadow: none;
        padding: 0;
        position: relative;
        width: 100%;
        left: auto;
        right: auto;
        bottom: auto;
        top: auto;
        background-color: var(--main-black-color);
        z-index: 50;
    }

    .mainmenu-container {
        display: flex;
        position: relative;
        height: auto;
        overflow: initial;
        --mainmenu-info-link-width: clamp(190px, 15vw, 260px);
    }

    .menu-catalog {        
        cursor: pointer;
        margin-bottom: 0;
    }

    .menu-catalog-title {
        background-color: var(--main-red-color);
        padding: 11px 15px;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        display: flex;
        align-items: center;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .menu-catalog-title .iconn-catalog-grid{
        margin-right: 13px;
        display: block;
        filter: brightness(0) saturate(100%);
    }

    .menu-information {
        flex: 0 1 auto;
        margin-bottom: 0;
    }

    .menu-information--empty {
        flex: 1 1 auto;
    }

    .menu-information--title {
        display: none;
    }

    .menu-information ul{
        display: flex;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .menu-information ul li{
        flex: 0 0 var(--mainmenu-info-link-width);
        min-width: 0;
        text-align: center;
    }

    .menu-information ul li a{
        padding: 0 10px;
        box-sizing: border-box;
        width: 100%;
        font-weight: 600;
        color: #fff;
        height: 50px;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .menu-information ul li a i {
        margin-right: 0;
        filter: brightness(0) saturate(100%) invert(84%) sepia(25%) saturate(1278%) hue-rotate(347deg) brightness(103%) contrast(95%);
    }

    .menu-information ul li.current-item a,
    .menu-information ul li a:hover {
        background-color: var(--main-red-color);
        color: #2e2e2e;
    }

    .menu-information ul li.current-item a i,
    .menu-information ul li a:hover i {
        filter: brightness(0) saturate(100%) invert(84%) sepia(25%) saturate(1278%) hue-rotate(347deg) brightness(103%) contrast(95%);
    }

    .menu-information-links,
    .mobile-menu-social {
        display: none;
    }

    .menu-list-dropdown:hover > .sub-menu{
        z-index: 9;
        transition: all 0.2s;
        opacity: 1;
        visibility: visible;
        overflow: initial;
        transition: all 0.2s ease-in-out;
    }
}

@media screen and (min-width: 1200px){

    .top-menu a {
        font-size: 16px;
    }

    .top-menu {
        column-gap: clamp(24px, 3vw, 50px);
    }

    .logo-container {
        margin-right: 60px;
        max-width: 165px;
        min-width: 165px;
    }

    .header-login {
        margin-left: 68px;
        margin-top: 0;
        width: 128px;
    }

    .cart-container {
        margin-left: 29px;
        margin-top: 2px;
    }

    .header-phone {
        margin-left: 28px;
    }

    .header-phone a {
        font-size: 29px;
    }

    .top-menu li + li {
        margin-left: 0;
    }

    .menu-catalog-title,
    .menu-information ul li a {
        font-size: 16px;
    }

    .menu-information ul li a i {
        margin-right: 5px;
    }

}

/* MAIN MENU */

@media screen and (min-width: 992px){

    .warehouses-switcher {
        padding-right: 25px;
        width: 240px;
        box-sizing: border-box;
    }

    .menu-list {
        display: none;
        position: absolute;
        top: 100%;
        z-index: 1;
    }
    
    .menu-catalog:hover .menu-list{
        display: block;
    }

    .menu-list {
        list-style: none;
        background-color: #ffffff;
        /* box-shadow: 0px 0px 4px #000; */
        border-left: 1px solid #f8c630;
        border-right: 1px solid #f8c630;
        border-bottom: 3px solid #f8c630;
        width: 33.33333%;
    }

    .menu-list ul {        
        list-style: none;        
    }

    .menu-list a {
        text-decoration: none;
        font-size: 15px;
        line-height: 16px;
        font-weight: 600;
        display: block;
        padding: 12px 0px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .menu-list li.menu-list-dropdown > a::after {
        content: '';
        display: block;
        border-right: 1px solid transparent;

        position: absolute;
        top: 0;
        bottom: 0;
        right: -16px;
        z-index: 10;
    }

    .menu-list li.menu-list-dropdown:hover > a:after {
        border-right-color: #ffffff;
    }

    .menu-list li a{
        border-bottom: 1px solid #D8D8D8;
        position: relative;
    }

    .menu-list li:last-child a{
        border-bottom: 0;
    }

    .menu-list li:hover > a {
        color: #f8c630;
        text-decoration: none;
    }

    .menu-list-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        pointer-events: initial;
    }

    .menu-list-dropdown > a:hover .menu-caret{
        filter: invert(33%) sepia(46%) saturate(3117%) hue-rotate(343deg) brightness(100%) contrast(82%);
    }

    .menu-list-dropdown .menu-caret{
        width: 32px;
        height: 32px;
    }

    .menu-list li:hover > a .menu-caret {
        transform: none;
    }

    .menu-list-dropdown > .sub-menu {
        position: absolute;
        left: 100%;
        top: 0px;
        bottom: -3px;

        padding: 0;
        margin: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: all 0.2s;
        background-color: #fff;
        border-bottom: 3px solid #f8c630;
        border-left: 1px solid #f8c630;
        border-right: 1px solid #f8c630;
        width: 100%;

    }

    .menu-list-dropdown.menu-level-2 > .sub-menu{
        
    }

    .menu-list-dropdown:hover > .sub-menu{
        z-index: 9;
        transition: all 0.2s;
        opacity: 1;
        visibility: visible;
        overflow: initial;
    }
}

@media screen and (min-width: 1200px){

}
