/* ───────────────────────────────────────────────────────────
   Header search — autocomplete dropdown
   ─────────────────────────────────────────────────────────── */

.xf-search { position: relative; }

.xf-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  max-height: 560px;
  overflow-y: auto;
  z-index: 60;
  padding: 6px;
}

.xf-sugg__group + .xf-sugg__group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
}

.xf-sugg__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-3);
  padding: 8px 10px 6px;
}

.xf-sugg__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}
.xf-sugg__item.is-hover {
  background: var(--surface);
}
@media (hover: hover) {
  .xf-sugg__item:hover {
  background: var(--surface);
}
}

.xf-sugg__img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.xf-sugg__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.xf-sugg__img-fallback {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--surface-3);
}

.xf-sugg__body {
  flex: 1;
  min-width: 0;
}
.xf-sugg__name {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.xf-sugg__meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 2px;
}
.xf-sugg__brand {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-2);
}
.xf-sugg__art {
  font-family: var(--font-mono);
  color: var(--text-3);
}

.xf-sugg__price {
  flex: 0 0 auto;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  white-space: nowrap;
  padding-left: 8px;
}

.xf-sugg__item--section {
  gap: 10px;
  padding: 7px 10px;
  color: var(--text-2);
  font-size: 13px;
}
.xf-sugg__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  flex: 0 0 auto;
}

.xf-sugg__empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

.xf-sugg__all {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
}
@media (hover: hover) {
  .xf-sugg__all:hover {
  color: var(--text);
  background: var(--surface);
}
}

/* ───────────────────────────────────────────────────────────
   Search results page — /dev/search/
   ─────────────────────────────────────────────────────────── */

.xf-search-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--container-pad) 80px;
}

.xf-search-page__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.xf-search-page__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
.xf-search-page__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-3);
}

.xf-search-page__form {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 640px;
}
.xf-search-page__form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.xf-search-page__form input:focus { border-color: var(--accent-line); }
.xf-search-page__form button {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
@media (hover: hover) {
  .xf-search-page__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px var(--accent);
}
}

.xf-search-page__hint,
.xf-search-page__empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.xf-search-page__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  justify-content: flex-end;
}

.xf-search-page__sections {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.xf-search-page__sections-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-3);
  margin-right: 4px;
}
.xf-search-page__sect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
@media (hover: hover) {
  .xf-search-page__sect:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
}
.xf-search-page__sect-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: inherit;
  opacity: .7;
}

.xf-search-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.xf-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.xf-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-mono);
  transition: all .15s;
}
@media (hover: hover) {
  .xf-pager__link:hover {
  background: var(--surface-2);
  color: var(--text);
}
}
.xf-pager__link.is-active {
  background: var(--accent-dim);
  color: var(--accent-2);
  border-color: var(--accent-line);
}

@media (max-width: 767px) {
  .xf-pager__link { min-width: 44px; height: 44px; font-size: 13.5px; }
}
