/* ════════════════════════════════════════
   PRODUCT CARDS
   Shared by: homepage featured products,
   shop/category archives, and related products
   (woocommerce/content-product.php)
════════════════════════════════════════ */
.product-card {
  display: flex;
  flex-direction: column;
  perspective: 1000px;
}

.product-card-img-container {
  position: relative;
  background: var(--surface-color);
  overflow: hidden;
  width: 100%;
  height: 290px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.10));
  cursor: pointer;
  will-change: transform;
}

.product-card:hover .product-card-img {
  transform: scale(1.1) translateY(-4px);
}

/* BESTSELLER ribbon */
.product-ribbon {
  position: absolute;
  top: 18px;
  right: -28px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 36px;
  transform: rotate(45deg);
  transform-origin: center;
  box-shadow: 0 2px 8px rgba(45,90,39,0.3);
  pointer-events: none;
}

/* Discount badge */
.product-off-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--danger-color);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(201,59,59,0.3);
}

/* Card info */
.product-card-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  cursor: pointer;
  line-height: 1.35;
  transition: color var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.product-card-name:hover { color: var(--primary-color); }

.product-card-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.stars-row {
  display: flex;
  gap: 2px;
}

.reviews-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sale-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.regular-price {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-round);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-spring);
  box-shadow: 0 4px 12px rgba(45,90,39,0.25);
  flex-shrink: 0;
}

.btn-add-cart:hover {
  transform: scale(1.12) rotate(90deg);
  box-shadow: var(--shadow-glow-green);
}

.btn-add-cart:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .btn-add-cart { padding: 15px; width: 48px; height: 48px; font-size: 1.2rem; }
}
