/* Страницы «Избранное» и «Поиск» — вёрстка по Figma (узел 188:29808: desktop 188:29809, пустое 188:29822, tablet 188:29867, mobile 188:29855) */

body.favorites-page {
    background: var(--Body-Background, #F5F5F5);
}

.favorites-block {
    margin-bottom: 80px;
}

.favorites-block .block-content {
    align-items: stretch;
}

.fav-title {
    margin: 7px 0 30px;
    color: #1E2529;
    font-size: var(--font-section-title, 30px);
    font-weight: 500;
    line-height: 38px;
}

.favorites-block .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.favorites-block .pagination-block {
    margin-top: 30px;
}

/* ---- Пустое состояние ---- */

.fav-empty {
    width: 238px;
    margin: 91px auto 177px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.fav-empty-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.fav-empty-title {
    margin: 0;
    color: #1E2529;
    font-size: var(--font-step-title, 20px);
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.fav-empty-hint {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #1E2529;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    white-space: nowrap;
}

.fav-empty-hint--multiline {
    display: block;
    white-space: normal;
    text-align: center;
}

.fav-empty-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.fav-empty-link {
    color: var(--Brand-Primary-muted, #B89A54);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: underline;
    text-underline-position: from-font;
}

.fav-empty-link:hover {
    color: var(--Brand-Primary, #D5A944);
}

@media (max-width: 1439px) {
    .favorites-block {
        margin-bottom: 60px;
    }
}

@media (max-width: 989px) {
    .fav-title {
        margin: 0 0 20px;
    }

    .fav-empty {
        margin: 40px auto 120px;
    }
}

/* Как в каталоге: одна колонка карточек шириной до 500px по центру. */
@media (max-width: 768px) {
    .favorites-block .grid {
        max-width: 500px;
        margin: 0 auto;
        gap: 10px;
        width: 100%;
    }

    .favorites-block .grid .product-card {
        width: 100%;
    }
}
