import { motion } from "motion/react"; import { MessageSquare, ShieldCheck, Compass, Eye } from "lucide-react"; import { TireProduct, BUSINESS_INFO } from "../data"; interface TireCardProps { tire: TireProduct; darkMode: boolean; onSelect: (tire: TireProduct) => void; key?: string; } export default function TireCard({ tire, darkMode, onSelect }: TireCardProps) { // Format WhatsApp Link const waPreFilledText = `Hello Haider Brothers, I want price & stock for ${tire.name} (Size: ${tire.size})`; const encodedText = encodeURIComponent(waPreFilledText); const waLink = `${BUSINESS_INFO.whatsappUrl}?text=${encodedText}`; // Get brand indicator styling const isAutogrip = tire.brand.toLowerCase() === "autogrip"; return ( {/* Glow highlight on hover */}
{/* Card Header Media area */}
{/* Dynamic Image with Lazy Load */} {tire.name} {/* Shadow overlays */}
{/* Top-row Glass badges */}
{tire.badge} {tire.size}
{/* Brand Label block (Bottom-left absolute overlay over media) */}
⚙️ {tire.brand}
{/* Card Detail Content */}
{/* Tire Name */}

{tire.name}

{/* Quick specs / Description */}

{tire.description}

{/* Core Feature highlight badge */}
{tire.feature}
{/* Price & Action row */}
Dealer Net Price PKR {tire.price.toLocaleString()}
{/* Quick Specs Quickview Button */} {/* WhatsApp Enquiry Button */} Quick Enquiry
); }