
predictive-search {
  display: block;
  position: relative;
  width: 100%;
}

.predictive-search-results {
  width: 100%;
  max-height: 28rem;
  overflow-y: auto;
  background: var(--hdr-bg, #ffffff);
  border-top: 1px solid var(--hdr-border, #e8e8e6);
  display: none;
}

predictive-search[open="true"] .predictive-search-results {
  display: block;
}

.predictive-search-list {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}

.predictive-search-item {
  list-style: none;
}

.predictive-search-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--hdr-fg, #111111);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.predictive-search-link:hover,
.predictive-search-item[aria-selected="true"] .predictive-search-link {
  background-color: var(--hdr-soft, #f7f7f5);
}

.predictive-search-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--hdr-soft, #f3f4f6);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.predictive-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.predictive-search-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.predictive-search-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hdr-fg, #111111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.predictive-search-sku {
  font-size: 0.75rem;
  color: var(--hdr-muted, #6b7280);
}

.predictive-search-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hdr-fg, #111111);
  white-space: nowrap;
}

.predictive-search-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--hdr-muted, #6b7280);
  font-size: 0.875rem;
}

.predictive-search__loading {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
}

.predictive-search__loading .path {
  stroke: var(--color-muted, #6b7280);
}
