Skip to content
HTML Templates For Developers

Mercato — E-commerce Store Template

Five-page homeware store with working shop filters, product variants, a persistent cart with promo codes and a validated demo checkout.

PremiumVanilla HTMLMulti-page
Mercato — E-commerce Store Template — template preview

Live preview

This is the actual template running in a sandbox, shown at 1280px wide.

Description

Mercato is a complete storefront for a fictional homeware brand, built from five linked pages: home, shop, product, cart and checkout. The design pairs a high-contrast serif with a quiet sans-serif on sand and olive, and the layouts are composed rather than templated: an arched hero, an asymmetric category grid, a full-bleed story block and sticky order summaries.

Everything is driven by one product catalogue held in a JavaScript array. Twelve products ship with original SVG artwork in two or three colours and three views each, so the gallery, colour swatches and filters all have real material to work with. The shop filters by category, maximum price and colour, searches by name or description, and sorts by featured, newest, price or rating.

The cart follows the shopper across pages using localStorage, with an in-memory fallback when storage is blocked, and every page behaves sensibly with an empty basket. The cart page edits quantities, removes lines and applies promo codes with a free-shipping progress bar. The checkout formats and validates card number, expiry and security code as the shopper types. It is clearly a demonstration: no payment is processed and no order is placed.

Key features

  • Shop with category, maximum price and colour filters, search and five sort orders
  • Product page with three-view gallery, colour swatches, size options and quantity stepper
  • Accessible tabs for details, care and shipping, plus a related products row
  • Cart saved across pages with localStorage and an in-memory fallback
  • Editable cart lines, promo codes and a free-shipping progress bar
  • Checkout with live card, expiry and security code formatting and inline validation
  • Wishlist hearts that toggle and persist, and a header basket count
  • Twelve original SVG product illustrations in a consistent style
  • Prices formatted with Intl.NumberFormat from one currency setting
  • Mobile navigation drawer, collapsible filters and full keyboard support

Front-end template: what is demonstration only

  • Checkout is a demonstration: card details are validated in the browser only, no payment is processed, no order is created and nothing is stored or sent.
  • The newsletter form validates the address and shows a message but does not store or send it.
  • Products, prices, reviews, stock and customer quotes are fictional sample data; the cart lives in the browser only.

What is included

Pages and sections

  • index.html — Home
  • shop.html — Shop
  • product.html — Product
  • cart.html — Basket
  • checkout.html — Checkout (demo)
  • Announcement bar and sticky header with search and basket count
  • Arched hero with product callout
  • Promise strip
  • Asymmetric category grid
  • Featured products
  • Brand story block
  • Customer quotes
  • Shop filters, sort and search
  • Product gallery and variants
  • Product tabs and related items
  • Cart lines, promo code and totals
  • Checkout form and order summary
  • Newsletter footer

Framework

Plain HTML5, CSS3 and JavaScript. No framework, no build step — open index.html and edit.

Bundled open-source components

  • DM Sans typeface (OFL-1.1)
  • DM Serif Display typeface (OFL-1.1)
  • Lucide icons (inlined SVG) (ISC)
  • Simple Icons brand marks (inlined SVG) (CC0-1.0)

Everything is inside the download with its licence. Nothing loads from a CDN.

Supported browsers

Chrome, Edge, Firefox, Safari, Opera

Current versions. Checked in Chromium at desktop, tablet and phone widths.

