/* =============================================
   EMLAKBANA COMPONENTS OVERRIDES & ADDITIONS
   ============================================= */

/* Search Results Autocomplete Dropdown */
.eb-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--eb-radius-xl);
  box-shadow: var(--eb-shadow-2xl);
  max-height: 350px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--eb-transition-spring);
}

.eb-search-results.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.eb-search-result-item {
  display: flex;
  align-items: center;
  gap: var(--eb-space-3);
  padding: var(--eb-space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--eb-transition-fast);
  color: var(--eb-white) !important;
  text-decoration: none;
}

.eb-search-result-item:last-child {
  border-bottom: none;
}

.eb-search-result-item:hover {
  background: rgba(var(--eb-primary-rgb), 0.15);
}

.eb-search-result-item img {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--eb-radius-sm);
  background: var(--eb-accent);
}

.eb-search-result-placeholder {
  width: 50px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: var(--eb-radius-sm);
  background: var(--eb-accent);
}

.eb-search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eb-search-result-title {
  font-weight: 600;
  font-size: var(--eb-font-size-sm);
  color: var(--eb-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-search-result-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.eb-search-result-price {
  font-family: var(--eb-font-heading);
  font-weight: 700;
  font-size: var(--eb-font-size-sm);
  color: var(--eb-primary-light);
  white-space: nowrap;
}

.eb-search-no-results {
  padding: var(--eb-space-4);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--eb-font-size-sm);
}

/* Custom Scrollbar for results */
.eb-search-results::-webkit-scrollbar {
  width: 6px;
}
.eb-search-results::-webkit-scrollbar-track {
  background: transparent;
}
.eb-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
.eb-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
