(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73474,e=>{"use strict";let t=(0,e.i(56420).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],73474)},99738,e=>{"use strict";let t=(0,e.i(56420).default)("shopping-cart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);e.s(["ShoppingCart",0,t],99738)},44001,e=>{"use strict";var t=e.i(68834),s=e.i(79473);let a=(0,t.create)()((0,s.persist)((e,t)=>({items:[],addItem:s=>{let a=t().items;a.find(e=>e.id===s.id)||e({items:[...a,s]})},removeItem:s=>{e({items:t().items.filter(e=>e.id!==s)})},toggleItem:s=>{let a=t().items;a.find(e=>e.id===s.id)?e({items:a.filter(e=>e.id!==s.id)}):e({items:[...a,s]})},isInWishlist:e=>t().items.some(t=>t.id===e),clearWishlist:()=>{e({items:[]})}}),{name:"bambucare-wishlist-storage"}));e.s(["useWishlistStore",0,a])},48373,e=>{"use strict";var t=e.i(43476),s=e.i(44001),a=e.i(58628),i=e.i(19455),l=e.i(73474),r=e.i(99738);let d=(0,e.i(56420).default)("heart-off",[["path",{d:"M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655",key:"1inpfl"}],["path",{d:"m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761",key:"vbc6x7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var c=e.i(22016),o=e.i(5766),n=e.i(71645);e.s(["default",0,function(){let[e,h]=(0,n.useState)(!1),{items:m,removeItem:x,clearWishlist:u}=(0,s.useWishlistStore)(),f=(0,a.useCartStore)(e=>e.addItem);return((0,n.useEffect)(()=>{h(!0)},[]),e)?0===m.length?(0,t.jsxs)("div",{className:"container mx-auto px-4 py-24 max-w-4xl text-center",children:[(0,t.jsx)("div",{className:"w-24 h-24 bg-red-50 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,t.jsx)(d,{className:"w-10 h-10 text-red-300"})}),(0,t.jsx)("h1",{className:"text-3xl font-serif font-bold text-slate-900 mb-4",children:"Your Wishlist is Empty"}),(0,t.jsx)("p",{className:"text-slate-500 mb-8 max-w-md mx-auto leading-relaxed",children:"Looks like you haven't saved any items yet. Browse our store and click the heart icon to save your favorites for later!"}),(0,t.jsx)(c.default,{href:"/shop",children:(0,t.jsx)(i.Button,{className:"h-12 px-8 bg-[#285b30] hover:bg-[#1e4424] text-lg rounded-full",children:"Start Shopping"})})]}):(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 max-w-6xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,t.jsxs)("h1",{className:"text-3xl font-serif font-bold text-slate-900",children:["My Wishlist ",(0,t.jsxs)("span",{className:"text-slate-400 font-normal text-xl",children:["(",m.length,")"]})]}),(0,t.jsx)(i.Button,{variant:"ghost",onClick:u,className:"text-slate-500 hover:text-red-600 hover:bg-red-50",children:"Clear All"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:m.map(e=>(0,t.jsxs)("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-sm overflow-hidden group hover:shadow-md transition-all",children:[(0,t.jsx)(c.default,{href:`/product/${e.slug}`,children:(0,t.jsx)("div",{className:"aspect-square bg-slate-50 relative overflow-hidden",children:(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-slate-300 font-medium",children:e.image?"Image":"No Image"})})}),(0,t.jsxs)("div",{className:"p-5 flex flex-col h-full",children:[(0,t.jsx)(c.default,{href:`/product/${e.slug}`,className:"mb-2",children:(0,t.jsx)("h3",{className:"font-bold text-slate-900 line-clamp-2 hover:text-[#285b30] transition-colors",children:e.name})}),(0,t.jsxs)("div",{className:"text-[#285b30] font-bold mb-4",children:["৳ ",e.price.toFixed(2)]}),(0,t.jsxs)("div",{className:"mt-auto flex gap-2",children:[(0,t.jsxs)(i.Button,{onClick:()=>{f({productVariantId:e.id,productName:e.name,sku:e.slug,price:e.price,quantity:1}),o.default.success("Added to cart!")},className:"flex-1 bg-[#285b30] hover:bg-[#1e4424] gap-2 h-10",children:[(0,t.jsx)(r.ShoppingCart,{className:"w-4 h-4"})," Add"]}),(0,t.jsx)(i.Button,{variant:"outline",onClick:()=>x(e.id),className:"w-10 h-10 p-0 text-slate-400 hover:text-red-500 hover:bg-red-50 border-slate-200 shrink-0",children:(0,t.jsx)(l.Trash2,{className:"w-4 h-4"})})]})]})]},e.id))})]}):(0,t.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center",children:"Loading wishlist..."})}],48373)}]);