/* -------------------------------------------------------------------------
 * Browse Assets page, compact catalog cards and tag filters
 * ------------------------------------------------------------------------- */

.catalog-heading {
  padding-top: 54px;
  padding-bottom: 54px;
}

.catalog-heading .section-kicker,
.section.catalog-heading .section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.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-assets-section {
  padding-top: 0;
}

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

.catalog-assets-section .catalog-filter-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

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

.catalog-assets-section .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;
}

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

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

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

.catalog-assets-section .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;
}

.catalog-assets-section .asset-grid-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: stretch;
  gap: 24px;
  overflow: visible;
}

.catalog-assets-section .product-card,
.catalog-assets-section .catalog-product-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: rgba(43, 52, 66, 0.72);
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.catalog-assets-section .product-card:hover,
.catalog-assets-section .catalog-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 163, 255, 0.38);
  background: rgba(48, 59, 75, 0.88);
}

.catalog-assets-section .product-cover {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(77, 163, 255, 0.18), transparent 12rem),
    linear-gradient(135deg, #344555, #202633);
}

.catalog-assets-section .product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 26, 35, 0.015), rgba(20, 26, 35, 0.12)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 46%);
  pointer-events: none;
}

.catalog-assets-section .cover-slot {
  background:
    radial-gradient(circle at 76% 20%, rgba(210, 173, 130, 0.30), transparent 12rem),
    linear-gradient(135deg, #3A4656, #202633);
}

.catalog-assets-section .cover-card {
  background:
    radial-gradient(circle at 76% 20%, rgba(114, 214, 163, 0.28), transparent 12rem),
    linear-gradient(135deg, #344555, #202633);
}

.catalog-assets-section .cover-match {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 126, 177, 0.27), transparent 12rem),
    linear-gradient(135deg, #3B365C, #202633);
}

.catalog-assets-section .cover-bubble {
  background:
    radial-gradient(circle at 76% 20%, rgba(91, 218, 246, 0.28), transparent 12rem),
    linear-gradient(135deg, #2B5262, #202633);
}

.catalog-assets-section .cover-tool {
  background:
    radial-gradient(circle at 74% 18%, rgba(150, 97, 255, 0.30), transparent 13rem),
    linear-gradient(135deg, #342C55, #202633);
}

.catalog-assets-section .cover-html {
  background:
    radial-gradient(circle at 76% 20%, rgba(238, 164, 86, 0.28), transparent 12rem),
    linear-gradient(135deg, #4A3955, #202633);
}

.catalog-assets-section .product-cover.has-product-image {
  background-image:
    linear-gradient(180deg, rgba(20, 26, 35, 0.03), rgba(20, 26, 35, 0.18)),
    var(--mk-cover-image);
  background-size: cover;
  background-position: center;
}

.catalog-assets-section .product-cover-label,
.catalog-assets-section .product-cover strong,
.catalog-assets-section .product-cover small {
  position: relative;
  z-index: 2;
}

.catalog-assets-section .product-cover-label {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 8px;
  background: rgba(10, 14, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 10px;
  font-weight: 750;
}

.catalog-assets-section .product-cover strong {
  max-width: 230px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.catalog-assets-section .product-cover small {
  max-width: 260px;
  color: var(--text-soft);
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-assets-section .product-content {
  height: 112px;
  min-height: 112px;
  padding: 15px 16px 16px;
  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-assets-section .product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  margin-bottom: 0;
}

.catalog-assets-section .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-assets-section .price {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-assets-section .price del,
.catalog-assets-section .price .from {
  display: none;
}

.catalog-assets-section .price ins {
  text-decoration: none;
}

.catalog-assets-section .free-price {
  color: var(--green);
}

.catalog-assets-section .product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.catalog-assets-section .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;
}

.catalog-assets-section .product-tag.engine-tag {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 20, 0.24);
}

.catalog-assets-section .pagination,
.catalog-assets-section .asset-pagination {
  width: fit-content;
  max-width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 38px auto 0;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(27, 33, 43, 0.42);
}

.catalog-assets-section .pagination .page-numbers,
.catalog-assets-section .page-link {
  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;
  padding: 0 13px;
}

.catalog-assets-section .pagination .page-numbers.current,
.catalog-assets-section .pagination .page-numbers:hover,
.catalog-assets-section .page-link.is-active,
.catalog-assets-section .page-link:hover {
  border-color: rgba(77, 163, 255, 0.58);
  background: rgba(77, 163, 255, 0.16);
  color: var(--text);
}

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

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

  .catalog-assets-section .catalog-filter-stack {
    width: 100%;
  }

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

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

@media (max-width: 860px) {
  .catalog-assets-section .asset-grid-catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

  .catalog-assets-section .asset-grid-catalog {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-assets-section .product-card,
  .catalog-assets-section .product-cover {
    width: 100%;
  }

  .catalog-assets-section .product-cover strong {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .catalog-assets-section .pagination,
  .catalog-assets-section .asset-pagination {
    width: 100%;
    border-radius: var(--radius-md);
  }
}
