/* ═══════════════════════════════════════════
   ETERNITY THREAD — Product Card (shared)
   Used on homepage, shop, and product pages
   ═══════════════════════════════════════════ */

.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

.product-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-grey-100);
  text-decoration: none;
}

.product-card__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-card__heart {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
  border-radius: var(--radius-full);
  z-index: 2;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.product-card__heart:hover {
  background-color: var(--color-white);
  transform: scale(1.08);
}

.product-card__heart svg {
  width: 18px;
  height: 18px;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card__brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
  min-height: 1.2em;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-black);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card__name:hover {
  color: var(--text-muted);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-black);
  margin-top: 2px;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.product-card__price--sale {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-black);
}

.product-card__price--was {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card__discount {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 2px;
}

.product-card__actions {
  margin-top: auto;
}

.product-card__tag-btn {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  background-color: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-card__tag-btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}