/* ============================================
   SEARCH.CSS — Live search overlay
   ============================================ */

.search-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 400;
  align-items: flex-start; justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(6px);
}
.search-overlay.open { display: flex; }

.search-box {
  background: #ffffff;
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 620px;
  margin: 0 1rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { color: var(--accent); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-close-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 16px; padding: 4px 8px;
  transition: color 0.2s; border-radius: var(--radius);
}
.search-close-btn:hover { color: var(--accent); }

.search-results { max-height: 420px; overflow-y: auto; }

.search-hint {
  padding: 2rem; text-align: center;
  color: var(--text-muted); font-size: 12px;
}

.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.search-result-item:hover { background: #fff7f0; }
.search-result-item:last-of-type { border-bottom: none; }

.sri-img {
  width: 56px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--bg3);
}
.sri-img img { width: 100%; height: 100%; object-fit: cover; }
.sri-info { flex: 1; }
.sri-cat { font-size: 10px; color: var(--blue); margin-bottom: 2px; }
.sri-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.sri-specs { font-size: 11px; color: var(--text-muted); }
.sri-price { font-size: 14px; font-weight: 700; white-space: nowrap; }

.search-all {
  padding: 0.875rem 1.25rem; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08); background: #f8f9fc;
}
.search-all a {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--orange); text-decoration: none;
  transition: letter-spacing 0.2s;
}
.search-all a:hover { letter-spacing: 0.05em; }
