/* ── search.css — Timeless Editorial search page ── */

.search-page {
  padding-top: 64px;
  padding-bottom: 120px;
}

/* ── Hero (empty state) ─────────────────────────────────── */
.sc-hero {
  max-width: 640px;
  margin: 0 0 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.sc-hero-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 32px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── Results header ─────────────────────────────────────── */
.sc-results-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.sc-results-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sc-results-title em {
  font-style: italic;
  color: var(--text);
}

/* ── Search form ────────────────────────────────────────── */
.sc-form {
  display: flex;
  gap: 0;
  max-width: 560px;
}

.sc-form-wrap {
  position: relative;
  flex: 1;
}

.sc-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text);
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.sc-input::placeholder { color: var(--soft); }
.sc-input:focus { border-bottom-color: var(--red); }

.sc-btn {
  height: 52px;
  padding: 0 28px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--black);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-btn:hover { background: var(--red); }

/* ── Section label ──────────────────────────────────────── */
.sc-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 20px;
}

/* ── Popular searches ───────────────────────────────────── */
.sc-popular {
  margin-bottom: 64px;
}

.sc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-pills a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s;
}
.sc-pills a:hover { border-color: var(--text); }

/* ── Category grid ──────────────────────────────────────── */
.sc-cats {
  margin-bottom: 64px;
}

.sc-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.sc-cat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px;
  background: var(--surface);
  text-decoration: none;
  transition: background 0.15s;
}
.sc-cat-card:hover { background: var(--surface-low); }

.sc-cat-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.sc-cat-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--soft);
  line-height: 1.4;
}

/* ── Top brands (empty state) ───────────────────────────── */
.sc-top-brands {
  margin-bottom: 64px;
}

.sc-brands-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-brand-pill {
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s;
}
.sc-brand-pill:hover { border-color: var(--text); }

/* ── Brand suggestion cards (results state) ─────────────── */
.sc-brands-strip {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.sc-brand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--border);
}

.sc-brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  min-width: 160px;
  background: var(--surface);
  text-decoration: none;
  transition: background 0.15s;
}
.sc-brand-card:hover { background: var(--surface-low); }

.sc-brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.sc-brand-count {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--soft);
}

/* ── Results bar ────────────────────────────────────────── */
.sc-results {
  margin-bottom: 64px;
}

.sc-results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sc-results-count {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ── Empty state ────────────────────────────────────────── */
.sc-empty {
  padding: 80px 0 64px;
  max-width: 560px;
}

.sc-empty-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 16px;
}
.sc-empty-title em { font-style: italic; }

.sc-empty-hint {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px;
}

.sc-empty-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sc-empty-cats a {
  border: 1px solid var(--border);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
}
.sc-empty-cats a:hover { border-color: var(--text); }

/* ── Pagination ─────────────────────────────────────────── */
.sc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.sc-pagination-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--text);
}
.sc-pagination-btn:hover { background: var(--text); color: #fff; }

.sc-pagination-info {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--soft);
  letter-spacing: 0.05em;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .search-page { padding-top: 40px; padding-bottom: 80px; }

  .sc-hero { margin-bottom: 48px; padding-bottom: 40px; }
  .sc-hero-title { font-size: 32px; }

  .sc-results-title { font-size: 26px; }

  .sc-form { flex-direction: column; gap: 0; }
  .sc-input { border-right: none; border-bottom: 1px solid var(--text); }
  .sc-btn { height: 48px; }

  .sc-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-brand-cards { gap: 1px; }
  .sc-brand-card { min-width: 0; flex: 1 1 140px; }

  .sc-empty { padding: 48px 0 40px; }
  .sc-empty-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .sc-cat-grid { grid-template-columns: 1fr 1fr; }
  .sc-hero-title { font-size: 28px; }
}
