module.exports=[85690,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(33508),e=a.i(5784),f=a.i(87532),g=a.i(70106);let h=(0,g.default)("truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]),i=(0,g.default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]),j=(0,g.default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function k(){let[a,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(0);return((0,c.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/sliders").then(a=>a.json()).then(a=>{"success"===a.status&&d(a.data)}).catch(a=>console.error("Slider load failed",a))},[]),(0,c.useEffect)(()=>{if(!a.length)return;let b=setInterval(()=>{f(b=>(b+1)%a.length)},7e3);return()=>clearInterval(b)},[a.length]),a.length)?(0,b.jsxs)("div",{className:"relative w-full overflow-hidden",children:[(0,b.jsx)("div",{className:"flex transition-transform duration-1000 ease-in-out",style:{transform:`translateX(-${70*e}vw)`,width:`${70*a.length}vw`},children:a.map((a,c)=>(0,b.jsx)("div",{className:"w-[70vw] flex-shrink-0",children:(0,b.jsx)("div",{className:"relative h-[250px] sm:h-[300px] md:h-[350px] lg:h-[420px] overflow-hidden bg-black",children:(0,b.jsx)("a",{href:a.data_values?.link||"#",children:a.data_values?.slider&&(0,b.jsx)("img",{src:"https://emela.malooz.com/admin/assets/images/frontend/banner_sliders/"+a.data_values.slider,alt:"Slider",className:"absolute inset-0 w-full h-full object-cover"})})})},a.id))}),(0,b.jsx)("div",{className:"absolute bottom-4 left-6 flex gap-2 z-20",children:a.map((a,c)=>(0,b.jsx)("button",{onClick:()=>f(c),className:`w-3 h-3 rounded-full ${e===c?"bg-white":"bg-white/50"}`},c))})]}):null}var l=a.i(50522);function m({items:a}){let[d,e]=(0,c.useState)(null);return(0,b.jsx)("div",{className:"bg-white border shadow-md w-64",children:a.map((a,c)=>(0,b.jsxs)("div",{className:"relative",onMouseEnter:()=>e(c),onMouseLeave:()=>e(null),children:[(0,b.jsxs)("div",{className:"flex justify-between items-center px-4 py-2 hover:bg-gray-100 cursor-pointer",children:[(0,b.jsxs)("a",{href:`/category/${a.id}`,children:[" ",(0,b.jsx)("span",{className:"text-sm text-gray-700",children:a.name})," "]}),a.all_subcategories?.length>0&&(0,b.jsx)(l.ChevronRight,{size:14})]}),a.all_subcategories?.length>0&&(0,b.jsx)("div",{className:`
                absolute left-full top-0
                transition-all duration-200 ease-out
                ${d===c?"opacity-100 translate-x-0 pointer-events-auto":"opacity-0 translate-x-3 pointer-events-none"}
              `,children:(0,b.jsx)(m,{items:a.all_subcategories})})]},a.id))})}function n(){let[a,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/categories").then(a=>a.json()).then(a=>{"success"===a.status&&d(a.data)}).catch(console.error)},[]),(0,c.useEffect)(()=>{null!==e?requestAnimationFrame(()=>h(!0)):h(!1)},[e]),(0,b.jsx)("aside",{className:"relative",children:(0,b.jsx)("div",{className:"bg-gray-50 rounded w-full",children:a.map((a,c)=>(0,b.jsxs)("div",{className:"relative",onMouseEnter:()=>f(c),onMouseLeave:()=>f(null),children:[(0,b.jsxs)("div",{className:`
                flex justify-between items-center px-4 py-3 cursor-pointer
                ${e===c?"bg-[#0088CC] text-white":"hover:bg-gray-100 text-gray-700"}
              `,children:[(0,b.jsx)("a",{href:`/category/${a.id}`,children:(0,b.jsx)("span",{className:"text-sm",children:a.name})}),a.all_subcategories?.length>0&&(0,b.jsx)(l.ChevronRight,{size:16})]}),e===c&&a.all_subcategories?.length>0&&(0,b.jsx)("div",{className:`
                    absolute left-full top-0 z-50
                    transition-all duration-200 ease-out
                    ${g?"opacity-100 translate-x-0":"opacity-0 translate-x-3"}
                  `,children:(0,b.jsx)(m,{items:a.all_subcategories})})]},a.id))})})}var o=a.i(76472),p=a.i(38784);let q=(0,g.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);var r=a.i(38246);let s=({id:a,main_image:d,category:e,name:f,base_price:g,rating:h,isHot:i,discount:j,hasCountdown:k,hasQuickView:l,slug:m})=>{let[n,s]=(0,c.useState)(!1),t=d?`https://emela.malooz.com/admin/assets/images/product/${d}`:"/placeholder.png";return(0,b.jsxs)("div",{className:"bg-white border border-gray-200 overflow-hidden group hover:shadow-lg transition-shadow",children:[(0,b.jsxs)("div",{className:"relative overflow-hidden bg-ecom-light-gray aspect-square",children:[(0,b.jsx)(r.default,{href:`/product-details/${m}`,className:"block",children:(0,b.jsx)("img",{src:t,alt:f,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,b.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-2",children:[i&&(0,b.jsx)("span",{className:"bg-green-500 text-white px-3 py-1 rounded text-xs font-semibold",children:"HOT"}),j&&(0,b.jsxs)("span",{className:"bg-ecom-red text-white px-3 py-1 rounded text-xs font-semibold",children:["-",j,"%"]})]}),!k&&!l&&(0,b.jsx)("button",{className:"absolute top-3 right-3 bg-blue-500 text-white p-2 rounded-full shadow-md  hover:bg-ecom-blue hover:text-white transition-colors opacity-0 group-hover:opacity-100","aria-label":"Add to cart",children:(0,b.jsx)(p.ShoppingCart,{className:"w-5 h-5"})}),(0,b.jsxs)("button",{className:"absolute bottom-0 left-0 right-0 bg-blue-400 text-white py-3 text-sm font-semibold opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2",children:[(0,b.jsx)(q,{className:"w-4 h-4"}),"QUICK VIEW"]})]}),(0,b.jsxs)("div",{className:"p-4",children:[(0,b.jsx)("p",{className:"text-xs text-ecom-gray uppercase mb-2",children:e}),(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,b.jsx)("h3",{className:"font-semibold text-base hover:text-ecom-blue cursor-pointer transition-colors leading-snug",children:((a,b=40)=>a?a.length>b?a.slice(0,b)+"...":a:"")(f,20)}),(0,b.jsx)("button",{onClick:()=>s(!n),className:"text-gray-400 hover:text-ecom-red transition-colors flex-shrink-0","aria-label":"Add to wishlist",children:(0,b.jsx)(o.Heart,{className:`w-5 h-5 ${n?"fill-current text-ecom-red":""}`})})]}),(0,b.jsx)("div",{className:"flex items-center gap-1 mb-3",children:Array.from({length:5}).map((a,c)=>(0,b.jsx)("svg",{className:`w-4 h-4 ${c<h?"text-yellow-400 fill-current":"text-gray-300"}`,viewBox:"0 0 20 20",children:(0,b.jsx)("path",{d:"M10 15l-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"})},c))}),(0,b.jsxs)("div",{className:"text-xl font-bold text-ecom-dark",children:["৳",Number(g).toFixed(2)]})]})]})};function t(){let[a,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(0),[g,h]=(0,c.useState)(!0);if((0,c.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/featured-products").then(a=>a.json()).then(a=>{d(a.data||[]),h(!1)}).catch(a=>{console.error("Featured products error:",a),h(!1)})},[]),g)return(0,b.jsx)("div",{className:"py-10 text-center",children:"Loading featured products..."});if(!a.length)return null;let i=Math.ceil(a.length/4);return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,b.jsx)("h2",{className:"text-xl font-bold uppercase",children:"Featured Products"}),(0,b.jsx)("div",{className:"flex items-center gap-2",children:Array.from({length:i}).map((a,c)=>(0,b.jsx)("button",{onClick:()=>f(c),className:`w-3 h-3 rounded-full border-2 transition-all duration-300
                ${e===c?"bg-blue-500 border-blue-500 scale-110":"bg-white border-gray-400"}`},c))})]}),(0,b.jsx)("div",{className:"overflow-hidden",children:(0,b.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${100*e}%)`},children:Array.from({length:i}).map((c,d)=>(0,b.jsx)("div",{className:"min-w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:a.slice(4*d,4*d+4).map(a=>(0,b.jsx)(s,{...a},a.id))},d))})})]})}let u=({id:a,main_image:d,category:e,name:f,base_price:g,rating:h,isHot:i,discount:j,hasCountdown:k,hasQuickView:l,slug:m})=>{let[n,s]=(0,c.useState)(!1),t=d?`https://emela.malooz.com/admin/assets/images/product/${d}`:"/placeholder.png";return(0,b.jsxs)("div",{className:"bg-white border border-gray-200 overflow-hidden group hover:shadow-lg transition-shadow",children:[(0,b.jsxs)("div",{className:"relative overflow-hidden bg-ecom-light-gray aspect-square",children:[(0,b.jsx)(r.default,{href:`/product-details/${m}`,className:"block",children:(0,b.jsx)("img",{src:t,alt:f,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,b.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-2",children:[i&&(0,b.jsx)("span",{className:"bg-green-500 text-white px-3 py-1 rounded text-xs font-semibold",children:"HOT"}),j&&(0,b.jsxs)("span",{className:"bg-ecom-red text-white px-3 py-1 rounded text-xs font-semibold",children:["-",j,"%"]})]}),!k&&!l&&(0,b.jsx)("button",{className:"absolute top-3 right-3 bg-blue-500 text-white p-2 rounded-full shadow-md    hover:bg-ecom-blue hover:text-white transition-colors   opacity-0 group-hover:opacity-100","aria-label":"Add to cart",children:(0,b.jsx)(p.ShoppingCart,{className:"w-5 h-5"})}),(0,b.jsxs)("button",{className:"absolute bottom-0 left-0 right-0 bg-blue-400 text-white py-3 text-sm font-semibold opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2",children:[(0,b.jsx)(q,{className:"w-4 h-4"}),"QUICK VIEW"]})]}),(0,b.jsxs)("div",{className:"p-4",children:[(0,b.jsx)("p",{className:"text-xs text-ecom-gray uppercase mb-2",children:e}),(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,b.jsx)("h3",{className:"font-semibold text-base hover:text-ecom-blue cursor-pointer transition-colors leading-snug",children:((a,b=40)=>a?a.length>b?a.slice(0,b)+"...":a:"")(f,20)}),(0,b.jsx)("button",{onClick:()=>s(!n),className:"text-gray-400 hover:text-ecom-red transition-colors flex-shrink-0","aria-label":"Add to wishlist",children:(0,b.jsx)(o.Heart,{className:`w-5 h-5 ${n?"fill-current text-ecom-red":""}`})})]}),(0,b.jsx)("div",{className:"flex items-center gap-1 mb-3",children:Array.from({length:5}).map((a,c)=>(0,b.jsx)("svg",{className:`w-4 h-4 ${c<h?"text-yellow-400 fill-current":"text-gray-300"}`,viewBox:"0 0 20 20",children:(0,b.jsx)("path",{d:"M10 15l-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z"})},c))}),(0,b.jsxs)("div",{className:"text-xl font-bold text-ecom-dark",children:["৳",Number(g).toFixed(2)]})]})]})};function v(){var a,d;let e,f,[g,h]=(0,c.useState)(),[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(0),[m,n]=(0,c.useState)(!0);if((0,c.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/offer-products").then(a=>a.json()).then(a=>{let b=a?.data?.[0];if(b){let{products:a,...c}=b;j(a||[]),h(c)}n(!1)}).catch(a=>{console.error("Offer products error:",a),n(!1)})},[]),m)return(0,b.jsx)("div",{className:"py-10 text-center",children:"Loading featured products..."});let o=(a=g.start_date,d=g.end_date,e=new Date(a),(f=new Date(d)-e)<=0?0:Math.ceil(f/864e5));if(!i.length)return null;let p=Math.ceil(i.length/4);return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("h2",{className:"text-xl font-bold uppercase",children:g.name}),o>0&&(0,b.jsxs)("p",{className:"text-sm text-gray-600",children:["Ends ",o," days from now"]})]}),(0,b.jsx)("div",{className:"flex items-center gap-2",children:Array.from({length:p}).map((a,c)=>(0,b.jsx)("button",{onClick:()=>l(c),className:`w-3 h-3 rounded-full border-2 transition-all duration-300
          ${k===c?"bg-blue-500 border-blue-500 scale-110":"bg-white border-gray-400"}`},c))})]}),(0,b.jsx)("div",{className:"overflow-hidden",children:(0,b.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${100*k}%)`},children:Array.from({length:p}).map((a,c)=>(0,b.jsx)("div",{className:"min-w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:i.slice(4*c,4*c+4).map(a=>(0,b.jsx)(u,{...a},a.id))},c))})})]})}let w=()=>{let[a,d]=(0,c.useState)(0),e=[{title:"DRONE + CAMERAS",subtitle:"UP TO $100 OFF",description:"Top Brands and Models!",image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/product-2.jpg"},{title:"ACTION CAMS",subtitle:"SAVE UP TO $80",description:"Capture Every Moment",image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/product-3.jpg"},{title:"DSLR DEALS",subtitle:"EXTRA 20% OFF",description:"Pro Gear, Pro Price",image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/product-4.jpg"}];return(0,b.jsxs)("div",{className:"overflow-hidden border border-gray-200",children:[(0,b.jsx)("div",{className:"flex transition-transform duration-500",style:{transform:`translateX(-${100*a}%)`},children:e.map((a,c)=>(0,b.jsxs)("div",{className:"min-w-full bg-white p-6 text-center",children:[(0,b.jsx)("img",{src:a.image,alt:a.title,className:"mx-auto h-32 object-contain mb-4"}),(0,b.jsx)("h3",{className:"text-lg font-bold",children:a.title}),(0,b.jsx)("p",{className:"text-xl font-bold text-blue-600 mt-1",children:a.subtitle}),(0,b.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:a.description}),(0,b.jsx)("button",{className:"mt-4 bg-black text-white px-4 py-2 rounded hover:bg-gray-800",children:"VIEW SALE"})]},c))}),(0,b.jsx)("div",{className:"flex justify-center gap-2 mb-6",children:e.map((c,e)=>(0,b.jsx)("button",{onClick:()=>d(e),className:`w-2.5 h-2.5 rounded-full border-3 transition-all duration-300
        ${a===e?"bg-blue-100 border-blue-600":"bg-white border-gray-400"}`},e))})]})},x=(0,g.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),y=()=>(0,b.jsx)("div",{className:"bg-gray-100 p-8",children:(0,b.jsxs)("div",{className:"text-center space-y-4",children:[(0,b.jsx)("h3",{className:"text-xl font-bold uppercase",children:"Subscribe Newsletter"}),(0,b.jsx)("p",{className:"text-sm text-ecom-gray",children:"Get all the latest information on Events, Sales and Offers."}),(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-stretch max-w-md mx-auto",children:[(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-ecom-gray"}),(0,b.jsx)("input",{type:"email",placeholder:"Email Address",className:"w-full pl-10 pr-4 py-3 bg-white rounded-full focus:outline-none focus:ring-0 focus:ring-ecom-blue"})]}),(0,b.jsx)("button",{className:"bg-blue-500 text-white px-6 py-3 rounded font-semibold hover:bg-blue-600 transition-colors",children:"Subscribe"})]})]})}),z=()=>{let[a,d]=(0,c.useState)([]);return((0,c.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/banners").then(a=>a.json()).then(a=>{"success"===a.status&&d(a.data)}).catch(console.error)},[]),a.length)?(0,b.jsx)(b.Fragment,{children:a.map(a=>(0,b.jsx)("div",{className:"w-full h-48 overflow-hidden relative group cursor-pointer",children:(0,b.jsx)("a",{href:a.data_values?.link||"#",children:(0,b.jsx)("img",{src:"https://emela.malooz.com/admin/assets/images/frontend/banner_promotional/"+a.data_values?.image,alt:"Promo banner",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})})},a.id))}):null},A=()=>(0,b.jsx)("div",{className:"my-8 py-8 border-y border-gray-200",children:(0,b.jsx)("div",{className:"flex items-center justify-around",children:[{id:1,image:"https://portotheme.com/html/porto_ecommerce/assets/images/brands/small/brand2.png",name:"Black Grey Headset"},{id:2,image:"https://portotheme.com/html/porto_ecommerce/assets/images/brands/small/brand3.png",name:"Battery Charger"},{id:3,image:"https://portotheme.com/html/porto_ecommerce/assets/images/brands/small/brand4.png",name:"Abc Charger"},{id:4,image:"https://portotheme.com/html/porto_ecommerce/assets/images/brands/small/brand3.png",name:"Battery Charger"}].map((a,c)=>(0,b.jsx)("div",{className:"text-xl font-bold text-gray-400 hover:text-gray-600 cursor-pointer transition",children:(0,b.jsx)("img",{src:a.image,alt:a.name,className:"w-50 h-20 object-cover rounded"})},c))})}),B=()=>{let[a,d]=(0,c.useState)(0);(0,c.useEffect)(()=>{d(Math.floor(5*Math.random())+1)},[]);let e=[{id:1,image:"https://id-preview--753e56e4-39d6-4da2-afe3-212de7bb8ae3.lovable.app/assets/watch-product-CKNdCwrs.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5},{id:2,image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/small/product-4-2.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5},{id:3,image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/small/product-5-2.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5}];return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"grid grid-cols-3 gap-8 mb-12",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"TOP RATED PRODUCTS"}),(0,b.jsx)("div",{className:"space-y-4",children:e.map(c=>(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsx)("img",{src:c.image,alt:c.title,className:"w-20 h-20 object-cover grayscale"}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:c.category}),(0,b.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:c.title}),(0,b.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(a)].map((a,c)=>(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"★"},c))}),(0,b.jsxs)("p",{className:"font-bold text-gray-500",children:["$",c.price.toFixed(2)]})]})]},c.id))})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"BEST SELLING PRODUCTS"}),(0,b.jsx)("div",{className:"space-y-4",children:[{id:1,image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/small/product-6-2.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5},{id:2,image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/small/product-7-2.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5},{id:3,image:"https://portotheme.com/html/porto_ecommerce/assets/images/demoes/demo1/products/small/product-11-2.jpg",title:"Porto Extended Camera",category:"CAMERAS",price:45,rating:5}].map(c=>(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsx)("img",{src:c.image,alt:c.title,className:"w-20 h-20 object-cover grayscale"}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:c.category}),(0,b.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:c.title}),(0,b.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(a)].map((a,c)=>(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"★"},c))}),(0,b.jsxs)("p",{className:"font-bold text-gray-500",children:["$",c.price.toFixed(2)]})]})]},c.id))})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"LATEST PRODUCTS"}),(0,b.jsx)("div",{className:"space-y-4",children:e.map(c=>(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsx)("img",{src:c.image,alt:c.title,className:"w-20 h-20 object-cover grayscale"}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:c.category}),(0,b.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:c.title}),(0,b.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(a)].map((a,c)=>(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"★"},c))}),(0,b.jsxs)("p",{className:"font-bold text-gray-500",children:["$",c.price.toFixed(2)]})]})]},c.id))})]})]})})};function C(){let[a,g]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!1),[o,p]=(0,c.useState)(0);return(0,b.jsxs)("div",{className:"min-h-screen bg-white font-sans",children:[(0,b.jsx)("div",{className:"border-b border-gray-200 py-4",children:(0,b.jsx)("div",{className:"max-w-7xl mx-auto px-4",children:(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(h,{size:40,className:"text-gray-700"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-semibold text-sm",children:"FREE SHIPPING & RETURN"}),(0,b.jsx)("div",{className:"text-xs text-gray-500",children:"Free shipping on all orders over $99"})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(i,{size:40,className:"text-gray-700"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-semibold text-sm",children:"MONEY BACK GUARANTEE"}),(0,b.jsx)("div",{className:"text-xs text-gray-500",children:"100% money back guarantee"})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(j,{size:40,className:"text-gray-700"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"font-semibold text-sm",children:"ONLINE SUPPORT 24/7"}),(0,b.jsx)("div",{className:"text-xs text-gray-500",children:"Lorem ipsum dolor sit amet."})]})]})]})})}),(0,b.jsx)("main",{className:"max-w-7xl mx-auto",children:(0,b.jsx)("div",{className:"container mx-auto px-4 py-12",children:(0,b.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,b.jsxs)("div",{className:"lg:col-span-3 space-y-8",children:[(0,b.jsx)(n,{}),(0,b.jsx)(w,{}),(0,b.jsx)(y,{})]}),(0,b.jsxs)("div",{className:"lg:col-span-9 space-y-8",children:[(0,b.jsx)(k,{}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:(0,b.jsx)(z,{})}),(0,b.jsx)(t,{}),(0,b.jsx)(v,{}),(0,b.jsx)(A,{}),(0,b.jsx)(B,{})]})]})})}),l&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:()=>m(!1)}),(0,b.jsx)("div",{className:"fixed left-0 top-0 h-full w-full max-w-xs bg-[#2B2B2D] text-white shadow-2xl z-50 overflow-y-auto",children:(0,b.jsxs)("div",{className:"p-6",children:[(0,b.jsx)("button",{onClick:()=>m(!1),className:"absolute top-4 right-4 text-white hover:text-gray-400 transition-colors",children:(0,b.jsx)(d.X,{size:24})}),(0,b.jsx)("nav",{className:"mt-8 space-y-1",children:menuItems.map((a,c)=>(0,b.jsx)("div",{children:(0,b.jsxs)("a",{href:"#",className:"flex items-center justify-between py-3 px-4 hover:bg-gray-700 rounded transition-colors",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(a.icon,{size:20}),(0,b.jsx)("span",{className:"uppercase text-sm",children:a.label}),a.badge&&(0,b.jsx)("span",{className:"bg-red-500 text-white text-xs px-2 py-0.5 rounded",children:a.badge})]}),a.hasSubmenu&&(0,b.jsx)(e.ChevronDown,{size:16})]})},c))}),(0,b.jsxs)("div",{className:"mt-8 pt-6 border-t border-gray-700 space-y-3",children:[(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"MY ACCOUNT"}),(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"CONTACT US"}),(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"MY WISHLIST"}),(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"SITE MAP"}),(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"CART"}),(0,b.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"LOG IN"})]}),(0,b.jsxs)("div",{className:"mt-6 pt-6 border-t border-gray-700",children:[(0,b.jsxs)("div",{className:"relative mb-4",children:[(0,b.jsx)("input",{type:"text",placeholder:"Search...",className:"w-full px-4 py-2 bg-gray-700 text-white rounded focus:outline-none focus:ring-2 focus:ring-[#0088CC]"}),(0,b.jsx)(f.Search,{size:20,className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400"})]}),(0,b.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,b.jsx)("a",{href:"#",className:"w-10 h-10 bg-[#3B5998] flex items-center justify-center rounded hover:bg-opacity-80 transition-colors","aria-label":"Facebook",children:(0,b.jsx)(Facebook,{size:18})}),(0,b.jsx)("a",{href:"#",className:"w-10 h-10 bg-[#1DA1F2] flex items-center justify-center rounded hover:bg-opacity-80 transition-colors","aria-label":"Twitter",children:(0,b.jsx)(Twitter,{size:18})}),(0,b.jsx)("a",{href:"#",className:"w-10 h-10 bg-gradient-to-r from-[#F58529] via-[#DD2A7B] to-[#8134AF] flex items-center justify-center rounded hover:opacity-80 transition-opacity","aria-label":"Instagram",children:(0,b.jsx)(Instagram,{size:18})})]})]})]})})]})]})}a.s(["default",()=>C],85690)}];

//# sourceMappingURL=src_app_page_e6bfee3a.js.map