.page-products {
  --catalog-gap: 24px;
  --catalog-side-w: 340px;
  background: var(--bg);
}

.page-products .catalog-wrap {
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-products .breadcrumb {
  margin-bottom: 14px;
  font-size: .85rem;
  font-weight: 700;
}

.page-products .breadcrumb a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.page-products .catalog-hero {
  padding: 6px 0 18px;
  margin-bottom: 28px;
  border-bottom: 4px solid var(--ink);
}

.page-products .catalog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: -.02em;
}

.page-products .catalog-lead {
  max-width: 78ch;
  margin: 0;
  font-size: .96rem;
  line-height: 1.7;
}

.page-products .catalog-lead strong {
  padding: 0 4px;
  background: var(--yellow);
}

.page-products .section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-products .section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.page-products .section-note {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.page-products .catalog-layout {
  display: block;
}

.page-products .catalog-main,
.page-products .catalog-side {
  min-width: 0;
}

.page-products .filter-section {
  padding: 16px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.page-products .filter-banner {
  margin: 0 0 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.page-products .filter-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 400;
  object-fit: cover;
}

.page-products .filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.page-products .dimension {
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: 4px 4px 0 var(--ink);
}

.page-products .dimension-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: .84rem;
  letter-spacing: .06em;
}

.page-products .dimension-title span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .68rem;
  white-space: nowrap;
}

.page-products .dimension .tile {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  text-decoration: none;
}

.page-products .mini-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.page-products .mini-cat {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: .73rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.page-products .mini-cat:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.page-products .catalog-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px dashed var(--ink);
}

.page-products .stat-label {
  font-size: .78rem;
  font-weight: 800;
}

.page-products .stat-num {
  margin-right: 2px;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.page-products .catalog-stats .tile {
  padding: 8px 12px;
  text-decoration: none;
}

.page-products .stat-meta {
  font-size: .76rem;
  font-weight: 800;
}

.page-products .index-section {
  padding: 16px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.page-products .index-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-products .table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  order: 1;
}

.page-products .table-art {
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
  order: 2;
}

.page-products .table-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.page-products .data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.page-products .data-table th {
  padding: 10px 12px;
  border-right: 1px solid #444;
  background: var(--ink);
  color: #fff;
  font-size: .74rem;
  letter-spacing: .05em;
  white-space: nowrap;
  text-align: left;
}

.page-products .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d7d0c2;
  background: var(--paper);
  font-size: .84rem;
  vertical-align: top;
}

.page-products .data-table tbody tr:nth-child(even) td {
  background: var(--bg);
}

.page-products .data-table tbody tr:hover td {
  background: var(--yellow);
}

.page-products .data-table .status-badge {
  white-space: nowrap;
}

.page-products .status-badge--handled {
  background: var(--blue);
  color: #fff;
}

.page-products .table-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.page-products .page-indicator {
  padding: 6px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: .8rem;
  font-weight: 800;
}

.page-products .btn {
  text-decoration: none;
}

.page-products .tagcloud-panel {
  padding: 16px;
  border: 3px solid var(--ink);
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-products .tagcloud-panel .section-head h2 {
  color: #fff;
}

.page-products .tagcloud-panel .section-note {
  background: #fff;
  color: var(--purple);
}

.page-products .tagcloud-art {
  margin: 0 0 14px;
  border: 2px solid var(--ink);
  background: #fff;
}

.page-products .tagcloud-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-products .alpha-intro {
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 2px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: .95rem;
}

.page-products .alpha-icon {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.page-products .alpha-icon img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #fff;
}

.page-products .alpha-icon span {
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.page-products .alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.page-products .alpha-index a {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.page-products .alpha-index a:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.page-products .alpha-groups {
  columns: 2;
  column-gap: 12px;
}

.page-products .alpha-group {
  break-inside: avoid;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
}

.page-products .alpha-group h4 {
  margin: 0 0 6px;
  font-size: .7rem;
  letter-spacing: .1em;
  opacity: .85;
}

.page-products .alpha-group .tag {
  margin: 2px;
}

.page-products .tag {
  text-decoration: none;
}

.page-products .tag--yellow {
  border: 1px solid var(--ink);
  background: var(--yellow-tag);
  color: var(--ink);
}

.page-products .tag--blue {
  border: 1px solid var(--ink);
  background: var(--blue);
  color: #fff;
}

.page-products .tag--paper {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.page-products .tag--lg {
  padding: 6px 10px;
  font-size: .9rem;
}

.page-products .tag--sm {
  padding: 3px 7px;
  font-size: .72rem;
}

.page-products .batch-index {
  margin-top: 16px;
  padding: 14px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.page-products .batch-index h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.page-products .index-bar__btn {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.page-products .index-bar__btn:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.page-products .catalog-footer-art {
  margin-top: 32px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.page-products .catalog-footer-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-products .filter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1080px) {
  .page-products .catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--catalog-side-w);
    gap: var(--catalog-gap);
    align-items: start;
  }

  .page-products .catalog-side {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .page-products .filter-section,
  .page-products .index-section {
    padding: 20px;
  }

  .page-products .index-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .page-products .table-wrap {
    order: 2;
  }

  .page-products .table-art {
    order: 1;
  }

  .page-products .table-art img {
    max-height: none;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-products .alpha-groups {
    columns: 1;
  }

  .page-products .filter-section,
  .page-products .index-section {
    padding: 12px 10px;
  }

  .page-products .catalog-stats {
    align-items: flex-start;
  }
}
