.header-search-container {
    position: relative;
    display: flex;
    justify-content: end;
    /*overflow: hidden;*/
    max-width: 28px;
    transition: top 0.1s linear;
}

.header-search-container.active {
    overflow: visible;
    position: absolute;
    left: 0;
    width: 100%;
    max-width: unset;
    background: #fff;
    top: 94px;
    height: 60px;
    z-index: 5;
    justify-content: center;
    box-shadow: 0 7px 8px rgba(39,39,37, 0.15);
}
.header-search-container button {
    display: none;
}
.header-search-container.active button {
    display: block;
    width: 23px;
    height: 23px;
    background-color: transparent;
    background-position-x: -31px;
    background-position-y: -135px;
    border: 0;
    margin-top: 19px;
    margin-right: 30px;
    cursor: pointer;
}
.header-search-container::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 24px;
    height: 24px;
    background-position-x: -31px;
    background-position-y: -135px;
    cursor: pointer;
}
.header-search-container_input {
    width: 28px;
}
.header-search-container.active::before {
    display: none;
}
.header-search-container.active input {
    display: block;
    background: transparent;
    max-width: unset;
    width: 100%;
    color: #272725;
    height: 60px;
    margin-top: 0;
    padding-left: 20px;
    padding-right: 20px;
    cursor: auto;
}
.header-search-container input::placeholder {
    opacity: 0;
}
.header-search-container.active input::placeholder {
    color: #272725;
    opacity: 1;
}
.header-search-container .close-button {
    display: none;
}
.header-search-container.active .close-button {
    display: block;
    margin-top: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}
.search-panel-active {
    overflow: hidden;
    height: 100%;
    position: fixed;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    -ms-touch-action: none;
}
.search-panel-active::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #1e1e1e;
    opacity: .7;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    z-index: 6;
}
.lock-scroll.search-panel-active::before {
    display: none;
}
.lock-scroll.search-panel-active .header-catalog.active .menu-category::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #1e1e1e;
    opacity: .7;
    transition: all .3s cubic-bezier(.22,.61,.36,1);
    z-index: 6;
}

/*search by image */
#image-search {
    display: none;
}
.header-search-container.active #image-search {
    display: block;
    width: 23px;
    height: 23px;
    background-color: transparent;
    background-position: -822px -432px;
    border: 0;
    margin-top: 18px;
    margin-right: 35px;
    cursor: pointer;
    flex-shrink: 0;
}

/*@media screen and (max-width: 1920px) and (min-width: 1820px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -8px;
    }
}
@media screen and (max-width: 1820px) and (min-width: 1720px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -16px;
    }
}
@media screen and (max-width: 1720px) and (min-width: 1620px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -24px;
    }
}
@media screen and (max-width: 1620px) and (min-width: 1520px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -32px;
    }
}
@media screen and (max-width: 1520px) and (min-width: 1024px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -38px;
    }
}
@media screen and (max-width: 920px) and (min-width: 820px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -16px;
    }
}
@media screen and (max-width: 820px) and (min-width: 540px) {
    .l-ss-c-host-wrapper.l-ss-c-host-wrapper-is-completions {
        margin-top: -30px;
    }
}
*/

/* media queries for max width*/
@media (max-width: 1024px) {
    .header-search-container.active {
        top: 35px;
        height: 40px;
    }
    .header-black.show-mobile+.header .header-search-container.active {
        top: 65px;
    }
    .header-search-container::before {
        top: -1px;
    }
    .header-search-container input {
        font-size: 14px;
    }
    .header-search-container.active input {
        height: 40px;
    }
    .header-search-container.active button {
        width: 25px;
        background-position-x: -32px;
        margin-top: 10px;
        transform: scale(0.8);
    }
    .header-search-container.active .close-button {
        margin-top: 9px;
        transform: scale(0.75);
    }
    .header-search-container.active #image-search {
        margin-right: 30px;
        margin-top: 10px;
        transform: scale(0.8);
    }
    .header-catalog.active + .header-search-container {
        display: flex;
        position: fixed;
        top: 63px;
        left: 0;
        width: 100%;
        z-index: 12;
        max-width: unset;
        background: #fff;
        justify-content: center;
        padding: 20px 20px;
        margin: 0;
        height: 90px;
        transition: none;
    }
    .header-catalog.active + .header-search-container input {
        max-width: unset;
        width: 100%;
        color: #272725;
        background: #fff;
        height: 48px;
        margin-top: 0;
        padding-right: 85px;
        padding-left: 10px;
        border: 1px solid;
        border-radius: 0;
        cursor: auto;
    }
    .header-catalog.active + .header-search-container input::placeholder {
        color: #272725;
    }
    .header-catalog.active + .header-search-container .header-search-container_button {
        position: absolute;
        top: 13px;
        right: 40px;
        z-index: 3;
    }
    .header-catalog.active + .header-search-container .close-button {
        width: 24px;
        height: 24px;
        position: absolute;
        right: 10px;
        top: 13px;
        background-position-x: -470px;
        background-position-y: -134px;
    }
}

@media (max-width: 540px) {
    .header-search-container.active input {
        padding-left: 15px;
}
    .header-search-container.active button {
        width: 29px;
        margin-right: 25px;
    }
    .header-search-container.active button {
        margin-right: 20px;
        width: 34px;
    }
    .header-search-container.active .close-button {
        margin-right: 10px;
    }
    .header-search-container.active #image-search {
        margin-right: 21px;
        margin-top: 9px;
    }
}