/**
 * Header 2 style
 */
.header-top {
    height: 42px;
    background-color: #f5f5f5;

    .customer-action {
        padding-top: 10px;

        .greet.welcome {
            display: inline-block;
            vertical-align: top;
            color: #666;
            font-size: 92.85%;
        }

        .header-support {
            display: inline-block;
            vertical-align: top;

            ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }

            ul li {
                margin: 0;
                display: inline-block;
                vertical-align: top;
                color: #bbb;
                font-size: 92.85%;

                &:not(:last-child) {
                    margin-left: 26px;
                }

                &:before {
                    vertical-align: middle;
                    position: relative;
                    top: -2px;
                    margin-left: 6px;
                }

                &.email-header:before {
                    .icomoon(e944, 14px);
                }

                &.phone-header:before {
                    .icomoon(e94c, 14px);
                }
            }
        }
    }
}

/**
 * Language currency
 */

.language-currency {
    float: left;

    .switcher {
        display: inline-block;
        vertical-align: top;
        margin: 0;
        position: relative;

        &:not(:first-child) {
            margin-right: 15px;
            padding-right: 18px;

            &:before {
                content: "";
                display: block;
                width: 1px;
                height: 10px;
                position: absolute;
                right: 0;
                top: 50%;
                background-color: #ddd;
                margin-top: -5px;
            }
        }

        .switcher-label {
            display: none;
        }

        .switcher-content {
            .action-switcher {
                height: 42px;
                line-height: 42px;
                font-size: 92.85%;
                color: #666;
                text-transform: uppercase;

                .heading-switcher span {
                    position: relative;
                    top: -1px;

                    &:after {
                        margin-right: 5px;
                        .icomoon(e92e, 12px);
                    }
                }
            }

            .dropdown-switcher {
                display: none;
                position: absolute;
                left: 0;
                right: auto;
                top: 100%;
                background: #fff;
                padding: 10px;
                white-space: nowrap;
                min-width: 170px;
                z-index: 200;
                .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

                .list-item {
                    margin: 0;
                    padding: 0;
                    list-style: none;
                    text-transform: uppercase;

                    li {
                        padding: 0 10px;
                        border: 1px solid transparent;
                        background-color: #f5f5f5;

                        &:not(:last-child) {
                            margin-bottom: 10px;
                        }

                        &:hover {
                            border-color: #222;
                            background-color: #fff;
                        }
                    }

                    a {
                        padding: 13px 0;
                        display: block;
                        color: #222;
                        font-weight: 600;
                    }
                }
            }

            &:hover .dropdown-switcher {
                display: block;
            }
        }

        &.switcher-language {
            .switcher-content {
                .action-switcher .heading-switcher {
                    padding-right: 28px;
                    background-position: right center;
                    background-size: 21px auto;
                }

                .dropdown-switcher .list-item a span {
                    display: block;
                    padding-right: 40px;
                    background-position: right center;
                }
            }
        }
    }
}

.header-middle {
    background-color: #fff;
    padding: 40px 0;
}

.middle-content {
    .clearfix();

    .logo-container {
        float: right;
        width: 270px;
    }

    .right-header {
        float: left;
        width: calc(~'100% - 270px');
        padding-right: 30px;
    }
}

.desktop-menu {
    position: relative;
}

/**
 * Vertical css menu
 */

.vertical-menu-block {
    .navigation {
        background: none;
        font-weight: normal;

        > ul {
            padding: 10px 0 !important;
        }

        ul {
            padding: 0;

            .ui-menu-icon {
                display: none !important;
            }

            .parent {
                > a:after {
                    float: left;
                    margin-left: -4px;
                    .icomoon(e92f, 14px);
                }
            }
        }

        li.level0 {
            margin: 0;
            display: block;

            > a {
                display: block !important;
                color: #222;
                padding: 9.5px 20px;
                background-color: transparent;
                margin-left: -1px;
                margin-right: -1px;
                line-height: unset;
            }

            ul {
                background: #fff;
                border: none;
                font-weight: normal;
                .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

                li {
                    a {
                        padding: 9.5px 20px;
                    }
                }
            }

            > ul {
                right: 100% !important;
                top: 0 !important;
                left: auto !important;
            }
        }
    }
}

