// home.jsx — simpler landing page focused on essentials function Home({ lang, setRoute, openPDP }) { const t = (ar, en) => lang === 'ar' ? ar : en; const [activeFamily, setActiveFamily] = React.useState('all'); const S = window.SETTINGS || {}; const heroTitle = lang === 'ar' ? (S.hero_title_ar || 'عطرٌ يحملك بعيداً') : (S.hero_title_en || 'A scent that carries you'); const heroSub = lang === 'ar' ? (S.hero_sub_ar || 'روائح من قلب الهند، مقطّرة في دبي.') : (S.hero_sub_en || 'Scents from the heart of India, decanted in Dubai.'); const showAI = String(S.show_ai ?? '1') === '1'; const filteredFamily = activeFamily === 'all' ? PRODUCTS.slice(0, 8) : PRODUCTS.filter(p => p.family === activeFamily).slice(0, 8); return ( <> {/* HERO — minimal, calm */}
{t('عطور هندية مختارة', 'Curated Indian perfumery')}

{heroTitle}

{heroSub}

{S.hero_image ? (
) : (
)}
{/* AI SCENT CONSOLE */} {showAI && } {/* FAMILY CHIPS — simple categorical browse */}
{t('تسوّق حسب العائلة العطرية', 'Shop by scent family')}

{t('اختر عالمك', 'Find your world')}

setRoute('shop')}> {t('عرض الكل', 'View all')}
{SCENT_FAMILIES.map(f => ( ))}
{filteredFamily.slice(0, 8).map(p => )}
{/* MANIFESTO — compact */}
{t('بيان', 'Manifesto')}

{t('من العطّار إلى يدك', 'From attar to hand')}

{t('نختار كل قطرة من بيوت عطور عائلية صغيرة في الهند — ميسور، آسام، كشمير، ولكنو. تُعبّأ يدوياً، تُختم بشمع، وتصل خلال 48 ساعة في الإمارات.', 'We source each drop from small family attar houses across India — Mysore, Assam, Kashmir, Lucknow. Hand-decanted, wax-sealed, delivered within 48 hours across the UAE.')}

); } function ProductCard({ product, lang, onOpen, onAddToCart }) { const fam = SCENT_FAMILIES.find(f => f.id === product.family); const btnRef = React.useRef(); return (
onOpen(product)}>
{product.image ? {lang :
} {product.tag_ar &&
{lang === 'ar' ? product.tag_ar : product.tag_en}
} {onAddToCart && ( )}
{lang === 'ar' ? product.name_ar : product.name_en}
{lang === 'ar' ? fam.ar : fam.en} · {product.concentration}
{product.price} AED
/ 50ml
); } window.Home = Home; window.ProductCard = ProductCard;