.container-header {
    max-width: 1920px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 30px;
    padding-right: 30px;
    @media screen and (max-width: 1024px){
        padding-left: 15px;
        padding-right: 15px;
    }
}

.header {
/*    &.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 999;
        .logo-img {
            max-width: 200px;
        }

    }*/
    &--inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 120px;
        @media screen and (max-width: 1400px) {
            min-height: 90px;
        }
    }
    .mobile-menu-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        .burger-icon {
            width: 18px;
        }
        @media screen and (min-width: 1025px){
            display: none;
        }
    }
    .mobile-search {
        flex-shrink: 0;
        display: none;
        margin-left: 12px;
        @media screen and (max-width: 1024px){
            display: block;
        }
    }
    .close-link-btn {
        margin-left: 12px;
        color: $color-primary;
        font-size: 13px;
        font-family: $font-primary;
        padding-bottom: 0.2em;
        position: relative;
        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background-color: #000;
        }
    }
    .mobile-sidebar {
        position: fixed;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        bottom: 0;
        padding: 10px 20px;
        width: 286px;
        transform: translateX(-150%);
        background-color: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        transition: transform .4s ease .1ms;
        z-index: 100;
        display: flex;
        flex-direction: column;
        &.show {
            transform: translateX(0);
        }
        .nav-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            li {
                flex: 0 0 48%;
                max-width: 48%;
                margin-bottom: 24px;
            }
            .product-category-box {
                width: 100%;
            }
            .title-box {
                font-size: 12px;
                text-align: center;
                margin-top: 16px;
                display: block;
                color: #00232A;
            }
        }
        .user-menu-list {
            margin-top: auto;
            margin-bottom: 30px;
            li {
                &:not(:last-child) {
                    margin-bottom: 12px;
                }
            }
        }
        .user-menu-list__link {
            display: flex;
            align-items: center;
            color: #00232A;
            font-size: 14px;
            .icon-box {
                min-width: 18px;
                height: 18px;
                display: inline-block;
                margin-right: 4px;
            }
            .user-icon {
                width: 12px;
            }
            .wishlist-icon {
                width: 16px;
            }
            .cart-icon {
                width: 12px;
            }

        }
        .social-menu-list {
            .title {
                font-family: $font-primary-light;
                font-size: 14px;
                color: #00232A;
                margin-bottom: 12px;
            }
            .social-menu {
                display: flex;
                align-items: center;
                li {
                    margin-right: 12px;
                }
            }
            .social-link {
                width: 24px;
                height: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                img {
                    max-height: 18px;
                }
            }
        }
    }
    .logo-box {
        margin-right: 60px;
        flex-shrink: 0;
        @media screen and (max-width: 1200px){
            margin-right: 20px;
        }
        @media screen and (max-width: 1024px){
            margin-left: auto;
            margin-right: auto;
        }
    }
    .logo-link {
        display: block;
    }
    .logo-img {
        max-width: 220px;
        transition: width .5s ease;
        @media screen and (max-width: 1400px){
            max-width: 180px;
        }
        @media screen and (max-width: 1024px){
            max-width: 140px;
        }
        @media screen and (max-width: 768px){
            max-width: 120px;
        }
    }
    .submenu {
        position: absolute;
        top: 100%;
        left: -12px;
        padding-left: 12px;
        padding-right: 12px;
        background-color: #fff;
        min-width: 250px;
        z-index: 11;
        display: none;
        .menu-list {
            padding-top: 12px;
            padding-bottom: 12px;
            display: flex;
            flex-direction: column;
        }
        .menu-item {
            &:not(:last-child) {
                margin-bottom: 10px;
            }
            &.hidden-list {
                display: none;
            }

        }
        .see-all {
            color: $color-primary;
            text-decoration: underline;
        }
        .menu-link {
            color: #000;
        }
    }
    .header-right {
        margin-top: 50px;
        flex-shrink: 0;
        @media screen and (max-width: 1400px){
            margin-top: 0;
        }
        .icon-list {
            display: flex;
            align-items: center;
            li {
                display: flex;
                align-items: flex-end;
                margin-left: 32px;
                @media screen and (max-width: 1200px){
                    margin-left: 20px;
                }
                &.wishlist-box {
                    @media screen and (max-width: 1024px){
                        margin-left: 0;
                    }
                }
                &.user-box {
                    @media screen and (max-width: 1024px){
                        display: none;
                    }
                }


            }
            .search-item {
                @media screen and (max-width: 1024px){
                    display: none;
                }
            }
            .icon-link {
                display: flex;
                align-items: flex-end;
                width: 24px;
                height: 24px;
                .user-icon {
                    width: 16px;
                }
                .cart-icon {
                    width: 18px;
                    @include mq(md, max) {
                        width: 16px;
                    }
                }
                .wishlist-icon {
                    width: 22px;
                    @include mq(md, max) {
                        width: 20px;
                    }
                }
                &.user-info {
                    width: auto;
                    max-width: 120px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    font-size: 14px;
                    color: #0b2e13;
                }
            }
        }
    }
    .menu {
        height: 50px;
        align-self: flex-end;
        @media screen and (max-width: 1024px){
            display: none;
        }
        .menu-list {
            display: flex;
            height: 100%;
        }
        .menu-item {
            margin-right: 32px;
            height: 100%;
            @media screen and (max-width: 1200px){
                margin-right: 16px;
            }
            &.hasSubMenu {
                position: relative;
                > .menu-link {
                    padding-right: 16px;
                    position: relative;
                    height: 100%;
                    &::after {
                        content: '';
                        position: absolute;
                        top: 0.6em;
                        right: 0;
                        background-image: url("/images/main/vector-icons/arrow-down.svg");
                        width: 10px;
                        height: 6px;
                        background-size: cover;
                        background-position: center;
                        background-repeat: no-repeat;
                    }
                }
                &:hover {
                    > .submenu {
                        display: block;
                    }
                }
            }
        }
        .menu-link {
            font-family: $shop-font-family-bold;
            color: #00232A;
            font-size: 16px;
            font-weight: 300;
            &:hover {
                text-decoration: none;
            }
        }
    }
}

