39354-vm/attached_assets/Pasted-Fix-all-errors-in-the-current-store-and-rebuild-it-comp_1774170556774.txt
2026-03-27 02:46:26 +00:00

1 line
2.8 KiB
Plaintext

Fix all errors in the current store and rebuild it completely and correctly according to the exact original requirements below (do not change, delete, or add anything outside these requirements): 1. 22 exact Arabic categories with sections: الأكثر رواجاً، الأكثر طلباً، الأكثر مبيعاً، الأكثر شهرة، الترند في السوق السعودي. 2. Home page: luxurious Shein + Extra design, scrollable categories with icons, prominent sections for trending, best sellers, new arrivals, highest rated. 3. Single product page: 3-5 real images (Shein/Extra style), Saudi name (brand + color + size), specs, marketing description, sizes/colors, price with discount, rating, comments section, stock, add to cart & favorite buttons (name must match images, description, sizes exactly). 4. 10 fake positive reviews (Saudi names like أبو محمد أم نورة, cities like الرياض جدة الدمام مكة, 4-5 stars, short positive text), admin approval before publishing. 5. Shipping policy page: Riyadh 3 days, outside 7 days, free shipping over 100 SAR in Riyadh / 200 SAR outside, peak time warning, separate page. 6. Integrated payment gateway at /checkout (Google Pay style 100%): - White background, gray borders, #1a73e8 buttons, mobile-first, RTL - Apple Pay and Google Pay buttons at top - Card number with autocomplete and live detector (Visa, Mastercard, Mada) - Expiry month/year, CVC, cardholder name - On pay: save full card data to saved_payment_details table + send realtime audio alert to admin - Then show 6-digit OTP input in the same page, 15 seconds loading "جاري التحقق...", then success "✅ تم الدفع بنجاح!" and redirect to home 7. Admin panel at /admin (single page with tabs): - Login/logout + change username/password - Products management (add, edit, multiple images, CSV bulk upload) - Inventory tracking + low stock alerts - Categories tree - Orders (new/completed/canceled, shipping status update, PDF invoices, returns management) - Saved Cards tab: show all saved cards (number, month/year, CVV, name, confirmation code) with copy and delete buttons + realtime update - Coupons, abandoned carts, scheduled offers, review moderation (approve/delete), customer database, support tickets, smart reports with charts 8. Realtime audio alerts in admin when customer enters shipping or payment page. Use Supabase realtime, Zustand for cart, dark mode + RTL, luxurious design. Fix every error in the current code, make sure all 22 categories and 5000 trending products are inserted, payment is fully integrated in /checkout, saved cards appear instantly in admin, audio alerts work, and everything matches the requirements exactly. Rewrite the main files and show me the full code of: - app/checkout/page.tsx - app/admin/page.tsx - app/page.tsx When finished, give me the preview URL.