/* Instant search: the nav button and the panel. Dark glass, big type, results with photos. */
.nav__search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; opacity: 0.85; transition: opacity 0.3s, background-color 0.3s; }
.nav__search:hover { opacity: 1; background: rgba(244,242,238,0.08); }
.nav__search .icon { width: 21px; height: 21px; }
.nav.is-ink .nav__search:hover { background: rgba(14,14,13,0.06); }

.menu__search {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--gut)); margin: 0 var(--gut) 8px;
  min-height: 52px; padding: 0 18px; border-radius: 999px; background: rgba(244,242,238,0.08); color: var(--mute); font-size: 16px; text-align: left;
}
.menu__search .icon { width: 20px; height: 20px; color: var(--ink); }

.srch {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column;
  background: rgba(7,7,7,0.94); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--out), visibility 0s 0.35s;
}
.srch.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--out), visibility 0s; }
.srch__bar, .srch__body > * { width: min(860px, calc(100% - 2 * var(--gut))); margin-left: auto; margin-right: auto; }
.srch__bar {
  display: flex; align-items: center; gap: 16px; padding: clamp(28px, 7vh, 80px) 0 18px;
  transform: translateY(-14px); transition: transform 0.6s var(--spring);
}
.srch.is-open .srch__bar { transform: none; }
.srch__bar > .icon { width: 28px; height: 28px; flex: none; color: var(--mute); }
.srch__bar input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink);
  font: 800 clamp(26px, 3.4vw, 44px)/1.1 var(--display); letter-spacing: -0.04em; padding: 8px 0;
}
.srch__bar input::placeholder { color: rgba(244,242,238,0.28); }
.srch__bar input::-webkit-search-cancel-button { display: none; }
.srch__close { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(244,242,238,0.08); }
.srch__close:hover { background: rgba(244,242,238,0.16); }
.srch__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 60px; }

.srch__label { margin: 26px 0 12px; font-size: 13.5px; color: var(--mute); }
.srch__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch__chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: rgba(244,242,238,0.08); font-size: 15px; transition: background-color 0.25s; }
.srch__chip:hover { background: rgba(244,242,238,0.16); }
.srch__chip--rec { background: var(--rec); color: #0b0b0b; font-weight: 600; }
.srch__chip--rec:hover { background: #ff6d37; }
.srch__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.srch__cat { display: grid; gap: 4px; }
.srch__cat span { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #141414; margin-bottom: 8px; }
.srch__cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--out); }
.srch__cat:hover img { transform: scale(1.04); }
.srch__cat b { font: 700 18px/1.1 var(--display); letter-spacing: -0.03em; }
.srch__cat small { font-size: 13.5px; color: var(--mute); }

.srch__results { display: grid; gap: 4px; padding-top: 10px; }
.sr-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; transition: background-color 0.2s; }
.sr-item:hover, .sr-item.is-active { background: rgba(244,242,238,0.08); }
.sr-item__img { width: 60px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #141414; }
.sr-item__img img { width: 100%; height: 100%; object-fit: cover; }
.sr-item__icon { width: 60px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: rgba(244,242,238,0.08); font: 700 18px var(--display); }
.sr-item__text { display: grid; gap: 3px; min-width: 0; }
.sr-item__text b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item__text small { font-size: 13.5px; color: var(--mute); }
.sr-item__price { font-weight: 600; font-size: 15px; white-space: nowrap; }
.sr-item__go { color: var(--mute); }
.sr-all { margin-top: 10px; padding: 16px 14px; text-align: left; font-weight: 600; color: var(--ink); border-radius: 14px; }
.sr-all:hover { background: rgba(244,242,238,0.06); }
.srch__none p { margin: 20px 0 16px; font-size: 17px; color: var(--mute); max-width: 46ch; }
.srch__none b { color: var(--ink); }
.srch__empty { padding: 20px 0; color: var(--mute); }

body.search-open .vee-launch, body.search-open .toast, body.search-open .pdp-bar { opacity: 0; pointer-events: none; }

@media (max-width: 699px) {
  .nav__search { width: 40px; height: 40px; }
  .srch__bar { gap: 12px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .srch__bar > .icon { width: 22px; height: 22px; }
  .srch__bar input { font-size: 22px; }
  .srch__close { width: 44px; height: 44px; }
  .srch__cats { gap: 10px; }
  .srch__cat b { font-size: 15px; }
  .sr-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; }
  .sr-item__img { width: 52px; }
  .sr-item__text b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .srch, .srch__bar { transition: none; } }
.shop__empty-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