Files in the download (99) · 256 KB ZIP
  • LICENSE.txt1.9 KB
  • README.md6.5 KB
  • assets/css/style.css41 KB
  • assets/fonts/dm-sans-LICENSE.txt4.4 KB
  • assets/fonts/dm-sans-latin-wght-italic.woff239 KB
  • assets/fonts/dm-sans-latin-wght-normal.woff236 KB
  • assets/fonts/dm-serif-display-LICENSE.txt4.5 KB
  • assets/fonts/dm-serif-display-latin-400-italic.woff224 KB
  • assets/fonts/dm-serif-display-latin-400-normal.woff224 KB
  • assets/images/editorial.svg12 KB
  • assets/images/favicon.svg361 B
  • assets/images/hero.svg4.9 KB
  • assets/images/products/bowl-chalk-1.svg1.6 KB
  • assets/images/products/bowl-chalk-2.svg1.7 KB
  • assets/images/products/bowl-chalk-3.svg1.7 KB
  • assets/images/products/bowl-clay-1.svg1.6 KB
  • assets/images/products/bowl-clay-2.svg1.7 KB
  • assets/images/products/bowl-clay-3.svg1.7 KB
  • assets/images/products/candle-olive-1.svg1.8 KB
  • assets/images/products/candle-olive-2.svg1.9 KB
  • assets/images/products/candle-olive-3.svg1.8 KB
  • assets/images/products/candle-sand-1.svg1.8 KB
  • assets/images/products/candle-sand-2.svg1.9 KB
  • assets/images/products/candle-sand-3.svg1.8 KB
  • assets/images/products/cushion-clay-1.svg2.7 KB
  • assets/images/products/cushion-clay-2.svg2.8 KB
  • assets/images/products/cushion-clay-3.svg2.8 KB
  • assets/images/products/cushion-olive-1.svg2.7 KB
  • assets/images/products/cushion-olive-2.svg2.8 KB
  • assets/images/products/cushion-olive-3.svg2.8 KB
  • assets/images/products/cushion-sand-1.svg2.7 KB
  • assets/images/products/cushion-sand-2.svg2.8 KB
  • assets/images/products/cushion-sand-3.svg2.8 KB
  • assets/images/products/lamp-ink-1.svg1.8 KB
  • assets/images/products/lamp-ink-2.svg1.9 KB
  • assets/images/products/lamp-ink-3.svg1.8 KB
  • assets/images/products/lamp-sand-1.svg1.8 KB
  • assets/images/products/lamp-sand-2.svg1.9 KB
  • assets/images/products/lamp-sand-3.svg1.8 KB
  • assets/images/products/mirror-ink-1.svg1.3 KB
  • assets/images/products/mirror-ink-2.svg1.4 KB
  • assets/images/products/mirror-ink-3.svg1.4 KB
  • assets/images/products/mirror-oak-1.svg1.3 KB
  • assets/images/products/mirror-oak-2.svg1.4 KB
  • assets/images/products/mirror-oak-3.svg1.4 KB
  • assets/images/products/mug-olive-1.svg1.8 KB
  • assets/images/products/mug-olive-2.svg1.9 KB
  • assets/images/products/mug-olive-3.svg1.8 KB
  • assets/images/products/mug-sand-1.svg1.8 KB
  • assets/images/products/mug-sand-2.svg1.9 KB
  • assets/images/products/mug-sand-3.svg1.8 KB
  • assets/images/products/pendant-ink-1.svg1.3 KB
  • assets/images/products/pendant-ink-2.svg1.4 KB
  • assets/images/products/pendant-ink-3.svg1.3 KB
  • assets/images/products/pendant-olive-1.svg1.3 KB
  • assets/images/products/pendant-olive-2.svg1.4 KB
  • assets/images/products/pendant-olive-3.svg1.3 KB
  • assets/images/products/pitcher-chalk-1.svg1.3 KB
  • assets/images/products/pitcher-chalk-2.svg1.4 KB
  • assets/images/products/pitcher-chalk-3.svg1.3 KB
  • assets/images/products/pitcher-olive-1.svg1.3 KB
  • assets/images/products/pitcher-olive-2.svg1.4 KB
  • assets/images/products/pitcher-olive-3.svg1.3 KB
  • assets/images/products/planter-chalk-1.svg1.7 KB
  • assets/images/products/planter-chalk-2.svg1.8 KB
  • assets/images/products/planter-chalk-3.svg1.7 KB
  • assets/images/products/planter-clay-1.svg1.7 KB
  • assets/images/products/planter-clay-2.svg1.8 KB
  • assets/images/products/planter-clay-3.svg1.7 KB
  • assets/images/products/table-ink-1.svg1.5 KB
  • assets/images/products/table-ink-2.svg1.6 KB
  • assets/images/products/table-ink-3.svg1.5 KB
  • assets/images/products/table-oak-1.svg1.5 KB
  • assets/images/products/table-oak-2.svg1.6 KB
  • assets/images/products/table-oak-3.svg1.5 KB
  • assets/images/products/throw-ink-1.svg8.0 KB
  • assets/images/products/throw-ink-2.svg8.1 KB
  • assets/images/products/throw-ink-3.svg8.1 KB
  • assets/images/products/throw-sand-1.svg8.0 KB
  • assets/images/products/throw-sand-2.svg8.1 KB
  • assets/images/products/throw-sand-3.svg8.1 KB
  • assets/images/products/vase-ink-1.svg1.8 KB
  • assets/images/products/vase-ink-2.svg1.9 KB
  • assets/images/products/vase-ink-3.svg1.8 KB
  • assets/images/products/vase-olive-1.svg1.8 KB
  • assets/images/products/vase-olive-2.svg1.9 KB
  • assets/images/products/vase-olive-3.svg1.8 KB
  • assets/images/products/vase-sand-1.svg1.8 KB
  • assets/images/products/vase-sand-2.svg1.9 KB
  • assets/images/products/vase-sand-3.svg1.8 KB
  • assets/js/main.js47 KB
  • cart.html11 KB
  • checkout.html17 KB
  • documentation/index.html17 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • documentation/licenses/simple-icons-LICENSE.txt6.4 KB
  • index.html17 KB
  • product.html14 KB
  • shop.html12 KB

Includes a README, a documentation page with customisation notes, and the licence text.

Read the documentation

Changelog

  1. Version 1.0.0 Nov 23, 2026Current

    • Initial release.

Licence

Regular Licence. One purchase covers one end product — a website, application or email programme for you or one client. You may modify the template freely; you may not redistribute or resell the template itself. Updates are free.

Read the full licence terms

Customer reviews

No reviews yet. Reviews come only from customers who have downloaded or bought this template.

Write a review