/* The catalog remains visible; search results stay anchored to their input. */
body.mp-home .header-search { overflow: visible; }
body.mp-home .header-search input { font-size: 16px; min-width: 0; }
/* The search wrapper already shows focus; avoid a second box around its input. */
body.mp-home .header-search input:focus,
body.mp-home .header-search input:focus-visible { outline: none; box-shadow: none; }
.product-search-popup {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 20;
  max-height: min(440px, 55dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 8px;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.product-search-popup[hidden] { display: none; }
.product-search-summary {
  padding: 12px 14px;
  font-size: .76rem;
  line-height: 1.9;
  color: var(--text-soft);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.product-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 76px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background-color .15s ease;
  touch-action: manipulation;
}
.product-search-result:last-child { border-bottom: 0; }
.product-search-result:is(:hover, [aria-selected="true"]) { background: var(--accent-soft); }
.product-search-result img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.product-search-result > span { min-width: 0; }
.product-search-result strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .83rem;
  line-height: 1.8;
  font-weight: 500;
}
.product-search-result small { display: block; color: var(--accent-2); margin-top: 4px; font-size: .76rem; }
.product-search-original { display: block; color: var(--text-soft); font-size: .72rem; }
.product-search-reward { display: block; color: var(--accent-2); font-size: .7rem; }
@media (max-width: 980px) {
  body.mp-home.mp-search-active .main-header { top: 0; }
  body.mp-home.mp-search-active .support-widget { visibility: hidden; }
  .product-search-result { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-search-result { transition: none; }
}
