.search-page { max-width: 1240px; }
.search-page__header { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(420px, 1.3fr); gap: 32px; align-items: end; padding: 16px 0 28px; border-bottom: 1px solid #e4e9e6; }
.search-page__header h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -.04em; }
.search-page__header p { margin: 8px 0 0; color: #6f7d75; }
.search-page__form { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid #d7e0da; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(31, 57, 42, .06); }
.search-page__form > i { position: absolute; left: 18px; color: #77847c; }
.search-page__form input { min-width: 0; flex: 1; height: 48px; padding: 0 12px 0 43px; border: 0; outline: 0; background: transparent; }
.search-page__form .btn { min-height: 44px; padding-inline: 22px; border-radius: 11px; }
.search-page__summary { padding: 18px 0 0; color: #66736b; font-size: .93rem; }
.search-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.search-suggestions > span { margin-right: 3px; color: #6e7b73; font-size: .85rem; }
.search-suggestions a { padding: 6px 11px; border: 1px solid #dbe4de; border-radius: 999px; color: #3f5046; background: #f8faf9; font-size: .82rem; text-decoration: none; }
.search-suggestions a:hover { color: var(--primary-color); border-color: #bad9c6; background: #edf7f1; }
.search-section { padding: 34px 0 4px; }
.search-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.search-section__heading > div { display: flex; align-items: center; gap: 10px; }
.search-section__heading h2 { margin: 0; font-size: 1.35rem; font-weight: 730; letter-spacing: -.02em; }
.search-section__heading h2 small { margin-left: 4px; color: #879289; font-size: .78rem; font-weight: 600; }
.search-section__heading > a { color: var(--primary-color); font-size: .86rem; font-weight: 650; text-decoration: none; }
.search-section__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--primary-color); background: #edf7f1; }
.search-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.search-category-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e0e7e2; border-radius: 14px; color: #2e3d34; background: #fff; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.search-category-card:hover { transform: translateY(-2px); color: var(--primary-color); border-color: #c8dbcf; box-shadow: 0 10px 24px rgba(35, 60, 45, .07); }
.search-category-card__media { width: 64px; height: 52px; display: grid; place-items: center; flex: 0 0 64px; overflow: hidden; border-radius: 10px; color: var(--primary-color); background: #f0f6f2; font-size: 1.35rem; }
.search-category-card__media img { width: 100%; height: 100%; object-fit: cover; }
.search-category-card__body { min-width: 0; flex: 1; }
.search-category-card__body strong, .search-category-card__body small { display: block; }
.search-category-card__body strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-category-card__body small { margin-top: 3px; color: #859087; font-size: .72rem; }
.search-category-card > .bi-chevron-right { color: #a1aaa4; font-size: .78rem; }
.search-trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.search-trend-card { min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); overflow: hidden; border: 1px solid #e0e7e2; border-radius: 14px; color: #2d3b33; background: #fff; text-decoration: none; }
.search-trend-card:hover { color: var(--primary-color); border-color: #c8dbcf; }
.search-trend-card__media { height: 92px; display: grid; place-items: center; overflow: hidden; color: var(--primary-color); background: #f0f6f2; font-size: 1.8rem; }
.search-trend-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.search-trend-card:hover img { transform: scale(1.04); }
.search-trend-card__body { min-width: 0; display: flex; justify-content: center; flex-direction: column; padding: 12px 14px; }
.search-trend-card__body small { margin-bottom: 4px; color: #7a887f; font-size: .69rem; }
.search-trend-card__body strong { display: -webkit-box; overflow: hidden; font-size: .9rem; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-sort { display: flex; align-items: center; gap: 8px; color: #718077; font-size: .78rem; }
.search-sort .form-select { min-width: 175px; border-radius: 9px; }
.search-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.search-post-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid #e0e7e2; border-radius: 15px; background: #fff; }
.search-post-card__meta { margin-bottom: 8px; color: #839087; font-size: .72rem; }
.search-post-card h3 { margin: 0 0 9px; font-size: 1rem; line-height: 1.4; }
.search-post-card h3 a { color: #29382f; text-decoration: none; }
.search-post-card h3 a:hover { color: var(--primary-color); }
.search-post-card p { margin: 0 0 14px; color: #6b7970; font-size: .82rem; line-height: 1.55; }
.search-post-card__link { margin-top: auto; color: var(--primary-color); font-size: .8rem; font-weight: 650; text-decoration: none; }
.search-empty { max-width: 640px; margin: 44px auto 20px; padding: 42px 24px; border: 1px solid #e0e7e2; border-radius: 20px; background: #f9fbfa; text-align: center; }
.search-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--primary-color); background: #eaf6ee; font-size: 1.4rem; }
.search-empty h2 { font-size: 1.35rem; }
.search-empty p { max-width: 480px; margin: 8px auto 20px; color: #6c7971; }
@media (max-width: 991.98px) {
    .search-page__header { grid-template-columns: 1fr; gap: 18px; }
    .search-category-grid, .search-trend-grid, .search-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .search-page__header { padding-top: 8px; }
    .search-page__header h1 { font-size: 1.8rem; }
    .search-page__form .btn { padding-inline: 14px; }
    .search-section { padding-top: 28px; }
    .search-section__heading--products { align-items: flex-start; flex-direction: column; }
    .search-sort { width: 100%; justify-content: space-between; }
    .search-sort .form-select { flex: 1; }
    .search-category-grid, .search-trend-grid, .search-post-grid { grid-template-columns: 1fr; }
    .search-category-card__media { width: 56px; flex-basis: 56px; }
}

/* ========================================================================== 
   r25 micro-UX continuation — resilient search copy and narrow result cards
   ========================================================================== */
.search-page__header > *,
.search-section__heading > *,
.search-category-card__body,
.search-trend-card__body { min-width: 0; }
.search-page__header p,
.search-page__summary,
.search-post-card p { overflow-wrap: anywhere; }
.search-page__summary strong { overflow-wrap: anywhere; }
.search-category-card__body strong {
    overflow: hidden;
    display: -webkit-box;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.search-section__heading > a { flex: 0 0 auto; line-height: 1.25; }

@media (max-width: 575.98px) {
    .search-page { padding-top: 14px !important; }
    .search-page__header { gap: 14px; padding-bottom: 22px; }
    .search-page__header p { font-size: .86rem; line-height: 1.5; }
    .search-page__form { gap: 5px; padding: 4px; }
    .search-page__form .btn { min-height: 44px; padding-inline: 12px; }
    .search-page__summary { font-size: .86rem; line-height: 1.45; }
    .search-section__heading { align-items: flex-start; gap: 10px; }
    .search-section__heading > div { min-width: 0; }
    .search-section__heading h2 { font-size: 1.22rem; line-height: 1.2; }
    .search-section__heading > a { padding-top: 3px; font-size: .78rem; }
    .search-category-card { align-items: flex-start; }
    .search-category-card__body strong { font-size: .9rem; }
    .search-category-card > .bi-chevron-right { margin-top: 17px; flex: 0 0 auto; }
}


/* r25 precision polish — heading action falls to a clean second row if needed. */
@media (max-width: 575.98px) {
    .search-section__heading:not(.search-section__heading--products) { flex-wrap: wrap; }
    .search-section__heading:not(.search-section__heading--products) > div { flex: 1 1 190px; }
    .search-section__heading:not(.search-section__heading--products) > a {
        margin-left: auto;
        white-space: nowrap;
    }
}

/* r35 zero-result recovery. */
.search-recovery-products__lead{max-width:720px;margin:-4px 0 18px;color:#6f7d75;font-size:.86rem;line-height:1.55;text-wrap:pretty}
.search-empty--recovery{margin-top:24px;padding-bottom:22px}
.search-empty--recovery+ .search-section{margin-top:28px}
