1import{x as m,r as o,j as e,L as x}from"./index-42OYDF60.js";import{L as u,A as h}from"./Layout-CvY-dOeA.js";import{d as p}from"./demoProducts-Cec3h00k.js";import{I as g}from"./input-D0IjS33j.js";import{S as f}from"./search-C7Y2SfZe.js";import"./phone-CUz94ybs.js";import"./menu-CkpBHtij.js";import"./mail-T8cR2-w0.js";import"./dialog-BPqr1XfL.js";import"./button-EfpS49lo.js";import"./trash-2-B3_ksNI2.js";import"./minus-LiessKcH.js";import"./plus-UlO-Lz9K.js";const $=()=>{const[i,l]=m(),[s,n]=o.useState(i.get("q")||""),r=o.useMemo(()=>{const t=s.trim().toLowerCase();return t?p.filter(a=>a.name.toLowerCase().includes(t)||a.shortDescription.toLowerCase().includes(t)||a.brand.toLowerCase().includes(t)||a.tags.some(d=>d.toLowerCase().includes(t))):[]},[s]),c=t=>{t.preventDefault(),l(s?{q:s}:{})};return e.jsx(u,{children:e.jsxs("div",{className:"container max-w-5xl mx-auto px-4 py-10 md:py-14",children:[e.jsxs("div",{className:"text-center space-y-4 mb-10 animate-fade-in-up",children:[e.jsxs("h1",{className:"text-4xl md:text-6xl font-extrabold tracking-tight",children:[e.jsx("span",{className:"font-serif italic font-normal",children:"Search "}),e.jsx("span",{className:"gradient-hero-text",children:"Products"})]}),e.jsxs("form",{onSubmit:c,className:"relative max-w-2xl mx-auto",children:[e.jsx(f,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-muted-foreground"}),e.jsx(g,{autoFocus:!0,value:s,onChange:t=>n(t.target.value),placeholder:"পণà§à¦¯, বà§à¦°à§à¦¯à¦¾à¦¨à§à¦¡, à¦à§à¦¯à¦¾à¦à§à¦à¦°à¦¿ à¦à§à¦à¦à§à¦¨...",className:"h-14 pl-12 pr-32 rounded-2xl glass-strong text-base border-border/60"}),e.jsx("button",{className:"absolute right-2 top-1/2 -translate-y-1/2 h-10 px-5 rounded-xl gradient-primary text-primary-foreground font-bold shadow-glow",children:"Search"})]})]}),s&&e.jsxs("div",{className:"text-sm text-muted-foreground mb-4",children:['"',s,'" â ',r.length," results"]}),e.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map((t,a)=>e.jsxs(x,{to:`/product/${t.id}`,className:"glass-card rounded-3xl overflow-hidden group animate-fade-in-up",style:{animationDelay:`${a*40}ms`},children:[e.jsx("div",{className:"aspect-square overflow-hidden",children:e.jsx("img",{src:t.image,alt:t.name,loading:"lazy",className:"h-full w-full object-cover transition-smooth group-hover:scale-110"})}),e.jsxs("div",{className:"p-4 space-y-2",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wider text-primary-glow font-bold",children:t.brand}),e.jsx("div",{className:"font-bold leading-tight line-clamp-2 group-hover:gradient-hero-text transition-fast",children:t.name}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-lg font-extrabold gradient-hero-text",children:["à§³",t.price]}),e.jsx(h,{className:"h-4 w-4 text-primary-glow opacity-0 group-hover:opacity-100 transition-fast"})]})]})]},t.id))}),s&&r.length===0&&e.jsx("div",{className:"text-center py-16 text-muted-foreground",children:"à¦à§à¦¨à§ পণà§à¦¯ পাà¦à¦¯à¦¼à¦¾ যায়নি â à¦
নà§à¦¯ à¦à§à¦à¦¯à¦¼à¦¾à¦°à§à¦¡ দিন।"})]})})};export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.