E-commerce Product Page
A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products.

Example of the website this prompt builds. Your result will use your own name, text and images.
- Tech stack
- Next.js (App Router) + Tailwind CSS
- Colour palette
#ffffff#111827#2506ad#f59e0b
- What it builds
- Header with cart
- Breadcrumbs
- Image gallery
- Product info and variants
- Add to cart
- Tabs: description, specs, reviews
- Related products
- Footer
Build the whole website step by step
15 prompts, in order. Paste step 1 into Claude, ChatGPT, Cursor or any AI coding tool, wait until that part works, then paste the next one in the same chat. Each step builds one piece: the project setup, every section of the home page, the extra pages a real E-commerce website needs, and finally polish, SEO and launch. Type your business name and colours in "Make it yours" first and every prompt updates for you. Tick off steps as you go; your progress is saved in this browser.
Make it yours
Fill in your own details and every prompt below updates, so you don't have to edit them by hand. All fields are optional.
Setup1 step
Set up the project and design systemUp next
A running Next.js app with colours, fonts and reusable UI components, ready for sections.

Copy step 1, paste it into your AI tool in the same chat, and you will get a result like the preview.
Show the prompt for step 1
Build a product detail page for an online store selling premium headphones. Product: "Aura Pro Wireless Headphones", ₹12,999 (MRP ₹15,999). We will build this step by step. In this first step, ONLY set up the project and the design system — do not build any page sections yet. Tech stack: Next.js (App Router) with Tailwind CSS. The page is a Server Component; the gallery, variant picker and add-to-cart control are small Client Components. Visual style: clean retail. White background, near-black text (#111827), indigo (#2506ad) for the primary button, amber (#f59e0b) for star ratings. Plenty of white space around product images. Do the following: 1. Give me the exact commands to create the project (npx create-next-app@latest with the App Router, JavaScript or TypeScript, Tailwind CSS, ESLint) and how to run it. 2. Set up the colour palette (#ffffff, #111827, #2506ad, #f59e0b) as Tailwind theme colours / CSS variables with clear names (background, text, primary, accent, muted, border). 3. Load the fonts with next/font and set the base typography scale (h1–h4, body, small). 4. Create reusable components in components/ui: Container, SectionHeading (eyebrow + title + subtitle), Button (primary, secondary, ghost; sizes), Card and Badge. 5. Create app/layout.js with the font, metadata placeholders and a <main> wrapper, and an app/page.js that shows a temporary list of the sections we will build: Header, Breadcrumbs, Main area, two columns on desktop, Tabs below, "You may also like", Footer. 6. Show the final folder structure. Explain briefly what each file does. Keep the code clean and commented.
Home page7 steps
Header
Logo, search field, account icon and a cart icon with an item-count badge.

Copy step 2, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 2
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 1 of 6: Header. Requirements: logo, search field, account icon and a cart icon with an item-count badge. Create it as components/Header.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 1. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
Breadcrumbs
Home / Audio / Headphones / Aura Pro.

Copy step 3, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 3
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 2 of 6: Breadcrumbs. Requirements: Home / Audio / Headphones / Aura Pro. Create it as components/Breadcrumbs.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 2. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
Main area, two columns on desktop
Left: image gallery with one large image and four thumbnails; clicking a thumbnail swaps the main image.

Copy step 4, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 4
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 3 of 6: Main area, two columns on desktop. Requirements: - Left: image gallery with one large image and four thumbnails; clicking a thumbnail swaps the main image. Swipeable on mobile. - Right: product name, star rating with review count, price with the MRP struck through and the percentage saved, a short description, a colour selector (three swatches), a quantity stepper, "Add to cart" and "Buy now" buttons, and delivery info (free delivery, 7-day returns, 1-year warranty) with icons. Show a pincode field to check delivery. Create it as components/MainAreaTwo.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 3. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
Tabs below
Description, Specifications (a two-column table) and Reviews (rating breakdown bars plus three sample reviews).

Copy step 5, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 5
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 4 of 6: Tabs below. Requirements: Description, Specifications (a two-column table) and Reviews (rating breakdown bars plus three sample reviews). Create it as components/TabsBelow.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 4. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
"You may also like"
Four related product cards.

Copy step 6, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 6
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 5 of 6: "You may also like". Requirements: four related product cards. Create it as components/YouMayAlso.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 5. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
Footer
The Footer section, finished and responsive.

Copy step 7, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 7
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Now build ONLY section 6 of 6: Footer. Requirements: The footer for this brief: Build a product detail page for an online store selling premium headphones. Product: "Aura Pro Wireless Headphones", ₹12,999 (MRP ₹15,999). Choose sensible content and layout for it and explain your choices in one or two lines. Create it as components/Footer.jsx (a Server Component unless it needs state or event handlers — then add "use client" and keep the interactive part as small as possible), and add it to app/page.js in position 6. Rules: - Use only the existing design tokens and UI components; add new tokens only if truly needed and tell me. - Mobile-first and responsive at 375px, 768px and 1200px+. - Accessible: semantic elements, correct heading level (only the hero uses h1), alt text, keyboard focus styles, labels on any form fields. - Realistic sample content for E-commerce Product Page (no lorem ipsum). - Show me the complete code for every file you create or change.
Interactions and animation
Hover states, scroll reveals and any interactive behaviour, without hurting performance.

Copy step 8, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 8
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. All sections are built. Now add the interactions and animation layer. Required behaviour: selecting a colour updates the selected state and the main image; the quantity stepper cannot go below 1; "Add to cart" shows a brief confirmation and increments the cart badge (client-side state is fine). Also: - Subtle hover and focus states on every link, button and card. - Elements fade and slide up slightly as they scroll into view (IntersectionObserver in one small client component); run each animation once. - Smooth scrolling for in-page links, with an offset for the sticky header. - Every animation must be disabled when the user has prefers-reduced-motion set. - Do not add heavy animation libraries. Show the full code of each changed file.
More pages4 steps
Catalogue page
A new /shop page that matches the rest of the site.

Copy step 9, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 9
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. The home page is finished. Now add a product listing page with a filter sidebar (category, price range, colour), sort options, a product grid from a local data file and pagination. Route: /shop. - Move the Navbar and Footer into app/layout.js (if not already there) so every page shares them, and add a link to this page in the navigation. - Put shared mock data in a lib/ or data/ file, not inside the component. - Give the page its own metadata (title and description). - Same design system and components, responsive and accessible as before. - Show the full code for every new or changed file.
Product page
A new /product/[slug] page that matches the rest of the site.

Copy step 10, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 10
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. The home page is finished. Now add a product detail page generated from the same data file, reusing the gallery, variant picker and add-to-cart components. Route: /product/[slug]. - Move the Navbar and Footer into app/layout.js (if not already there) so every page shares them, and add a link to this page in the navigation. - Put shared mock data in a lib/ or data/ file, not inside the component. - Give the page its own metadata (title and description). - Same design system and components, responsive and accessible as before. - Show the full code for every new or changed file.
Cart
A new /cart page that matches the rest of the site.

Copy step 11, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 11
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. The home page is finished. Now add a cart page backed by React context + localStorage: line items, quantity steppers, remove, coupon field (UI only), subtotal, shipping and total. Route: /cart. - Move the Navbar and Footer into app/layout.js (if not already there) so every page shares them, and add a link to this page in the navigation. - Put shared mock data in a lib/ or data/ file, not inside the component. - Give the page its own metadata (title and description). - Same design system and components, responsive and accessible as before. - Show the full code for every new or changed file.
Checkout and confirmation
A new /checkout and /order/success page that matches the rest of the site.

Copy step 12, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 12
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. The home page is finished. Now add a checkout form (contact, address, delivery option, payment method UI only) with validation, then an order confirmation page with an order summary. Route: /checkout and /order/success. - Move the Navbar and Footer into app/layout.js (if not already there) so every page shares them, and add a link to this page in the navigation. - Put shared mock data in a lib/ or data/ file, not inside the component. - Give the page its own metadata (title and description). - Same design system and components, responsive and accessible as before. - Show the full code for every new or changed file.
Polish and launch3 steps
Responsive and accessibility review
A page that works on every screen size and with a keyboard or screen reader.

Copy step 13, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 13
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Review the whole site and fix problems. Go through it at 360px, 768px, 1024px and 1440px widths and check: - No horizontal scrolling, nothing overlapping, text never cut off, tap targets at least 44px. - One h1 per page and a logical heading order; landmarks (header, nav, main, footer). - Every image has meaningful alt text (or empty alt if decorative); every form field has a label and error messages are announced. - Everything works with the keyboard alone, focus is always visible, and menus/accordions/modals manage focus and close with Escape. - Colour contrast of at least 4.5:1 for body text. List each issue you found and the fix, then show the changed code.
SEO and performance
Search-friendly metadata, social previews and fast loading.

Copy step 14, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 14
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. Prepare the site for search engines and fast loading: - Metadata for every page (title, description, canonical, Open Graph and Twitter card) using the Metadata API, and a title template. - app/sitemap.js and app/robots.js. - JSON-LD structured data that fits E-commerce Product Page (Organization or LocalBusiness, plus FAQPage if there is an FAQ). - Use next/image with correct sizes for every image, preload only the hero image, and lazy-load the rest. - Make sure no component is a Client Component unless it needs to be. Then tell me how to check the result with Lighthouse and what score to aim for.
Launch
The website live on the internet with your own domain.

Copy step 15, paste it into your AI tool in the same chat, and you will get a result like the preview, in your own colours and content.
Show the prompt for step 15
Project recap: we are building E-commerce Product Page — A complete product detail page with an image gallery, variant selectors, quantity control, reviews and related products. Stack: Next.js (App Router) + Tailwind CSS. Keep using the design system, colours, fonts and components we already created; do not rewrite earlier sections. The site is ready. Walk me through launching it, step by step, for a beginner: 1. Push the project to a new GitHub repository (exact git commands). 2. Deploy it on Vercel (free plan) from that repository. 3. Connect a custom domain and set up HTTPS. 4. Add any environment variables the project needs. 5. Submit the sitemap to Google Search Console. 6. A final pre-launch checklist: replace all sample text, images, prices and contact details with real ones, test every link and form, and check it on a real phone.
Or: the one-shot prompt
Prefer to generate the home page in one go? Copy everything in the box. It works best in tools that can write many files at once (Cursor, Claude Code, v0, Bolt). Text in quotes and the sample business details are meant to be replaced with your own.
Build a product detail page for an online store selling premium headphones. Product: "Aura Pro Wireless Headphones", ₹12,999 (MRP ₹15,999). Tech stack: Next.js (App Router) with Tailwind CSS. The page is a Server Component; the gallery, variant picker and add-to-cart control are small Client Components. Visual style: clean retail. White background, near-black text (#111827), indigo (#2506ad) for the primary button, amber (#f59e0b) for star ratings. Plenty of white space around product images. Layout: 1. Header: logo, search field, account icon and a cart icon with an item-count badge. 2. Breadcrumbs: Home / Audio / Headphones / Aura Pro. 3. Main area, two columns on desktop: - Left: image gallery with one large image and four thumbnails; clicking a thumbnail swaps the main image. Swipeable on mobile. - Right: product name, star rating with review count, price with the MRP struck through and the percentage saved, a short description, a colour selector (three swatches), a quantity stepper, "Add to cart" and "Buy now" buttons, and delivery info (free delivery, 7-day returns, 1-year warranty) with icons. Show a pincode field to check delivery. 4. Tabs below: Description, Specifications (a two-column table) and Reviews (rating breakdown bars plus three sample reviews). 5. "You may also like": four related product cards. 6. Footer. Behaviour: selecting a colour updates the selected state and the main image; the quantity stepper cannot go below 1; "Add to cart" shows a brief confirmation and increments the cart badge (client-side state is fine). Quality bar: - Fully responsive: design mobile-first, then tablet (768px) and desktop (1200px). - Accessible: semantic HTML landmarks, one h1, alt text on images, visible keyboard focus, colour contrast of at least 4.5:1 for body text. - Fast: no heavy libraries, lazy-load images below the fold, system or two web fonts at most. - Use placeholder images from a neutral source and realistic sample copy (no lorem ipsum). - Respect prefers-reduced-motion for every animation. - Keep the code clean and commented so I can edit it by hand.
How to use these prompts
- 1
Open an AI coding tool. Use any capable assistant: Claude, ChatGPT, Cursor, v0, Bolt, Gemini. Tools that can create files (Cursor, Claude Code, v0, Bolt) are the most convenient because they write the project for you.
- 2
Replace the sample details. Copy the prompt and change the business name, location, colours and any section you do not need. The more specific your details, the better the result.
- 3
Paste the prompts one by one. Start with step 1 of the step-by-step build and send each next step only when the previous one works. If a reply is cut off, say “continue from where you stopped”. Or send the one-shot prompt if you want the whole home page at once.
- 4
Run it on your computer. Create a project with “npx create-next-app@latest”, add the generated files, then run “npm run dev” and open http://localhost:3000.
- 5
Review and refine. Check it on a phone-width screen, fix anything that looks off by describing it in plain words, then use the follow-up prompts below to add features one at a time.
- 6
Replace placeholders and publish. Swap in your real text and images, then deploy. Vercel and Netlify both host this kind of site for free.
Follow-up prompts
Send these one at a time after the first version is working. Small, specific requests give much better results than one giant prompt.
Add Product JSON-LD structured data with price, availability and aggregate rating.
Build the cart drawer that slides in from the right with line items and a subtotal.
Make the mobile layout show a sticky 'Add to cart' bar at the bottom of the screen.
Add an image zoom on hover for desktop.
Tips for a better result
- Show the final price including taxes and the delivery estimate early; hidden costs cause cart abandonment.
- Only display ratings and reviews that are real.
- Want to hand-build a section instead? The Templates library has heroes, pricing tables, FAQs and more with full code.


