import { motion, useReducedMotion } from 'framer-motion'; import { assetUrl } from '../lib/assetUrl'; const ACCENT_GRADIENTS = [ 'radial-gradient(circle at top right, rgba(139, 92, 246, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)', 'radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)', 'radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)', ]; export default function ProductCard({ product, isMobile, delay = 0, index = 0 }) { if (!product) return null; const shouldReduceMotion = useReducedMotion(); const dashWidth = isMobile ? '92%' : '520px'; const dashLeft = isMobile ? '4%' : '32%'; const dashHeight = isMobile ? '200px' : '320px'; const shadowHeight = isMobile ? '170px' : '280px'; return (
{ if (isMobile) return; e.currentTarget.style.transform = 'translateY(-6px)'; e.currentTarget.style.boxShadow = '0 10px 30px rgba(255, 170, 0, 0.2)'; e.currentTarget.style.borderColor = '#ffaa00'; }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)'; e.currentTarget.style.boxShadow = '0 4px 24px rgba(234, 227, 232, 0.25)'; e.currentTarget.style.borderColor = '#EAE3E8'; }} >

{product.name}

{product.description}

{`${product.name}
{product.stats?.[0] && (
{product.stats[0].value} {product.stats[0].label}
)} {product.stats?.[1] && (
{product.stats[1].value} {product.stats[1].label}
)}
); }