# ── Server ──────────────────────────────────────────────
PORT=5000
NODE_ENV=development

# ── Database ────────────────────────────────────────────
# MONGO_URI=mongodb://127.0.0.1:27017/mobile-ecommerce
MONGO_URI=mongodb+srv://clpiter:SvyshEKoEspXhH6G@cluster0.m2ybez8.mongodb.net/mobile-ecommerce?appName=Cluster0

# ── Frontend origin (for CORS + cookies) ───────────────
CLIENT_URL=http://localhost:5173

# ── This server's own public URL (used to build /uploads image links) ──
BACKEND_URL=http://localhost:5000

# ── Auth (SECRET — backend only) ───────────────────────
JWT_SECRET=f7f65cda23754f084392154cedfacfebc506bbeb850b417a775853f54f23dc7b86bf65e09f8b7ed4b771b455dfa63286
JWT_EXPIRES_IN=7d
JWT_COOKIE_NAME=token

# ── Razorpay (SECRET — backend only) ───────────────────
# Fill these in when you're ready to test payments (Phase 8).
RAZORPAY_KEY_ID=rzp_test_Tfo3VZAoUDEzXx
RAZORPAY_KEY_SECRET=oP6XaEL8PILY2P53GcA39U8R
RAZORPAY_WEBHOOK_SECRET=

# ── Image storage: local disk (backend/uploads/), served at /uploads ──
# No credentials needed.

# ── SMTP — verification & password-reset emails (SECRET) ─
# Leave blank for now — email sending is skipped gracefully (logged, not crashed).
SMTP_HOST=smtp.gmail.com
SMTP_PORT=465
SMTP_USER=chanderlalpiter999@gmail.com
SMTP_PASS=csiljodjzuyzpvmz
SMTP_FROM=help@clpiter.in

# ── Seed / initial admin account (dev only) ────────────
ADMIN_NAME=Store Admin
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=change_this_password
ADMIN_PHONE=9999999999
