SHOPIFYRETAIL — UPGRADED PACKAGE

WHAT WAS FIXED
- Admin Login and Register no longer depend on a JavaScript click handler.
- Login/Register use normal HTML form submission, so the buttons remain clickable even if AJAX/JS fails.
- Admin authentication uses prepared statements, password_verify/password_hash, session regeneration and active-account checks.
- Database connection now uses config/constants.php and utf8mb4.
- Demo admin account is activated.

DEMO ADMIN
Email: admin@mail.com
Password: password
Change this password after your first login.

DESIGN UPGRADE
- Storefront redesigned around the supplied Shopify-style reference: announcement bar, sticky navigation, hero section, category collection, product cards, benefits strip, newsletter and footer.
- Admin dashboard redesigned with sidebar, stats, recent orders, responsive layout, quick actions and activity chart.
- Products, Brands, Categories, Customers and Orders admin pages use the new responsive administration shell.
- Existing CRUD AJAX endpoints/selectors were retained where possible so current functionality continues to work.

DATABASE
The DATABASE/ecommerce_site.sql file is now the upgraded import file.
It contains the original demo schema/data plus:
- site_settings
- admin_activity
- product_wishlist
- product_reviews
- newsletter_subscribers
- useful indexes
- active demo admin

DEPLOYMENT
1. Create a MySQL database named ecommerce_site (or change DATABASE_NAME in config/constants.php).
2. Import DATABASE/ecommerce_site.sql using phpMyAdmin.
3. Edit config/constants.php:
   HOST, USER, PASSWORD, DATABASE_NAME, CURRENCY
4. Upload the Ecommerce-Website folder contents to your web root.
5. Open /admin/login.php.
6. Sign in with the demo credentials above.
7. Change the admin password before production use.

IMPORTANT
- Do not use MySQL root with an empty password on production hosting.
- Configure HTTPS.
- The payment URLs in the original demo still point to sandbox/localhost values and should be updated before accepting real payments.
- Product image upload is now correctly limited to 2 MB (the old code accidentally used 2 KB).


TROUBLESHOOTING (v4)
- Admin login and registration now submit to their own PHP pages to avoid 404s caused by hosting rewrite rules on nested form actions.
- The demo admin account is active by default: admin@mail.com / password.
- The storefront AI button is visible when Customer Store Assistant is enabled. If NVIDIA AI is not configured, it shows setup instructions rather than disappearing.
