.hdr-search {
  --panel-w: 320px;
  --s-h: 44px;
  --s-top: 66px;        
  --s-right: 24px;      

  position: fixed !important;
  top: var(--s-top) !important;
  right: var(--s-right) !important;
  z-index: 900;
  height: var(--s-h);
  display: flex;
  align-items: center;
  font-family: inherit;
}

.hdr-search__toggle {
  width: var(--s-h);
  height: var(--s-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  transition: border-color .25s var(--ease, ease),
              background .25s var(--ease, ease),
              color .25s var(--ease, ease);
}
.hdr-search__toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent, #ffd84d);
}
.hdr-search__toggle:focus-visible {
  outline: 2px solid var(--accent, #ffd84d);
  outline-offset: 2px;
}
.hdr-search__toggle svg {
  display: block;
  pointer-events: none;
}

.hdr-search__panel {
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: width .35s cubic-bezier(.165, .84, .44, 1),
              opacity .25s var(--ease, ease),
              visibility .25s;
}
.hdr-search.is-open .hdr-search__panel {
  width: var(--panel-w);
  opacity: 1;
  visibility: visible;
}

.hdr-search__form {
  width: var(--panel-w);
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
}

.hdr-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .02em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.hdr-search__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.hdr-search__input::-webkit-search-cancel-button { display: none; }
.hdr-search__input::-ms-clear { display: none; }

.hdr-search__close {
  width: 36px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color .2s var(--ease, ease);
}
.hdr-search__close:hover { color: #fff; }

.hdr-search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: var(--panel-w);
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-height: 60vh;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease, ease),
              transform .2s var(--ease, ease),
              visibility .2s;
  z-index: 960;
}
.hdr-search__dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-search__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background .2s var(--ease, ease);
}
.site-search__item:last-of-type { border-bottom: none; }
.site-search__item:hover,
.site-search__item.is-active { background: rgba(255, 255, 255, 0.06); }

.site-search__thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.site-search__body { min-width: 0; flex: 1; }
.site-search__title {
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-search__title mark {
  background: transparent;
  color: var(--accent, #ffd84d);
  font-weight: 600;
}
.site-search__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}
.site-search__price { color: var(--accent, #ffd84d); }
.site-search__empty {
  padding: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.site-search__all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color .2s, background .2s;
}
.site-search__all:hover {
  color: var(--accent, #ffd84d);
  background: rgba(255, 255, 255, 0.05);
}

.hdr-theme {
  position: fixed;
  top: calc(var(--s-top) + var(--s-h) + 8px);
  right: var(--s-right);
  width: var(--s-h);
  height: var(--s-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  color: #fff;
  cursor: pointer;
  z-index: 900;
  transition: border-color .25s var(--ease, ease),
              background .25s var(--ease, ease),
              color .25s var(--ease, ease);
}
.hdr-theme:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent, #ffd84d);
}
.hdr-theme:focus-visible {
  outline: 2px solid var(--accent, #ffd84d);
  outline-offset: 2px;
}
.hdr-theme svg {
  display: block;
  pointer-events: none;
}

.hdr-theme__icon-sun  { display: block; }
.hdr-theme__icon-moon { display: none; }
:root[data-theme="light"] .hdr-theme__icon-sun  { display: none; }
:root[data-theme="light"] .hdr-theme__icon-moon { display: block; }

.search-hero {
  padding: 120px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.search-hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.search-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -.02em;
  margin: 18px 0 0;
}
.search-hero__query { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.search-hero__query b { color: #fff; font-weight: 600; }
.search-results { padding: 40px 0 80px; }
.search-results__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.search-results__grid { margin-top: 0 !important; }
.product-card__section {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent, #ffd84d);
  margin-bottom: 6px;
}
.product-card__title mark,
.product-card__desc mark {
  background: transparent;
  color: var(--accent, #ffd84d);
  font-weight: 600;
}
.search-empty { text-align: center; padding: 80px 20px; max-width: 520px; margin: 0 auto; }
.search-empty__title { font-size: 22px; font-weight: 500; margin: 0 0 12px; }
.search-empty__text { font-size: 14px; color: rgba(255, 255, 255, .55); margin: 0 0 24px; line-height: 1.6; }
.search-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.search-pagination__arrow {
  font-family: var(--font-mono, monospace);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; text-decoration: none; transition: color .2s;
}
.search-pagination__arrow:hover { color: var(--accent, #ffd84d); }
.search-pagination__arrow.is-disabled { color: rgba(255, 255, 255, .25); pointer-events: none; }
.search-pagination__info {
  font-family: var(--font-mono, monospace);
  font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .55);
}
.search-pagination__info b { color: #fff; }

@media (max-width: 900px) {
  .hdr-search {
    --panel-w: 260px;
    --s-h: 40px;
    --s-top: 60px;
    --s-right: 18px;
  }
  .search-hero { padding: 96px 0 32px; }
  .search-results { padding: 32px 0 56px; }
}

@media (max-width: 768px) {
  .hdr-search {
    --panel-w: calc(100vw - var(--s-right, 16px) - var(--s-h, 40px) - 12px);
  }

  .hdr-search__dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(var(--s-top, 60px) + var(--s-h, 40px) + 8px);
    max-height: 65vh;
  }

  .hdr-theme {
    --s-h: 40px;
  }
}

@media (max-width: 400px) {
  .hdr-search {
    --panel-w: calc(100vw - var(--s-right, 12px) - var(--s-h, 38px) - 8px);
    --s-h: 38px;
  }
  .hdr-search__dropdown {
    left: 8px;
    right: 8px;
  }
  .hdr-search__form { height: 40px; }
  .hdr-search__panel { height: 40px; }

  .hdr-theme {
    --s-h: 38px;
  }
}