function Collections(){ const params=new URLSearchParams(location.search); const initialWeave=params.get('weave'); const [weave,setWeave]=React.useState(initialWeave||'All'); const [sort,setSort]=React.useState('featured'); const collectionSlug=params.get('collection'); const gender=params.get('gender'); const collection=collectionSlug?COLLECTIONS.find(c=>c.slug===collectionSlug):null; const isCompact=!!gender||!!collectionSlug||!!initialWeave; const weaves=['All',...Array.from(new Set(PRODUCTS.map(filterLabel)))]; let list=PRODUCTS.filter(p=>(gender?p.gender===gender:true)&&(!collection||p.collection===collection.slug)&&(weave==='All'||filterLabel(p)===weave)); if(sort==='price-asc')list=[...list].sort((a,b)=>a.price-b.price); if(sort==='price-desc')list=[...list].sort((a,b)=>b.price-a.price); const title=gender==='men'?'Men':gender==='women'?'Women':(collection?collection.name:(initialWeave||'Shop All')); const compactDesc=gender==='men'?'Tailored essentials, made to last.':(collection?collection.desc:'Curated creations crafted for modern elegance.'); const PAGE_SIZE=6; const [page,setPage]=React.useState(1); React.useEffect(()=>{setPage(1);},[weave,sort,collectionSlug]); const totalPages=Math.max(1,Math.ceil(list.length/PAGE_SIZE)); const paged=list.slice((page-1)*PAGE_SIZE,page*PAGE_SIZE); React.useEffect(()=>{ document.title=`${title} — Bold Bee`; const schema={ "@context":"https://schema.org", "@graph":[ {"@type":"BreadcrumbList","itemListElement":[ {"@type":"ListItem",position:1,name:"Home",item:"index.html"}, {"@type":"ListItem",position:2,name:"Shop",item:"Collections.html"}, ...(collection?[{"@type":"ListItem",position:3,name:collection.name}]:[]) ]}, {"@type":"CollectionPage",name:title,description:collection?collection.desc:'Handwoven silk sarees and signature essentials.',url:location.href} ] }; let el=document.getElementById('bb-schema'); if(!el){el=document.createElement('script');el.type='application/ld+json';el.id='bb-schema';document.head.appendChild(el);} el.textContent=JSON.stringify(schema); },[title]); return (
{compactDesc}
{'Handwoven sarees and signature essentials — cloth and craft made slowly, for a lifetime of wear.'}
Our menswear collection is being woven. In the meantime, explore our Jewellery and Fragrances.