/* Browse Assets page */
.catalog-heading {
  padding-top: 54px;
  padding-bottom: 54px;
}

.catalog-heading .section-title {
  margin: var(--kicker-title-gap) 0 0;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.052em;
}

.catalog-description {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-page {
  padding-top: 0;
}

.assets-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(43, 52, 66, 0.56);
  color: var(--text-soft);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 750;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(77, 163, 255, 0.58);
  background: rgba(77, 163, 255, 0.16);
  color: var(--text);
}

.sort-control {
  flex: 0 0 210px;
  display: grid;
  gap: 7px;
}

.sort-control label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.sort-control select {
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%),
    rgba(43, 52, 66, 0.72);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px,
    0 0;
  background-size: 5px 5px, 5px 5px, auto;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.asset-grid-browse {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: 24px;
}

.catalog-page .product-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-radius: 18px;
}

.catalog-page .product-cover {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  padding: 15px 16px;
}

.catalog-page .product-cover-label {
  padding: 4px 8px;
  margin-bottom: 8px;
  font-size: 10px;
}

.catalog-page .product-cover strong {
  max-width: 230px;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.catalog-page .product-cover small {
  max-width: 260px;
  color: var(--text-soft);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.catalog-page .product-content {
  height: 96px;
  min-height: 96px;
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(38, 47, 60, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.catalog-page .product-title-row {
  gap: 12px;
  align-items: flex-start;
  min-height: 35px;
  margin-bottom: 0;
}

.catalog-page .product-title-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-page .price {
  font-size: 14px;
}

.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.product-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(10, 14, 20, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.product-tag:hover {
  border-color: rgba(77, 163, 255, 0.45);
  color: var(--text);
  background: rgba(77, 163, 255, 0.12);
}

.asset-pagination {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.asset-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.asset-pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(43, 52, 66, 0.56);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.asset-pagination .page-numbers.current,
.asset-pagination .page-numbers:hover {
  border-color: rgba(77, 163, 255, 0.58);
  background: rgba(77, 163, 255, 0.16);
  color: var(--text);
}

.empty-catalog-card {
  max-width: 680px;
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(43, 52, 66, 0.72);
}

.empty-catalog-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.empty-catalog-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .asset-grid-browse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .assets-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-list {
    align-items: flex-start;
  }

  .sort-control {
    width: 100%;
    max-width: 260px;
    flex: none;
  }
}

@media (max-width: 860px) {
  .asset-grid-browse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .catalog-heading {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .asset-grid-browse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .asset-grid-browse { grid-template-columns: repeat(2, 336px); justify-content: start; }
}

@media (max-width: 720px) {
  .catalog-page { padding-top: 50px; }
  .asset-grid-browse { grid-template-columns: 1fr; }
}
