/* Store catalog grid — uses the color variables already defined in
   styles.css (--bg, --text, --muted, --line, --card); this file only adds
   new classes, it never redefines existing ones. */

.store-content {
  max-width: 1080px;
}

.store-intro {
  margin-bottom: 28px;
}
.store-intro h1 {
  margin: 4px 0 8px;
}
.store-intro p {
  color: var(--muted);
  max-width: 560px;
}

.store-loading,
.store-empty,
.store-error {
  color: var(--muted);
  font-size: 14px;
}
.store-error { color: #b91c1c; }

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

.store-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.store-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg);
  display: block;
}

.store-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.store-card-name {
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}
.store-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.store-card-action {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--text);
  color: #fff;
}
.store-card-action:hover { filter: brightness(1.1); }

@media (max-width: 480px) {
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Pointer to the parametric customizer ---------- */
.store-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.store-promo-title { margin: 0 0 2px; font-weight: bold; font-size: 14px; }
.store-promo-text { margin: 0; font-size: 13px; color: var(--muted); }
.store-promo .store-card-action { margin-top: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .store-promo { flex-direction: column; align-items: flex-start; }
}
