/**
 * AI Commerce Engine for WooCommerce
 * Storefront AI Product Search & Discovery Stylesheet
 */

:root {
  --aice-search-primary: #4f46e5;
  --aice-search-bg: #ffffff;
  --aice-search-surface: #f8fafc;
  --aice-search-text: #0f172a;
  --aice-search-muted: #64748b;
  --aice-search-border: #e2e8f0;
}

/* Storefront Search Autocomplete Dropdown */
.aice-search-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--aice-search-border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  z-index: 99999;
  max-height: 380px;
  overflow-y: auto;
  font-family: inherit;
}

.aice-search-suggest-item {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--aice-search-surface);
  transition: background 0.15s ease;
}

.aice-search-suggest-item:hover,
.aice-search-suggest-item.is-selected {
  background: var(--aice-search-surface);
}

.aice-search-suggest-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--aice-search-text);
}

.aice-search-suggest-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--aice-search-primary);
}

/* Search AI Explanation Banner */
.aice-search-ai-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  color: #166534;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Faceted Search Filter Bar */
.aice-search-facets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.aice-facet-chip {
  background: #ffffff;
  border: 1px solid var(--aice-search-border);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--aice-search-text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.aice-facet-chip:hover,
.aice-facet-chip.is-active {
  background: var(--aice-search-primary);
  color: #ffffff;
  border-color: var(--aice-search-primary);
}
