/* Live search overlay */
.srch-root { position: relative; }
.srch-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  width: min(42rem, calc(100vw - 2.4rem));
  background: var(--panel, #16161F);
  border: 1px solid var(--edge2, rgba(255,255,255,.12));
  border-radius: 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  z-index: 900;
  overflow: hidden;
}
.srch-panel[hidden] { display: none !important; }
.srch-field-wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--edge, rgba(255,255,255,.07));
}
.srch-field-wrap svg { flex-shrink: 0; color: var(--muted, rgba(255,255,255,.45)); }
.srch-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 1.45rem;
  min-width: 0;
}
.srch-input::placeholder { color: var(--muted, rgba(255,255,255,.45)); }
.srch-hint {
  padding: 1rem 1.2rem;
  color: var(--muted2, rgba(255,255,255,.65));
  font-size: 1.25rem;
}
.srch-list {
  max-height: calc(5 * 6.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.srch-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .9rem 1.2rem;
  text-decoration: none;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.04);
  min-height: 6.4rem;
}
.srch-item:hover,
.srch-item.is-active {
  background: rgba(255,255,255,.06);
}
.srch-thumb {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: .8rem;
  object-fit: cover;
  background: #0f0f12;
  flex-shrink: 0;
  border: 1px solid var(--edge, rgba(255,255,255,.07));
}
.srch-meta { flex: 1; min-width: 0; }
.srch-title {
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srch-price {
  margin-top: .25rem;
  color: var(--gold-lt, #e8c56a);
  font-size: 1.25rem;
  font-weight: 700;
}
.srch-empty {
  padding: 1.6rem 1.2rem;
  color: var(--muted, rgba(255,255,255,.45));
  font-size: 1.3rem;
  text-align: center;
}
.srch-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border-top: 1px solid var(--edge, rgba(255,255,255,.07));
  font-size: 1.2rem;
}
.srch-foot a {
  color: var(--cyan, #00d4ff);
  text-decoration: none;
}
.srch-foot span { color: var(--muted, rgba(255,255,255,.45)); }
.srch-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: transparent;
}
.srch-backdrop[hidden] { display: none !important; }

/* Mobile: full-width panel under header (not clipped to search button) */
@media (max-width: 1023px) {
  .srch-panel {
    position: fixed !important;
    left: 1.2rem !important;
    right: 1.2rem !important;
    top: 7.4rem !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    z-index: 960 !important;
    border-radius: 1rem;
  }
  .srch-backdrop {
    background: rgba(0, 0, 0, 0.5);
    z-index: 940;
  }
  .srch-list {
    max-height: min(60vh, 28rem);
  }
  .srch-input {
    font-size: 1.6rem;
  }
}
