(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13824,e=>{"use strict";var t=e.i(43476),l=e.i(71645),s=e.i(22016),r=e.i(46932);e.s(["default",0,function({product:e,lang:i,dictionary:o}){let[a,n]=(0,l.useState)(e.weights[0]);return(0,t.jsxs)(r.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},whileHover:{y:-10,scale:1.02},transition:{duration:.5,ease:"easeOut"},className:"bg-[#eaf4ee] rounded-t-3xl overflow-hidden border border-[#c8e6d4] flex flex-col h-full shadow-lg shadow-[#c8e6d4]/50 hover:shadow-2xl hover:shadow-[#c8e6d4]/80 group",children:[(0,t.jsx)("div",{className:"w-full bg-[#d8eee2] h-56 relative flex items-center justify-center p-4 shrink-0 overflow-hidden",children:(0,t.jsx)(r.motion.img,{src:e.img,alt:e.name[i],className:"w-full h-full object-cover rounded-t-2xl mix-blend-multiply transition-transform duration-700 ease-out group-hover:scale-110"})}),(0,t.jsxs)("div",{className:"p-6 w-full flex flex-col flex-1 items-center text-center",children:[(0,t.jsx)("h3",{className:"text-2xl font-black text-brown-dark mb-4",children:e.name[i]}),(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-2 mb-4",children:e.weights.map((e,l)=>(0,t.jsx)("button",{onClick:()=>n(e),className:`px-4 py-1 rounded-full text-xs font-bold transition-colors ${a===e?"bg-gold text-white shadow-sm":"bg-[#c8e6d4] text-brown-dark/70 hover:bg-gold/50"}`,children:e[i]},l))}),(0,t.jsx)("p",{className:"text-xs text-brown-dark/70 leading-relaxed font-medium mb-4 max-w-[200px]",children:e.desc[i]}),(0,t.jsx)("div",{className:"mt-auto flex flex-col w-full items-center",children:(0,t.jsx)("div",{className:"flex gap-2 w-full",children:(0,t.jsx)(s.default,{href:`/${i}/products/${e.id}`,className:"flex-1 bg-brown-dark hover:bg-black text-white py-3 rounded-lg text-xs font-bold transition-all text-center flex items-center justify-center group-hover:bg-gold transition-colors",children:o.cart?.details||("ar"===i?"عرض التفاصيل":"View Details")})})})]})]})}])}]);