.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding: 24px 0 0;
  border-top: 1px solid #e9e9e9;
}

.pagination-link,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pagination-link {
  background: #ffffff;
  color: #171717;
  border: 1px solid #dfe3e8;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.pagination-link:hover {
  background: #f5f7fa;
  border-color: #cdd5dc;
  text-decoration: none;
}

.pagination-current {
  min-width: 156px;
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #1e293b;
  pointer-events: none;
}

@media (max-width: 640px) {
  .catalog-pagination {
    justify-content: space-between;
    gap: 8px;
    margin-top: 32px;
  }

  .pagination-link,
  .pagination-current {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 0 12px;
  }

  .pagination-current {
    order: 2;
    text-align: center;
  }
}
