/*
 * Product visual plate + product card — shared between homepage sections,
 * the shop grid and the PDP. Ported from
 * app/src/components/commerce/ProductVisual.module.css and
 * app/src/components/commerce/ProductCard.module.css.
 */

.slg-plate {
  position: relative;
  background: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.slg-plate img,
.slg-plate video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slg-plate--card { aspect-ratio: 4 / 5; }
.slg-plate--detail { aspect-ratio: 4 / 5; }
.slg-plate--feature { aspect-ratio: 16 / 10; }

.slg-plate__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.slg-plate--card .slg-plate__copy { padding: 20px; }
.slg-plate--detail .slg-plate__copy { padding: var(--space-6); }
.slg-plate--feature .slg-plate__copy { padding: var(--space-7); }

.slg-plate__slogan {
  color: var(--bone);
  line-height: 1.1;
}
.slg-plate--card .slg-plate__slogan { font-size: 22px; }
.slg-plate--detail .slg-plate__slogan { font-size: 32px; }
.slg-plate--feature .slg-plate__slogan { font-size: clamp(32px, 5vw, 64px); }

.slg-plate__secondary {
  color: var(--ink-200);
}

.slg-plate__sold-out-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 19, 15, 0.55);
}

/* Product card */
.slg-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface-card);
  border: var(--border-w) solid var(--border-default);
  box-shadow: var(--shadow-tag);
  transition: box-shadow var(--dur-fast) var(--ease-snap), transform var(--dur-fast) var(--ease-snap);
}
.slg-card:hover {
  box-shadow: var(--shadow-tag-hover);
  transform: translate(-1px, -1px);
  color: inherit;
}

.slg-card__visual-wrap {
  position: relative;
}

.slg-card__badge-slot {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.slg-card__details {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slg-card__collection {
  color: var(--text-muted);
}

.slg-card__title {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-primary);
}

/* Product grid — shared by shop archive, current-drop, evergreen-grid,
   related products. Ported from the *.module.css .grid rules (all
   identical: 4 columns desktop, 2 tablet, 1 phone). */
.slg-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1023px) {
  .slg-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .slg-product-grid {
    grid-template-columns: 1fr;
  }
}