.search-header {
    display: table-cell;
    vertical-align: top;
    width: 100%;
    padding-left: 50px;

    .form.minisearch {
        .border-radius(4px);
    }

    .block-search {
        float: none;
        width: unset;
        margin: 0;
        padding: 0;
        position: relative;

        .control {
            padding: 0;
        }

        .nested {
            display: none;
        }

        .action.search {
            width: 60px;
            height: 44px;
            text-align: center;
            line-height: 44px;
            position: absolute;
            top: 0;
            left: -2px;
            right: auto;
            padding: 0;
            color: #222;
            opacity: 1 !important;
            .border-radius(4px 0 0 4px);

            &:before,
            span {
                display: none;
            }

            &:after {
                .icomoon(e954, 18px);
            }
        }
    }

    .input-text {
        background-color: #fff;
        height: 40px;
        border: none !important;
        padding-left: 45px;
        padding-right: 15px;
        .placeholder(#666);
    }
}

.block-right {
    display: table-cell;
    vertical-align: top;
    padding-right: 55px;
    padding-top: 2px;
    white-space: nowrap;
    position: relative;

    &:before {
        color: #ccc;
    }

    .top-title {
        color: #222
    }

    .block-content {
        color: #aaa;
        font-size: 92.857%;

        > .header.links {
            margin: 0;
            padding: 0;
            list-style: none;

            > li {
                display: inline-block;
                vertical-align: top;
                margin: 0;

                &:not(:last-child):after {
                    display: inline-block;
                    vertical-align: top;
                    content: "/";
                    margin: 0 3px;
                }

                &.customer-welcome:after {
                    display: none;
                }

                > a {
                    color: #aaa;
                }
            }
        }
    }

    &.block-account:before {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        line-height: 40px;
        text-align: center;
        border: 2px solid #eee;
        color: #222;
        .icomoon(e95e, 22px);
        .border-radius(4px);
    }
}

.right-content {
    float: left;
    display: table;
    width: 100%;
    .clearfix();
}

.minicart-header {
    display: table-cell;
    vertical-align: top;
}

.minicart-header .minicart-wrapper {
    margin: 0 50px 0 0 !important;
    padding: 0 !important;

    .action.showcart {
        position: relative;
        padding-right: 57px;
        height: 44px;

        .subtotal .label,
        &:before {
            display: none !important;
        }

        &:after {
            position: absolute;
            right: 0;
            top: 0;
            color: #222;
            width: 44px;
            height: 44px;
            line-height: 40px;
            border: 2px solid #eee;
            .icomoon(e958, 22px);
            .border-radius(4px);
        }

        .text {
            width: auto;
            height: auto;
            position: static;
            color: #222;
        }

        .counter.qty {
            display: block !important;
            min-width: 21px;
            padding: 0 3px;
            height: 21px;
            line-height: 21px;
            font-size: 85.714%;
            position: absolute;
            top: -10px;
            right: 32px;
            margin: 0;
            z-index: 5;
            background-color: #ff4157;
            color: #fff;
            .border-radius(11px);
        }

        .price-container .price {
            font-size: 100%;
            color: #aaa;
        }
    }

    .mage-dropdown-dialog {
        display: none !important;
        left: 0;
        right: auto;

        .block-minicart {
            margin-top: 10px;
        }
    }

    &:hover {
        .mage-dropdown-dialog {
            display: block !important;
        }
    }
}

/**
 * Search pro
 */

.search-header .search-pro {
    &:before {
        content: "";
        display: block;
        width: 1px;
        height: 40px;
        background: #ddd;
        position: absolute;
        top: 2px;
        right: 156px;
    }

    .searchbox-cat {
        background-color: transparent;
        border: none;
        height: 40px;
        position: absolute;
        right: 0;
        width: 150px;
        padding-right: 10px;
        color: #222;
    }

    .input-text {
        padding-right: 170px;
    }
}

.header-bottom {
    padding-bottom: 10px;
    background-color: #fff;

    &.menu-on-top {
        background-color: #fff;
        padding-top: 10px;
    }
}

/**
 * Vertical menu
 */

.vertical-block {
    width: 270px;
    float: right;
}

.vertical-menu-block {
    .vertical-menu-content {
        border-color: #e5e5e5;
        border-top: none;
        margin-top: 12px;
    }

    .block-title-menu {
        text-transform: uppercase;
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        background-color: #f5f5f5;
        color: #222;
        position: relative;
        .border-radius(3px);

        &:after {
            float: left;
            height: 40px;
            line-height: 40px;
            .icomoon(e946, 24px);
        }
    }

    .sm_megamenu_wrapper_vertical_menu .sm_megamenu_menu {
        padding: 10px 0;
    }

    .sm_megamenu_wrapper_vertical_menu .sm_megamenu_menu > li {
        border: none;

        > div {
            margin-right: 1px !important;
            right: 100%;
            left: auto;
            border: none;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }

        > a.sm_megamenu_head {
            padding: 9.5px 20px;
            color: #222;
            margin-right: -1px;
            margin-left: -1px;
            background-color: transparent;
            .transition(.1s);

            &:before {
                content: "";
                display: inline-block;
                vertical-align: middle;
                margin-left: 4px;
                width: 5px;
                height: 5px;
                background: url("../images/icon-images.png") no-repeat -109px -6px;
            }
        }

        &.parent-item {
            &:after {
                content: "";
                width: 5px;
                position: absolute;
                left: -3px;
                top: 0;
                bottom: 0;
                display: none;
            }

            &:hover {
                &:after {
                    display: block;
                }
            }

            > a:after {
                float: left;
                margin-left: -4px;
                .icomoon(e92f, 14px);
            }
        }

        &:hover {
            > a.sm_megamenu_head:before {
                background-position: -109px -11px;
            }
        }
    }

    .more-w .more-view {
        padding: 14px 20px;
        color: #222;
        border-top: 1px solid #e5e5e5;

        &:after {
            float: left;
            .icomoon(e950, 14px);
        }

        &.open {
            &:after {
                .icomoon(e978, 14px);
            }
        }

        &:hover {
            background-color: #f7f7f7;
        }
    }

    &:hover {
        .block-title-menu {
            &:before {
                content: "";
                display: block;
                position: absolute;
                left: 0;
                right: 0;
                bottom: -13px;
                height: 15px;
            }
        }
    }
}

/**
 * Horizontal menu
 */

.horizontal-block {
    padding-right: 30px;
    float: right;
    width: calc(~'100% - 270px');
}

.sm_megamenu_wrapper_horizontal_menu .sm_megamenu_menu {
    .clearfix();

    > li {
        float: right;
        margin: 0 0 0 1px;

        > a {
            background-color: transparent;
            padding: 0 20px;
            text-transform: uppercase;
            height: 40px;
            line-height: 40px;
            .transition(.1s);
            .border-radius(3px);
        }

        &.parent-item > a .sm_megamenu_title:after {
            margin-right: 3px;
            .icomoon(e92e, 14px);
        }

        &.parent-item:hover {
            &:before {
                content: "";
                display: block;
                position: absolute;
                left: 0;
                right: 0;
                height: 20px;
                bottom: -15px;
                z-index: 200;
            }
        }

        > div {
            border: none !important;
            margin-top: 12px !important;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }
    }
}

.cms-index-index.header-1-style .sm_megamenu_wrapper_horizontal_menu .sm_megamenu_menu > li.home-item > a {
    background-color: rgba(0, 0, 0, 0.1);
}

/**
 * Layout boxed
 */

.layout-boxed {
    .header-top {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}
