#header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    transition: all 1s ease-in-out;
    background-color: #fff;
    z-index: 100;
    font-size: 14px;
}
body.scrolled #header {
    box-shadow: rgba(0, 0, 0, 0.07) 0 20px 40px 0;
}

#header-logo {
    margin: 0;
    width: 220px;
    margin-right: 30px;
    background-image: var(--logo);
    background-size: contain;
    background-repeat: no-repeat;
    transition: width 0.35s ease-in-out;
    position: relative;
    min-width: 150px;
    z-index: 9;
}

body.scrolled #header-logo {
    width: 150px;
}

#header-logo a {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#header-logo span {
    display: none;
}
#header-logo:after {
    content: '';
    display: block;
    padding-bottom: 50%;
}


#header .menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

#header .menu-item {
    display: flex;
    align-items: center;
    position: relative;
}

#header-menu > .menu-item {
    min-width: 190px;
}
#header-menu > .menu-item > a {
    height: 70px;
}

#header .sub-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 30px;
    list-style: none;
    position: absolute;
    top: 100%;
    background-color: #fff;
    border-radius: 5px;

    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

#header .sub-menu a {
    display: flex;
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: none;
    transition: all 250ms ease-in-out;
    white-space: nowrap;
    padding: 7px 0;
    align-items: center;
}
#header .sub-menu a:hover {
    color: var(--color-primary);
}

#header .sub-menu a i {
    font-size: 8px;
    color: var(--color-primary);
    margin-right: 8px;
    transform: rotate(-90deg) translateX(+1px);
}

#header .menu-item:not(:last-of-type):after {
    content: '';
    display: block;
    border-right: 1px solid var(--color-divider);
    margin-right: 10px;
    height: 40px;
}

#header .menu-item:not(:hover) .sub-menu {
    display: none;
}

#header .menu-item-link {
    text-decoration: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

#header .menu-item-link br {
    display: none;
}

#header .menu-item-title {
    color: var(--color-secondary);
    line-height: 18px;
    font-weight: bold;
    margin-bottom: 7px;
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
}

#header .menu-item-link:hover .menu-item-title {
    color: var(--color-primary);
}

#header .menu-item-has-children .menu-item-title:after {
    color: var(--color-primary);
    content: '';
    display: inline-block;
    content: "\e90f";
    font-size: 8px;
    font-family: wzdsicons;
    font-style: normal;
    font-weight: 400;
    vertical-align: top;
    transition: transform 0.25s ease-in-out;
    margin-left: 5px;
}

#header .menu-item-description {
    color: var(--color-tertiary);
    font-size: 10px;
    line-height: 13px;
    font-weight: bold;
    transition: color 0.5s ease-in-out;
}

#header .menu-item-link:hover .menu-item-description {
    color: var(--color-secondary);
}

#header-menu-container {
    flex-grow: 1;
}

/* header search */

#header-search-visibility {
    display: none;
}

#header-cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 12;
    width: 16px;
    color: inherit;
    text-decoration: inherit;
    height: 16px;
    cursor: pointer;
    margin: 0 10px;
}
#header-cart-button-bullet {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-primary);
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
}

#header-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 12;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0 30px 0 10px;
}

#header-search-button:after {
    display: inline-block;
    content: "\e939";
    font-size: 16px;
    font-family: wzdsicons;
    font-style: normal;
    font-weight: 400;
}

#header-search-visibility:checked ~ #header-search-button:after {
    content: "\e954";
}

#header-search-form {
    position: fixed;
    left: 0;
    right: 0;
    top: -100%;
    height: 100%;
    background-color: #FFFFFF;
    z-index: 11;
    transition: top 0.35s ease-in-out;
    overflow: auto;
}

#header-search-visibility:checked ~ #header-search-form {
    top: 0;
}

#header-search-form #no-search-results {
    text-align: center;
    width: 100%;
}

#header-search-form #no-search-results img {
    display: block;
    margin: 50px auto 30px auto;
}

#header-search-form .no-search-results-header {
    font-weight: bold;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 5px;
    text-align: center;
}
#header-search-form #no-results-term {
    color: var(--color-primary);
}
#header-search-form #no-search-results p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
}

#header-language-switcher {
    display: none!important;
}

#header-language-switcher .sub-menu {
    right: 0;
}

#header-language-switcher a {
    position: relative;
    z-index: 12;
}

.search-form {
    display: flex;
    margin-bottom: 30px;
}

.search-form label {
    display: flex;
    flex-grow: 1;
    border: 1px solid var(--color-divider);
    border-radius: 5px;
    overflow: hidden;
}

.search-icon {
    color: var(--color-tertiary);
    font-size: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
}

.search-form.loading .search-icon .wzds-icon-search,
.search-form:not(.loading) .search-icon .wzds-icon-refresh {
    display: none;
}

.wzds-icon-refresh {
    animation: rotating 1s linear infinite;
}
@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.search-field {
    flex-grow: 1;
    padding: 20px 25px 20px 0;
    outline: none;
    box-shadow: inset 0 100px 0 #fff;
    border: 0;
    -webkit-appearance: none;
    color: var(--color-secondary);
    font-size: 16px !important;
    height: 60px;
}

.search-submit {
    display: none;
}

#search-results-summary {
    display: flex;
    font-size: 16px;
    align-items: center;
    height: 60px;
}

#search-results-summary > span {
    margin-left: 5px;
}

.search-results-summary-query {
    color: var(--color-tertiary);
}

#search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-result-group {
    margin-bottom: 30px;
    width: calc(50% - 15px);
}

