.header-container {
    background-color: #fff;
    .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
}

.block-header {
    display: inline-block;
    vertical-align: top;
    margin-left: 30px;
    position: relative;

    &:before {
        content: "";
        display: block;
        width: 40px;
        height: 40px;
        background-image: url(../images/icon-image.png);
        background-repeat: no-repeat;
    }

    .block-header-content {
        min-width: 150px;
        display: none;
        position: absolute;
        top: 100%;
        margin-top: 15px;
        right: -10px;
        padding: 15px;
        background-color: #fff;
        border: 1px solid #e5e5e5;
        z-index: 10;
        .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

        &:before {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            background: #fff;
            border-left: 1px solid #ccc;
            border-top: 1px solid #ccc;
            position: absolute;
            top: -7px;
            right: 22px;
            .transform(rotate(45deg));
        }
    }

    &.search-container:before {
        background-position: -182px -444px;
    }

    &.customer-links:before {
        background-position: -245px -444px;
    }

    &.store-setting:before {
        background-position: -363px -444px;
    }

    &:hover .block-header-content {
        display: block;
    }

    &:hover:after {
        content: "";
        display: block;
        position: absolute;
        left: -15px;
        right: -15px;
        height: 40px;
        bottom: -30px;
    }
}

/**
 * Language - currency
 */

.store-setting {
    .block-header-content {
        min-width: 220px;
    }
}

.header-container .language-currency .list-item {
    display: grid;
    grid-template-columns: 50% 50%;

    li {
        margin-left: 5px;
        margin-right: 5px;
        min-width: 130px;
    }
}

.header-container .language-currency {
    .clearfix();

    .switcher {
        margin-bottom: 20px;
    }

    .switcher:first-child {
        margin-top: 10px;
    }

    .switcher-label {
        display: none;
    }

    .heading-switcher {
        color: #222;
        padding-bottom: 0;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .list-item {
        margin: 0 -5px 0;
        padding: 0;
        list-style: none;

        li {
            padding: 0 10px;
            margin-bottom: 10px;
            border: 1px solid transparent;
            background-color: #f5f5f5;
        }

        li:hover {
            border-color: #222;
            background-color: #fff;
        }

        a {
            padding: 5px 0;
            display: block;
            color: #222;
            font-weight: 400;
        }
    }

    .switcher-language {
        .list-item li a span,
        .heading-switcher {
            background-size: 20px auto;
            background-position: left center;
            padding-left: 25px;
        }
    }
}

.header-middle {
    padding: 40px 0;
    background-color: #fff;
    .clearfix();

    .l-content {
        float: left;
        width: 280px;
    }

    .m-content {
        float: left;
        width: calc(~'100% - 560px');
    }

    .r-content {
        float: right;
        width: 280px;
    }

    .r-content .content {
        display: table;
        width: 100%;
    }
}

/**
 * Search core
 */

.search-container {
    &:after {
        display: none !important;
    }
}

.search-container .block-header-content {
    position: absolute;
    top: -5px;
    right: -6px;
    margin: 0;
    background: none;
    border: none;
    padding: 0;
    .box-shadow-none();

    &:before {
        display: none;
    }
}

.search-active .search-container .block-header-content {
    display: block;
}

.header-container .block-search {
    width: unset !important;
    padding: 0 !important;
    position: relative;

    .label,
    .nested {
        display: none !important;
    }

    .block-content {
        border: 1px solid #e5e5e5;
        background-color: #fff;
        width: 300px;
        .border-radius(2px);
        .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    }

    .form.minisearch {
        display: table;
        width: 100%;
    }

    .field.search {
        display: table-cell;
        width: 100%;
        vertical-align: top;
        background-color: #fff;
        .border-radius(20px 0 0 20px);

        .control {
            margin: 0;
            padding: 0;
            border-right: none;
        }

        .input-text {
            background: none;
            position: static;
            border: none;
            margin-top: 0;
            margin-bottom: 0;
            padding-left: 15px;
            width: 100%;
            height: 50px;
            padding-right: 10px;
            .border-radius(0);
        }
    }

    .actions {
        display: table-cell;
        vertical-align: top;

        .action.search {
            background: url(../images/icon-image.png) no-repeat -181px -440px #fff;
            position: static;
            height: 50px;
            width: 46px;
            text-align: center;
            padding: 0;
            opacity: 1 !important;
            color: #222;
            .border-radius(0);
        }

        .action.search:before,
        .action.search span {
            display: none;
        }
    }
}

.search-active .header-container .block-search .block-content {
    opacity: 1;
    visibility: visible;
}

/**
 * Searchbox pro
 */

.header-container .block-search.search-pro {
    .block-content {
        width: 400px;
    }

    .control {
        display: flex;
    }

    .searchbox-cat {
        background-color: transparent;
        padding-left: 20px;
        height: 50px;
        border-width: 0 1px 0 0;
        width: 150px;
        color: #444;
        position: relative;
        .border-radius(0);
    }
}

/**
 * Header links
 */

.header-container .header.links {
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        margin-bottom: 10px;

        &:last-child {
            margin-bottom: 0 !important;
        }
    }

    li a {
        display: block;
        padding: 10px;
        background-color: #f5f5f5;
        text-transform: uppercase;
        text-align: center;
    }

    .greet.welcome {
        display: none;
    }

    .customer-welcome {
        margin-bottom: 0 !important;
    }

    .customer-welcome .customer-menu {
        margin: 0;
        padding: 0;
        position: static;
        display: block;
        .box-shadow-none();

        .header.links {
            padding-bottom: 50px;
        }

        .header.links li {
            margin-bottom: 10px;
        }

        .header.links li a {
            padding: 10px;
        }

        .header.links li.authorization-link {
            margin: 0 !important;

            a {
                padding: 0 !important;
                height: 40px;
                line-height: 40px;
                .border-radius(0);
            }
        }
    }
}

