/* NH LabShack — smart header search + autocomplete. Self-contained, theme-aware. */
/* The nav uses overflow-x:auto for horizontal scroll, which clips the dropdown
   inside the black nav bar. Switch it to wrap so the panel can extend below it. */
.nh-nav__inner { overflow: visible; flex-wrap: wrap; row-gap: 0; }
.nh-search { position: relative; margin-left: auto; flex: 0 1 360px; min-width: 190px; }
.nh-search__input {
  width: 100%; box-sizing: border-box;
  padding: 9px 32px 9px 36px;
  border: 1px solid var(--nh-line); border-radius: 8px;
  font: 14px/1.2 var(--nh-font-body); color: var(--nh-black);
  background: var(--nh-white); -webkit-appearance: none; appearance: none;
}
.nh-search__input::-webkit-search-cancel-button { display: none; }
.nh-search__input::placeholder { color: var(--nh-gray); }
.nh-search__input:focus { outline: none; border-color: var(--nh-red); box-shadow: 0 0 0 3px rgba(207,26,28,.14); }
.nh-search__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--nh-gray); pointer-events: none; }
.nh-search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--nh-gray); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 7px; display: none; }
.nh-search.is-filled .nh-search__clear { display: block; }

.nh-search__panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--nh-white); border: 1px solid var(--nh-line); border-radius: 10px;
  box-shadow: var(--nh-shadow-card, 0 12px 30px rgba(0,0,0,.14));
  z-index: 60; overflow: hidden auto; max-height: 72vh;
}
.nh-search__panel[hidden] { display: none; }

.nh-sug { display: flex; align-items: center; gap: 12px; padding: 9px 12px; text-decoration: none; color: var(--nh-black); border-bottom: 1px solid var(--nh-line); }
.nh-sug:last-of-type { border-bottom: 0; }
.nh-sug.is-active, .nh-sug:hover { background: var(--nh-offwhite); }
.nh-sug__img { width: 46px; height: 46px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--nh-line); border-radius: 6px; }
.nh-sug__body { min-width: 0; flex: 1; }
.nh-sug__title { font: 600 13.5px/1.3 var(--nh-font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-sug__meta { font: 12px/1.3 var(--nh-font-body); color: var(--nh-gray); margin-top: 2px; }
.nh-sug__price { font: 700 13px/1 var(--nh-font-body); color: var(--nh-red); white-space: nowrap; align-self: center; }
.nh-sug mark { background: transparent; color: var(--nh-red); font-weight: 800; }
.nh-search__all { display: block; padding: 11px 12px; font: 700 12.5px/1 var(--nh-font-body); letter-spacing: .02em; text-transform: uppercase; text-align: center; background: var(--nh-charcoal); color: #fff; text-decoration: none; }
.nh-search__all:hover { background: var(--nh-black); }
.nh-search__empty { padding: 16px 12px; font: 13px/1.4 var(--nh-font-body); color: var(--nh-gray); text-align: center; }
.nh-search__empty a { color: var(--nh-red); }

@media (max-width: 680px) {
  .nh-nav__inner { flex-wrap: wrap; }
  .nh-search { order: 9; flex-basis: 100%; min-width: 0; margin: 8px 0 2px; }
}
