﻿header {
    width: 100%;
    min-height: 80px;
    position: fixed;
    top: 35px;
    left: 0;
    z-index: 9999;
    /*-webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    -ms-transition: height 0.3s;
    -o-transition: height 0.3s;*/
    transition: height 0.3s;
    transition: all ease-in-out .5s;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px -2px rgba(0,0,0,.20);
    -moz-box-shadow: 0 2px 5px -2px rgba(0,0,0,.20);
    -webkit-box-shadow: 0 2px 5px -2px rgba(0,0,0,.20);
}

    header img {
        transition: all ease-in-out .5s;
    }

    header .logo {
        display: block;
        transition: all ease-in-out .5s;
        height: 80px;
        padding: 5px 0;
        margin: 0 auto;
        position: relative;
    }

    header .logosmall {
        display: none;
    }

    header.smaller {
        min-height: 65px;
        background: rgba(255, 255, 255, 1);
        top: 0 !important;
        /*transition: all ease;
        -webkit-animation-name: sliding;
        -webkit-animation-duration: 4s;
        animation-name: sliding;
        animation-duration: 4s;*/
        transition: all ease-in-out .5s;
    }


        header.smaller .logo {
            display: none;
        }

        header.smaller .logosmall {
            top: 10px;
            /*padding: 5px;*/
            display: block;
            display: inline-block;
            -webkit-transition: all ease-in-out .5s;
            -moz-transition: all ease-in-out .5s;
            -ms-transition: all ease-in-out .5s;
            -o-transition: all ease-in-out .5s;
            transition: all ease-in-out .5s;
            height: 60px;
            z-index: 9999 !important;
            position: relative;
        }

        header.smaller .cd-search {
            top: 80px;
        }

/* Safari 4.0 - 8.0 */
@-webkit-keyframes sliding {
    0% {
        top: 40px;
    }

    5% {
        top: 30px;
    }

    10% {
        top: 20px;
    }

    25% {
        top: 10px;
    }

    50% {
        top: 0px;
    }

    75% {
        top: 0px;
    }

    100% {
        top: 0px;
    }
}

/* Standard syntax */
@keyframes sliding {
    0% {
        top: 40px;
    }

    5% {
        top: 0px;
    }

    10% {
        top: 0px;
    }

    25% {
        top: 0px;
    }

    50% {
        top: 0px;
    }

    75% {
        top: 0px;
    }

    100% {
        top: 0px;
    }
}


/* =Footer
-------------------------------------------------------------- */
/* =Extras
-------------------------------------------------------------- */
.clearfix:after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}

/* =Media Queries
-------------------------------------------------------------- */
@media all and (max-width: 980px) {
    /* =Header
  -------------------------------------------------------------- */

    header {
        min-height: 60px;
    }

        /*header .logo {
            display: block;
            float: none;
            margin: 0 auto;
            height: 45px;
            line-height: 45px;
            text-align: center;
            padding: 0 0 8px;
            margin-top: -15px;
            top: 10px;
        }*/

        header.smaller {
            min-height: 65px;
        }

            header.smaller .logo {
                height: 55px;
                line-height: 35px;
                font-size: 20px;
            }

    .stick_login_cart {
        top: 0;
    }



    /*header.smaller .cd-header-buttons li {
  background:rgb(240, 240, 240) !important;
}*/
}

@media all and (max-width: 1024px) {

    header.smaller .logosmall {
        height: 75px;
        margin: 5px 0;
        /*margin-right:70%;*/
    }

    .cd-search-trigger span::before, .cd-search-trigger span::after {
        background: #000 !important;
    }

    .cd-search-trigger::before {
        border-color: #000 !important;
    }

    .cd-search-trigger::after {
        background: #000 !important;
    }
}

@media only screen and (min-width:320px) and (max-width:1024px) {
    /*header .cd-header-buttons {
        top: -45px;
    }

    header.smaller .cd-header-buttons {
        top: -85px;
    }

    .cd-header-buttons {
        left: 10px !important;
    }*/

}

@media only screen and (min-width:767px) and (max-width:980px) {

    header .logo {
        left: 0px;
        height: 60px;
    }

    /*.cd-search-trigger::before {
        left: 6px;
    }*/

    .cd-header-buttons {
        top: 5px;
        right: 10px;
    }

    header.smaller .logosmall {
        top: 0px;
        left: 0px;
        height: 50px;
    }

    header.smaller .cd-header-buttons {
        top: 10px;
    }

    header.smaller .cd-search {
        top: 60px;
    }

    .cd-search {
        top: 60px;
    }
    .cd-primary-nav, .cd-primary-nav ul {
        right: 0;
    }
}

@media only screen and (min-width:320px) and (max-width:480px) {
    /*header {
        min-height: 80px;
    }*/

    /*header .logo {
            margin-top: 15px;
        }*/

    /*header .cd-header-buttons {
            top: -75px;
        }*/

    header.smaller .logosmall {
        top: 0;
        left: 0;
        height: 45px;
        /*margin-top: 30px;*/
    }

    /*header .logo {
        left: 10px;
    }*/

    header.smaller .cd-search {
        top: 65px;
    }

    .cd-search-trigger::before {
        left: 20px;
    }

    .logo_header .user_section p {
        width: inherit;
    }

    .cd-primary-nav, .cd-primary-nav ul {
        right: 0;
    }
}

@media only screen and (min-width:990px) and (max-width:1180px) {
    header.smaller .logosmall {
        height: 50px;
    }

    /*header .logo {
        left: 35px;
    }*/

    header.smaller .logosmall {
        top: 2px;
        left: 0px;
    }

    header .cd-header-buttons {
        top: 20px;
        right: 7px;
    }

    header.smaller .cd-header-buttons {
        top: 10px;
    }
    .cd-primary-nav, .cd-primary-nav ul {
        right: 0;
    }
}
