/* ══════════════════════════════════════════
   SEARCH PAGE
   https://golden-line.ru/
   NOTE: gl-breadcrumb, gl-page-h1, gl-page-sub — in main.css
══════════════════════════════════════════ */

#page-search {
  padding-top: calc(var(--nav-h) + 36px);
  min-height: 100vh;
}

/* ── Search Bar ── */
.gl-search-bar {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gl-line);
  padding-top: 20px;
}

.gl-search-input {
  flex: 1;
  border: 1px solid var(--gl-line);
  border-right: none;
  background: #ffffff;
  padding: 14px 20px;
  font-family: var(--gl-body);
  font-size: 14px;
  color: var(--gl-ink);
  transition: border-color 0.2s;
  outline: none;
}
.gl-search-input::placeholder { color: var(--gl-muted); }
.gl-search-input:focus { border-color: var(--gl-ink); }

.gl-search-btn {
  background: var(--gl-ink);
  color: var(--gl-bg);
  border: 1px solid var(--gl-ink);
  padding: 14px 28px;
  font-family: var(--gl-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gl-search-btn:hover { background: #333; }

/* ── Brand tags strip ── */
.gl-search-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gl-search-brands::-webkit-scrollbar { display: none; }

.gl-search-brands-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gl-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.gl-search-brands-list {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.gl-search-brand-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gl-line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gl-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.gl-search-brand-tag:hover {
  border-color: var(--gl-ink);
  color: var(--gl-ink);
  background: var(--gl-bg2);
}

/* Active brand tag (matching current query) */
.gl-search-brand-tag.active {
  border-color: var(--gl-ink);
  background: var(--gl-ink);
  color: var(--gl-bg);
}

/* ── Results area ── */
.gl-search-results {
  padding: 32px;
  min-height: 60vh;
}

#yandex-search-widget {
  min-height: 200px;
}

/* Empty state */
.gl-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
  min-height: 40vh;
}

.gl-search-empty-icon {
  color: var(--gl-line);
  margin-bottom: 20px;
}

.gl-search-empty-title {
  font-family: var(--gl-disp);
  font-size: 36px;
  color: var(--gl-ink);
  margin-bottom: 8px;
  line-height: 0.9;
}

.gl-search-empty-text {
  font-size: 13px;
  color: var(--gl-muted);
  line-height: 1.7;
  max-width: 320px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .gl-search-header { padding: 20px 16px 0; }
  .gl-search-results { padding: 20px 16px; }
  .gl-search-brands { padding: 14px 0 16px; }
  .gl-search-brands-label { display: none; }
  .gl-search-btn span { display: none; }
  .gl-search-btn { padding: 14px 18px; }
}