/**
 * Cart header
 */

.header-container .minicart-header {
    display: inline-block;
    vertical-align: top;
    margin-left: 30px;
}

.header-container .minicart-wrapper {
    margin: 0;
    padding: 0;
    float: none;

    .block-minicart {
        border: 1px solid #e5e5e5;
        position: relative !important;
        right: unset;
        left: unset;

        &:before {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            background: #fff;
            border-left: 1px solid #ccc;
            border-top: 1px solid #ccc;
            border-right: none;
            border-bottom: none;
            position: absolute;
            top: -7px;
            right: 22px;
            opacity: 1;
            visibility: visible;
            .transform(rotate(45deg));
        }
    }

    .action.showcart {
        width: 40px;
        height: 40px;
        background: url("../images/icon-image.png") no-repeat -304px -445px;
        position: relative;

        &:before,
        &:after {
            display: none !important;
        }

        .counter.qty {
            display: inline-block !important;
            margin: 0;
            min-width: 24px;
            height: 24px;
            line-height: 20px;
            padding: 0 3px;
            border: 2px solid #fff;
            position: absolute;
            top: -3px;
            right: -3px;
            .border-radius(12px);

            .price-minicart,
            .counter-label {
                display: none !important;
            }
        }
    }

    .mage-dropdown-dialog {
        display: none !important;
        padding-top: 10px;
        right: -10px;
        left: auto;
    }

    &:hover {
        .mage-dropdown-dialog {
            display: block !important;
        }
    }
}

/**
 * Call
 */

.header-container .cms-header {
    display: table-cell;
    padding-left: 30px;
    vertical-align: top;

    .call-title {
        color: #222;
        font-weight: 700;
    }

    p {
        margin: 0;
    }

    .call-us-content {
        white-space: nowrap;
        color: #666;
        text-transform: uppercase;
        padding-left: 50px;
        position: relative;

        &:before {
            width: 40px;
            height: 40px;
            border: 2px solid #666;
            line-height: 36px;
            text-align: center;
            position: absolute;
            top: 0;
            left: 0;
            .border-radius(50%);
            .icomoon(e94c, 22px);
        }
    }

    a {
        color: #666;
    }
}

.header-bottom {
    height: 60px;
    background-color: #fff;
}

/**
 * Desktop menu
 */

.desktop-menu {
    .clearfix();

    .horizontal-block {
        text-align: center;

        .note-msg {
            color: #fff;
            margin: 0;
            height: 50px;
            line-height: 50px;
            padding: 0 10px;
        }
    }

    .horizontal-block .sm_megamenu_menu > li {
        float: none;
        margin-right: 0;
        margin-left: 0;
        text-align: left;

        > a {
            background-color: transparent;
            display: block;
            height: 40px;
            line-height: 40px;
            position: relative;
            text-transform: uppercase;
            color: #222;
            font-weight: 700;
            font-size: 107.69%;
            .transition(.1s);

            .icon_items {
                position: absolute;
                top: -15px;
                right: 0;
                line-height: 1;
            }
        }

        &:not(:last-child) > a {
            margin-right: 30px;
        }

        &.parent-item > a .sm_megamenu_title:after {
            vertical-align: top;
            margin-left: 3px;
            .icomoon(f0d7, 12px);
        }

        > div {
            border: none;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.15));
        }
    }
}

.horizontal-block {
    position: relative;

    .custom-item-menu {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }

    .custom-item-menu ul,
    .custom-item-menu ul li {
        margin-bottom: 0;
    }

    .custom-item-menu ul li {
        display: inline-block;
        margin-left: 25px;

        a {
            display: block;
            height: 60px;
            line-height: 60px;
            color: #222;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 107.69%;
        }
    }
}

/**
 * Css menu
 */

.desktop-menu .navigation {
    background: none;
    font-weight: unset;
    text-align: center;

    .ui-icon {
        display: none !important;
    }

    > ul {
        padding: 0;
    }

    > ul > li {
        margin: 0;
        display: inline-block;
        float: none;
        text-align: left;
    }

    > ul > li.parent > a:after {
        vertical-align: top;
        margin-left: 3px;
        position: relative;
        top: 0;
        .icomoon(f0d7, 12px);
    }

    > ul > li > a {
        font-weight: 700;
        height: 40px !important;
        line-height: 40px !important;
        padding: 0 !important;
        border: none !important;
        text-transform: uppercase;
        font-size: 107.69%;
        color: #222 !important;

        &:before {
            content: "";
            display: block;
            height: 2px;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            opacity: 0;
            .transition(.1s)
        }
    }

    > ul > li:not(:last-child) > a {
        margin-right: 30px;
    }

    .level0 .submenu {
        border: none !important;
        font-weight: 400;
        .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    }

    .level0 .submenu a {
        padding: 10px 20px;
        border: none !important;
    }

    .level0 .submenu .parent > a:after {
        float: right;
        .icomoon(e930, 14px);
    }

    .level0 .submenu li:hover,
    .level0 .submenu li:hover > a {
        background-color: @submenu-desktop-item__hover__background;
    }
}

/**
 * Boxed layout
 */

