/*!==========================================================================
   Menu Bar
   ========================================================================== */
.primary-menu{
    .nav-menu{
        .children{
            padding:0;
        }
    }
}

.sticky-header{
    .nav-menu{
        .children{
            padding:0;
        }
    }
}

.header-logo-container {
    .normal_logo {
        display: block;
    }
    .retina_logo {
        display: none;
    }
}
.sticky-header {
    .normal_logo {
        display: block;
    }
    .retina_logo {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .header-logo-container .normal_logo,
    .sticky-header .normal_logo {
        display: inline-block;
    }
    .container-header {
      display: table;
      width: 100%;
    }
    .header{
        #righttopcolumn{
            display: table-footer-group;      
        }
        .woocommerce-menu{
            li{
                &:last-child{
                    border-bottom: none;
                }
            }
        }
    }
    .title-container {
      display: table-header-group;
    }
    .woocommerce-menu{
        .dd-options{
            li:last-child{
                border-bottom: none;
                border-color: transparent;
                margin-bottom: 0;
            }
        }
    }
    #wrapper{
        .primary-menu{
            .mean-nav.link-effect{
                > ul.nav-menu{
                    margin-bottom: 20px;
                }
            }
            .link-effect{
                a{
                    line-height: 1;
                    vertical-align: top;
                }
            }
        }
    }
}

#header.sticky-header {
    background: rgba(242, 242, 242, 0.97) none repeat scroll 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
    display: none;
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 99998;
}

.menu-header {
    @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 0 2px rgba(255, 255, 255, 0.3) inset, 0 0 10px rgba(0, 0, 0, 0.1) inset, 0 1px 2px rgba(0, 0, 0, 0.1));
    background: #f5f5f5;
    border-color: #e0dddd;
    border-style: solid;
    border-width: 1px;
    color: #c1c1c1;
    font-size: 14px;
    text-shadow: 0 1px 0 $full-white-colour;
    float: left;
    display: block;
    width: 100%;
}

.menu-back {
    clear: both;
    background-repeat: repeat-y;
    @include box-shadow(0 1px 1px rgba(0, 0, 0, .05));
}

ul.nav-menu {
    width: 100%;
    margin-bottom: 0;
    li{
        &:first-child{border-left: none;}
        &:last-child{border-right: none;}
    }
}

ul.nav-menu,
ul.nav-menu * {
    list-style: none;
}


/* Hides items under top menu */
ul.nav-menu {
    ul{
        position: absolute;
        z-index: 9999;
        /* left offset of submenus need to match (see below) */
    }
}


/* Hides all sub items (4 levels deep) */
ul.nav-menu li:hover li ul,
ul.nav-menu li.nav-hover li ul,
ul.nav-menu li li:hover li ul,
ul.nav-menu li li.nav-hover li ul,
ul.nav-menu li li li:hover li ul,
ul.nav-menu li li li.nav-hover li ul {
    top: -999em;
}


/* On :hover, displays all sub items (4 levels deep) */
ul.nav-menu li li:hover ul,
ul.nav-menu li li.nav-hover ul,
ul.nav-menu li li li:hover ul,
ul.nav-menu li li li.nav-hover ul,
ul.nav-menu li li li li:hover ul,
ul.nav-menu li li li li.nav-hover ul {
    /* match .nav ul width */
    top: 0px;
}



ul.nav-menu {
    padding: 0px 0px 2px 0px;
    ul{
        border: 1px solid #ccc;
        @include box-shadow(0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 0 2px rgba(255, 255, 255, 0.3) inset, 0 0 10px rgba(0, 0, 0, 0.1) inset, 0 1px 2px rgba(0, 0, 0, 0.1));
        li{
            a{
                word-wrap: break-word;
                font-size: .9em;
                font-weight: normal;
                &:hover{
                    border-top-color: #ccc;
                }
            }
        }
    }
    li{
        a{
            padding: 18px 10px;        
        }
        &:hover{
            > a{
               text-decoration: none; 
            }
        }
    }
    a{
        @include transition(all 0.1s ease-in);
        display: block;
        position: relative;
        padding: 8px 10px;
        color: #c1c1c1;
        text-shadow: 1px 1px 0px $full-white-colour;
        font: 15px/1.5 "Roboto", arial, sans-serif;
    }
}

ul.nav-menu li:hover ul,
ul.nav-menu li.nav-hover ul {
    z-index: 999999;
    @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1), 1px 1px 0 rgba(255, 255, 255, 0.9) inset);
}

ul.nav-menu li.current-menu-ancestor li.current-menu-item > a,
ul.nav-menu li.current-menu-ancestor li.current-menu-parent > a {
    border-top-color: #aaa;
    text-decoration: none;
}

ul.nav-menu .sf-sub-indicator {
    position: absolute;
    z-index: 999;
    right: 0.5em;
    top: 45%;
    width: 10px;
    height: 10px;
    overflow: hidden;
}