.search-result-group-name {
    display: block;
    color: var(--color-tertiary);
    font-size: 12px;
    font-weight: bold;
    line-height: 16px;
    margin-bottom: 10px;
}

.search-result-group-list {
    display: flex;
    flex-direction: column;
}

.search-result-group-result {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-divider);
    padding: 10px 0;
    text-decoration: none;
    color: var(--color-secondary);
    font-weight: bold;
}

.search-result-group-result-name {
    display: flex;
    align-items: center;
}

.search-result-group-result-name i {
    color: var(--color-tertiary);
    font-size: 8px;
    margin-right: 15px;
}

.search-result-group-result-extra {
    color: var(--color-tertiary);
    font-size: 11px;
    white-space: nowrap;
    margin-left: 10px;
}

.search-result-group-result-extra i {
    margin-right: 10px;
}

.search-result-group-more {
    display: block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    margin: 10px 0;
}

/* clears the 'X' from Internet Explorer */
.search-field::-ms-clear {  display: none; width : 0; height: 0; }
.search-field::-ms-reveal {  display: none; width : 0; height: 0; }

/* clears the 'X' from Chrome */
.search-field::-webkit-search-decoration,
.search-field::-webkit-search-cancel-button,
.search-field::-webkit-search-results-button,
.search-field::-webkit-search-results-decoration { display: none; }

#mobile-menu-visibility {
    display: none;
}
#header-menu-button {
    display: none;
    position: fixed;
    bottom: calc(15px + env(safe-area-inset-bottom));
    right: 15px;
    width: 60px;
    height: 60px;
    padding: 20px 17.5px;
    color: #fff;
    background-color: var(--color-primary);
    border-radius: 5px;
    z-index: 101;
    font-size: 25px;
    transition: all 500ms ease-in-out;
}

#header-menu-button span {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background-color: #fff;
    transition: all 400ms var(--anim-elastic);
    position: absolute;
}
#header-menu-button span:nth-of-type(1){
    top: 20px;
    left: 18px;
}
#header-menu-button span:nth-of-type(2){
    top: 29px;
    left: 18px;
}
#header-menu-button span:nth-of-type(3){
    top: 38px;
    left: 30px;
    width: 13px;
}


#mobile-menu-visibility:checked ~ #header-menu-button span:nth-of-type(1) {
    transform: rotate(-225deg);
    top: 29px;
}
#mobile-menu-visibility:checked ~ #header-menu-button span:nth-of-type(2) {
    width: 0;
    left: 29px;
}
#mobile-menu-visibility:checked ~ #header-menu-button span:nth-of-type(3) {
    transform: rotate(225deg);
    top: 29px;
    width: 25px;
    left: 18px;
}

@media only screen and (max-width: 1280px) {
    #header-menu > .menu-item {
        width: auto;
    }
    #header-menu > .menu-item > a {
        height: auto;
    }
    #header .menu-item-title {
        margin: 0;
    }

    #header-menu>.menu-item {
        min-width: 0;
    }

    #header .menu-item:not(:last-of-type):after {
        margin-left: 10px;
    }
}

@media only screen and (max-width: 1024px) {

    .menu-item-description {
        display: none;
    }

}
@media only screen and (max-width: 768px) {


    #header-logo {
        width: 150px;
        margin-right: auto;
    }

    #header-menu-button {
        display: block;
    }

    #header-menu-container {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;

        transition: all 500ms ease-in-out;
        z-index: 10;
    }

    #mobile-menu-visibility:not(:checked) ~ #header #header-menu-container {
        transform: translateX(100%);
    }
    #sidebar-visibility:checked ~ #header-menu-button,
    body.has-search #header-menu-button {
        transform: translateX(100px);
    }

    #header #header-cart-button,
    #header #header-language-switcher,
    #header #header-search-button {
        transition: all 500ms ease-in-out;
    }

    #mobile-menu-visibility:checked ~ #header #header-cart-button,
    #mobile-menu-visibility:checked ~ #header #header-language-switcher,
    #mobile-menu-visibility:checked ~ #header #header-search-button {
        transform: translateY(-100px);
    }

    #header-menu.menu {
        position: relative;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px calc(50px + env(safe-area-inset-bottom)) 20px;
        overflow: auto;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
    }

    #header #header-menu .menu-item .sub-menu,
    #header #header-menu .menu-item:not(:hover) .sub-menu {
        display: flex;
        position: static;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }

    #header #header-menu > .menu-item:after {
        border-right: none;
        border-bottom: 1px solid var(--color-divider);
        margin: 20px 10px 20px 10px;
        height: 0;
        width: calc(100% - 20px);
    }

    #header #header-menu .menu-item-title {
        font-size: 16px;
    }

    #header #header-menu .menu-item-title:after {
        display: none;
    }

    #header #header-menu .menu-item {
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #header #header-menu .sub-menu a {
        padding: 10px;
        font-weight: normal;
    }



    .search-form label {
        border: none;
        flex-wrap: wrap;
    }
    #search-results-summary {
        width: 100%;
    }

    #search-results-clear {
        position: absolute;
        top: 95px;
        right: 15px;
    }
    label > .search-icon {
        border-top: 1px solid var(--color-divider);
        border-left: 1px solid var(--color-divider);
        border-bottom: 1px solid var(--color-divider);
        border-radius: 5px 0 0 5px;
    }

    .search-field {
        border-top: 1px solid var(--color-divider);
        border-right: 1px solid var(--color-divider);
        border-bottom: 1px solid var(--color-divider);
        border-radius: 0 5px 5px 0;
    }
}
