/* ==================================================
   Страница поиска
================================================== */

.shar-search-page {
    padding: 32px 20px 80px;
}

.shar-search-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.shar-search-hero,
.shar-search-results-header {
    margin-bottom: 34px;
    padding: 42px;
    border: 1px solid #eceff3;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(255, 63, 127, .08),
            rgba(255, 112, 67, .08)
        );
    text-align: center;
}

.shar-search-hero h1,
.shar-search-results-header h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.shar-search-results-header h1 span {
    color: #e83b6f;
}

.shar-search-hero > p {
    max-width: 680px;
    margin: 0 auto 25px;
    color: #646970;
    font-size: 17px;
    line-height: 1.55;
}

.shar-search-form {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.shar-search-form .aws-container {
    width: 100%;
}

.shar-search-form .aws-search-field {
    min-height: 58px !important;
    padding-right: 55px !important;
    padding-left: 20px !important;
    border: 1px solid #d9dde4 !important;
    border-radius: 15px !important;
    background: #fff !important;
    font-size: 17px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}

.shar-search-form .aws-search-btn {
    width: 55px !important;
    border: 0 !important;
    border-radius: 0 15px 15px 0 !important;
    background: linear-gradient(135deg, #ff3f7f, #ff7043) !important;
}

.shar-search-popular {
    margin-bottom: 34px;
    padding: 28px;
    border: 1px solid #eceff3;
    border-radius: 20px;
    background: #fff;
}

.shar-search-popular h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.shar-search-popular__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shar-search-popular__list a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 16px;
    align-items: center;
    border: 1px solid #e2e5ea;
    border-radius: 22px;
    background: #f7f8fa;
    color: #343942;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.shar-search-popular__list a:hover {
    border-color: rgba(242, 63, 120, .35);
    background: #fff2f6;
    color: #e83b6f;
    transform: translateY(-1px);
}

.shar-search-help {
    display: flex;
    padding: 25px 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 18px;
    background: #272b33;
    color: #fff;
}

.shar-search-help h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 21px;
}

.shar-search-help p {
    margin: 0;
    color: rgba(255, 255, 255, .75);
}

.shar-search-help__button,
.shar-search-empty__contact,
.shar-search-empty__catalog {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 22px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff3f7f, #ff7043);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.shar-search-results-header__label {
    margin: 0 0 8px;
    color: #e83b6f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shar-search-results-back {
    margin-top: 16px;
}

.shar-search-results-back a {
    font-size: 14px;
    font-weight: 600;
}

.shar-search-results-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

.shar-search-results-page ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
}

.shar-search-results-page ul.products li.product img {
    border-radius: 10px;
}

.shar-search-pagination {
    margin-top: 38px;
}

.shar-search-empty {
    max-width: 720px;
    margin: 20px auto;
    padding: 44px 30px;
    border: 1px solid #eceff3;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.shar-search-empty__icon {
    display: flex;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff1f5;
    color: #e83b6f;
}

.shar-search-empty__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.shar-search-empty h2 {
    margin: 0 0 10px;
}

.shar-search-empty p {
    max-width: 540px;
    margin: 0 auto;
    color: #707681;
    line-height: 1.55;
}

.shar-search-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.shar-search-empty__catalog {
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #343942;
}

@media (max-width: 1024px) {
    .shar-search-results-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .shar-search-page {
        padding: 18px 15px 55px;
    }

    .shar-search-hero,
    .shar-search-results-header {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .shar-search-results-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .shar-search-popular {
        padding: 20px 16px;
    }

    .shar-search-popular__list {
        gap: 8px;
    }

    .shar-search-popular__list a {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .shar-search-help {
        padding: 22px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .shar-search-help__button {
        width: 100%;
    }
}