/* Live product suggestions for the header search bar.
   Styling reuses the archived storefront's own design tokens so the dropdown
   matches the existing header instead of introducing a new look. */
.search-suggestions {
  position: fixed;
  z-index: 999;
  overflow: auto;
  box-sizing: border-box;
  padding: 8px;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.search-suggestion[data-active="true"],
.search-suggestion:hover {
  background: var(--muted);
}

.search-suggestion-image {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 2px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.search-suggestion-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.search-suggestion-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.search-suggestion-meta {
  display: flex;
  gap: 6px;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted-foreground);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-suggestion-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  direction: ltr;
  unicode-bidi: isolate;
}

.search-suggestions-all {
  display: block;
  margin-top: 4px;
  padding: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.search-suggestions-all:hover {
  background: var(--muted);
}

.search-suggestions-empty {
  display: flex;
  gap: 5px;
  padding: 10px 8px;
  margin: 0;
  font-size: 11.5px;
  color: var(--muted-foreground);
}

.search-suggestions-query {
  margin-inline-start: 4px;
  font-weight: 700;
  color: var(--foreground);
  direction: ltr;
  unicode-bidi: isolate;
}
@media (max-width: 640px) {
  .search-suggestion { gap: 10px; padding: 10px 6px; flex-wrap: wrap; }
  .search-suggestion-image { width: 56px; height: 56px; }
  .search-suggestion-body { flex-basis: calc(100% - 80px); }
  .search-suggestion-price { margin-inline-start: 66px; }
  .search-suggestions-all { overflow-wrap: anywhere; }
}
