Design E-Commerce Platform – Frontend System Design

Problem Statement
Build the frontend for an e-commerce website like Amazon or Shopify stores.
Requirements:
- A product listing page with search, filters (brand, price, size, rating), and sorting
- A product detail page with an image gallery, variants (size, color), price, stock status, and reviews
- A cart that persists across visits and works for both guests and logged-in users
- A checkout flow with shipping address, payment, and order confirmation
- The site must be fast, SEO-friendly, and fully responsive
Describe your approach to rendering strategy, component structure, cart and checkout state, the API, and any optimizations you’d consider for performance, conversion, and security.
Clarifying Questions
... premium content.
