// SHOP — Storefront with category filter, locked state for non-authed users const ShopHero = ({isAuthed, isReseller, onSignup}) => (
{isReseller ? "Reseller storefront · Wholesale pricing live" : isAuthed ? "Storefront · Retail pricing" : "Storefront · Sign in to shop"} Shop.

In-stock SKUs from our floor. Lab COAs included with every order. Free ship over $200.

{!isAuthed && (
Sign-in required

Browse freely — sign up to add to cart and check out.

)}
); const ShopFilters = ({active, setActive, sort, setSort}) => (
{PRODUCT_CATEGORIES.map(c => ( ))}
Sort
); const Shop = ({addToCart, isAuthed, isReseller, onSignup}) => { const [cat, setCat] = React.useState("All"); const [sort, setSort] = React.useState("featured"); const filtered = PRODUCTS .filter(p => cat==="All" || p.category===cat) .sort((a,b) => { if (sort==="price-asc") return a.price - b.price; if (sort==="price-desc") return b.price - a.price; if (sort==="name") return a.name.localeCompare(b.name); return 0; }); const handleAdd = (p) => { if (!isAuthed) { onSignup(); return; } addToCart(p); }; return ( <>
{filtered.map(p => ( handleAdd(p)} isReseller={isReseller}/> ))}
{filtered.length===0 && (
No SKUs in this category yet.
)}
); }; window.Shop = Shop;