$mobile-breakpoint: max-width 767px;
$mobile-desktop-menu: 768px 1140px;

.infotel{
    display: none;
    background: #00BEBE;
    width: 100%;
    height: 40px;

    a{
        color: #fff;
        text-decoration: none;
        float: right;
        margin-right: 20px;
        line-height: 40px;
    }
    
    &:after{
        display: block;
        content: ' ';
        clear: both;
    }
    @include breakpoint($mobile-desktop-menu) {
        display: block;
    } 
    @include breakpoint($mobile-breakpoint) {
        display: block;
    }  
}



#header {
    $header-height: 80px;
    $mobile-header-height: 63px;

    height: $header-height;
    line-height: $header-height;

    @include breakpoint($mobile-breakpoint) {
        height: $mobile-header-height;
        line-height: $mobile-header-height;
    }

    @include breakpoint($mobile-desktop-menu){
        padding: 0 20px;
    }

    .search{
        
        a{
            color: #000;
            text-decoration: none;
        }
        
        @include breakpoint($mobile-desktop-menu) {
            display: none;
        }
        @include breakpoint($mobile-breakpoint) {
            display: none;
        }
    }
        
    .logo {
        width: 184px;
        height: 17px;
        margin-top: ($header-height - 14px) / 2; 
        display: block;
        background-image: url("asset/img/logo.svg");
        @include background-size(contain);
        float: left;

        @include breakpoint($mobile-breakpoint) {
            margin-top: ($mobile-header-height - 14px) / 2;
            margin-left: 25px;
        }
    }

    .sidebar {
        &.scrollable {
            height: 100%;
            overflow-y: auto;

            .wrap {
                min-height: 430px;
                position: relative;
            }
        }

        .menu {
            float: left;
            margin-left: 135px;

            @include breakpoint($mobile-desktop-menu) {
//                margin-left: 45px;
                margin-left: 6px;
                float: right;
            }

            li {
                display: inline;
                margin-right: 30px;
                text-transform: uppercase;

                a {
                    @include link($main-text-color);
                    text-decoration: none;
                }

                &.current-menu-item {
                    a {
                        color: transparentize($main-text-color, .3);
                    }
                }

                &:last-child {
                    margin-right: 0;
                }
                
                @include breakpoint($mobile-desktop-menu) {
                    margin-right: 15px;
                }
            }
        }

        .search {
            float: right;

            input {
                width: 140px;
                border: 1px solid transparent;
                font-size: 12px;
                background-color: #fff;
                padding: 7px;

                @include breakpoint($mobile-desktop-menu){
                    width: 110px;
                }

                @include placeholder {
                    color: $main-text-color;
                }

                &:focus {
                    border: 1px solid #eee;
                }
            }

            button {
                border: 0;
                background-color: transparent;
                height: 15px;
                width: 15px;
                background-image: url("asset/img/header-search.png");
                vertical-align: middle;
                margin-top: -3px;
                cursor: pointer;
            }
        }

        @include breakpoint($mobile-breakpoint) {
            position: fixed;
            top: 0;
            right: -280px;
            width: 280px;
            height: 100%;
            z-index: 3000;
            background-color: #00b9b9;
            @include transition(right .4s);

            .menu {
                margin-top: 55px;
                margin-left: 0;

                li {
                    font-size: 18px;
                    line-height: 48px;
                    display: block;
                    margin-right: 0;
                    margin-left: 32px;

                    a {
                        @include link(#fff);
                    }

                    &.current_page_item {
                        a {
                            color: transparentize(#fff, .3);
                        }
                    }
                }
            }

            .toggle {
                position: absolute;
                top: ($mobile-header-height - 21px) / 2;
                right: 25px;
                width: 23px;
                height: 21px;
                background-image: url("asset/img/menu-toggle-white.png");
            }

            .search {
                position: absolute;
                left: 32px;
                bottom: 32px;
                line-height: normal;

                input {
                    width: 201px;
                    font-size: 14px;
                    color: #fff;
                    background-color: #00b9b9;

                    @include placeholder {
                        color: #fff;
                    }
                }

                button {
                    background-image: url("asset/img/header-search-white.png");
                }
            }
        }

        &.pin {
            right: 0;
        }
    }

    > .toggle {
        display: none;
        float: right;
        width: 23px;
        height: 21px;
        background-image: url("asset/img/menu-toggle.png");
        margin-top: ($mobile-header-height - 21px) / 2;
        margin-right: 25px;

        @include breakpoint($mobile-breakpoint) {
            display: block;
        }
    }
}