.product-card {
  display: grid;
  gap: 0.7rem;
}

.product-card__media {
  aspect-ratio: 4 / 5;
  background: var(--fashion-accent-soft);
  overflow: hidden;
  position: relative;
}

.product-card__badges {
  position: absolute;
  top: 0.6rem;
  inset-inline-start: 0.6rem;
  display: flex;
  gap: 0.35rem;
}

.product-badge {
  background: var(--fashion-surface);
  color: var(--fashion-text);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.4rem;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--fs-caption);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.favorite-btn--compact {
  position: absolute;
  top: 0.45rem;
  inset-inline-end: 0.45rem;
  width: 2rem;
  height: 2rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  letter-spacing: 0;
}

.favorite-btn.is-saved {
  color: var(--fashion-text);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/*
 * Phase 19G experiment: when catalog product media is cover-cropped inside a
 * fixed aspect-ratio frame, keep the TOP of the source image visible and crop
 * from the bottom. Do not apply this to heroes, CMS editorial, or lookbook art.
 */
.gallery__slide img,
.thumb img,
.cart-line__media img {
  object-position: top center;
}

.product-card__name {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.swatch-row {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0;
  background: #d8d8d6;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #9aa3ad;
  font-size: 0.7rem;
  background: var(--fashion-accent-soft);
}
