/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.ep-search-bar {
  flex: 1;
  position: relative;
}

.ep-search-bar form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.ep-search-bar input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 120px 11px 16px;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  font-size: .9rem;
  background: #fff;
  color: var(--ep-text);
  transition: .2s;
  height: 44px;
}

.ep-search-bar input:focus {
  outline: none;
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 3px rgba(var(--ep-primary-rgb), .12);
}

.ep-search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ep-gradient-primary);
  border: none;
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: .72rem;
  letter-spacing: .5px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(var(--ep-primary-rgb), .22);
  height: 32px;
  display: flex;
  align-items: center;
}

.ep-search-bar button:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   SEARCH SUGGESTIONS
   ========================================================================== */
.ep-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 60px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(7, 31, 70, .14);
  max-height: 450px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  scroll-behavior: smooth;
}

.ep-search-suggestions.ep-show {
  display: block;
}

.ep-suggestions-section {
  padding: 12px 0;
}

.ep-suggestions-section:not(:last-child) {
  border-bottom: 1px solid var(--ep-border);
}

.ep-suggestions-header {
  padding: 8px 16px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ep-text-soft);
}

.ep-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: .15s;
  text-decoration: none;
  color: var(--ep-text);
}

.ep-suggestion-item:hover {
  background: var(--ep-bg-alt);
}

.ep-suggestion-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ep-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-primary);
  font-size: .7rem;
  font-weight: 600;
}

.ep-suggestion-text {
  flex: 1;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ep-text);
}

.ep-no-suggestions {
  padding: 24px 16px;
  text-align: center;
  font-size: .8rem;
  color: var(--ep-text-soft);
}

/* Suggestions Scrollbar */
.ep-search-suggestions::-webkit-scrollbar,
.ep-hero-suggestions::-webkit-scrollbar {
  width: 8px;
}

.ep-search-suggestions::-webkit-scrollbar-track,
.ep-hero-suggestions::-webkit-scrollbar-track {
  background: var(--ep-bg-alt);
  border-radius: 10px;
}

.ep-search-suggestions::-webkit-scrollbar-thumb,
.ep-hero-suggestions::-webkit-scrollbar-thumb {
  background: var(--ep-border-strong);
  border-radius: 10px;
}

.ep-search-suggestions::-webkit-scrollbar-thumb:hover,
.ep-hero-suggestions::-webkit-scrollbar-thumb:hover {
  background: var(--ep-primary);
}

