# MyStore — Setup Instructions

## ✅ Step 1: Upload Files
Upload the entire store/ folder contents to your hosting's public_html directory.

## ✅ Step 2: Create Database
1. Go to cPanel → MySQL Databases
2. Create a new database (e.g. mystore_db)
3. Create a user and assign ALL PRIVILEGES to it
4. Open phpMyAdmin → select your database → Import → upload install.sql

## ✅ Step 3: Edit Config
Open includes/config.php and update:
```php
define('DB_HOST', 'localhost');
define('DB_USER', 'your_cpanel_db_user');
define('DB_PASS', 'your_db_password');
define('DB_NAME', 'your_db_name');
define('SITE_URL', 'https://yourdomain.com');  // No trailing slash!
define('ANTHROPIC_KEY', 'sk-ant-...');          // From console.anthropic.com
```

## ✅ Step 4: Set Folder Permissions
Set assets/uploads/ to 755 (writable):
- cPanel File Manager → select assets/uploads → Change Permissions → 755

## ✅ Step 5: Test
- Visit: https://yourdomain.com
- Admin login: https://yourdomain.com/admin/
  - Email: admin@mystore.com
  - Password: Admin@123  ← CHANGE THIS IMMEDIATELY!

---

## Features Summary
- 🛍️ Product catalog with AI pricing
- 🔨 Live bid/auction system
- 🛒 Cart + Checkout (Cash on Delivery)
- 👤 User registration & login
- ❤️ Wishlist
- ⭐ Product reviews & ratings
- 📦 Order tracking
- 📱 Fully mobile-friendly
- ⚙️ Admin panel:
  - Dashboard with stats
  - Add/Edit/Delete products (with AI price estimation)
  - Image upload (multiple per product)
  - Order management + status updates
  - Customer list
  - Category management
  - Bid management
  - Store settings

## Changing Admin Password
Login as admin → My Account → (for now edit directly in phpMyAdmin)
Or add a change-password form later.

## Notes
- PHP 7.4+ required (PHP 8.x recommended)
- MySQL 5.7+ or MariaDB 10.3+
- mod_rewrite enabled (standard on cPanel)
