module.exports=[80180,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["Trash2",0,b],80180)},95826,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["ShoppingCart",0,b],95826)},36898,a=>{"use strict";var b=a.i(20226),c=a.i(62435);let d=(0,b.create)()((0,c.persist)((a,b)=>({items:[],addItem:c=>{let d=b().items;d.find(a=>a.id===c.id)||a({items:[...d,c]})},removeItem:c=>{a({items:b().items.filter(a=>a.id!==c)})},toggleItem:c=>{let d=b().items;d.find(a=>a.id===c.id)?a({items:d.filter(a=>a.id!==c.id)}):a({items:[...d,c]})},isInWishlist:a=>b().items.some(b=>b.id===a),clearWishlist:()=>{a({items:[]})}}),{name:"bambucare-wishlist-storage"}));a.s(["useWishlistStore",0,d])},12660,a=>{"use strict";var b=a.i(87924),c=a.i(36898),d=a.i(39583),e=a.i(18697),f=a.i(80180),g=a.i(95826);let h=(0,a.i(64831).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 i=a.i(38246),j=a.i(6704),k=a.i(72131);a.s(["default",0,function(){let[a,l]=(0,k.useState)(!1),{items:m,removeItem:n,clearWishlist:o}=(0,c.useWishlistStore)(),p=(0,d.useCartStore)(a=>a.addItem);return((0,k.useEffect)(()=>{l(!0)},[]),a)?0===m.length?(0,b.jsxs)("div",{className:"container mx-auto px-4 py-24 max-w-4xl text-center",children:[(0,b.jsx)("div",{className:"w-24 h-24 bg-red-50 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,b.jsx)(h,{className:"w-10 h-10 text-red-300"})}),(0,b.jsx)("h1",{className:"text-3xl font-serif font-bold text-slate-900 mb-4",children:"Your Wishlist is Empty"}),(0,b.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,b.jsx)(i.default,{href:"/shop",children:(0,b.jsx)(e.Button,{className:"h-12 px-8 bg-[#285b30] hover:bg-[#1e4424] text-lg rounded-full",children:"Start Shopping"})})]}):(0,b.jsxs)("div",{className:"container mx-auto px-4 py-12 max-w-6xl",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,b.jsxs)("h1",{className:"text-3xl font-serif font-bold text-slate-900",children:["My Wishlist ",(0,b.jsxs)("span",{className:"text-slate-400 font-normal text-xl",children:["(",m.length,")"]})]}),(0,b.jsx)(e.Button,{variant:"ghost",onClick:o,className:"text-slate-500 hover:text-red-600 hover:bg-red-50",children:"Clear All"})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:m.map(a=>(0,b.jsxs)("div",{className:"bg-white rounded-2xl border border-slate-100 shadow-sm overflow-hidden group hover:shadow-md transition-all",children:[(0,b.jsx)(i.default,{href:`/product/${a.slug}`,children:(0,b.jsx)("div",{className:"aspect-square bg-slate-50 relative overflow-hidden",children:(0,b.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-slate-300 font-medium",children:a.image?"Image":"No Image"})})}),(0,b.jsxs)("div",{className:"p-5 flex flex-col h-full",children:[(0,b.jsx)(i.default,{href:`/product/${a.slug}`,className:"mb-2",children:(0,b.jsx)("h3",{className:"font-bold text-slate-900 line-clamp-2 hover:text-[#285b30] transition-colors",children:a.name})}),(0,b.jsxs)("div",{className:"text-[#285b30] font-bold mb-4",children:["৳ ",a.price.toFixed(2)]}),(0,b.jsxs)("div",{className:"mt-auto flex gap-2",children:[(0,b.jsxs)(e.Button,{onClick:()=>{p({productVariantId:a.id,productName:a.name,sku:a.slug,price:a.price,quantity:1}),j.default.success("Added to cart!")},className:"flex-1 bg-[#285b30] hover:bg-[#1e4424] gap-2 h-10",children:[(0,b.jsx)(g.ShoppingCart,{className:"w-4 h-4"})," Add"]}),(0,b.jsx)(e.Button,{variant:"outline",onClick:()=>n(a.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,b.jsx)(f.Trash2,{className:"w-4 h-4"})})]})]})]},a.id))})]}):(0,b.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center",children:"Loading wishlist..."})}],12660)}];

//# sourceMappingURL=_039ts6h._.js.map