/**
 * WP Carousel Pro — WooCommerce Integration styling
 */

.wcp-product-card {
  --wcp-badge-sale: #f43f5e;
}

/* Rating Stars */
.wcp-card-rating {
  display: flex;
  align-items: center;
  margin: 0.25rem 0;
}

.wcp-stars {
  --wcp-star-color: #cbd5e1;
  --wcp-star-active: #f59e0b;
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
}

.wcp-stars::before {
  content: '★★★★★';
  color: var(--wcp-star-color);
  letter-spacing: 2px;
}

.wcp-stars::after {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  color: var(--wcp-star-active);
  letter-spacing: 2px;
  overflow: hidden;
  width: calc(var(--rating) / 5 * 100%);
}

/* Price Styling */
.wcp-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wcp-text);
  margin: 0.25rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wcp-card-price del {
  color: var(--wcp-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: line-through;
}

.wcp-card-price ins {
  text-decoration: none;
  background: transparent;
  color: #10b981;
}

/* Add to Cart Actions */
.wcp-card-actions {
  display: flex;
  margin-top: auto;
  width: 100%;
}

.wcp-add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--wcp-primary), var(--wcp-primary-hover));
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: calc(var(--wcp-border-radius) - 6px);
  cursor: pointer;
  box-shadow: 0 5px 15px -3px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.wcp-add-to-cart-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 20px -3px rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.wcp-add-to-cart-btn:active {
  transform: translateY(1px);
}

.wcp-add-to-cart-btn.added::after {
  content: ' ✓';
  font-weight: bold;
}

.wcp-add-to-cart-btn.loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}
