export type ProductCategory = | "snacks" | "beverages" | "dairy" | "grains" | "meat" | "produce" | "frozen" | "condiments" | "bakery" | "other"; export type PackagingType = | "plastic" | "glass" | "cardboard" | "metal" | "biodegradable" | "mixed"; export type SubscriptionTier = "free" | "basic" | "premium"; export type NutritionalInfo = { serving_size: string; calories: number | null; sugar_per_100g: number | null; protein: number | null; fat: number | null; carbs: number | null; fiber: number | null; sodium: number | null; salt: number | null; }; export type ProductInsight = { summary: string[]; positives: string[]; cautions: string[]; fit_tags: string[]; }; export type ProductSource = "Community DB" | "Open Food Facts" | "Open Products Facts"; export type Product = { id: string; barcode: string; name: string; brand: string; category: ProductCategory; image_url: string; quantity: string; ingredient_text: string; nutritional_info: NutritionalInfo; ingredients: string[]; allergens: string[]; traces: string[]; preservatives: string[]; labels: string[]; health_score: number; environmental_score: number; certifications: string[]; country_of_origin: string; packaging_type: PackagingType; packaging_details: string[]; nutri_score: "A" | "B" | "C" | "D" | "E"; nova_group: 1 | 2 | 3 | 4 | null; ecoscore_grade: string | null; source_url: string; lookup_sources: ProductSource[]; fetched_at: string; data_source: ProductSource; insights: ProductInsight; }; export type ShoppingListItem = { product_id: string; product_name: string; quantity: number; checked: boolean; }; export type ShoppingList = { id: string; name: string; items: ShoppingListItem[]; total_items: number; user_email: string; }; export type UserProfile = { email: string; country: "Australia" | "USA" | "India"; dietary_restrictions: string[]; allergens: string[]; sugar_limit: number; subscription_tier: SubscriptionTier; onboarding_completed: boolean; };