import{s as b,Q as p,af as f,S as l,V as e,k as d,N as o,B as i,i as c,$ as j,m as N,aj as x,P as v,M as w,W as y,T as k}from"./index-DxAX-4zq.js";import{P as $}from"./ProductCard-BzY8iz0i.js";import{C as m}from"./check-PXJA-GNy.js";import{S as C}from"./shield-check-BWxc50i2.js";import{C as P}from"./chevron-right-BTZZK6I_.js";function B(){const{product:s,category:a,related:n}=b.useLoaderData(),t=p(s),{add:h}=f(),g=`Hello ${l.name}, please send me the brochure / spec sheet for: ${s.name}${s.sku?` (SKU ${s.sku})`:""}.`;return e.jsxs(e.Fragment,{children:[e.jsx("nav",{"aria-label":"Breadcrumb",className:"container mx-auto px-4 pt-6 text-xs text-muted-foreground md:px-6",children:e.jsxs("ol",{className:"flex flex-wrap items-center gap-1.5",children:[e.jsx("li",{children:e.jsx(d,{to:"/",className:"hover:text-brand-bright",children:"Home"})}),e.jsx("li",{"aria-hidden":!0,children:"/"}),e.jsx("li",{children:e.jsx(d,{to:"/products",className:"hover:text-brand-bright",children:"Products"})}),e.jsx("li",{"aria-hidden":!0,children:"/"}),e.jsx("li",{children:e.jsx(d,{to:"/categories/$slug",params:{slug:a.slug},className:"hover:text-brand-bright",children:a.name})}),e.jsx("li",{"aria-hidden":!0,children:"/"}),e.jsx("li",{className:"font-medium text-foreground",children:s.name})]})}),e.jsxs("section",{className:"container mx-auto grid gap-8 px-4 py-8 md:grid-cols-2 md:gap-12 md:px-6 md:py-12",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-sm border border-border bg-surface shadow-[var(--shadow-elevated)]",children:[e.jsx("img",{src:s.image,alt:`${s.name} — ${a.name} in Kenya`,className:"aspect-square h-full w-full object-cover"}),s.badge&&e.jsx("span",{className:"absolute left-4 top-4 rounded-full bg-rose-500/95 px-3 py-1 text-xs font-semibold text-white shadow",children:s.badge})]}),e.jsxs("div",{children:[e.jsx(d,{to:"/categories/$slug",params:{slug:a.slug},className:"inline-flex items-center gap-1.5 rounded-full bg-brand-bright/10 px-3 py-1 text-xs font-semibold text-brand-bright",children:a.name}),e.jsx("h1",{className:"mt-3 font-display text-3xl font-extrabold text-foreground md:text-4xl",children:s.name}),e.jsxs("p",{className:"mt-2 text-sm text-muted-foreground",children:["By ",e.jsx("span",{className:"font-medium text-foreground",children:t.brand}),s.sku?e.jsxs(e.Fragment,{children:[" · SKU ",s.sku]}):null,s.lot?e.jsxs(e.Fragment,{children:[" · Lot ",s.lot]}):null]}),e.jsx("p",{className:"mt-5 text-3xl font-bold text-brand",children:o(s.price)}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Prices exclude VAT · Bulk pricing available"}),e.jsx("p",{className:"mt-5 text-base leading-relaxed text-foreground/85",children:s.description}),e.jsx("ul",{className:"mt-6 grid gap-2 sm:grid-cols-2",children:s.features.map(r=>e.jsxs("li",{className:"flex items-start gap-2 text-sm text-foreground/85",children:[e.jsx(m,{className:"mt-0.5 h-4 w-4 flex-none text-brand-bright"}),r]},r))}),e.jsxs("div",{className:"mt-7 flex flex-wrap gap-2",children:[e.jsxs(i,{size:"lg",className:"gap-2 bg-brand text-brand-foreground hover:bg-brand/90",onClick:()=>{h(s),j.success("Added to quote",{description:s.name})},children:[e.jsx(c,{className:"h-4 w-4"})," Add to quote"]}),e.jsx("a",{href:x(`Hello ${l.name}, I'm interested in: ${s.name} (${o(s.price)}).`),target:"_blank",rel:"noopener noreferrer",children:e.jsxs(i,{size:"lg",className:"gap-2 text-white hover:opacity-90",style:{background:"#25D366"},children:[e.jsx(N,{className:"h-4 w-4"})," WhatsApp"]})})]}),e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2 text-sm",children:[e.jsxs("a",{href:x(g),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-3 py-2 font-medium text-foreground/80 transition hover:border-brand-bright hover:text-brand-bright",children:[e.jsx(c,{className:"h-4 w-4"})," Request brochure (PDF)"]}),e.jsxs("a",{href:`tel:${l.phone}`,className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-3 py-2 font-medium text-foreground/80 transition hover:border-brand-bright hover:text-brand-bright",children:[e.jsx(v,{className:"h-4 w-4"})," Call sales"]}),e.jsxs("a",{href:y(`Inquiry: ${s.name}`,`Hi,

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

Thanks.`),className:"inline-flex items-center gap-1.5 rounded-md border border-border bg-card px-3 py-2 font-medium text-foreground/80 transition hover:border-brand-bright hover:text-brand-bright",children:[e.jsx(w,{className:"h-4 w-4"})," Email us"]})]}),e.jsxs("div",{className:"mt-6 grid gap-3 rounded border border-border bg-card p-4 sm:grid-cols-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(k,{className:"mt-0.5 h-5 w-5 text-brand-bright"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Delivery"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Nationwide · ",t.leadTimeDays,"–",t.leadTimeDays+2," days"]})]})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(C,{className:"mt-0.5 h-5 w-5 text-brand-bright"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Warranty"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t.warranty})]})]}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(m,{className:"mt-0.5 h-5 w-5 text-brand-bright"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Authentic"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Sourced from authorised channels"})]})]})]})]})]}),e.jsx("section",{className:"bg-surface py-12",children:e.jsxs("div",{className:"container mx-auto px-4 md:px-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground md:text-3xl",children:"Specifications"}),e.jsx("div",{className:"mt-6 overflow-hidden rounded border border-border bg-card",children:e.jsx("table",{className:"w-full text-sm",children:e.jsx("tbody",{children:t.specs.map((r,u)=>e.jsxs("tr",{className:"border-b border-border last:border-0",children:[e.jsx("th",{scope:"row",className:"w-1/3 px-4 py-3 text-left font-semibold text-foreground/80",children:r.label}),e.jsx("td",{className:"px-4 py-3 text-foreground",children:r.value})]},`${r.label}-${u}`))})})})]})}),n.length>0&&e.jsxs("section",{className:"container mx-auto px-4 py-14 md:px-6",children:[e.jsxs("div",{className:"flex items-end justify-between gap-4",children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground md:text-3xl",children:"Related products"}),e.jsxs(d,{to:"/categories/$slug",params:{slug:a.slug},className:"inline-flex items-center gap-1 text-sm font-medium text-brand-bright hover:underline",children:["All ",a.name," ",e.jsx(P,{className:"h-4 w-4"})]})]}),e.jsx("div",{className:"mt-6 grid grid-cols-2 gap-4 md:grid-cols-3 md:gap-6 lg:grid-cols-4",children:n.map(r=>e.jsx($,{product:r},r.id))})]})]})}export{B as component};
