/* Active Nav Indicator */

html {
  scroll-behavior: smooth;
}

.nav-links a.active-link {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(255, 183, 3, 0.4);
}

/* Compact Catalog Header */
.catalog-hero {
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(157, 78, 221, 0.28) 0%, rgba(10, 12, 16, 0.98) 72%);
  border-bottom: 1px solid var(--border);
}

.catalog-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.catalog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 25%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.catalog-hero__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.catalog-main {
  margin-top: 2.5rem;
}

/* Filter & Search Toolbar */
.catalog-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.search-box {
  position: relative;
  flex: 1 1 240px;
}

.search-box i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(157, 78, 221, 0.25);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(157, 78, 221, 0.4);
}

.sort-box select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.sort-box select:focus {
  border-color: var(--accent-gold);
}

/* Meta & Grid */
.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.catalog-meta strong {
  color: var(--accent-cyan);
}

.reset-filters-btn {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.reset-filters-btn:hover {
  background: rgba(255, 183, 3, 0.15);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Override horizontal flex-basis from landing carousel */
.products-grid .card-item {
  flex: unset;
  min-width: 0;
}

.products-grid .card-item[hidden] {
  display: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.empty-state h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 600px) {
  .catalog-toolbar {
    padding: 0.9rem;
  }

  .sort-box,
  .sort-box select {
    width: 100%;
  }
}