import{af as i,y as l,V as a,k as s,z as o,N as t,i as d,$ as m,m as b,aj as c,S as h,M as x,W as g}from"./index-DxAX-4zq.js";const u={New:"bg-emerald-500/95",Hot:"bg-rose-500/95",Sale:"bg-amber-500/95"};function j({product:e}){const{add:r}=i(),n=l(e);return a.jsxs("div",{className:"group overflow-hidden rounded-sm border border-border bg-card shadow-[var(--shadow-card)] transition hover:-translate-y-0.5 hover:shadow-[var(--shadow-elevated)]",children:[a.jsx(s,{to:"/products/$slug",params:{slug:e.slug},className:"block",children:a.jsxs("div",{className:"relative flex aspect-square items-center justify-center overflow-hidden bg-surface text-white",children:[a.jsx("img",{src:e.image,alt:e.name,loading:"lazy",width:1024,height:768,className:"absolute inset-0 h-full w-full object-cover transition duration-500 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-brand/35 via-brand/10 to-black/30"}),e.badge&&a.jsx("span",{className:o("absolute left-3 top-3 rounded-full px-2.5 py-1 text-[11px] font-semibold tracking-wide text-white shadow",u[e.badge]),children:e.badge}),a.jsx("span",{className:"absolute bottom-3 right-3 rounded-md bg-black/35 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wider text-white/90 backdrop-blur-sm",children:n.name})]})}),a.jsxs("div",{className:"space-y-3 p-4",children:[a.jsxs("div",{children:[a.jsx(s,{to:"/products/$slug",params:{slug:e.slug},className:"line-clamp-2 text-sm font-semibold text-foreground transition hover:text-brand-bright md:text-base",children:e.name}),a.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:e.lot?`Lot: ${e.lot}`:e.sku?`SKU: ${e.sku}`:"Lot: —"})]}),a.jsx("p",{className:"text-base font-bold text-brand",children:t(e.price)}),a.jsxs("div",{className:"flex items-center gap-1.5",children:[a.jsx("button",{type:"button",onClick:()=>{r(e),m.success("Added to quote",{description:e.name})},"aria-label":"Add to quote",className:"inline-flex h-9 w-9 items-center justify-center rounded-md bg-brand text-brand-foreground transition hover:bg-brand/90",children:a.jsx(d,{className:"h-4 w-4"})}),a.jsx("a",{href:c(`Hello ${h.name}, I'm interested in: ${e.name} (${t(e.price)}).`),target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp inquiry",className:"inline-flex h-9 w-9 items-center justify-center rounded-md text-white transition hover:opacity-90",style:{background:"#25D366"},children:a.jsx(b,{className:"h-4 w-4"})}),a.jsx("a",{href:g(`Inquiry: ${e.name}`,`Hi,

I'd like more information about ${e.name}.

Thanks.`),"aria-label":"Email inquiry",className:"inline-flex h-9 w-9 items-center justify-center rounded-md border border-brand-bright/30 text-brand-bright transition hover:bg-brand-bright/10",children:a.jsx(x,{className:"h-4 w-4"})})]})]})]})}export{j as P};
