/* ==========================================================
   BUSCA INTELIGENTE
   ========================================================== */

.catalog-search-row {
  position: relative;
  align-items: flex-start;
}

.catalog-search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.catalog-search-input {
  padding-right: 44px;
}

.catalog-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #7f9785;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}

.catalog-search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.busca-sugestoes {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0f1913;
  border: 1px solid #223829;
  border-radius: 12px;
  padding: 8px;
  box-shadow: none;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 4px;
}

.busca-sugestoes.aberto {
  display: flex;
}

.busca-sugestao-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  color: #e5eee6;
}

.busca-sugestao-item:hover,
.busca-sugestao-item.ativa {
  background: rgba(60, 212, 51, 0.12);
  border-color: rgba(60, 212, 51, 0.28);
}

.busca-sugestao-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #121f18;
}

.busca-sugestao-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.busca-sugestao-nome {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.busca-sugestao-cat {
  font-size: 11px;
  color: #7f9785;
  text-transform: uppercase;
}

.busca-sugestao-preco {
  font-size: 13px;
  font-weight: 700;
  color: #3cd433;
  white-space: nowrap;
}

.busca-sugestao-vazio {
  padding: 12px 10px;
  font-size: 13px;
  color: #7f9785;
  text-align: center;
}

.busca-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #223829;
  background: #121f18;
  color: #a2b7a6;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.busca-chip:hover {
  background: #182820;
  color: #ffffff;
}

.busca-chip.ativo {
  background: rgba(60, 212, 51, 0.16);
  border-color: rgba(60, 212, 51, 0.4);
  color: #3cd433;
}

.catalog-filter-wrap {
  display: flex;
  flex: 0 0 auto;
}

.catalog-filter-wrap[hidden] {
  display: none;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: #3cd433;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .busca-sugestoes {
    max-height: 70vh;
  }

  .catalog-search-row {
    flex-wrap: wrap;
  }

  .catalog-search-input-wrap {
    flex: 1 1 100%;
  }

  .catalog-filter-wrap,
  .catalog-search-row .catalog-sort-select {
    flex: 1 1 calc(50% - 4px);
  }
}