# Ethnic Doriyan Google Cloud Blueprint

This static prototype is ready to connect to Google Cloud services without changing the page structure.

## Recommended Production Stack

- **Firebase Hosting** or **Cloud Run** for the single-page website.
- **Firebase Authentication** for Google and Facebook sign-on.
- **Firestore** for users, saved carts, products, admin roles, and orders.
- **Cloud Storage** for admin-uploaded product images and customer try-on images.
- **Cloud Run API** for checkout session creation, product moderation, and image refinement jobs.
- **Vertex AI / approved image workflow** for AI try-on and product image cleanup.
- **Stripe Checkout** or another payment processor for secure checkout.

## Core Collections

- `users/{uid}`: email, display name, auth providers, saved cart.
- `products/{productId}`: name, classification, state, price, imageUrl, inventoryStatus.
- `orders/{orderId}`: uid, cart snapshot, checkout provider session, payment status.
- `adminImageJobs/{jobId}`: source image, prompt, status, refined image URL.

## Admin Rule

Only `tstggl2000@gmail.com` should receive the admin custom claim. Product creation, product image replacement, and image-refinement jobs should require that claim server-side.

## Deployment Notes

For Google Cloud, deploy the `site` folder as Firebase Hosting or a static Cloud Run container. For GoDaddy, upload the same `site` folder to the hosting root and connect real auth/checkout through hosted APIs.
