/**
 * Header style 4
 */

.header-top {
    background-color: #f5f6fa;
}

/**
 * Language currency
 */

.language-currency .switcher {
    display: inline-block;
    vertical-align: top;
    margin: 0;
    position: relative;

    &:hover .dropdown-switcher {
        display: block !important;
    }

    &:not(:last-child) {
        margin-right: 20px;
    }

    .switcher-label {
        display: inline-block;
        vertical-align: middle;
        height: 44px;
        line-height: 44px;
        position: relative;
        width: auto;
        color: #666;
        font-size: 92.857%;
        top: -1px;

        &:after {
            content: ":";
        }
    }

    .switcher-content {
        display: inline-block;
        vertical-align: middle;
    }

    .switcher-content .action-switcher {
        height: 44px;
        line-height: 44px;
        font-size: 92.857%;

        .heading-switcher span {
            position: relative;
            top: -1px;
        }

        .heading-switcher span:after {
            margin-left: 3px;
            position: relative;
            top: 1px;
            vertical-align: top;
            color: #222;
            .icomoon(e92e, 14px);
        }
    }

    .switcher-content .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;

        }

        .list-item a {
            padding: 13px 0;
            display: block;
            color: #222;
            font-weight: 600;
        }

        .list-item li {
            padding: 0 10px;
            border: 1px solid transparent;
            background-color: #f5f5f5;

            &:not(:last-child) {
                margin-bottom: 10px;
            }

            &:hover {
                border-color: #222;
                background-color: #fff;
            }
        }
    }

    &.switcher-language .switcher-content {
        .action-switcher .heading-switcher {
            padding: 0;
            background: none !important;
        }

        .dropdown-switcher .list-item a span {
            display: block;
            padding-left: 40px;
            background-position: left center;
        }
    }
}

/**
 * Quick links
 */

.action-customer {
    float: right;
}

.action-customer .quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: top;
    .clearfix();

    li {
        margin: 0 28px 0 0;
        float: left;
    }

    li a {
        display: block;
        height: 44px;
        line-height: 44px;
        font-size: 92.857%;
        color: #666;

        &:before {
            vertical-align: top;
            margin-right: 4px;
        }
    }

    li.localtion a:before {
        .icomoon(e945, 14px);
    }

    li.gift-card a:before {
        .icomoon(e93c, 14px);
    }

    li.track-order a:before {
        .icomoon(e97b, 14px);
    }
}

.action-customer .customer-links {
    display: inline-block;
    vertical-align: top;
    background-color: #fff;
    margin-top: 8px;
    .border-radius(3px);

    > .block-content > .header.links {
        margin: 0;
        padding: 0 17px;
        list-style: none;

        > li {
            margin: 0;
            display: inline-block;
        }

        > li:not(:last-child):after {
            content: "/";
            display: inline-block;
            margin: 0 2px;
        }

        > li > a {
            display: inline-block;
            height: 27px;
            line-height: 27px;
            font-size: 92.857%;
            text-transform: uppercase;
            color: #666;
        }
    }

    .customer-welcome:after {
        display: none !important;
    }

    .customer-welcome .dashboard {
        display: inline-block;
        height: 27px;
        line-height: 27px;
        color: #666;
        text-transform: uppercase;
        font-size: 92.857%;
    }

    .customer-welcome .customer-menu {
        right: -17px;
        left: auto;
        margin-top: 9px;
    }

    .customer-welcome:hover:before {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        height: 15px;
        bottom: -12px;
    }
}

/**
 * Logo
 */

.middle-content {
    padding: 35px 0;
    .clearfix();
}

.logo-container {
    width: 280px;
    float: left;
}

.action-middle {
    float: left;
    width: calc(~'100% - 280px');
}

/**
 * Search
 */

