/* CategoryScreen — select specific product category within a folder */ const CategoryScreen = ({ lang, folder, onSelectCategory, onBack }) => { if (!folder) return null; const categories = folder.categories || []; const catalog = window.CATALOG || {}; const getCategoryInfo = (catId) => { const cat = catalog.categories && catalog.categories[catId]; const products = catalog.getProductsByCategory(catId) || []; return { ...cat, productCount: products.length }; }; return (

{lang === 'el' ? folder.label_el : folder.label_en}

{categories.map(catId => { const info = getCategoryInfo(catId); const label = lang === 'el' ? info.label_el : info.label_en; const count = info.productCount || 0; const isPlaceholder = info.placeholder; return ( ); })}
); }; window.CategoryScreen = CategoryScreen;