/* c-search
------------------------------------------------------------------- */

.c-search {
    position: fixed;
    top: -200px;
    left: 0;
    width: 100%;
    height: 15rem;
    margin: 0 auto 1rem 0;
    -ms-flex: 1;
    flex: 1;
    z-index: 9999;
    background: var(--header-menu-background);
    padding: 4.5rem 0;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.c-search.open {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.c-search__container {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.c-search__form {
    display: flex;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 1.3rem;
    line-height: 2.4rem;
    font-weight: 400;
    height: 6rem;
    color: var(--secondary-text-color);
    transition: background 0.25s, border-color 0.25s;
    align-items: center;
}
.c-search-close {
    width: 2.8rem;
    height: 2.8rem;
    margin-left: 10px;
    color: var(--main-text-color);
}

.c-search-close svg {
    width: 100%;
    height: 100%;
}

.c-search input.c-search__input {
    display: flex;
    color: var(--main-text-color);
    font-weight: 400;
    height: 100%;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    width: 100%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding-left: 5.5rem;
    font-size: 1.6rem;
    background: var(--main-background-color);
}

.c-search input.c-search__input::-webkit-input-placeholder {
   opacity: 0.6;
}

.c-search input.c-search__input::-moz-placeholder {
    opacity: 0.6;
}

.c-search input.c-search__input:-ms-input-placeholder {
    opacity: 0.6;
}

.c-search input.c-search__input::-ms-input-placeholder {
    opacity: 0.6;
}

.c-search input.c-search__input::placeholder {
    opacity: 0.6;
}

.c-search__button {
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    position: absolute;
    top: 50%;
    left: 0.4rem;
    padding: 0;
    margin: 0rem 0 0 1rem;
    border-radius: 5px;
    color: var(--secondary-text-color);
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 500;
    cursor: pointer;
    transform: rotateZ(90deg) translateX(-50%);
    transition: background 0.25s, color 0.25s;
}


.c-search__icon {
    max-height: 100%;
    max-width: 100%;
    fill: #b8b8b8;
}

.c-search__dropdown {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: var(--page-background-color);
    padding-top: 15rem;
    z-index: 9998;
}

.fastResult {
    max-height: 100%;
    overflow: auto;
    max-width: 120rem;
    width: 100%;
    padding: 3rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.search-item {
    width: calc(50% - 2rem);
    background: var(--main-background-color);
    margin: 1rem;
    border-radius: 16px;
}

.c-search__dropdown ul {
    overflow: auto;
    max-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 300px;
}

.c-search__dropdown li {
    border-bottom: 1px solid var(--border-color);
}

.c-search__dropdown .fast-result-img {
    position: relative;
    min-width: 60px;
    max-width: 60px;
    height: 100%;
    margin-right: 16px;
}

.c-search__dropdown .fast-result-img img {
    max-width: 100%;
    object-fit: cover;
    margin: auto;
}

.c-search__dropdown .fast-result-info {
    transition: all 0.4s ease-in-out;
    color: var(--main-text-color);
}
.c-search__dropdown li:hover .fast-result-info { 
    color: var(--accent-color);
}

.c-search__dropdown .fast-result-info span {
    font-size: 12px;
    font-weight: 500;
    display: block;
    width: 100%;
    color: #cd4449;
}

.c-search__dropdown .fast-result-info span.variant-text {
    font-weight: 400;
    color: #666;
}

.search-item__right {
    display: flex;
    align-items: center;
}

@media (max-width:960px) {
    .c-search {
        padding: 2rem;
        height: auto;
    }
    .c-search-close {
        width: 1.7rem;
        height: 1.7rem;
    }
    .c-search__dropdown {
        padding-top: 10rem;
    }

}