/* AJAX Live Search Dropdown Styles */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  border: 1px solid #eaeaea;
  padding: 8px 0;
}

.search-results-dropdown.active {
  display: block;
  animation: searchFadeIn 0.25s ease-out;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--Text-Color, #1b2629);
  transition: background-color 0.2s ease;
}

.search-result-item a:hover {
  background-color: #f9f7f3;
}

.search-result-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow: hidden;
}

.search-result-title {
  font-family: var(--Font-Second, "Lora", serif);
  font-size: 15px;
  font-weight: 600;
  color: #1b2629;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--Font-First, "Inter", sans-serif);
  font-size: 12px;
  color: #5c5c5c;
}

.search-result-category {
  color: #9c702a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-no-results,
.search-loading {
  padding: 20px;
  text-align: center;
  font-family: var(--Font-First, "Inter", sans-serif);
  font-size: 14px;
  color: #5c5c5c;
}

.search-loading i {
  color: #9c702a;
  margin-right: 8px;
}