//searchForm
.header-right{
    .icon-list {
        margin-bottom: 0;
        &::before {
            display: none;
        }
    }
}
.search-box {
    position: relative;
    .searchForm {
        position: fixed;
        min-height: 120px;
        align-items: center;
        top: 0;
        right: 0;
        left: 0;
        background-color: #fff;
        z-index: 1111;
        padding: 15px;
        display: none;
        @media screen and (max-width: 1400px) {
            min-height: 90px;
        }
        &.show {
            display: flex;
        }
    }
    .search-form {
        margin-bottom: 0;
        flex: 1;
        max-width: 420px;
        position: relative;
    }
    .search-field {
        font-family: $shop-font-family;
        background: #EFEFEF;
        border-radius: 100px;
        padding-left: 40px;
        padding-right: 40px;
        min-height: 50px;
        border: none;
        outline: none;
        width: 100%;
        font-size: 18px;
        @include placeholder {
            color: #C0C0C0;
        }
    }
    .input-group {
        position: relative;
        .input-icon {
            position: absolute;
            margin-top: auto;
            margin-bottom: auto;
            top: 0;
            bottom: 0;
        }
        .search-icon {
            width: 20px;
            height: 20px;
            left: 16px;
        }
        .close-icon {
            right: 16px;
            cursor: pointer;
        }
    }
    .no-results {
        font-family: $font-primary-light;
        color: #C0C0C0;
        font-size: 12px;
        text-align: center;
        margin-bottom: 0;
    }
    .more-box {
        padding: 20px;
    }
    .search-result-product-box {
        .product-box {
            display: flex;
            align-items: flex-end;
            padding-bottom: 20px;
            border-bottom: 1px solid #D9D9D9;
            &:not(:first-child) {
                padding-top: 20px;
            }
            .img-box {
                width: 90px;
                display: block;
            }
            .info-box {
                font-family: $font-primary-light;
                padding: 10px 8px;
                font-size: 12px;
                color: #00232A;
                display: flex;
                flex-direction: column;
                .price {
                    color: rgba(0, 0, 0, 0.70);
                }
            }
        }
    }
    .more-btn {
        font-size: 14px;
        color: #00232A;
    }
    &.fixed {
        .icon-link {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            .search-icon {
                width: 22px;
                @include mq(md, max) {
                    width: 16px;
                    height: 16px;
                }
            }
        }
        .search-form--inner {
            position: relative;
            max-width: 500px;
            width: 100%;
            margin-left: auto;
            margin-right: auto;
            display: flex;
            align-items: center;
        }
        .header-search {
            position: absolute;
            left: 0;
            top: 100%;
            width: 100%;
            background-color: #fff;
        }
        .search-result-box {
            padding-right: 10px;
        }
        .search-result-product-box {
            @extend .scroll-box;
            max-height: 300px;
            padding: 20px;
        }
        .close-link-btn {
            font-size: 18px;
            margin-left: 20px;
            cursor: pointer;
            @include mq(md, max) {
                font-size: 14px;
            }
        }
    }
}
.mobile-search {
    .search-box {
        .search-field {
            min-height: 40px;
            font-size: 16px;
        }
        .search-icon {
            width: 16px;
            height: 16px;
        }
    }
}
.mobile-sidebar {
    .search-box {
        position: relative;
        display: flex;
        align-items: center;
    }
    .header-search {
        @extend .scroll-box;
        position: absolute;
        z-index: 11;
        background-color: #fff;
        top: 37px;
        left: 0;
        right: 0;
        max-height: 75vh;
        overflow-y: auto;
        .search-result-product-box {
            padding-right: 12px;
        }
    }
}

.dropdown-toggle::after {
    display: none;
}
.dropdown-icon-box {
    position: relative;
    .badge-circle {
        position: absolute;
        bottom: -6px;
        left: 14px;
        width: 20px;
        height: 20px;
        background-color: #000;
        border-radius: 50%;
        color: #fff;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    opacity: .4;
    transition: all .25s;
    visibility: hidden;
    z-index: 30;
    &.open {
        left: 0;
        background-color: #000;
    }
}
.menu-opened {
    .mobile-menu-overlay {
        left:0;
        width: 100%;
        background-color: #000;
        visibility: visible;
    }
}

#scroll-top {
    position: fixed;
    right: 100px;
    bottom: 100px;
    display: flex;
    width: 48px;
    height: 48px;
    background-color: #CBE7EB;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1111;
    @media screen and (max-width: 1024px){
        right: 30px;
    }
    &.fixed {
        opacity: 1;
        visibility: visible;
    }
}
.mobile-sidebar {
    .search-box {
        margin-bottom: 15px;
        .search-form-group {
            position: relative;
            margin-right: 20px;
            .search-input {
                border-radius: 4px;
                border: 1px solid #E9E9E9;
                font-size: 14px;
                height: 32px;
                padding-left: 34px;
                width: 178px;
                @include placeholder {
                    font-family: $font-primary-light;
                    color: #C0C0C0;
                }
            }
            .search-icon {
                position: absolute;
                left: 14px;
                top: 0;
                bottom: 0;
                width: 18px;
                height: 18px;
                margin-top: auto;
                margin-bottom: auto;
            }
        }
    }
}
