/* ================================================
   SEARCH.CSS — Barre de recherche header
================================================ */

.header__search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.header__search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.header__search-item:hover,
.header__search-item:focus {
  background: #f7f5f0;
  outline: none;
}

.header__search-img {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: #f0ede8;
}

.header__search-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.header__search-nom {
  font-family: var(--font-body, 'Raleway', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__search-nom mark {
  background: rgba(201,169,110,0.3);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.header__search-cat {
  font-size: 0.75rem;
  color: #999;
  text-transform: capitalize;
}

.header__search-prix {
  font-family: var(--font-body, 'Raleway', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-or, #a07840);
  flex-shrink: 0;
}

.header__search-no-result,
.header__search-loading {
  padding: 16px 20px;
  color: #999;
  font-size: 0.875rem;
  font-family: var(--font-body, 'Raleway', sans-serif);
  text-align: center;
}

.header__search-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.82rem;
  font-family: var(--font-body, 'Raleway', sans-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-or, #a07840);
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,0.06);
  transition: background 0.15s;
}
.header__search-more:hover { background: #f7f5f0; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .header__search-item:hover,
  .header__search-item:focus { background: #2a2927; }
  .header__search-nom { color: #e0ddd8; }
  .header__search-more:hover { background: #2a2927; }
}
