# Pryanka Butik — E-Commerce (PHP + MySQL)

Website e-commerce lengkap dengan tema *coffee/cream* untuk butik fashion.

## Tech Stack
- PHP 8+ native (tanpa framework)
- MySQL / MariaDB
- Bootstrap 5
- Vanilla JS

## Cara Menjalankan di Laragon / XAMPP

1. **Ekstrak** folder `pryanka-butik/` ke:
   - Laragon: `C:\laragon\www\pryanka-butik\`
   - XAMPP: `C:\xampp\htdocs\pryanka-butik\`

2. **Buat database**:
   - Buka `http://localhost/phpmyadmin`
   - Klik **Import** → pilih file `database.sql` → **Go**
   - Database `pryanka_butik` akan dibuat otomatis lengkap dengan data contoh.

3. **Cek konfigurasi DB** di `includes/db.php` (default sudah cocok dengan Laragon/XAMPP: user=`root`, password kosong).

4. **Buka di browser**:
   - Website: `http://localhost/pryanka-butik/`
   - Admin: `http://localhost/pryanka-butik/admin/login.php`

## Akun Admin Default
- Email: `admin@pryanka.com`
- Password: `admin123`

> ⚠️ Catatan: jika password admin tidak bisa login (hash di SQL kadang berbeda environment), buat ulang via halaman **register.php**, lalu jalankan di phpMyAdmin:
> ```sql
> UPDATE users SET role='admin' WHERE email='emailmu@example.com';
> ```

## Fitur
- Homepage dengan hero, kategori, produk featured
- Shop dengan filter kategori & sort harga
- Detail produk + Add to Cart
- Cart (session-based) & Checkout
- Upload bukti pembayaran (Bank Transfer / QRIS)
- Order success + kode order
- Login / Register user
- **Admin Panel**: Dashboard, CRUD Produk, Manage Orders + update status

## Struktur Folder
```
pryanka-butik/
├── admin/              # admin panel
├── assets/css|js|img   # static
├── includes/           # db.php, header, footer
├── uploads/            # bukti pembayaran (auto-created)
├── database.sql
├── index.php · shop.php · product.php
├── cart.php · checkout.php · payment.php
├── order-success.php
├── login.php · register.php · logout.php
└── about.php
```

## Color Palette
- Creamy Latte `#F3E9D7`
- Warm Cappuccino `#D6BFA6`
- Caramel Roast `#B08968`
- Mocha Bean `#7A553A`
- Espresso Shot `#3B2A22`
