# Urban Togs Ecommerce Website

This is a host-ready static ecommerce website for **Urban Togs**, built with **HTML, Tailwind CSS, custom CSS, and JavaScript**.

## What is included

- Premium homepage with Urban Togs branding and uploaded logo
- Shop page with search, category filter, price filter, sorting, product cards, wishlist, quick view, and add to cart
- Product detail page
- Cart page with coupon codes, free-shipping progress, recommendations, and order summary
- Checkout page with customer details, payment method selection, eSewa/Khalti/Card-style interface, and order confirmation
- Admin page to add/edit/delete products, upload product photos, set inventory, prices, badges, featured products, and store settings
- Demo order storage and CSV export
- JSON catalog import/export
- Netlify and GitHub Pages friendly files

## Admin login



Open `admin.html` to manage the store.

## Coupon codes

```txt
URBAN10   = 10% off
FIRST15   = 15% off
FREESHIP  = free delivery
```

## How to publish

Upload the entire folder to any static hosting service:

- Netlify
- Vercel
- GitHub Pages
- cPanel public_html
- Cloudflare Pages

The main file is:

```txt
index.html
```

## Important payment note

The checkout payment interface is a professional front-end/demo interface. It does **not** charge real cards and does **not** process real payments.

Before accepting real payments, connect a secure payment gateway such as Stripe, PayPal, eSewa, Khalti, or a bank/payment-link system. Do not collect real card details directly on a static website.

## Important admin/storage note

This version is fully static and host-ready. Product changes and orders are saved in the browser using localStorage. That means:

- You can add products and photos from the admin page on your own browser.
- Those changes stay on that browser.
- For a real public store where all customers see live inventory and orders come to you automatically, connect a backend/database such as Firebase, Supabase, Shopify, WooCommerce, or a custom Node/Django backend.

The admin page includes export/import tools so you can back up the product catalog.

## Recommended next real-business upgrade

For a production Urban Togs store, connect:

1. A real database for products and inventory
2. A secure payment gateway
3. Email or WhatsApp order notifications
4. Delivery/shipping integration
5. Admin authentication with a real login system

The current website gives you the complete front-end brand, customer experience, and ecommerce interface ready to publish.

## Light / Dark Mode

This version includes a JavaScript-powered light/dark mode switch. The toggle appears beside the cart button on customer pages and inside the admin area. The selected theme is saved in `localStorage` under `urbantogs.theme`, so customers keep the same look when they move between pages or return later.

Main files involved:

- `assets/js/ui.js` — creates the toggle, switches themes, and saves the choice.
- `assets/css/styles.css` — contains the dark-mode design system and component overrides.
- Every `.html` file — includes a small early theme script in the `<head>` to prevent flashing before the page loads.

## Responsive update included

This package includes a stronger responsive CSS layer for phones, tablets, desktop browsers, cart drawer, checkout, product cards, admin dashboard, mobile menus, modals and form fields.

Mobile improvements added:
- Smaller fluid typography for 320px to large desktop screens.
- Fixed horizontal overflow issues.
- Touch-friendly 40–46px buttons.
- iOS-safe input font sizing.
- Responsive cart drawer and quick-view modal.
- Mobile menu added automatically on pages that were missing it.
- Admin product form stacks correctly on phones.
- Tables scroll horizontally instead of breaking the page.

## Mobile and interface repair update

This version fixes the mobile dark/light mode issue shown in the screenshot. The mobile menu is now controlled as a compact overlay instead of becoming a huge blank card. Navbar text, product cards, filters, checkout panels, admin sections and form fields now have stronger contrast in both light and dark mode.

New page added:

`customize.html`

Use this page to change the interface without editing code:
- light or dark mode
- brand accent color
- spacing density
- corner roundness
- product image size
- text size
- announcement bar text

Because this is a static website, interface changes are saved in the browser with localStorage. For a real multi-device admin system, connect a backend/database later.

## Admin-only interface and order notifications

`customize.html` is now admin-only. The page asks for the admin password and does not show a hint.

Order notifications are handled through `assets/js/notifications.js`.

Before hosting, open that file and set:
- `adminEmail`
- `adminWhatsApp`

The admin page and interface page also include notification fields for browser-level testing. Because this is a static website, browser-saved settings are not shared to every customer device. For live public order notifications, set the values inside `assets/js/notifications.js` before deployment or connect a real backend/email service.
