.search-bar { position: relative; }

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 320px;
  overflow-y: auto;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}

.search-suggestion-item:hover { background: #f8f9fa; }

.search-suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.search-suggestion-item strong { margin-left: auto; }

.ai-assistant {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
}

.ai-assistant-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #ec3237;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.45);
}

.ai-assistant-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #ec3237;
  color: #fff;
}

.ai-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.ai-msg {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 90%;
}

.ai-msg-bot { background: #f1f3f5; }

.ai-msg-user {
  background: #ec3237;
  color: #fff;
  margin-left: auto;
}

.ai-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ai-product-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  border: 1px solid #eee;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}

.ai-product-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ai-assistant-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #eee;
}
