/*
 * SIGMAN product card — ported look: square media (radius 0), card radius 4,
 * no hover zoom (card_hover_effect: none), badge top-right, wishlist heart,
 * price with small struck compare-at, currency code shown.
 */
.sgm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 16px;
}
@media screen and (max-width: 749px) {
  .sgm-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
}

.sgm-card { position: relative; border-radius: var(--card-corner-radius); }
.sgm-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--product-corner-radius);
  background: #f6f6f6;
}
.sgm-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.sgm-card__badges {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  z-index: 2;
}
.sgm-card__heart {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--sgm-shadow-sm);
  --icon-stroke-width: 1.4px;
}
.sgm-card__heart svg { width: 17px; height: 17px; }
/* 34px visual, 44px hit area. */
.sgm-card__heart::after { content: ''; position: absolute; inset: -5px; }
.sgm-card__heart[data-active='true'] svg { fill: var(--color-sale); stroke: var(--color-sale); }

.sgm-card__info { padding: 12px 0 0; }
.sgm-card__title {
  text-wrap: balance;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.35;
}
.sgm-card__title a { text-decoration: none; }
/* Sale price first, compare-at after it. The DOM order already matches (see the
   woocommerce_format_sale_price filter in inc/woocommerce.php); `order` keeps it
   right for any price HTML built outside that filter. */
.sgm-card__price {
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.sgm-card__price del { font-size: 0.82em; opacity: 0.55; order: 2; }
.sgm-card__price ins { text-decoration: none; font-weight: 700; order: 1; }
