﻿/* search.css — dropdown de sugestões integrado ao header existente */
.search-container { position: relative; }

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 2000;
}
.search-suggestions[hidden] { display: none; }

.search-suggestions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.search-suggestions__item:hover,
.search-suggestions__item[aria-selected="true"] { background: #fff5f7; }

.search-suggestions__thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f7fa;
}

.search-suggestions__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-suggestions__title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2328;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions__price {
  font-size: 13px;
  font-weight: 700;
  color: #ff2d55;
}

.search-suggestions__empty {
  padding: 14px;
  text-align: center;
  color: #6e7681;
  font-size: 14px;
}


/* "Buscando produto" com 3 pontinhos animados (quando nada aparece enquanto digita) */
.search-dots span { display: inline-block; animation: search-ponto 1.2s infinite ease-in-out both; }
.search-dots span:nth-child(2) { animation-delay: .2s; }
.search-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes search-ponto { 0%, 80%, 100% { opacity: .15; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .search-dots span { animation: none; opacity: 1; } }

/* BUSCANDO-MAIOR: mensagem com mais destaque */
.search-suggestions__buscando { padding: 28px 16px; font-size: 17px; font-weight: 600; color: #1f2328; }
.search-suggestions__buscando .search-dots { font-size: 26px; line-height: 0; color: #ff2d55; margin-left: 2px; }
