-- Nay Store Flutter Home Banner/Admin/API Patch
-- Run this once in phpMyAdmin or MySQL before testing the updated app/admin files.

INSERT INTO `settings` (`setting_key`, `setting_value`, `setting_group`, `created_at`, `updated_at`) VALUES
('home_hero_enabled', '1', 'home', NOW(), NOW()),
('home_show_quick_actions', '1', 'home', NOW(), NOW()),
('home_show_search_bar', '1', 'home', NOW(), NOW()),
('home_hero_pill_text', 'Nay Store', 'home', NOW(), NOW()),
('home_hero_title', 'تجربة تسوق أخف وأجمل', 'home', NOW(), NOW()),
('home_hero_subtitle', 'منتجات أصلية، عروض واضحة، وطلب أسرع', 'home', NOW(), NOW()),
('home_hero_image_url', '', 'home', NOW(), NOW()),
('home_hero_image_opacity', '0.28', 'home', NOW(), NOW()),
('home_hero_background_color', '#EAF8FD', 'home', NOW(), NOW()),
('home_hero_gradient_color', '#FFE7EF', 'home', NOW(), NOW()),
('home_hero_text_color', '#263744', 'home', NOW(), NOW()),
('home_hero_subtitle_color', '#7C92A0', 'home', NOW(), NOW()),
('home_hero_pill_background_color', '#FFFFFF', 'home', NOW(), NOW()),
('home_hero_pill_text_color', '#17495A', 'home', NOW(), NOW()),
('home_hero_link_type', 'none', 'home', NOW(), NOW()),
('home_hero_link_value', '', 'home', NOW(), NOW()),
('home_feature_1_enabled', '1', 'home', NOW(), NOW()),
('home_feature_1_label', 'توصيل سريع', 'home', NOW(), NOW()),
('home_feature_1_icon', 'local_shipping', 'home', NOW(), NOW()),
('home_feature_2_enabled', '1', 'home', NOW(), NOW()),
('home_feature_2_label', 'هدايا وعروض', 'home', NOW(), NOW()),
('home_feature_2_icon', 'redeem', 'home', NOW(), NOW()),
('home_feature_3_enabled', '1', 'home', NOW(), NOW()),
('home_feature_3_label', 'نقاط', 'home', NOW(), NOW()),
('home_feature_3_icon', 'stars', 'home', NOW(), NOW()),
('home_feature_4_enabled', '1', 'home', NOW(), NOW()),
('home_feature_4_label', 'دفع عند الاستلام', 'home', NOW(), NOW()),
('home_feature_4_icon', 'payments', 'home', NOW(), NOW())
ON DUPLICATE KEY UPDATE
    `setting_value` = VALUES(`setting_value`),
    `setting_group` = VALUES(`setting_group`),
    `updated_at` = NOW();

-- Keep final Baby Blue defaults in sync with the app theme API.
INSERT INTO `settings` (`setting_key`, `setting_value`, `setting_group`, `created_at`, `updated_at`) VALUES
('primary_color', '#55C7E8', 'appearance_theme', NOW(), NOW()),
('secondary_color', '#17495A', 'appearance_theme', NOW(), NOW()),
('dark_color', '#103646', 'appearance_theme', NOW(), NOW()),
('app_background_color', '#FFFFFF', 'appearance_theme', NOW(), NOW()),
('soft_background_color', '#F3FBFE', 'appearance_theme', NOW(), NOW()),
('card_color', '#FFFFFF', 'appearance_theme', NOW(), NOW()),
('text_primary_color', '#263744', 'appearance_theme', NOW(), NOW()),
('text_secondary_color', '#7C92A0', 'appearance_theme', NOW(), NOW()),
('top_strip_background_color', '#BFEAF7', 'appearance_theme', NOW(), NOW()),
('top_strip_text_color', '#12313D', 'appearance_theme', NOW(), NOW()),
('button_primary_background_color', '#55C7E8', 'appearance_theme', NOW(), NOW()),
('button_primary_text_color', '#FFFFFF', 'appearance_theme', NOW(), NOW()),
('price_regular_color', '#263744', 'appearance_theme', NOW(), NOW()),
('price_old_color', '#A0AAB3', 'appearance_theme', NOW(), NOW()),
('price_sale_color', '#0FA3C8', 'appearance_theme', NOW(), NOW()),
('discount_badge_background_color', '#FFE7EF', 'appearance_theme', NOW(), NOW()),
('discount_badge_text_color', '#D61F69', 'appearance_theme', NOW(), NOW()),
('home_primary_color', '#55C7E8', 'home', NOW(), NOW()),
('home_secondary_color', '#17495A', 'home', NOW(), NOW()),
('home_dark_color', '#103646', 'home', NOW(), NOW()),
('home_background_color', '#FFFFFF', 'home', NOW(), NOW()),
('home_surface_color', '#F3FBFE', 'home', NOW(), NOW()),
('home_card_color', '#FFFFFF', 'home', NOW(), NOW()),
('home_text_color', '#263744', 'home', NOW(), NOW()),
('home_muted_text_color', '#7C92A0', 'home', NOW(), NOW()),
('home_button_background_color', '#55C7E8', 'home', NOW(), NOW()),
('home_button_text_color', '#FFFFFF', 'home', NOW(), NOW())
ON DUPLICATE KEY UPDATE
    `setting_value` = VALUES(`setting_value`),
    `setting_group` = VALUES(`setting_group`),
    `updated_at` = NOW();
