.learning-legacy-product-cards {
  width: 100%;
  margin: 2rem 0;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.learning-legacy-product-cards[data-columns="1"] .product-cards-grid {
  grid-template-columns: repeat(1, 1fr);
}

.learning-legacy-product-cards[data-columns="2"] .product-cards-grid {
  grid-template-columns: repeat(2, 1fr);
}

.learning-legacy-product-cards[data-columns="3"] .product-cards-grid {
  grid-template-columns: repeat(3, 1fr);
}

.learning-legacy-product-cards[data-columns="5"] .product-cards-grid {
  grid-template-columns: repeat(5, 1fr);
}

.learning-legacy-product-cards[data-columns="6"] .product-cards-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1024px) {
  .product-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .product-cards-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card-content {
  padding: 1.25rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-author {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #b7195c;
}

.product-card-price .woocommerce-Price-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: #b7195c;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.product-card-rating .rating-value {
  font-weight: 600;
  color: #1a1a1a;
}

.product-card-rating .rating-star {
  color: #fbbf24;
  font-size: 1rem;
}

.learning-legacy-product-cards-empty {
  padding: 3rem;
  text-align: center;
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  color: #718096;
}

.learning-legacy-product-cards-empty p {
  margin: 0;
  font-size: 1rem;
}
