/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */

.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #f4f4f4 0%, #b8b8b8 55%, #6a6a6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .gold {
  background: linear-gradient(180deg, #e8d5a3 0%, var(--gold) 55%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.15s;
}
.hero-search:focus-within { border-color: var(--gold); }
.hero-search input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search button {
  padding: 0 1.25rem;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.hero-search button:hover { color: var(--gold); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-stats .dot { color: var(--gold-dim); }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADERS (shared)
   ═══════════════════════════════════════════════════════════ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 3rem auto 1.25rem;
  padding: 0 1.5rem;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.section-head a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.section-head a:hover { color: var(--gold); }

.grid-count {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════════════════ */

.cat-section { padding-bottom: 0.5rem; }

.cat-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.25rem 1.5rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.cat-strip::-webkit-scrollbar { height: 6px; }
.cat-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cat-strip::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

.cat-tile {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 130px;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cat-tile:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--bg-raised);
}
.cat-tile.is-active {
  border-color: var(--gold);
  background: rgba(212,175,55,0.06);
  color: var(--gold);
}
.cat-tile .cat-icon {
  color: var(--text-faint);
  display: inline-flex;
  margin-bottom: 0.25rem;
}
.cat-tile .cat-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.cat-tile .cat-count {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.cat-tile.cat-all {
  border-left: 2px solid var(--gold-dim);
}

.cat-tile.is-skeleton {
  height: 3.4rem;
  background: linear-gradient(90deg, var(--bg-surface), var(--bg-raised), var(--bg-surface));
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-color: transparent;
  pointer-events: none;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════ */

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.filter-group-right { margin-left: auto; }

.filter-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Switch */
.filter-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-dim);
  user-select: none;
}
.filter-switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  outline: none;
  flex-shrink: 0;
}
.filter-switch input::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.15s, background 0.15s;
}
.filter-switch input:checked {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold-dim);
}
.filter-switch input:checked::after {
  transform: translateX(16px);
  background: var(--gold);
}
.filter-switch input:focus-visible {
  box-shadow: 0 0 0 2px rgba(212,175,55,0.35);
}
.filter-switch span:last-child { white-space: nowrap; }
.filter-switch:has(input:checked) span:last-child { color: var(--text); }

/* Price range */
.filter-price {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.filter-price input {
  width: 72px;
  padding: 0.4rem 0.55rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
}
.filter-price input:focus { border-color: var(--gold); }
.filter-price input::-webkit-outer-spin-button,
.filter-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-price input::placeholder { color: var(--text-faint); }
.filter-price .filter-dash { color: var(--text-faint); }
.filter-price .filter-currency {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-left: 0.15rem;
}

/* Reset */
.filter-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  transition: color 0.15s, border-color 0.15s;
}
.filter-reset:hover { color: var(--gold); border-color: var(--gold-dim); }

/* Sort */
.filter-select {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-select select {
  padding: 0.4rem 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}
.filter-select select:focus { border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   GRID + MORE
   ═══════════════════════════════════════════════════════════ */

.grid-section { padding-bottom: 3rem; }

.grid-more {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 0;
}
.grid-more button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: 0.15s;
}
.grid-more button:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.empty-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.empty-lead {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-lead { font-size: 0.9rem; }
  .hero-stats { font-size: 0.68rem; gap: 0.5rem; }
  .cat-strip { padding: 0.25rem 0.75rem 1rem; gap: 0.5rem; }
  .cat-tile { min-width: 110px; padding: 0.7rem 0.85rem; font-size: 0.8rem; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 1rem;
  }
  .filter-group { justify-content: space-between; }
  .filter-group-right { margin-left: 0; }
  .section-head { padding: 0 0.75rem; margin-top: 2rem; }
}
