/* HerHealth live search dropdown */
:root {
  --hhs-rose: #d97a8c;
  --hhs-rose-soft: #fdf3f5;
  --hhs-stone: #2c2c2c;
  --hhs-stone-mid: #6b6b6b;
  --hhs-stone-soft: #efeae5;
  --hhs-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hhsearch-wrap {
  position: relative;
  flex: 1;
  display: flex;
}

.hhsearch-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  z-index: 1050;
  background: #fff;
  border: 1px solid var(--hhs-stone-soft);
  border-radius: 8px;
  box-shadow: var(--hhs-shadow);
  max-height: 70vh;
  overflow-y: auto;
}

.hhsearch-suggest[hidden] {
  display: none !important;
}

.hhsearch-loading,
.hhsearch-empty,
.hhsearch-error {
  padding: 14px 16px;
  color: var(--hhs-stone-mid);
  font-size: 14px;
}

.hhsearch-error {
  color: #b03a4a;
}

.hhsearch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hhs-stone-soft);
  text-decoration: none;
  color: var(--hhs-stone);
  transition: background-color 0.12s ease;
}

.hhsearch-item:last-of-type {
  border-bottom: none;
}

.hhsearch-item:hover,
.hhsearch-item.is-active,
.hhsearch-item:focus {
  background: var(--hhs-rose-soft);
  outline: none;
}

.hhsearch-thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--hhs-stone-soft);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.hhsearch-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.hhsearch-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--hhs-stone);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hhsearch-name mark {
  background: transparent;
  color: var(--hhs-rose);
  font-weight: 600;
  padding: 0;
}

.hhsearch-price {
  font-size: 13px;
  color: var(--hhs-stone-mid);
}

.hhsearch-viewall {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--hhs-rose);
  background: var(--hhs-rose-soft);
  text-decoration: none;
  border-top: 1px solid var(--hhs-stone-soft);
  font-weight: 600;
}

.hhsearch-viewall:hover,
.hhsearch-viewall.is-active {
  background: var(--hhs-rose);
  color: #fff;
}

@media (max-width: 768px) {
  .hhsearch-suggest {
    font-size: 14px;
  }
  .hhsearch-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
}
