/* Shared catalogue presentation. Data, ordering, navigation and refresh remain
   owned by grid-loader; the page shells and fixed purchase panels are unchanged. */
.creation-catalogue {
  display: block;
  width: 100%;
}

.creation-group + .creation-group {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9e5e3;
}

.creation-group-heading {
  margin: 0 0 1rem;
  color: var(--color-ink);
  font-family: var(--font-public);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  text-align: left;
}

.creation-group--sold .creation-group-heading {
  color: #625b57;
  font-size: 1.125rem;
}

.creation-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem 0.75rem;
}

.creation-group--sold .creation-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem 0.5rem;
}

.creation-catalogue :is(.catalogue-card, .product-other-card, .fomo-card) {
  display: block;
  min-width: 0;
  aspect-ratio: auto;
  border: 1px solid #e9e5e3;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
  overflow: hidden;
  color: var(--color-ink);
  text-decoration: none;
}

.creation-catalogue :is(.catalogue-card, .product-other-card, .fomo-card):focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.creation-catalogue :is(.catalogue-card-img, .product-other-card-img, .fomo-card-img) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.creation-catalogue .is-sold :is(.catalogue-card-img, .product-other-card-img, .fomo-card-img),
.creation-catalogue .is-sold:hover :is(.catalogue-card-img, .product-other-card-img, .fomo-card-img) {
  opacity: 1;
  filter: none;
}

.creation-catalogue :is(.catalogue-card-overlay, .product-other-card-overlay, .fomo-card-overlay) {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  min-height: 0;
  padding: 0.625rem 0.625rem 0.75rem;
  background: #f8f5f2;
  color: var(--color-ink);
}

.creation-catalogue :is(.catalogue-card-name, .product-other-card-name, .fomo-card-name) {
  display: block;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-ink);
  font-family: var(--font-public);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-shadow: none;
}

.creation-catalogue :is(.catalogue-card-price, .product-other-card-price, .fomo-card-price) {
  flex: none;
  align-self: flex-end;
  color: #38312d;
  font-family: var(--font-public);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-shadow: none;
}

.creation-group--sold :is(.catalogue-card-overlay, .product-other-card-overlay, .fomo-card-overlay) {
  padding: 0.5rem 0.375rem 0.625rem;
}

.creation-group--sold :is(.catalogue-card-name, .product-other-card-name, .fomo-card-name) {
  font-size: 0.875rem;
}

.creation-catalogue :is(.catalogue-card-price, .product-other-card-price, .fomo-card-price).is-sold {
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-shadow: none;
}
