(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63059,e=>{"use strict";let s=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>s],63059)},74647,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(37727),r=e.i(64659),l=e.i(55436),i=e.i(75254);let c=(0,i.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"}]]),o=(0,i.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"}]]),n=(0,i.default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function d(){let[e,a]=(0,t.useState)([]),[r,l]=(0,t.useState)(0);return((0,t.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/sliders").then(e=>e.json()).then(e=>{"success"===e.status&&a(e.data)}).catch(e=>console.error("Slider load failed",e))},[]),(0,t.useEffect)(()=>{if(!e.length)return;let s=setInterval(()=>{l(s=>(s+1)%e.length)},7e3);return()=>clearInterval(s)},[e.length]),e.length)?(0,s.jsxs)("div",{className:"relative w-full overflow-hidden",children:[(0,s.jsx)("div",{className:"flex transition-transform duration-1000 ease-in-out",style:{transform:`translateX(-${70*r}vw)`,width:`${70*e.length}vw`},children:e.map((e,t)=>(0,s.jsx)("div",{className:"w-[70vw] flex-shrink-0",children:(0,s.jsx)("div",{className:"relative h-[250px] sm:h-[300px] md:h-[350px] lg:h-[420px] overflow-hidden bg-black",children:(0,s.jsx)("a",{href:e.data_values?.link||"#",children:e.data_values?.slider&&(0,s.jsx)("img",{src:"https://emela.malooz.com/admin/assets/images/frontend/banner_sliders/"+e.data_values.slider,alt:"Slider",className:"absolute inset-0 w-full h-full object-cover"})})})},e.id))}),(0,s.jsx)("div",{className:"absolute bottom-4 left-6 flex gap-2 z-20",children:e.map((e,t)=>(0,s.jsx)("button",{onClick:()=>l(t),className:`w-3 h-3 rounded-full ${r===t?"bg-white":"bg-white/50"}`},t))})]}):null}e.i(47167);var m=e.i(63059);function x({items:e}){let[a,r]=(0,t.useState)(null);return(0,s.jsx)("div",{className:"bg-white border shadow-md w-64",children:e.map((e,t)=>(0,s.jsxs)("div",{className:"relative",onMouseEnter:()=>r(t),onMouseLeave:()=>r(null),children:[(0,s.jsxs)("div",{className:"flex justify-between items-center px-4 py-2 hover:bg-gray-100 cursor-pointer",children:[(0,s.jsxs)("a",{href:`/category/${e.id}`,children:[" ",(0,s.jsx)("span",{className:"text-sm text-gray-700",children:e.name})," "]}),e.all_subcategories?.length>0&&(0,s.jsx)(m.ChevronRight,{size:14})]}),e.all_subcategories?.length>0&&(0,s.jsx)("div",{className:`
                absolute left-full top-0
                transition-all duration-200 ease-out
                ${a===t?"opacity-100 translate-x-0 pointer-events-auto":"opacity-0 translate-x-3 pointer-events-none"}
              `,children:(0,s.jsx)(x,{items:e.all_subcategories})})]},e.id))})}function h(){let[e,a]=(0,t.useState)([]),[r,l]=(0,t.useState)(null),[i,c]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/categories").then(e=>e.json()).then(e=>{"success"===e.status&&a(e.data)}).catch(console.error)},[]),(0,t.useEffect)(()=>{null!==r?requestAnimationFrame(()=>c(!0)):c(!1)},[r]),(0,s.jsx)("aside",{className:"relative",children:(0,s.jsx)("div",{className:"bg-gray-50 rounded w-full",children:e.map((e,t)=>(0,s.jsxs)("div",{className:"relative",onMouseEnter:()=>l(t),onMouseLeave:()=>l(null),children:[(0,s.jsxs)("div",{className:`
                flex justify-between items-center px-4 py-3 cursor-pointer
                ${r===t?"bg-[#0088CC] text-white":"hover:bg-gray-100 text-gray-700"}
              `,children:[(0,s.jsx)("a",{href:`/category/${e.id}`,children:(0,s.jsx)("span",{className:"text-sm",children:e.name})}),e.all_subcategories?.length>0&&(0,s.jsx)(m.ChevronRight,{size:16})]}),r===t&&e.all_subcategories?.length>0&&(0,s.jsx)("div",{className:`
                    absolute left-full top-0 z-50
                    transition-all duration-200 ease-out
                    ${i?"opacity-100 translate-x-0":"opacity-0 translate-x-3"}
                  `,children:(0,s.jsx)(x,{items:e.all_subcategories})})]},e.id))})})}var p=e.i(90597),g=e.i(1928);let u=(0,i.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 b=e.i(22016);let j=({id:e,main_image:a,category:r,name:l,base_price:i,rating:c,isHot:o,discount:n,hasCountdown:d,hasQuickView:m,slug:x})=>{let[h,j]=(0,t.useState)(!1),f=a?`https://emela.malooz.com/admin/assets/images/product/${a}`:"/placeholder.png";return(0,s.jsxs)("div",{className:"bg-white border border-gray-200 overflow-hidden group hover:shadow-lg transition-shadow",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden bg-ecom-light-gray aspect-square",children:[(0,s.jsx)(b.default,{href:`/product-details/${x}`,className:"block",children:(0,s.jsx)("img",{src:f,alt:l,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,s.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-2",children:[o&&(0,s.jsx)("span",{className:"bg-green-500 text-white px-3 py-1 rounded text-xs font-semibold",children:"HOT"}),n&&(0,s.jsxs)("span",{className:"bg-ecom-red text-white px-3 py-1 rounded text-xs font-semibold",children:["-",n,"%"]})]}),!d&&!m&&(0,s.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,s.jsx)(g.ShoppingCart,{className:"w-5 h-5"})}),(0,s.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,s.jsx)(u,{className:"w-4 h-4"}),"QUICK VIEW"]})]}),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("p",{className:"text-xs text-ecom-gray uppercase mb-2",children:r}),(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,s.jsx)("h3",{className:"font-semibold text-base hover:text-ecom-blue cursor-pointer transition-colors leading-snug",children:((e,s=40)=>e?e.length>s?e.slice(0,s)+"...":e:"")(l,20)}),(0,s.jsx)("button",{onClick:()=>j(!h),className:"text-gray-400 hover:text-ecom-red transition-colors flex-shrink-0","aria-label":"Add to wishlist",children:(0,s.jsx)(p.Heart,{className:`w-5 h-5 ${h?"fill-current text-ecom-red":""}`})})]}),(0,s.jsx)("div",{className:"flex items-center gap-1 mb-3",children:Array.from({length:5}).map((e,t)=>(0,s.jsx)("svg",{className:`w-4 h-4 ${t<c?"text-yellow-400 fill-current":"text-gray-300"}`,viewBox:"0 0 20 20",children:(0,s.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"})},t))}),(0,s.jsxs)("div",{className:"text-xl font-bold text-ecom-dark",children:["৳",Number(i).toFixed(2)]})]})]})};function f(){let[e,a]=(0,t.useState)([]),[r,l]=(0,t.useState)(0),[i,c]=(0,t.useState)(!0);if((0,t.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/featured-products").then(e=>e.json()).then(e=>{a(e.data||[]),c(!1)}).catch(e=>{console.error("Featured products error:",e),c(!1)})},[]),i)return(0,s.jsx)("div",{className:"py-10 text-center",children:"Loading featured products..."});if(!e.length)return null;let o=Math.ceil(e.length/4);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,s.jsx)("h2",{className:"text-xl font-bold uppercase",children:"Featured Products"}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:Array.from({length:o}).map((e,t)=>(0,s.jsx)("button",{onClick:()=>l(t),className:`w-3 h-3 rounded-full border-2 transition-all duration-300
                ${r===t?"bg-blue-500 border-blue-500 scale-110":"bg-white border-gray-400"}`},t))})]}),(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${100*r}%)`},children:Array.from({length:o}).map((t,a)=>(0,s.jsx)("div",{className:"min-w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:e.slice(4*a,4*a+4).map(e=>(0,s.jsx)(j,{...e},e.id))},a))})})]})}let v=({id:e,main_image:a,category:r,name:l,base_price:i,rating:c,isHot:o,discount:n,hasCountdown:d,hasQuickView:m,slug:x})=>{let[h,j]=(0,t.useState)(!1),f=a?`https://emela.malooz.com/admin/assets/images/product/${a}`:"/placeholder.png";return(0,s.jsxs)("div",{className:"bg-white border border-gray-200 overflow-hidden group hover:shadow-lg transition-shadow",children:[(0,s.jsxs)("div",{className:"relative overflow-hidden bg-ecom-light-gray aspect-square",children:[(0,s.jsx)(b.default,{href:`/product-details/${x}`,className:"block",children:(0,s.jsx)("img",{src:f,alt:l,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})}),(0,s.jsxs)("div",{className:"absolute top-3 left-3 flex flex-col gap-2",children:[o&&(0,s.jsx)("span",{className:"bg-green-500 text-white px-3 py-1 rounded text-xs font-semibold",children:"HOT"}),n&&(0,s.jsxs)("span",{className:"bg-ecom-red text-white px-3 py-1 rounded text-xs font-semibold",children:["-",n,"%"]})]}),!d&&!m&&(0,s.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,s.jsx)(g.ShoppingCart,{className:"w-5 h-5"})}),(0,s.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,s.jsx)(u,{className:"w-4 h-4"}),"QUICK VIEW"]})]}),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsx)("p",{className:"text-xs text-ecom-gray uppercase mb-2",children:r}),(0,s.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,s.jsx)("h3",{className:"font-semibold text-base hover:text-ecom-blue cursor-pointer transition-colors leading-snug",children:((e,s=40)=>e?e.length>s?e.slice(0,s)+"...":e:"")(l,20)}),(0,s.jsx)("button",{onClick:()=>j(!h),className:"text-gray-400 hover:text-ecom-red transition-colors flex-shrink-0","aria-label":"Add to wishlist",children:(0,s.jsx)(p.Heart,{className:`w-5 h-5 ${h?"fill-current text-ecom-red":""}`})})]}),(0,s.jsx)("div",{className:"flex items-center gap-1 mb-3",children:Array.from({length:5}).map((e,t)=>(0,s.jsx)("svg",{className:`w-4 h-4 ${t<c?"text-yellow-400 fill-current":"text-gray-300"}`,viewBox:"0 0 20 20",children:(0,s.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"})},t))}),(0,s.jsxs)("div",{className:"text-xl font-bold text-ecom-dark",children:["৳",Number(i).toFixed(2)]})]})]})};function N(){var e,a;let r,l,[i,c]=(0,t.useState)(),[o,n]=(0,t.useState)([]),[d,m]=(0,t.useState)(0),[x,h]=(0,t.useState)(!0);if((0,t.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/offer-products").then(e=>e.json()).then(e=>{let s=e?.data?.[0];if(s){let{products:e,...t}=s;n(e||[]),c(t)}h(!1)}).catch(e=>{console.error("Offer products error:",e),h(!1)})},[]),x)return(0,s.jsx)("div",{className:"py-10 text-center",children:"Loading featured products..."});let p=(e=i.start_date,a=i.end_date,r=new Date(e),(l=new Date(a)-r)<=0?0:Math.ceil(l/864e5));if(!o.length)return null;let g=Math.ceil(o.length/4);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("h2",{className:"text-xl font-bold uppercase",children:i.name}),p>0&&(0,s.jsxs)("p",{className:"text-sm text-gray-600",children:["Ends ",p," days from now"]})]}),(0,s.jsx)("div",{className:"flex items-center gap-2",children:Array.from({length:g}).map((e,t)=>(0,s.jsx)("button",{onClick:()=>m(t),className:`w-3 h-3 rounded-full border-2 transition-all duration-300
          ${d===t?"bg-blue-500 border-blue-500 scale-110":"bg-white border-gray-400"}`},t))})]}),(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsx)("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${100*d}%)`},children:Array.from({length:g}).map((e,t)=>(0,s.jsx)("div",{className:"min-w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:o.slice(4*t,4*t+4).map(e=>(0,s.jsx)(v,{...e},e.id))},t))})})]})}let y=()=>{let[e,a]=(0,t.useState)(0),r=[{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,s.jsxs)("div",{className:"overflow-hidden border border-gray-200",children:[(0,s.jsx)("div",{className:"flex transition-transform duration-500",style:{transform:`translateX(-${100*e}%)`},children:r.map((e,t)=>(0,s.jsxs)("div",{className:"min-w-full bg-white p-6 text-center",children:[(0,s.jsx)("img",{src:e.image,alt:e.title,className:"mx-auto h-32 object-contain mb-4"}),(0,s.jsx)("h3",{className:"text-lg font-bold",children:e.title}),(0,s.jsx)("p",{className:"text-xl font-bold text-blue-600 mt-1",children:e.subtitle}),(0,s.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description}),(0,s.jsx)("button",{className:"mt-4 bg-black text-white px-4 py-2 rounded hover:bg-gray-800",children:"VIEW SALE"})]},t))}),(0,s.jsx)("div",{className:"flex justify-center gap-2 mb-6",children:r.map((t,r)=>(0,s.jsx)("button",{onClick:()=>a(r),className:`w-2.5 h-2.5 rounded-full border-3 transition-all duration-300
        ${e===r?"bg-blue-100 border-blue-600":"bg-white border-gray-400"}`},r))})]})},w=(0,i.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"}]]),C=()=>(0,s.jsx)("div",{className:"bg-gray-100 p-8",children:(0,s.jsxs)("div",{className:"text-center space-y-4",children:[(0,s.jsx)("h3",{className:"text-xl font-bold uppercase",children:"Subscribe Newsletter"}),(0,s.jsx)("p",{className:"text-sm text-ecom-gray",children:"Get all the latest information on Events, Sales and Offers."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 items-stretch max-w-md mx-auto",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(w,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-ecom-gray"}),(0,s.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,s.jsx)("button",{className:"bg-blue-500 text-white px-6 py-3 rounded font-semibold hover:bg-blue-600 transition-colors",children:"Subscribe"})]})]})}),S=()=>{let[e,a]=(0,t.useState)([]);return((0,t.useEffect)(()=>{fetch("https://emela.malooz.com/admin/api/v1/banners").then(e=>e.json()).then(e=>{"success"===e.status&&a(e.data)}).catch(console.error)},[]),e.length)?(0,s.jsx)(s.Fragment,{children:e.map(e=>(0,s.jsx)("div",{className:"w-full h-48 overflow-hidden relative group cursor-pointer",children:(0,s.jsx)("a",{href:e.data_values?.link||"#",children:(0,s.jsx)("img",{src:"https://emela.malooz.com/admin/assets/images/frontend/banner_promotional/"+e.data_values?.image,alt:"Promo banner",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300"})})},e.id))}):null},A=()=>(0,s.jsx)("div",{className:"my-8 py-8 border-y border-gray-200",children:(0,s.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((e,t)=>(0,s.jsx)("div",{className:"text-xl font-bold text-gray-400 hover:text-gray-600 cursor-pointer transition",children:(0,s.jsx)("img",{src:e.image,alt:e.name,className:"w-50 h-20 object-cover rounded"})},t))})}),k=()=>{let[e,a]=(0,t.useState)(0);(0,t.useEffect)(()=>{a(Math.floor(5*Math.random())+1)},[]);let r=[{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,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-8 mb-12",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"TOP RATED PRODUCTS"}),(0,s.jsx)("div",{className:"space-y-4",children:r.map(t=>(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("img",{src:t.image,alt:t.title,className:"w-20 h-20 object-cover grayscale"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:t.category}),(0,s.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:t.title}),(0,s.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(e)].map((e,t)=>(0,s.jsx)("span",{className:"text-xs text-gray-400",children:"★"},t))}),(0,s.jsxs)("p",{className:"font-bold text-gray-500",children:["$",t.price.toFixed(2)]})]})]},t.id))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"BEST SELLING PRODUCTS"}),(0,s.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(t=>(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("img",{src:t.image,alt:t.title,className:"w-20 h-20 object-cover grayscale"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:t.category}),(0,s.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:t.title}),(0,s.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(e)].map((e,t)=>(0,s.jsx)("span",{className:"text-xs text-gray-400",children:"★"},t))}),(0,s.jsxs)("p",{className:"font-bold text-gray-500",children:["$",t.price.toFixed(2)]})]})]},t.id))})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-bold mb-6 pb-2 border-b",children:"LATEST PRODUCTS"}),(0,s.jsx)("div",{className:"space-y-4",children:r.map(t=>(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)("img",{src:t.image,alt:t.title,className:"w-20 h-20 object-cover grayscale"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-xs text-gray-400 mb-1",children:t.category}),(0,s.jsx)("h4",{className:"font-semibold text-sm mb-1 text-gray-500",children:t.title}),(0,s.jsx)("div",{className:"flex items-center gap-1 mb-1",children:[...Array(e)].map((e,t)=>(0,s.jsx)("span",{className:"text-xs text-gray-400",children:"★"},t))}),(0,s.jsxs)("p",{className:"font-bold text-gray-500",children:["$",t.price.toFixed(2)]})]})]},t.id))})]})]})})};function E(){let[e,i]=(0,t.useState)(!1),[m,x]=(0,t.useState)(!1),[p,g]=(0,t.useState)(0);return(0,s.jsxs)("div",{className:"min-h-screen bg-white font-sans",children:[(0,s.jsx)("div",{className:"border-b border-gray-200 py-4",children:(0,s.jsx)("div",{className:"max-w-7xl mx-auto px-4",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(c,{size:40,className:"text-gray-700"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold text-sm",children:"FREE SHIPPING & RETURN"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Free shipping on all orders over $99"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(o,{size:40,className:"text-gray-700"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold text-sm",children:"MONEY BACK GUARANTEE"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"100% money back guarantee"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(n,{size:40,className:"text-gray-700"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold text-sm",children:"ONLINE SUPPORT 24/7"}),(0,s.jsx)("div",{className:"text-xs text-gray-500",children:"Lorem ipsum dolor sit amet."})]})]})]})})}),(0,s.jsx)("main",{className:"max-w-7xl mx-auto",children:(0,s.jsx)("div",{className:"container mx-auto px-4 py-12",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[(0,s.jsxs)("div",{className:"lg:col-span-3 space-y-8",children:[(0,s.jsx)(h,{}),(0,s.jsx)(y,{}),(0,s.jsx)(C,{})]}),(0,s.jsxs)("div",{className:"lg:col-span-9 space-y-8",children:[(0,s.jsx)(d,{}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:(0,s.jsx)(S,{})}),(0,s.jsx)(f,{}),(0,s.jsx)(N,{}),(0,s.jsx)(A,{}),(0,s.jsx)(k,{})]})]})})}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:()=>x(!1)}),(0,s.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,s.jsxs)("div",{className:"p-6",children:[(0,s.jsx)("button",{onClick:()=>x(!1),className:"absolute top-4 right-4 text-white hover:text-gray-400 transition-colors",children:(0,s.jsx)(a.X,{size:24})}),(0,s.jsx)("nav",{className:"mt-8 space-y-1",children:menuItems.map((e,t)=>(0,s.jsx)("div",{children:(0,s.jsxs)("a",{href:"#",className:"flex items-center justify-between py-3 px-4 hover:bg-gray-700 rounded transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(e.icon,{size:20}),(0,s.jsx)("span",{className:"uppercase text-sm",children:e.label}),e.badge&&(0,s.jsx)("span",{className:"bg-red-500 text-white text-xs px-2 py-0.5 rounded",children:e.badge})]}),e.hasSubmenu&&(0,s.jsx)(r.ChevronDown,{size:16})]})},t))}),(0,s.jsxs)("div",{className:"mt-8 pt-6 border-t border-gray-700 space-y-3",children:[(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"MY ACCOUNT"}),(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"CONTACT US"}),(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"MY WISHLIST"}),(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"SITE MAP"}),(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"CART"}),(0,s.jsx)("a",{href:"#",className:"block py-2 hover:text-[#0088CC] transition-colors",children:"LOG IN"})]}),(0,s.jsxs)("div",{className:"mt-6 pt-6 border-t border-gray-700",children:[(0,s.jsxs)("div",{className:"relative mb-4",children:[(0,s.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,s.jsx)(l.Search,{size:20,className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-4",children:[(0,s.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,s.jsx)(Facebook,{size:18})}),(0,s.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,s.jsx)(Twitter,{size:18})}),(0,s.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,s.jsx)(Instagram,{size:18})})]})]})]})})]})]})}e.s(["default",()=>E],74647)}]);