.sgp-theme-collection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.sgp-theme-back {
  text-align: center;
  margin-bottom: 12px;
}

.sgp-theme-back a {
  font-size: 14px;
  color: var(--sg-primary, #1b7a7a);
  text-decoration: none;
}

.sgp-theme-back a:hover {
  text-decoration: underline;
}

.sgp-theme-collection-title {
  font-family: var(--sg-font-heading, serif);
  color: var(--sg-text, #1a2e5c);
  text-align: center;
  margin-bottom: 8px;
}

.sgp-theme-collection-subtitle {
  text-align: center;
  color: var(--sg-text-muted, #5c6b82);
  font-size: 14px;
  margin: 0 0 32px;
}

.sgp-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.sgp-theme-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--sg-surface, #fff);
  border-radius: var(--sg-radius-lg, 16px);
  padding: 12px;
  box-shadow: var(--sg-shadow, 0 2px 14px rgba(26, 46, 92, 0.08));
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sgp-theme-card:hover {
  box-shadow: var(--sg-shadow-lg, 0 12px 40px rgba(26, 46, 92, 0.14));
  transform: translateY(-2px);
}

.sgp-theme-card-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--sg-radius, 10px);
  overflow: hidden;
  background: #f5f3ef;
}

.sgp-theme-card-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sgp-theme-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--sg-text, #1a2e5c);
}

.sgp-theme-card-design {
  font-size: 13px;
  color: var(--sg-text-muted, #5c6b82);
}
