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

.c-search {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    margin: 0;
    max-width: 734px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px;
}

.c-search__form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 31px;
}

.c-search input[type="search"] {
    display: flex;
    border-radius: 5px 0 0 5px;
    color: var(--main-text-color);
    font-weight: 400;
    height: 100%;
    min-height: 100%;
    min-width: 210px;
    padding: 9px 10px 9px 16px;
    -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;
}

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

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

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

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

.c-search input::placeholder {
    opacity: 0.8;
}

.c-search__button {
    background-color: var(--accent-color);
    color: var(--secondary-text-color);
    height: 31px;
    font-size: 14px;
    font-weight: 600;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    border-radius: 20px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.c-search__icon {
    max-height: 100%;
    max-width: 100%;
    fill: var(--main-text-color);
    display: none;
}

.c-search__dropdown {
    position: absolute;
    z-index: 99;
    top: calc(100% + 15px);
    left: 0;
    overflow: hidden;
    width: 100%;
    min-width: 400px;
    max-height: 300px;
    background: #fff;
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
    border-radius: 5px;
}

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

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


.c-search__dropdown a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: auto;
    padding: 10px;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.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: var(--accent-color);
}

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


@media (max-width: 991px) {
    .c-search__form {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        
    }
    .c-search {
        position: absolute;
        bottom: 100%;
        left: 0;
        margin-bottom: 0;
        background-color: var(--main-background-color);
        width: 100vw;
        border-radius: 0;
        opacity: 0.9;
        max-width: none;
        border: none;
    }
    .c-search__dropdown {
        top: auto;
        bottom: calc(100% + 15px);
        width: calc(100% - 20px);
        margin: 0 20px 0 10px;
    }
}

@media (max-width: 475px) {
    .c-search__form {
        max-width: auto;
        width: 100%;
    }
    .c-search__form input[type="search"] {
        min-width: auto;
    }
    .c-search__dropdown {
        min-width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
    .c-search__dropdown ul {
        grid-template-columns: 1fr;
    }
}