.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.product-card__media {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--c-bg-alt), var(--c-surface));
  overflow: hidden;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--c-bg-alt), var(--c-surface));
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  flex: 1;
}

.product-card__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.product-card__title a:hover,
.product-card__title a:focus-visible {
  color: var(--c-accent-dark);
}

.product-card__desc {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

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

.product-card__current-price {
  font-weight: var(--fw-bold);
  color: var(--c-accent-dark);
}

.product-card__old-price {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-decoration: line-through;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.product-card__cart-form {
  flex: 1;
}

.product-card__cart-form .btn {
  width: 100%;
}

.saved-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.saved-button--active {
  border-color: var(--c-accent-light);
  background: var(--c-accent-bg);
  color: var(--c-accent-dark);
}

@media (min-width: 960px) {
  .product-card:hover,
  .product-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
  }
}
