1import{c as e}from"./useStore-DHjr8TVa.js";import{t}from"./link-XuSDw2qN.js";import{n,t as r}from"./site-chrome-DY824hsC.js";import{t as i}from"./useQuery-DdTaU1bz.js";import{o as a,s as o}from"./index-DnYNmc4n.js";import{t as s}from"./patterns-CbyIuf4U.js";var c=e(),l=[`newari-lotus`,`himalaya-wave`,`paisley`,`mandala`,`floral`,`chakra`,`geo-diamond`];function u(){let{data:e=[]}=i({queryKey:[`categories`],queryFn:a}),{data:u=[]}=i({queryKey:[`products`],queryFn:o}),f=u.filter(e=>e.featured).slice(0,3);return(0,c.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,c.jsx)(n,{}),(0,c.jsxs)(`section`,{className:`mx-auto max-w-7xl px-5 pb-16 pt-32 md:px-10 md:pt-40`,children:[(0,c.jsx)(`p`,{className:`eyebrow`,children:`Collections`}),(0,c.jsx)(`h1`,{className:`mt-4 max-w-3xl font-display text-5xl leading-[1.02] md:text-7xl`,children:`Made by hand. Ready for you.`}),(0,c.jsx)(`p`,{className:`mt-6 max-w-xl text-muted-foreground`,children:`Seven categories, dozens of pieces, one studio. Every product below is designed and printed in the Kathmandu Valley.`})]}),f.length>0&&(0,c.jsxs)(`section`,{className:`mx-auto max-w-7xl px-5 md:px-10`,children:[(0,c.jsx)(`p`,{className:`eyebrow mb-4`,children:`Featured`}),(0,c.jsx)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:f.map(e=>(0,c.jsx)(d,{slug:e.slug,name:e.name,price:e.price_npr},e.id))})]}),(0,c.jsxs)(`section`,{className:`mx-auto max-w-7xl px-5 py-24 md:px-10`,children:[(0,c.jsx)(`p`,{className:`eyebrow mb-4`,children:`All categories`}),(0,c.jsx)(`div`,{className:`grid gap-4 md:grid-cols-2 lg:grid-cols-3`,children:e.map((e,n)=>{let r=l[n%l.length],i=s({patternId:r,bg:`#f5efe3`,fg:`#5a1f1f`,scale:1,rotation:0,opacity:1,spacing:1},600,600);return(0,c.jsxs)(t,{to:`/collections/$slug`,params:{slug:e.slug},className:`group relative block overflow-hidden rounded-2xl border border-border bg-secondary`,children:[(0,c.jsx)(`div`,{className:`aspect-[4/3] overflow-hidden`,children:(0,c.jsx)(`img`,{src:i,alt:e.name,className:`h-full w-full object-cover transition-transform duration-[1200ms] ease-out group-hover:scale-105`})}),(0,c.jsxs)(`div`,{className:`p-6`,children:[(0,c.jsx)(`h3`,{className:`font-display text-2xl`,children:e.name}),e.description&&(0,c.jsx)(`p`,{className:`mt-2 line-clamp-2 text-sm text-muted-foreground`,children:e.description}),(0,c.jsx)(`span`,{className:`mt-4 inline-flex text-xs text-primary group-hover:underline`,children:`Explore â`})]})]},e.id)})})]}),(0,c.jsx)(r,{})]})}function d({slug:e,name:n,price:r}){return(0,c.jsxs)(t,{to:`/products/$slug`,params:{slug:e},className:`group block overflow-hidden rounded-2xl border border-border bg-card`,children:[(0,c.jsx)(`div`,{className:`aspect-[4/5] overflow-hidden bg-secondary`,children:(0,c.jsx)(`img`,{src:s({patternId:`newari-lotus`,bg:`#f5efe3`,fg:`#5a1f1f`,scale:1.2,rotation:0,opacity:1,spacing:1},600,750),alt:``,className:`h-full w-full object-cover transition-transform duration-[1200ms] ease-out group-hover:scale-105`})}),(0,c.jsxs)(`div`,{className:`flex items-center justify-between px-5 py-4`,children:[(0,c.jsx)(`p`,{className:`font-display text-lg`,children:n}),(0,c.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`NPR `,r.toLocaleString()]})]})]})}export{u as component};
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.