function Accordion({title,children,defaultOpen}){ const [open,setOpen]=React.useState(!!defaultOpen); return (
{open&&
{children}
}
); } function ProductUnavailable(){ return (

This creation is no longer available.

Continue Shopping
); } function Product(){ const params=new URLSearchParams(location.search); const p=productBySlug(params.get('id')); if(!p)return ; const [active,setActive]=React.useState(0); const [size,setSize]=React.useState('Free Size'); const [qty,setQty]=React.useState(1); const [wished,setWished]=React.useState(false); const [added,setAdded]=React.useState(false); const [zoom,setZoom]=React.useState({x:50,y:50,on:false}); const [stock,setStock]=React.useState(null); const [viewerOpen,setViewerOpen]=React.useState(false); const [cartMsg,setCartMsg]=React.useState(''); React.useEffect(()=>{ document.title=`${p.name} — Bold Bee`; BB_STORE.pushRecent(p.id); setWished(BB_STORE.isWished(p.id)); setStock(stockInfo(p.id)); const tpl=FitStore.templateFor(p); setSize(tpl.hasSizeSelector?(tpl.sizes[2]||tpl.sizes[0]):'Free Size'); if(window.lucide)window.lucide.createIcons(); },[p.id]); const related=PRODUCTS.filter(x=>x.collection===p.collection&&x.id!==p.id).slice(0,3); const recent=BB_STORE.getRecent().filter(id=>id!==p.id).map(productBySlug).filter(Boolean).slice(0,4); const idx=PRODUCTS.findIndex(x=>x.id===p.id); const prevP=PRODUCTS[(idx-1+PRODUCTS.length)%PRODUCTS.length]; const nextP=PRODUCTS[(idx+1)%PRODUCTS.length]; React.useEffect(()=>{ const schema={ "@context":"https://schema.org", "@graph":[ {"@type":"Product",name:p.name,description:productSchemaDescription(p),image:photo(p.imgs[0],1200),sku:p.id,offers:{"@type":"Offer",price:p.price,priceCurrency:"INR",availability:"https://schema.org/InStock",url:location.href}}, {"@type":"BreadcrumbList",itemListElement:[ {"@type":"ListItem",position:1,name:"Home",item:"index.html"}, {"@type":"ListItem",position:2,name:"Shop",item:"Collections.html"}, {"@type":"ListItem",position:3,name:categoryLabel(p),item:`Collections.html?weave=${encodeURIComponent(categoryLabel(p))}`}, {"@type":"ListItem",position:4,name:p.name} ]} ] }; 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); function setMeta(name,content,attr){ let m=document.querySelector(`meta[${attr}="${name}"]`); if(!m){m=document.createElement('meta');m.setAttribute(attr,name);document.head.appendChild(m);} m.setAttribute('content',content); } const shortDesc=productSchemaDescription(p); setMeta('og:title',`${p.name} — Bold Bee`,'property'); setMeta('og:description',shortDesc,'property'); setMeta('og:image',photo(p.imgs[0],1200),'property'); setMeta('og:url',location.href,'property'); setMeta('twitter:title',`${p.name} — Bold Bee`,'name'); setMeta('twitter:description',shortDesc,'name'); setMeta('twitter:image',photo(p.imgs[0],1200),'name'); },[p.id]); const oos=stock&&stock.status==='out-of-stock'; const low=stock&&(stock.status==='low-stock'||stock.status==='critical'); const maxQty=stock?Math.max(0,stock.availableStock):undefined; function addToCart(){ if(oos)return; const fresh=stockInfo(p.id); setStock(fresh); if(fresh.availableStock<=0){setCartMsg('This item is currently out of stock.');return;} const result=BB_STORE.addToCart(p.id,size,qty); if(result.adjusted){ setQty(Math.max(1,result.availableStock)); setCartMsg(`Only ${result.availableStock} item${result.availableStock===1?'':'s'} ${result.availableStock===1?'is':'are'} currently available. Your bag has been adjusted accordingly.`); }else{ setCartMsg(''); setAdded(true);setTimeout(()=>setAdded(false),2200); } } return (
setViewerOpen(true)} style={{aspectRatio:'4/5',borderRadius:'var(--radius-lg)',overflow:'hidden',marginBottom:16,cursor:'pointer'}}> {p.name}
{p.imgs.map((im,i)=>())}
{categoryLabel(p)}

{p.name}

{p.sub}
{money(p.price)}
{oos&&
Out of Stock
} {!oos&&low&&
Only {stock.availableStock} Left in Stock
}
{oos?'Out of Stock':(added?'Added to Bag':'Add to Bag')}
{cartMsg&&

{cartMsg}

} {typeof ShareSheet!=='undefined'&&} {productBlurb(p)} {(!p.category||p.category==='sarees')&&100% pure silk. Dry clean only. Store folded in muslin, away from direct light. Iron on reverse at low heat.} Complimentary shipping across India, dispatched in 5–7 days. Returns accepted within 7 days of delivery, unworn and with tags attached.
{typeof CreationChronicle!=='undefined'&&} {typeof ReviewsSection!=='undefined'&&} {related.length>0&&(
You May Also Like

From the Same Weave

{related.map(r=>())}
)} {recent.length>0&&(
Recently Viewed
{recent.map(r=>())}
)}
{p.name}
{money(p.price)}
{oos?'Out of Stock':(added?'Added':'Add to Bag')}
{viewerOpen&&typeof LuxuryImageViewer!=='undefined'&&setViewerOpen(false)} alt={p.name}/>}
); } window.Product=Product;