#header-search-results[hidden] { display: none; }
#header-search-results {
    position: fixed; z-index: 10000; direction: rtl; display: flex; flex-direction: column;
    box-sizing: border-box; overflow: hidden; background: #fff; color: #252525;
    border: 1px solid #e8e8e8; border-radius: 16px; box-shadow: 0 12px 36px #0002;
    text-align: right; font-size: 13px;
}
.header-search-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.header-search-close { border: 0; background: transparent; color: #555; font-size: 24px; width: 44px; height: 44px; cursor: pointer; }
#header-search-results .header-search-status { margin: 0; padding: 10px 16px; color: #666; font-size: 12px; flex-shrink: 0; }
.header-search-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; max-height: 352px; scrollbar-width: thin; scrollbar-color: #bbb #f6f6f6; -webkit-overflow-scrolling: touch; }
#header-search-results .header-search-list { list-style: none; padding: 0 8px; margin: 0; }
#header-search-results .header-search-list li { margin: 0; padding: 0; border-bottom: 1px solid #f1f1f1; }
#header-search-results .header-search-product { display: flex; gap: 12px; align-items: center; min-height: 88px; padding: 12px 8px; box-sizing: border-box; color: inherit; border-radius: 8px; text-decoration: none; }
#header-search-results .header-search-product img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.header-search-details { flex: 1; min-width: 0; }
.header-search-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8; font-weight: 600; }
.header-search-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 12px; }
.header-search-stock { color: #757575; }
.header-search-stock.is-available { color: #167346; }
#header-search-results .header-search-all { flex-shrink: 0; display: block; text-align: center; padding: 14px; color: #a83c00; background: #fff6ef; border-top: 1px solid #f2dfd2; font-weight: 600; }
#header-search-results a:hover { background: #fff6ef; }
#header-search-results a:focus-visible, #header-search-results button:focus-visible { outline: 2px solid #e96416; outline-offset: -3px; }
