/* c-search
------------------------------------------------------------------- */

.c-search {
    position: relative;
    display: flex;
    width: 63.6%;
    margin-left: 15px;
    margin-right: 15px;

    background: #fff8fb;
    border: 1px solid #f1ddea;
    border-radius: 16px;

    box-shadow: 0 8px 20px rgba(181,116,154,.08);
    transition: .25s ease;
}

.c-search:focus-within {
    background: #ffffff;
    border-color: #cf82b3;
    box-shadow:
        0 12px 28px rgba(181,116,154,.16),
        0 0 0 4px rgba(207,130,179,.12);
}

.c-search__form {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 52px;
}

.c-search input[type="search"] {
    display: flex;
    width: 100%;
    min-width: 210px;
    height: 100%;
    min-height: 100%;

    flex-grow: 1;

    padding: 0 22px;

    background: transparent;
    border: none;
    border-radius: 16px 0 0 16px;

    color: #563c50;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;

    appearance: none;
    transition: .25s ease;
}

.c-search input[type="search"]:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.c-search input::placeholder {
    color: #9b8393;
    opacity: 1;
}

.c-search__button {
    height: 52px;
    min-width: 118px;
    padding: 0 22px;

    flex-shrink: 0;

    border: none;
    border-radius: 0 15px 15px 0;

    background: linear-gradient(135deg,#cf82b3,#b890db);

    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;

    transition: .25s ease;
}

.c-search__button:hover {
    background: linear-gradient(135deg,#d978b0,#c19cff);
    box-shadow: 0 10px 24px rgba(181,116,154,.22);
}

.c-search__button .c-search__icon {
    max-height: 100%;
    max-width: 100%;
    fill: #ffffff;
    display: none;
}

.search-text {
    text-transform: uppercase;
}

/* Выпадающие результаты поиска */
.c-search__dropdown {
    position: absolute;
    z-index: 300;
    top: calc(100% + 10px);
    left: 0;

    overflow: hidden;

    width: 100%;
    min-width: 400px;
    max-height: 340px;

    background: #ffffff;
    border: 1px solid #f1ddea;
    border-radius: 18px;

    box-shadow: 0 18px 45px rgba(181,116,154,.18);
}

.c-search__dropdown ul {
    overflow: auto;
    max-height: 340px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 300px;
}

.c-search__dropdown li {
    border-bottom: 1px solid #f7e6f0;
}

.c-search__dropdown a {
    display: flex;
    align-items: center;
    height: auto;
    padding: 12px;
    transition: .25s ease;
    text-decoration: none;
}

.c-search__dropdown a:hover {
    background: #fff8fb;
}

.c-search__dropdown .fast-result-img {
    position: relative;
    min-width: 60px;
    max-width: 60px;
    height: 60px;
    margin-right: 16px;
}

.c-search__dropdown .fast-result-img img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: auto;

    object-fit: contain;

    border: 1px solid #f1ddea;
    border-radius: 12px;
    padding: 5px;
}

.c-search__dropdown .fast-result-info {
    color: #563c50;
    transition: .25s ease;
}

.c-search__dropdown li:hover .fast-result-info {
    color: #cf82b3;
}

.c-search__dropdown .fast-result-info span {
    display: block;
    width: 100%;

    color: #c44778;
    font-size: 12px;
    font-weight: 600;
}

.c-search__dropdown .fast-result-info span.variant-text {
    font-weight: 400;
    color: #8b7a86;
}

@media (max-width: 1299px) {
    .c-search {
        width: 52.7%;
    }
}

@media (max-width: 991px) {
    .header-mobile-search {
        padding: 15px;
        background: linear-gradient(135deg,#fdf4f8,#f8f0ff);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-mobile-search .c-search {
        width: 100%;
        margin: 0;
    }

    .header-mobile-search .c-search__form input {
        width: 100%;
        background: transparent;
        padding: 0 20px;
        border-radius: 16px 0 0 16px;
        overflow: hidden;
    }

    .c-search__form {
        max-width: 720px;
    }

    .c-search__button:hover {
        background: linear-gradient(135deg,#cf82b3,#b890db);
    }
}

@media (max-width: 475px) {
    .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;
    }
}