// Quick View modal — product detail without leaving the catalog. (function () { if (typeof React === "undefined") return; const DS = window.VElaStvNajmanDesignSystem_bc3fc2; const { Photo, Button, Badge, Tag, Rating, QuantityStepper } = DS; const Icon = window.VNIcon; function QuickView({ product, onClose, onAdd, onOpenFull }) { const [qty, setQty] = React.useState(1); React.useEffect(() => { setQty(1); }, [product && product.id]); React.useEffect(() => { const onKey = (e) => { if (e.key === "Escape") onClose(); }; document.addEventListener("keydown", onKey); return () => document.removeEventListener("keydown", onKey); }, [onClose]); const open = !!product; const p = product || {}; const soldOut = p.stock === "out"; return (
{p.taste}
} {window.VNTasteProfile && p.profile && (p.profile.color > 0 || p.profile.sweet > 0 || (p.profile.traits && p.profile.traits.length)) &&{p.desc}