.search-body { min-width: 0; }
.search-page { padding-bottom: 72px; background: #fcf7f7; }
.search-breadcrumb { display: flex; align-items: center; gap: 10px; min-height: 64px; padding-block: 16px; color: #755d62; font-size: 11px; line-height: 1.7; }
.search-breadcrumb a { text-decoration: none; }
.search-breadcrumb > i { font-size: 7px; }
.search-breadcrumb [aria-current] { color: var(--text-color); font-weight: 750; }
.search-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px 48px; padding: 32px 36px; border-radius: 16px; color: #fff; background: #481820; }
.search-hero-copy { min-width: 0; }
.search-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.search-hero p { margin: 0; color: #f0d9dd; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.search-hero p strong { color: #fff; font-weight: 750; }
.search-query-form { display: flex; min-width: 0; padding: 6px; border-radius: 12px; background: #fff; }
.search-query-form input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--text-color); background: #fff; font: inherit; font-size: 14px; caret-color: var(--brand-red-strong); }
.search-query-form input::placeholder { color: #785b61; opacity: 1; }
.search-query-form button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; min-width: 92px; padding: 10px 18px; border: 0; border-radius: 8px; color: #fff; background: var(--brand-red-strong); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: background-color 180ms ease; }
.search-query-form:focus-within { outline: 3px solid #ff9da5; outline-offset: 4px; }
.search-query-form input:focus { outline: 0; }
.search-query-form button:focus-visible { outline-color: #fff; outline-offset: -5px; }
.search-category-section { margin-top: 32px; }
.search-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.search-section-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.4; }
.search-section-heading > span { color: #755d62; font-size: 11px; }
.search-section-heading h2 > span { padding: 4px 10px; border-radius: 6px; color: var(--brand-red-strong); background: #fbe6e8; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.search-category-list { display: flex; flex-wrap: wrap; gap: 12px; }
.search-category-result { display: flex; align-items: center; gap: 12px; flex: 0 1 calc((100% - 24px) / 3); min-width: min(240px, 100%); max-width: 100%; min-height: 74px; padding: 14px 16px; border: 1px solid #e2cdd2; border-radius: 12px; color: var(--text-color); background: #fff; text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease; }
.search-category-result img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.search-category-result > span { min-width: 0; }
.search-category-result strong { display: block; font-size: 12px; font-weight: 750; line-height: 1.6; overflow-wrap: anywhere; }
.search-category-result small { display: block; margin-top: 3px; color: #755d62; font-size: 10px; line-height: 1.6; }
.search-category-result > i { margin-inline-start: auto; color: var(--brand-red-strong); font-size: 13px; }
.search-products { margin-top: 38px; scroll-margin-top: 24px; }
.search-all-products { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: var(--brand-red-strong); font-size: 12px; font-weight: 750; text-decoration: none; }
.search-product-grid .home-product-meta { font-size: 10px; }
.search-product-grid .home-product-code { font-size: 9px; }
.search-product-grid .home-product h3 { min-height: 60px; font-size: 13px; }
.search-product-grid .home-product:focus-visible { outline: 3px solid var(--brand-red-strong); outline-offset: 4px; }
.search-more-row { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 30px; }
.search-product-progress { margin: 0; color: #755d62; font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.search-more-form { max-width: 100%; }
.search-more-form[hidden] { display: none; }
.search-more-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; min-width: 260px; max-width: 100%; padding: 14px 22px; border: 0; border-radius: 10px; color: #fff; background: var(--brand-red-strong); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color 180ms ease; }
.search-more-button:disabled { cursor: wait; background: #80515a; }
.search-more-feedback { margin: 0; color: #755d62; font-size: 12px; line-height: 1.8; text-align: center; }
.search-more-feedback:empty { display: none; }
.search-empty { display: flex; flex-direction: column; align-items: center; padding: 56px 24px 16px; text-align: center; }
.search-empty > i { margin-bottom: 24px; color: var(--brand-red-strong); font-size: 40px; }
.search-empty h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.025em; }
.search-empty p { max-width: 460px; margin: 0 0 24px; color: #755d62; font-size: 13px; line-height: 1.9; }
.search-page :is(a, button):focus-visible { outline: 3px solid var(--brand-red-strong); outline-offset: 4px; }

@media (hover: hover) {
    .search-category-result:hover { border-color: var(--brand-red-strong); background: #fff4f5; }
    .search-query-form button:hover, .search-more-button:not(:disabled):hover { background: #b7131b; }
    .search-all-products:hover, .search-breadcrumb a:hover { color: #a51119; text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 1023px) {
    .search-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px; }
    .search-category-result { min-width: 0; }
}

@media (max-width: 600px) {
    .search-page { padding-bottom: 44px; }
    .search-breadcrumb { min-height: 52px; padding-block: 14px; font-size: 10px; }
    .search-hero { gap: 20px; padding: 24px 20px; border-radius: 14px; }
    .search-hero h1 { font-size: 28px; }
    .search-hero p { font-size: 12px; }
    .search-query-form input { padding-inline: 9px; font-size: 16px; }
    .search-query-form button { min-width: 70px; gap: 8px; padding-inline: 12px; }
    .search-category-section { margin-top: 26px; }
    .search-section-heading { gap: 10px; margin-bottom: 14px; }
    .search-section-heading h2 { gap: 8px; font-size: 20px; }
    .search-section-heading > span { font-size: 10px; }
    .search-category-list { gap: 8px; }
    .search-category-result { flex-basis: 100%; min-height: 64px; padding: 12px; }
    .search-category-result img { width: 36px; height: 36px; }
    .search-products { margin-top: 28px; }
    .search-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .search-product-grid .home-product-image { aspect-ratio: 1; padding: 10px; }
    .search-product-grid .home-product-body { padding-inline: 11px; }
    .search-product-grid .home-product-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
    .search-product-grid .home-product h3 { min-height: 54px; font-size: 11px; }
    .search-product-grid .home-product-body > a { gap: 8px; font-size: 10px; }
    .search-more-form, .search-more-button { width: 100%; }
    .search-more-button { min-width: 0; }
    .search-empty { padding: 40px 4px 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .search-query-form button, .search-category-result, .search-more-button { transition: none; }
}

:root[dir="rtl"] .search-page .fa-arrow-right { transform: rotate(180deg); }
