/**
 * Header 3 style
 */

.header-style-3 {
    background-color: #fff;
}

.header-top {
    height: 80px;
}

.logo-container {
    float: right;
    width: 240px;
    margin-top: 18px;
}

.right-header-top {
    width: calc(~'100% - 240px');
    display: table;
}

/**
 * Search header
 */

.search-header {
    display: table-cell;
    width: 100%;
    padding-top: 20px;
    vertical-align: top;

    .block-search {
        float: none;
        width: unset;
        margin: 0;
        padding: 0;
        position: relative;

        .control {
            padding: 0;
        }

        .nested {
            display: none;
        }

        .action.search {
            width: 60px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            position: absolute;
            top: 0;
            left: -1px;
            right: auto;
            padding: 0;
            opacity: 1 !important;
            .border-radius(3px 0 0 3px);

            &:before,
            span {
                display: none;
            }

            &:after {
                .icomoon(e954, 18px);
            }
        }
    }

    .input-text {
        background-color: #fff;
        height: 40px;
        border: 1px solid #e5e5e5;
        padding-left: 70px;
        padding-right: 15px;
        .placeholder(#666);
    }

    .search-pro {
        .input-text {
            padding-right: 190px;
        }

        .searchbox-cat {
            position: absolute;
            right: 0;
            top: 0;
            height: 40px;
            border: none;
            width: 167px;
            padding-right: 10px;
            background-color: transparent;
        }

        .control {
            position: relative;
        }

        .control:before {
            content: "";
            display: block;
            background-color: #f9f9f9;
            width: 174px;
            height: 38px;
            position: absolute;
            top: 1px;
            right: 1px;
            pointer-events: none;
            border-left: 1px solid #e5e5e5;
            .border-radius(0 3px 3px 0);
        }
    }
}

/**
 * Header customer block
 */

.customer-container {
    display: table-cell;
    vertical-align: top;
    padding-right: 40px;

    .customer-header {
        background-color: transparent;
        text-align: center;
        height: 80px;
        position: relative;
        .transition(.1s);

        &.header-account,
        &:hover {
            background-color: #f9f9f9;
        }

        .dropdown-customer {
            border-top: 1px solid #e5e5e5;
            background-color: #fff;
            min-width: 100%;
            white-space: nowrap;
            position: absolute;
            top: 100%;
            left: 0;
            padding: 10px 20px;
            display: none;
            z-index: 510;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }

        &:hover {
            .dropdown-customer {
                display: block;
            }
        }

        .header.links {
            list-style: none;
            margin: 0;
            padding: 0;

            li {
                margin: 0;
            }

            li a {
                display: block;
                padding: 5px 0;
            }

            .customer-welcome .customer-menu {
                background: none;
                display: block;
                position: static;
                padding: 0;
                margin: 0;
                min-width: 100%;
                .box-shadow-none();
            }

            .customer-welcome .dashboard {
                display: none;
            }

        }
    }

    .title-customer {
        display: block;
        padding: 20px 17px 0;
    }

    .customer-icon {
        font-size: 20px;
        margin-bottom: 6px;
        color: #222;
        display: block;
    }

    .text-customer {
        text-transform: uppercase;
        font-size: 85.714%;
        color: #222;
        display: block;
        white-space: nowrap;
    }
}

.header-wishlist {
    text-align: center;
    height: 80px;

    .block-title {
        display: block;
        padding: 20px 17px 0;
        height: 80px;
        margin: 0;
        position: relative;

        &:hover {
            background-color: #f9f9f9;
        }

        &:before {
            display: block;
            margin-bottom: 6px;
            color: #222;
            .icomoon(e93f, 20px);
            line-height: 1;
        }

        .wishlist-title {
            text-transform: uppercase;
            font-size: 85.714%;
            color: #222;
            display: block;
            white-space: nowrap;
        }

        .count {
            min-width: 21px;
            padding: 0 3px;
            line-height: 21px;
            height: 21px;
            font-size: 85.714%;
            position: absolute;
            left: 50%;
            margin-left: 2px;
            top: 9px;
            .border-radius(11px);
        }
    }
}

/**
 * Minicart header
 */

.cart-header-container {
    .minicart-wrapper {
        margin: 0;

        .mage-dropdown-dialog {
            border-top: 1px solid #e5e5e5;
            display: none !important;
            left: 0;
            right: auto;
            z-index: 510;
        }

        &:hover {
            .action.showcart {
                background-color: #f9f9f9;
            }

            .mage-dropdown-dialog {
                display: block !important;
            }
        }
    }

    .minicart-wrapper .action.showcart {
        height: 80px;
        padding: 20px 17px 0;
        color: #222;
        text-align: center;

        &:before {
            .icomoon(e958, 20px);
            line-height: 1;
            margin-bottom: 6px;
            color: #222;
            margin-right: -7px;
        }

        .counter.qty {
            display: inline-block !important;
            min-width: 21px;
            height: 21px;
            padding: 0 3px;
            font-size: 85.714%;
            position: absolute;
            line-height: 21px;
            left: 50%;
            margin-left: 6px;
            top: 9px;
            .border-radius(12px);
        }
    }

    .minicart-wrapper .action.showcart .text {
        display: block;
        text-transform: uppercase;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: 85.714%;
        white-space: nowrap;
    }

    .price-minicart {
        display: none;
    }
}

.block-table {
    display: table;
}

.table-cell {
    display: table-cell;
    vertical-align: top;
    padding-right: 1px;
}

.header-bottom {
    border-top: 1px solid #e5e5e5;
    position: relative;
    z-index: 500;
    .box-shadow(0 5px 5px rgba(0, 0, 0, 0.04));
}

/**
 * Vertical menu
 */

.vertical-block {
    width: 240px;
    float: right;
}

.vertical-menu-block {
    .vertical-menu-content {
        border: none;
        margin-top: 12px;
        min-width: 240px;
        .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));

        &:before {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            border-left: 1px solid #eee;
            border-top: 1px solid #eee;
            background: #fff;
            position: absolute;
            top: -6px;
            right: 9px;
            .transform(rotate(45deg));
        }
    }

    .block-title-menu {
        text-transform: uppercase;
        height: 43px;
        line-height: 43px;
        color: #222;
        padding: 0 39px 0 0;
        background: none;
        position: relative;
        .border-radius(3px);

        &:after {
            width: 30px;
            height: 30px;
            line-height: 30px;
            position: absolute;
            right: 0;
            top: 7px;
            .icomoon(e946, 20px);
            .border-radius(50%);
        }
    }

    .sm_megamenu_wrapper_vertical_menu .sm_megamenu_menu {
        padding: 10px 0;
    }

    .sm_megamenu_wrapper_vertical_menu .sm_megamenu_menu > li {
        border: none;

        > div {
            border: none;
            right: 100%;
            left: auto;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }

        > a.sm_megamenu_head {
            padding: 9.5px 20px;
            color: #222;
            margin-left: -1px;
            margin-right: -1px;
            background-color: transparent;
            .transition(.1s);

            &:before {
                content: "";
                display: inline-block;
                vertical-align: middle;
                margin-right: 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 {
    float: right;
    width: calc(~'100% - 240px');
}

.desktop-menu {
    margin-top: -1px;
    position: relative;
}

.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: 43px;
            line-height: 43px;
            .transition(.1s);
        }

        &.parent-item > a .sm_megamenu_title:after {
            margin-right: 3px;
            vertical-align: top;
            .icomoon(e92e, 14px);
        }

        &.parent-item:hover {
            &:before {
                content: "";
                display: block;
                position: absolute;
                left: 0;
                right: 0;
                height: 20px;
                bottom: -15px;
                z-index: 200;
            }

            > a {
                z-index: 9999999999;
            }

            > a:after {
                content: "";
                display: block;
                width: 12px;
                height: 12px;
                border-left: 1px solid #eee;
                border-top: 1px solid #eee;
                transform: rotate(45deg);
                -webkit-transform: rotate(45deg);
                -ms-transform: rotate(45deg);
                position: absolute;
                right: 50%;
                margin-right: -4px;
                bottom: -18px;
                background: #fff;
            }
        }

        > div {
            border: none !important;
            margin-top: 12px !important;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }
    }
}

/**
 * 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;
            }
        }
    }
}

/**
 * Language currency
 */

.language-currency {
    position: absolute;
    left: 0;
    top: 10px;
    z-index: 200;

    .switcher {
        display: inline-block;
        vertical-align: top;
        margin: 0 5px 0 0;

        .switcher-content {
            position: relative;
            background-color: #f5f5f5;
            padding: 0 10px;
            .border-radius(3px);
        }

        .switcher-label {
            display: none;
        }

        .switcher-content {
            .action-switcher {
                height: 24px;
                line-height: 24px;
                color: #222;
                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;
                margin-top: 21px;
                border: none;
                white-space: nowrap;
                min-width: 170px;
                z-index: 200;
                .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));

                &:before {
                    content: "";
                    display: block;
                    width: 12px;
                    height: 12px;
                    border-right: 1px solid #eee;
                    border-top: 1px solid #eee;
                    background: #fff;
                    position: absolute;
                    top: -6px;
                    left: 9px;
                    .transform(rotate(-45deg));
                }

                .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;
            }

            &:hover:before {
                content: "";
                display: block;
                height: 30px;
                position: absolute;
                bottom: -26px;
                right: 0;
                left: 0;
            }
        }

        &.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;
                }
            }
        }
    }
}