/* Search suggest dropdown (image + 2-line truncated title) */
.hm-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  z-index: 100050;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  box-sizing: border-box;
}

.hm-search-suggest.is-open {
  display: block;
}

.hm-search-suggest.is-fixed {
  position: fixed;
  margin-top: 0;
  right: auto;
}

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

.hm-search-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  transition: background 0.15s ease;
}

.hm-search-suggest-item:last-child {
  border-bottom: 0;
}

.hm-search-suggest-item:hover,
.hm-search-suggest-item.is-active {
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.hm-search-suggest-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hm-search-suggest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-search-suggest-thumb .fa {
  color: #9ca3af;
  font-size: 18px;
}

.hm-search-suggest-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.hm-search-suggest-empty,
.hm-search-suggest-footer {
  padding: 10px 12px;
  font-size: 12px;
  color: #6b7280;
  text-align: left;
}

.hm-search-suggest-footer {
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
}

.hm-search-suggest-footer a,
.hm-search-suggest-footer button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.hm-search-suggest-footer a:hover,
.hm-search-suggest-footer button:hover {
  color: var(--search-btn-color, #ff6b35);
  text-decoration: none;
}

/* Anchor forms: dropdown sibling must not be clipped by overflow:hidden wraps */
.header-search-form,
.nav-compact-search,
.mobile-search-form,
.mobile-unified-search-form {
  position: relative;
}