.search-header {
    width: 100%;

    .form.minisearch {
        .border-radius(4px);
    }

    .block-search .block-content {
        padding: 5px;
        .border-radius(4px);
    }

    .block-search {
        float: none;
        width: unset;
        margin: 0;
        padding: 0;
        position: relative;

        .control {
            padding: 0;
        }

        .nested {
            display: none;
        }

        .action.search {
            width: 44px;
            height: 36px;
            text-align: center;
            line-height: 36px;
            position: absolute;
            top: 7px;
            right: 7px;
            padding: 0;
            color: #222;
            opacity: 1 !important;

            &:before,
            span {
                display: none;
            }

            &:after {
                .icomoon(e954, 24px);
            }
        }
    }

    .input-text {
        background-color: #fff;
        height: 36px;
        border: none !important;
        padding-right: 50px;
        padding-left: 10px;
        .placeholder(#888);
    }
}

/**
 * Search pro
 */

.search-header .search-pro {
    .control {
        position: relative;

        &:before {
            content: "";
            width: 200px;
            height: 36px;
            display: block;
            position: absolute;
            background: #f5f6fa;
            z-index: 0;
            pointer-events: none;
            top: 0;
            left: 0;
            .border-radius(4px);
        }

        &:after {
            position: absolute;
            left: 174px;
            top: 0;
            height: 36px;
            line-height: 36px;
            color: #888;
            pointer-events: none;
            .icomoon(e925, 16px);
        }
    }

    .searchbox-cat {
        background: none;
        border: none;
        height: 50px;
        position: absolute;
        left: -7px;
        top: -7px;
        width: 206px;
        padding-left: 20px;
        padding-right: 30px;
        color: #222;
    }

    .input-text {
        padding-left: 215px;
    }
}

.block-table {
    display: table;
    width: 100%;

    .search-header {
        display: table-cell;
        vertical-align: top;
        width: 100%;
        padding-right: 70px;
    }

    .table-cell {
        display: table-cell;
        vertical-align: top;
    }
}

/**
 * Wishlist
 */

.header-wishlist {
    margin: 0;

    .block-title {
        display: block;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 46px;
        border: 2px solid #f1f1f1;
        position: relative;
        margin: 0;
        color: #222;
        .border-radius(4px);

        &:hover {
            border-color: #222;
        }

        &:before {
            .icomoon(e93f, 22px);
        }
    }

    .count {
        display: inline-block;
        background-color: #ff456c;
        color: #fff;
        font-size: 85.714%;
        min-width: 22px;
        height: 22px;
        text-align: center;
        line-height: 22px;
        padding: 0 3px;
        position: absolute;
        top: -11px;
        left: -11px;
        .border-radius(11px);
        .box-shadow(0 0 1px 3px #fff);
    }

    .wishlist-title {
        display: none;
    }
}

/**
 * Minicart
 */

.minicart-header {
    margin: 0;
    padding: 0;
}

.minicart-header .minicart-wrapper {
    margin: 0 !important;
    padding: 0 0 0 10px;
    float: none;

    .mage-dropdown-dialog {
        display: none !important;
        padding-top: 10px;
    }

    &:hover .mage-dropdown-dialog {
        display: block !important;
    }

    &:hover .action.showcart {
        border-color: #222;
    }
}

.minicart-header .minicart-wrapper .action.showcart {
    height: 50px;
    padding: 0 20px 0 45px;
    border: 2px solid #f1f1f1;
    position: relative;
    .border-radius(4px);

    &:before {
        display: none !important;
    }

    &:after {
        color: #222;
        position: absolute;
        left: 20px;
        top: 5px;
        .icomoon(e957, 22px);
    }

    .counter-label,
    .price-minicart,
    .text {
        display: none !important;
    }

    .label-number-cart {
        display: inline-block;
    }

    .counter.qty {
        font-weight: 700;
        line-height: 46px;
        display: inline-block !important;
        background: none !important;
        margin: 0;
        padding: 0 0 0 5px;
        position: static;
        width: auto;
        height: auto;
        color: #222;
        white-space: nowrap;
    }
}

.header-bottom {
    height: 70px;
}

/**
 * Megamenu horizontal
 */

.horizontal-block {
    position: relative;
    float: left;
    width: calc(~'100% - 211px');
    padding-left: 30px;
}

.horizontal-menu {
    .sm_megamenu_menu > li {
        height: 70px;
        padding: 15px 0;
        margin-right: 5px;

        > div {
            display: none;
            border: none !important;
            top: 100% !important;
            .box-shadow(0 0 15px rgba(0, 0, 0, 0.1));
        }

        &:hover > div {
            display: block;
        }

        &.parent-item > a .sm_megamenu_title:after {
            margin-left: 3px;
            .icomoon(e92e, 14px);
        }
    }

    .sm_megamenu_menu > li > a {
        background-color: transparent;
        display: block;
        height: 40px;
        line-height: 40px;
        padding: 0 20px;
        text-transform: uppercase;
        .border-radius(3px);
    }

    .sm_megamenu_menu > li:hover > a,
    .sm_megamenu_menu > li.sm_megamenu_actived > a {
        background-color: rgba(0, 0, 0, 0.15);
    }
}

.phone-header {
    position: absolute;
    top: 15px;
    right: 0;

    a {
        display: inline-block;
        padding: 0 20px;
        height: 40px;
        line-height: 40px;
        background-color: rgba(0, 0, 0, 0.15);
        .border-radius(3px);

        &:before {
            margin-right: 9px;
            .icomoon(e94b, 14px);
        }
    }
}

/**
 * Megamenu vertical
 */

.vertical-block {
    width: 211px;
    float: left;
    position: relative;

    &:before,
    &:after {
        content: "";
        display: block;
        width: 1px;
        height: 46px;
        position: absolute;
        top: 12px;
        opacity: 0.25;
    }

    &:before {
        background-color: #fff;
        right: 0;
    }

    &:after {
        background-color: #000;
        right: 1px;
    }

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

    .title-vertical {
        height: 70px;
        position: relative;
        padding-left: 46px;
        padding-top: 17px;
    }

    .title-vertical:before {
        display: block;
        width: 36px;
        height: 36px;
        text-align: center;
        line-height: 36px;
        background-color: #fff;
        position: absolute;
        top: 18px;
        left: 0;
        .border-radius(3px);
        .icomoon(e946, 24px);
    }

    .title-small {
        font-size: 85.714%;
    }

    .title-big {
        text-transform: uppercase;

        &:after {
            margin-left: 3px;
            .icomoon(e92e, 14px);
        }
    }

    &:hover .vertical-menu-content {
        display: block !important;
    }
}

.vertical-menu-block {
    .vertical-menu-content {
        border: none;
        min-width: 240px;
        .box-shadow(0 0 10px rgba(0, 0, 0, 0.1));
    }

    .block-title-menu {
        text-transform: uppercase;
        height: 43px;
        line-height: 43px;
        color: #222;
        padding: 0 0 0 39px;
        background: none;
        position: relative;
        .border-radius(3px);

        &:after {
            width: 30px;
            height: 30px;
            line-height: 30px;
            position: absolute;
            left: 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;
            .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;
                right: -3px;
                top: 0;
                bottom: 0;
                display: none;
            }

            &:hover:after {
                display: block;
            }

            > a:after {
                float: right;
                margin-right: -4px;
                .icomoon(e930, 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: right;
            .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;
        }
    }
}

/**
 * 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: right;
                    margin-right: -4px;
                    .icomoon(e930, 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 {
                left: 100% !important;
                top: 0 !important;
                right: auto !important;
            }
        }
    }
}