ul.nav-menu a::after {
    content: ' ';
    font-family: IcoMoon;
    font-size: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

ul.nav-menu .sf-with-ul:after {
    content: '\e917';
    font-family: IcoMoon;
    margin-left: 5px;
}

ul.nav-menu li ul .sf-sub-indicator {
    top: 41%;
}

ul.nav-menu ul.sub-menu .sf-with-ul:after {
    content: '\e919';
    font-family: IcoMoon;
    position: absolute;
    right: 1.6em;
    top: 10%;
    width: 5px;
    font-size: 7px;
}



ul.nav-menu li.current-menu-item,
ul.nav-menu li.current-menu-ancestor,
ul.nav-menu li:hover {
    border-right-color: #ddd;
}

ul.nav-menu li li a,
ul.nav-menu li li li a,
ul.nav-menu li li li li a {
    padding: 10px;
}

ul.nav-menu li li,
ul.nav-menu li li li,
ul.nav-menu li li li li {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #F0F0F0;
}

ul.nav-menu li a.sf-with-ul {
    padding-right: 25px;
}

.sticky-header ul.nav-menu .sf-with-ul:after {
    content: '\e917';
    margin-left: 5px;
}


/* Menu bugfix */

.ie7 .nav:hover {
    visibility: inherit;
    /* fixes IE7 'sticky bug' */
}


body #header.sticky {
    @include animation(fadein .5s);
}

/* ======================== Menu effect sticky menu ======================== */

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Firefox < 16 */

@-moz-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Safari, Chrome and Opera > 12.1 */

@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Internet Explorer */

@-ms-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* Opera < 12.1 */

@-o-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body.admin-bar #header.sticky-header {
    top: 32px;
}

body #header.sticky-header.sticky {
    display: block;
}

body #header.sticky-header {
    img#logo-image{
        margin-top: 8px;
        margin-bottom: 8px;
        vertical-align: middle;
        height: auto;
        line-height: 65px;
    }
}

body #header.sticky-header{
    .nav{
        ul.nav-menu{
            ul{
                li{
                    a{
                       padding-top: 3px;
                       padding-bottom: 3px;
                    }
                }
            }
        }
    }
    .logo-url-text{
        margin-top: 10px;
    }
}



#wrapper {
    .dd-container{
        .dd-select{
            height: auto;
            border: none;        
        }
        .dd-selected-text{
            margin: 8px 0;
            cursor: pointer;
        }
    }
}

.new-top-menu .top-menu .dd-container {
    width: 100%;
}

.top-menu-social {
    margin: 15px 0 5px;
    overflow: hidden;
}

a:hover,
a:focus {
    color: #0bb697;
}

.center-menu {
    ul.nav-menu{
        li{
            text-align: left;        
        }
    }
}

.center-menu {
    text-align: center;
}

.h4-menu.center-menu {
    text-align: left;
}

form.top-searchform {
    margin: 0px;
    background: #273039;
}

.top-searchform #search-text-box #search_label_top {
    color: #888;
}

.center-menu.custom-center .menu-short-menu-1-container {
    text-align: center;
}

.center-menu .menu-short-menu-1-container {
    text-align: left;
}

.top-menu .sub-menu,
.primary-menu .sub-menu {
    display: none;
}

ul.nav-menu li ul {
    opacity: 0;
}

ul.nav-menu li.nav-hover ul {
    opacity: 1;
}

#wrapper ul.nav-menu li ul {
    border: 0 none;
    @include box-shadow(0 0 0 0);
}

#wrapper {
    .primary-menu{
        .link-effect{
            a{
                line-height: 2.5em;
                overflow: hidden;
                padding: 8px 12px 8px 10px;            
            }
            .sub-menu{
                a{
                    height: auto;
                    line-height: 1.9em;
                    padding: 4px 10px; 
                }
            }
        }
    }
}

#header.sticky-header {
    .link-effect{
        a{
            line-height: 2.5em;
            overflow: hidden;
            padding: 8px 12px;  
        }
    }
}

.header_v0 {
    .nav-menu{
        .sub-menu{
            margin-top: -1px;
            .sub-menu{
                margin-top: 0;
            }        
        }
    }
    .link-effect{
        .sub-menu{
            a{
                height: auto;
                line-height: 1.9em;
                padding: 4px 10px 0;  
            }
        }
    }
}









/*!==========================================================================
   Responsive
   ========================================================================== */
        /* webhook for chrom and safari browser */
        @media only screen and (-webkit-min-device-pixel-ratio:0) {
            ul.nav-menu {
                float: left;
            }
        }

        @media only screen and (max-width: 768px) {
            .header-logo-container .normal_logo,
            .sticky-header .normal_logo {
                display: inline-block;
            }
            ul.nav-menu {
                ul.sub-menu{
                    .sf-with-ul{
                        &::after{
                            top: 10px;
                        }
                    }
                }
            }
        }

        @media only screen and (min-width: 1200px) {
            div#search-text-box {
                margin-right: 20px;
            }
        }

        @media only screen and (min-width: 769px) {
            ul.nav-menu {
                ul{
                    ul{
                        left: 14em;
                    }
                }
            }
            #wrapper {
                .evolve_mobile_menu{
                    display: none !important;
                }
                .link-effect{
                    li{
                        a{
                            overflow: hidden;
                            padding: 8px 10px;
                            line-height: 2.5em;
                            display: block; 
                        }
                    }
                    .sub-menu{
                        a{
                            text-align: left;
                        }
                    }
                }
            }
        }