header {
    background: white;
    color: #333333;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-bottom: 1px solid #dc002e;
}

header .header-actions {
    position: absolute;
    right: 0;
    top: 0;
    border-bottom: 1px solid #cdcdcd;
    padding: 10px 15px 0 0;
}

header .header-actions > .language-switch {
    width: 60px;
    padding: 0;
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

header .header-actions > .language-switch > button {
    padding: 5px 10px !important;
    height: auto !important;
}

header .header-actions > .language-switch > .dropdown-menu {
    margin-left: 0 !important;
    min-width: 60px !important;
    width: 60px;
    padding: 2px 0px;
}

header .header-actions > .language-switch > .dropdown-menu > .inner {
    width: 60px;
}

header .header-actions > .language-switch > .dropdown-menu > .inner .dropdown-menu {
    width: 60px;
    min-width: 60px;
}

header .header-actions > .language-switch .bootstrap-select .dropdown-menu.inner > li > a {
    padding: 1px 5px 1px 5px;
}

header .header-actions .bootstrap-select .btn.dropdown-toggle .bs-caret:before,
header .header-actions .bootstrap-select .btn.dropdown-toggle .bs-caret:after {
    background-size: 100%;
    width: 10px;
    height: 5px;
    top: -3px;
    right: 0;
}

.header-actions ul {
    padding: 0;
    list-style: none;
    display: inline-block;
}

.header-actions ul li {
    display: inline-block;
}

.header-actions ul li,
.header-actions ul li a {
    font-size: 12px;
}

header .login {
    padding: 0;
    position: relative;
    font-size: 12px;
    display: inline-block;
    color: #333333;
    transition: 0.3s;
}

header .login:hover,
header .login:focus {
    color: #dc002e;
}

header .logo {
    width: 200px;
    height: 96px;
    display: inline-block;
    float: left;
    transition: 0.3s;
}

header .logo .navbar-toggle {
    display: none !important;
}

header .search {
    height: 100px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

header .search a {
    border: none;
    height: 32px;
    width: 32px;
    padding: 0 15px;
    border-radius: 0;
    cursor: pointer;
}

header .search a .glyphicon-search:before,
header .search a .glyphicon-search:after {
    content: "";
    background: url("/static/img/icon_zoom.png") no-repeat;
    width: 19px;
    height: 19px;
    display: block;
    position: absolute;
    top: -13px;
    left: -8px;
    transition: 0.3s;
}

header .search a .glyphicon-search:before {
    background: url("/static/img/icon_zoom.png") no-repeat;
}

header .search a .glyphicon-search:after {
    background: url("/static/img/icon_zoom_hover.png") no-repeat;
    opacity: 0;
}

header .search a:hover,
header .search a:focus {
    background: none !important;
    box-shadow: none !important;
}

header .search a:hover .glyphicon-search:before,
header .search a:focus .glyphicon-search:before {
    opacity: 0;
}

header .search a:hover .glyphicon-search:after,
header .search a:focus .glyphicon-search:after {
    opacity: 1;
}

header .shopping-carts {
    position: absolute;
    top: 0;
    right: 0;
    border-bottom: 1px solid #cdcdcd;
}

header .shopping-carts a {
    color: #333333;
    font-size: 14px;
    padding: 5px 15px 0;
    line-height: 34px;
    transition: 0.3s;
}

header .shopping-carts a:hover,
header .shopping-carts a:focus {
    background: none;
    color: #dc002e;
}

header .shopping-carts a .count {
    background: #b4b4b4;
    padding: 0px 5px;
    color: #3e3e3e;
    margin-left: 5px;
}

header .quick-nav {
    z-index: 1000;
    position: absolute;
    right: 40px;
    top: 400px;
    width: 300px;
    transition: 0.3s;
    opacity: 0;
    animation-name: fade-in;
    animation-duration: 0.3s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

header .quick-nav.scroll {
    right: 0;
}

header .quick-nav.scroll-fix {
    right: 0;
    top: 300px;
}

header .quick-nav.blocked {
    animation-name: fade-out;
    animation-duration: 0.3s;
    animation-delay: 0s;
    animation-fill-mode:backwards;
    right: -34px;
}

header .quick-nav .quick-button {
    background: #dc002e;
    border-radius: 4px;
    padding: 4px 6px;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    transition: 0.3s;
    width: 46px;
    height: 44px;
}

header .quick-nav.scroll .quick-button,
header .quick-nav.scroll-fix .quick-button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    opacity: 0.8;
}

header .quick-nav .quick-button:nth-child(2) {
    top: 52px;
}

header .quick-nav .quick-button:nth-child(3) {
    top: 104px;
}

header .quick-nav .quick-button img {
    display: inline-block;
}

header .quick-nav .quick-button .content {
    display: none;
    opacity: 0;
}

header .quick-nav .quick-button.open {
    width: 300px;
    opacity: 1 !important;
}

header .quick-nav .quick-button.open .content {
    display: inline-block;
    animation-name: fade-in;
    animation-delay: 0.3s;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

header .quick-nav .quick-button.open .content p,
header .quick-nav .quick-button.open .content a {
    padding-left: 10px;
    line-height: 34px;
    color: white !important;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 1600px) {
    header .header-actions {
        padding-top: 0;
    }

    header .header-actions > .language-switch {
        position: absolute;
        right: 0;
        top: 40px;
    }
}

@media (max-width: 1280px) {
    header .search {
        position: absolute;
        right: 75px;
    }
}

@media (max-width: 1200px) {
    header .container {
        width: 100%;
    }

    header .logo {
        width: 114px;
    }
}

@media (max-width: 1050px) {
    header {
        position: relative;
        height: 60px;
        border-bottom: none;
    }

    header > .container {
        border-bottom: 1px solid #dc002e;
    }

    header .header-actions {
        display: none;
    }

    header .container {
        padding: 0;
    }

    header .logo {
        height: 60px;
        width: 100px;
        position: absolute;
        right: 0;
        transition: 0.3s;
    }

    header .logo img {
        height: 48px;
    }

    header .search,
    header .language-switch,
    header .login {
        display: none;
    }
}
