import{r as e,t}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{t as n}from"./useTranslation-D1etqd9u-1776590214964.js";import{n as r,t as i}from"./card-Cby8flFO-1776590214964.js";e();var a=t();function o({product:e}){let{t}=n();return(0,a.jsxs)(`div`,{className:`space-y-6`,children:[e?.specifications?.length>0&&(0,a.jsxs)(i,{className:`shadow-sm border-border/50 overflow-hidden`,children:[(0,a.jsx)(`div`,{className:`border-b bg-muted/20 px-6 py-4 font-semibold text-primary`,children:t(`Key Attributes`)}),(0,a.jsx)(r,{className:`p-0`,children:(0,a.jsx)(`table`,{className:`w-full text-sm text-left`,children:(0,a.jsx)(`tbody`,{className:`divide-y divide-border`,children:e.specifications.map((e,n)=>(0,a.jsxs)(`tr`,{className:`hover:bg-muted/30 transition-colors`,children:[(0,a.jsx)(`td`,{className:`px-6 py-3 bg-muted/5 font-medium text-muted-foreground w-1/3 border-r`,children:t(e.name)}),(0,a.jsx)(`td`,{className:`px-6 py-3 text-foreground font-semibold`,children:e.value})]},n))})})})]}),e?.customization_options?.length>0&&(0,a.jsxs)(i,{className:`shadow-sm border-border/50 overflow-hidden`,children:[(0,a.jsx)(`div`,{className:`border-b bg-muted/20 px-6 py-4 font-semibold text-primary`,children:t(`Customization Options`)}),(0,a.jsx)(r,{className:`p-6`,children:(0,a.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:e.customization_options.map((e,n)=>(0,a.jsxs)(`div`,{className:`flex justify-between items-center p-4 border rounded-xl bg-muted/10`,children:[(0,a.jsx)(`span`,{className:`font-semibold`,children:e.type}),(0,a.jsx)(`span`,{className:`text-xs bg-primary/10 text-primary px-2.5 py-1 rounded-md font-bold`,children:t(`MOQ: :moq`,{moq:e.moq})})]},n))})})]}),(0,a.jsxs)(i,{className:`shadow-sm border-border/50 overflow-hidden`,children:[(0,a.jsx)(`div`,{className:`border-b bg-muted/20 px-6 py-4 flex gap-6 font-semibold text-primary`,children:t(`Product Details`)}),(0,a.jsx)(r,{className:`p-6 md:p-10`,children:(0,a.jsx)(`div`,{className:`prose prose-sm sm:prose-base dark:prose-invert max-w-none prose-img:rounded-xl prose-img:border`,dangerouslySetInnerHTML:{__html:e?.description||`<p class="text-muted-foreground italic">${t(`No detailed description provided by the supplier.`)}</p>`}})})]}),e?.refund_policy&&(0,a.jsxs)(i,{className:`shadow-sm border-orange-500/20 bg-orange-500/5 overflow-hidden`,children:[(0,a.jsx)(`div`,{className:`border-b border-orange-500/20 px-6 py-4 font-bold text-orange-700`,children:t(`Refund & Return Policy`)}),(0,a.jsx)(r,{className:`p-6 text-sm text-orange-900/80 leading-relaxed whitespace-pre-wrap`,children:e.refund_policy})]})]})}export{o as default};