A modern, fully responsive e-commerce storefront built with pure HTML, CSS, and JavaScript. Featuring a stunning glassmorphism UI with smooth animations, professional brand colors, and a clean aesthetic — designed for any retail business.
Shop the Future, Today
- Glassmorphism UI — Frosted glass cards with
backdrop-filter: blur()and subtle borders - Fully Responsive — Optimized for desktop, tablet, and mobile devices with 4 breakpoints
- Mobile-First Navigation — Hamburger menu with slide-in glass panel and touch-friendly targets
- Product Catalog — 24 products across 6 categories with real Unsplash images
- Shopping Cart — Add, remove, update quantities with LocalStorage persistence
- Wishlist — Save favorite products with persistent storage
- Search — Live search with instant results and mobile-optimized overlay
- Checkout Flow — Multi-step checkout (Shipping → Payment → Review)
- User Authentication — Login & Register UI with form validation
- Smooth Animations — Scroll reveals, hover effects, floating shapes, and more
- Professional Color Palette — Tailwind-inspired brand colors
- No Frameworks — 100% vanilla HTML, CSS, and JavaScript
| Breakpoint | Layout |
|---|---|
| Desktop (1200px+) | Full 4-column grids, sticky sidebar, hover effects |
| Tablet Landscape (1024px) | 2-column grids, simplified layouts |
| Tablet Portrait (768px) | Off-canvas shop sidebar, hamburger nav, stacked forms |
| Mobile (480px) | Compact cards, full-width elements, touch-optimized |
- 📱 Shop filter sidebar converts to a slide-in drawer with backdrop overlay
- 📱 Product cards handle discount prices gracefully without overflow
- 📱 Footer reorganizes into 2-column layout (Quick Links & Customer Service side by side)
- 📱 All forms stack vertically with full-width inputs
- 📱 Minimum 36px touch targets on all interactive elements
| # | Page | Description |
|---|---|---|
| 1 | Home | Hero section, featured categories, trending products, testimonials, newsletter |
| 2 | Shop | Product grid with filters, sorting, search bar, and pagination |
| 3 | Product Detail | Image gallery, size/color selectors, reviews, related products |
| 4 | Cart | Cart items, quantity controls, coupon input, order summary |
| 5 | Checkout | Multi-step form with order confirmation |
| 6 | About | Company story, team section, animated stats, values |
| 7 | Contact | Contact form, info cards, FAQ accordion |
| 8 | Auth | Login/Register toggle with social login buttons |
| 9 | Wishlist | Saved products grid with bulk actions |
| 10 | 404 | Animated not-found page with search |
| Technology | Purpose |
|---|---|
| HTML5 | Semantic markup & page structure |
| CSS3 | Glassmorphism, animations, gradients, responsive design |
| Vanilla JS | Cart logic, DOM manipulation, interactivity |
| Google Fonts | Inter (headings) + Poppins (body) |
| Remix Icon | CDN icon library (v4.1.0) |
| LocalStorage | Cart & wishlist data persistence |
GlassCart/
│
├── index.html # Home / Landing page
├── shop.html # Products listing page
├── product.html # Single product detail
├── cart.html # Shopping cart
├── checkout.html # Checkout flow
├── about.html # About us
├── contact.html # Contact us
├── auth.html # Login & Register
├── wishlist.html # Wishlist
├── 404.html # Not Found page
│
├── css/
│ ├── style.css # Global styles, variables, glassmorphism
│ ├── animations.css # Keyframe animations & scroll reveals
│ └── responsive.css # Media queries & responsive adjustments
│
├── js/
│ ├── app.js # Navigation, shared utilities
│ ├── products.js # Product data store (24 products)
│ ├── cart.js # Cart add/remove/update/persist
│ ├── animations.js # Scroll animations & Intersection Observer
│ └── ui.js # Modals, dropdowns, search, filters
│
├── CONTEXT.md # Full project documentation
└── README.md # This file
| Color | Hex | Usage |
|---|---|---|
| 🔵 Brand Blue | #2563EB |
Primary buttons, links, accents |
| 🔵 Light Blue | #60A5FA |
Hover states, gradients |
| 🟢 Emerald | #10B981 |
Success, secondary actions |
| 🟡 Amber | #F59E0B |
Star ratings, warnings, highlights |
| 🔴 Red | #EF4444 |
Errors, sale badges |
| ⬜ Slate-50 | #F8FAFC |
Background |
| ⬛ Slate-800 | #1E293B |
Primary text |
-
Clone the repository
git clone https://github.com/ZainDevX/E-Commerce-Website.git
-
Navigate to the project folder
cd E-Commerce-Website -
Open in browser
Simply open
index.htmlin your browser — no build tools or server required.Or use a live server:
npx live-server
| Animation | Trigger | Used On |
|---|---|---|
fadeInUp |
Scroll | Cards, sections |
scaleIn |
Hover / Load | Product cards, buttons |
float |
Continuous | Decorative shapes |
pulse |
Continuous | CTAs, notifications |
shimmer |
Continuous | Glass borders, loading |
countUp |
Scroll | Statistics numbers |
ripple |
Click | Buttons |
glassglow |
Hover | Glass cards |
gradientShift |
Continuous | Background gradients |
| Browser | Support |
|---|---|
| Chrome | ✅ Full |
| Firefox | ✅ Full |
| Safari | ✅ Full |
| Edge | ✅ Full |
| Opera | ✅ Full |
Contributions are welcome! Feel free to open issues or submit pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Open a Pull Request
Zain — @ZainDevX
This project is open source and available under the MIT License.
Built with ❤️ using pure HTML, CSS & JavaScript