# Instoor storefront theming guide

**Contract version:** 1.0.0
**Last updated:** 2026-10-27

---

## 1. Introduction

Every Instoor store runs on the same storefront. You can give your store its own look in two ways:

1. **Design tokens.** These CSS custom properties (variables) hold the colors, the font, the corner radii, the shadows and the motion curves. Change a token and every part of the shop that uses it follows. This is the easiest and most robust way to theme a store.
2. **Class overrides.** Every important part of a page carries a stable `shop-*` class. You can restyle it with your own CSS rules.

You add both through the **custom styles** of your store's theme settings. Whatever you put there is placed in the `<head>` of every page, **after** the default Instoor stylesheet. Your rules therefore build on the default look instead of replacing it. You only write what you want to change.

### Light and dark themes

In your store's theme settings you choose a **light theme**. You can also enable the **dark mode toggle**: you then choose a **dark theme** as well, and visitors get a button in the header to switch between the two. For each of the two themes you pick one of:

- **Default:** the default Instoor look, without any styles of your own.
- **Template:** one of the ready-made Instoor themes.
- **Custom styles:** your own `<style>` and `<link>` tags, as described in this guide.

With the dark mode toggle you also choose what a first-time visitor sees: the light theme, the dark theme, or the one that matches their device setting. When the visitor uses the toggle, their choice is remembered in their browser.

The two themes don't stack: only the styles of the theme being shown are on the page, each on top of the default look. Write your dark custom styles as a complete theme, not as changes to your light one. While the dark mode toggle is enabled, the `<html>` element carries `data-color-scheme="light"` or `data-color-scheme="dark"`; it is not set without the toggle.

Without the dark mode toggle, the light theme is your store's only theme, so it may just as well be dark.

### What is stable

Only the **design tokens** in [section 4](#4-design-tokens) and the **public classes** in [section 5](#5-public-classes-per-page-type) are public API. They follow the contract version at the top of this page:

- **Major** version (2.0.0): a token or class was removed or renamed, or its meaning changed. Your theme may need changes.
- **Minor** version (1.1.0): tokens or classes were added. Existing themes keep working.
- **Patch** version (1.0.1): documentation fixes only.

Anything not listed here is internal and may change without notice: other class names, the HTML structure between public classes, layout helper classes, and IDs. [Section 10](#10-not-part-of-the-contract) lists the internal names you may come across.

### Naming convention

Class names follow BEM: `shop-<block>__<element>--<modifier>`.

- `shop-button` is a block.
- `shop-button--secondary` is a modifier. It always appears next to its base class.
- `shop-footer__link` is an element inside the `shop-footer` block.

Shared components are mixed with a component-specific class, for example `shop-button shop-checkout-wizard__next`. That way you can style all buttons at once, or only that one.

### How the cascade works

- The tokens are defined in a low-priority CSS cascade layer. A plain `:root { … }` rule in your styles always wins, without `!important`.
- The default stylesheet uses simple class selectors. Your rule with the same selector wins, because it loads later.
- A few default rules use a combined selector to express a state, for example `.shop-search-result:hover .shop-search-result__add-to-cart` or `.shop-checkout-wizard__step--active .shop-checkout-wizard__circle`. To override those, repeat the same selector.
- The page also uses small internal layout helpers (flex, grid, spacing). Your rules on a public class beat them as well. Be careful with `display`, `position`, and `width` on structural elements. Popups (`shop-submenu`, `shop-account-menu__popup`) are hidden and shown by the shop itself, so do not set `display` on them; to lay them out inline (for example in a side rail), set `position: static`. For example, setting `display: flex` on `.shop-header__nav` would also show it on mobile, where it is normally hidden.

---

## 2. Quick start

The smallest useful theme sets a brand color and a web font. Paste this into the custom styles:

```html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;900&display=swap">
<style>
  :root {
    --color-primary: #0f766e;          /* buttons, prices, links on hover, selection */
    --color-primary-content: #ffffff;  /* text and icons on top of the primary color */
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  }
</style>
```

That is all. Buttons, prices, focus rings, the cart counter, the selected states and the checkout steps now use your color. All text uses Inter.

The storefront uses font weights 500, 600, 700 and 900, so load those weights of your web font.

### Preview before you publish

You can try a theme on your live store without your visitors seeing it:

1. Sign in to your store with an account that is allowed to edit your store settings. A **Theme editor** button appears at the bottom right of every page.
2. At the top, you can try **Dark mode toggle in the header**, and with **Start in** choose what a first visit shows: the visitor's own device setting (**User's preference**), **Light mode** or **Dark mode**. They apply right away, only in this browser.
3. With the dark mode toggle enabled, choose **Light mode** or **Dark mode** to pick the theme you preview: the light or the dark one. The page switches to it.
4. Choose **Theme** to try the default look or one of the ready-made themes, or **Custom styles (advanced)** to paste your own `<style>` and `<link>` tags, for example the snippet above.
5. Click **Apply & refresh**. The page reloads with your preview instead of your saved theme.

- Only you see the preview, in this browser. Nothing is saved to your store: when you are happy with it, select that template in your theme settings, or paste the styles into the custom styles. Set the dark mode toggle there too.
- The light and the dark theme each keep their own preview. Use the **Preview** switch to compare your previews and dark mode settings with the current look, and **Reset** to remove all your previews and dark mode settings, and see your saved theme settings again.
- The editor and the preview only show while you are signed in with such an account. Your visitors and customers never see them.
- The preview applies the same rules as the custom styles (see [section 6](#6-rules-and-best-practices)): only `<style>` tags and `https://` stylesheet and preconnect links are used, anything else is ignored.

---

## 3. Before you start: how colors are used

- **`--color-base-100` / `-200` / `-300`** are the surfaces, from light to stronger: the page and card background, subtle borders, then stronger borders and recessed bars.
- **`--color-base-content`** is the text and icon color. Secondary text, captions, and placeholders are *derived* from it with transparency (for example 55% or 70%). Changing it changes the whole text hierarchy.
- **`--color-primary`** is the single accent: actions, prices, selection, and focus rings. Soft tints (10% fills, 30% hover borders) are derived from it.
- **`--color-primary-content`** must stay readable on `--color-primary`.

You can use any CSS color format: hex, `rgb()`, `hsl()`, `oklch()`.

For a dark theme, make `--color-base-100` dark and `--color-base-content` light. See the *Bold streetwear* example in [section 7](#7-example-themes). Also add `color-scheme: dark;` to your `:root` rule, so the browser draws scrollbars and native form controls dark too.

---

## 4. Design tokens

Override these on `:root`.

<!-- tokens:start -->
| Token | Default | Description |
|---|---|---|
| `--color-base-100` | `oklch(99% .01 280)` | Page background and the fill of cards, panels, drawers and inputs. |
| `--color-base-200` | `oklch(97.5% .015 280)` | Subtle borders and dividers, image placeholders, secondary button fill. |
| `--color-base-300` | `oklch(95% .02 280)` | Stronger borders and outlines, notification bar, recessed areas. |
| `--color-base-content` | `oklch(25% .02 280)` | Text and icons. Secondary text uses it with transparency. |
| `--color-primary` | `oklch(65% .2 280)` | Accent: primary buttons, prices, selection, active states, focus ring. |
| `--color-primary-content` | `oklch(99% .01 280)` | Text and icons placed on `--color-primary`. |
| `--color-error` | `oklch(65% .2 25)` | Error messages, such as an invalid discount code. |
| `--color-success` | `oklch(75% .15 160)` | Positive status: the check mark of a met password rule on the sign up page, and the box, check mark and notices on the email verification pages. |
| `--font-sans` | `ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"` | Font family for all text. |
| `--radius-lg` | `.5rem` | Small radius: images nested inside a rounded frame. |
| `--radius-xl` | `.75rem` | Medium radius: buttons, inputs, chips, compact cards, product cards. |
| `--radius-2xl` | `1rem` | Large radius: cards, panels, badges, the bottom sheet's top corners, the search bar. |
| `--shadow-sm` | `0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)` | Resting shadow of cards, inputs and media. |
| `--shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` | Emphasised shadow: dropdowns and pop-overs. |
| `--shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` | Hover shadow of product cards; shadow of drawers (cart, menu, search overlay, bottom sheet). |
| `--ease-out` | `cubic-bezier(0, 0, .2, 1)` | Easing curve of button transitions. |
| `--ease-in-out` | `cubic-bezier(.4, 0, .2, 1)` | Easing curve of color, border, card and drawer transitions. |
<!-- tokens:end -->

The drawers (cart, menu, search overlay, bottom sheet) and the search bar follow the tokens too: they use `--radius-2xl` and `--shadow-xl`.

**Known limitation in this version:** pills and circles (tags, the quantity stepper, icon and close buttons) are always fully rounded. To change them, override the classes directly, for example `.shop-tags__tag { border-radius: 0; }`.

### Behaviour settings

These custom properties change how parts of the shop behave, not how they look. They have no default value: leave them out to keep the standard behaviour. Set them in the same `:root { … }` rule as your tokens.

| Setting | Effect |
|---|---|
| `--menu-open-on-hover: 1` | On desktop, a header menu entry with a submenu opens its submenu when the mouse rests on it, and closes it shortly after the mouse leaves. Visitors on touch screens still open it with a tap, keyboard users with Enter or Space. Without it, submenus open on click. |

```css
:root {
  --menu-open-on-hover: 1;
}
```

### Breakpoints (reference values, not tokens)

CSS media queries cannot read custom properties, so breakpoints are fixed. The layout is mobile first. Use the same values in your own `@media (min-width: …)` rules:

| Name | Min width |
|---|---|
| xs | 36rem (576px) |
| sm | 40rem (640px) |
| md | 48rem (768px) |
| lg | 64rem (1024px) |
| xl | 80rem (1280px) |
| 2xl | 96rem (1536px) |

---

## 5. Public classes per page type

### 5.1 Layout: page, notification bar, header, footer

Present on every shop page.

#### Page type

The `<body>` of every page carries `shop-page` and one modifier naming the type of page. Use it to style one kind of page differently, without depending on how the page is built.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-page` | `<body>` | Every page. |
| `shop-page--home` | `<body>` | Home page. |
| `shop-page--search` | `<body>` | Category and search listing. |
| `shop-page--product` | `<body>` | Product detail. |
| `shop-page--checkout` | `<body>` | Checkout. |
| `shop-page--sign-in` | `<body>` | Sign in. |
| `shop-page--sign-up` | `<body>` | Sign up. |
| `shop-page--verify-email` | `<body>` | Email verification, after signing up. |
| `shop-page--account` | `<body>` | Account overview. |
| `shop-page--profile` | `<body>` | Profile and preferences. |
| `shop-page--orders` | `<body>` | Orders and invoices. |
| `shop-page--wishlist` | `<body>` | Wishlist. |
| `shop-page--contact` | `<body>` | Contact. |
| `shop-page--shipping` | `<body>` | Shipping and delivery. |
| `shop-page--privacy` | `<body>` | Privacy policy. |
| `shop-page--terms` | `<body>` | Terms and conditions. |
| `shop-page--dpa` | `<body>` | Data processing agreement. |
| `shop-page--pricing` | `<body>` | Pricing. |
| `shop-page--error` | `<body>` | Every error page (not found, forbidden, etc.). |
<!-- classes:end -->

```html
<body class="shop-page shop-page--sign-in">
  <!-- notification bar, header, page content, footer -->
</body>
```

For example, to hide the footer during checkout:

```css
.shop-page--checkout .shop-footer {
  display: none;
}
```

The sign in, sign up and email verification pages already use this to hide the header and footer, see [5.10](#510-sign-in-and-sign-up).

#### Notification bar, header, footer

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-notification-bar` | `<div>` | Full-width strip above the header, holding one or more messages. |
| `shop-notification-bar__item` | `<div>` | One message. |
| `shop-notification-bar__close` | `<button>` | Close button of a dismissible message. |
| `shop-top-layout` | `<div>` | Page wrapper around header, content and footer (max width 80rem, centred). |
| `shop-header` | `<div>` | Top bar: brand, navigation and icon actions. |
| `shop-header__nav` | `<nav>` | Navigation, shown from md (768px). |
| `shop-header__nav-link` | `<a>`, `<button>` | One top-level navigation entry: a link, or a button that opens a submenu. |
| `shop-nav-item` | `<div>` | Wrapper of a top-level or submenu entry that has children. Positions its submenu. |
| `shop-nav-item--open` | `<div>` | The entry while its submenu is open, also when it opened on hover (see [Behaviour settings](#behaviour-settings)). |
| `shop-nav-item__toggle` | `<button>` | The button of an entry with children (mixed with `shop-header__nav-link` or `shop-submenu__link`). |
| `shop-nav-item__chevron` | `<svg>` | Arrow inside the toggle button. Rotated while the entry is open. |
| `shop-submenu` | `<div>` | Popup holding the children of an entry. Opens below a top-level entry. |
| `shop-submenu--nested` | `<div>` | A popup inside another popup. Opens to the right of its parent entry. |
| `shop-submenu__link` | `<a>`, `<button>` | One entry inside a popup: a link, or a button that opens a deeper popup. |
| `shop-submenu__link--all` | `<a>` | First entry of a popup whose parent also has a page: the "All" link to that page. |
| `shop-header__actions` | `<div>` | Right-hand group: search, wishlist, account, cart, light/dark toggle and language. |
| `shop-brand` | `<a>` | Link to the home page holding the logo or the store name. |
| `shop-brand__logo` | `<img>` | Store logo (1.75rem tall by default). |
| `shop-brand__name` | `<span>` | Store name, shown when there is no logo. |
| `shop-wishlist-icon` | `<path>` | Heart icon in the header. Style it with `fill` and `stroke`. |
| `shop-account-button` | `<a>`, `<button>` | Account icon in the header: a link to sign in, or, when signed in, a button that opens the account menu. The icon uses `currentColor`. |
| `shop-account-menu` | `<div>` | Wrapper of the account button and its popup, when signed in. Positions the popup. |
| `shop-account-menu__popup` | `<div>` | Popup with the account links. Opens below the account button, aligned to its right edge. |
| `shop-account-menu__link` | `<a>` | One entry of the account popup: overview, profile and preferences, orders and invoices, wishlist, sign out. |
| `shop-account-menu__link--sign-out` | `<a>` | The sign out entry, last in the popup. Separated from the others by a top border. |
| `shop-color-scheme-toggle` | `<button>` | Light/dark toggle in the header, only with the dark mode toggle enabled (see [Light and dark themes](#light-and-dark-themes)). `aria-pressed="true"` while the dark theme is shown. The icons use `currentColor`. |
| `shop-color-scheme-toggle__icon` | `<svg>` | One of the two icons of the toggle. |
| `shop-color-scheme-toggle__icon--moon` | `<svg>` | Moon icon, shown while the light theme is shown: switches to dark. |
| `shop-color-scheme-toggle__icon--sun` | `<svg>` | Sun icon, shown while the dark theme is shown: switches to light. |
| `shop-language-button` | `<div>` | Language picker (flag button plus dropdown). |
| `shop-row` | `<div>` | Content container with the page gutter (1rem, 1.5rem from sm, 2rem from lg). |
| `shop-breadcrumb` | `<nav>` | Breadcrumb trail. |
| `shop-breadcrumb__link` | `<a>` | A parent page in the trail. |
| `shop-breadcrumb__separator` | `<span>` | The "/" between items. |
| `shop-breadcrumb__current` | `<span>` | The current page (last item). |
| `shop-footer` | `<footer>` | Page footer. |
| `shop-footer__columns` | `<div>` | Footer columns (1 column, 3 from md). |
| `shop-footer__heading` | `<h3>` | Column heading. |
| `shop-footer__links` | `<ul>` | Link list of a column. |
| `shop-footer__link-item` | `<li>` | One item of a link list. |
| `shop-footer__link` | `<a>` | Footer link. |
| `shop-footer__newsletter` | `<form>` | Newsletter sign-up form. |
| `shop-footer__newsletter-button` | `<button>` | Subscribe button (mixed with `shop-button`). |
| `shop-footer__social-title` | `<p>` | "Follow us" caption. |
| `shop-footer__social` | `<div>` | Row of social media icon links. |
| `shop-footer__badges` | `<div>` | Row of trust badges. |
| `shop-footer__badge` | `<span>` | One trust badge (pill). |
| `shop-footer__copyright` | `<div>` | Copyright line. |
<!-- classes:end -->

```html
<div class="shop-notification-bar">
  <div class="shop-notification-bar__item">Free shipping on orders over €50</div>
  <div class="shop-notification-bar__item">
    <div>Summer sale ends Sunday</div>
    <button class="shop-notification-bar__close" aria-label="Close">×</button>
  </div>
</div>

<div class="shop-top-layout">
  <div class="shop-header">
    <div>
      <!-- mobile menu, see 5.2 -->
      <a href="/" class="shop-brand"><img class="shop-brand__logo" src="logo.svg" alt="Maison Lune"></a>
    </div>
    <nav class="shop-header__nav">
      <a href="/category/1" class="shop-header__nav-link">New in</a>
      <a href="/category/2" class="shop-header__nav-link">Jewellery</a>
      <a href="/category/3" class="shop-header__nav-link">Gifts</a>
      <!-- an entry with children, its popup open; nested popups use shop-submenu--nested -->
      <div class="shop-nav-item shop-nav-item--open">
        <button class="shop-header__nav-link shop-nav-item__toggle" aria-expanded="true">
          <span>Brands</span><svg class="shop-nav-item__chevron">…</svg>
        </button>
        <div class="shop-submenu">
          <a href="/category/4" class="shop-submenu__link shop-submenu__link--all">All</a>
          <a href="/category/5" class="shop-submenu__link">Silver</a>
          <div class="shop-nav-item">
            <button class="shop-submenu__link shop-nav-item__toggle">
              <span>Gold</span><svg class="shop-nav-item__chevron">…</svg>
            </button>
            <div class="shop-submenu shop-submenu--nested">
              <a href="/category/6" class="shop-submenu__link">Rings</a>
            </div>
          </div>
        </div>
      </div>
    </nav>
    <div class="shop-header__actions">
      <!-- search, see 5.2 -->
      <svg><path class="shop-wishlist-icon" d="…"/></svg>
      <a href="/sign-in" class="shop-account-button" aria-label="Sign in"><svg>…</svg></a>
      <!-- or, when signed in, with its popup open: -->
      <div class="shop-account-menu">
        <button class="shop-account-button" aria-haspopup="menu" aria-expanded="true" aria-label="My account"><svg>…</svg></button>
        <div class="shop-account-menu__popup" role="menu">
          <a href="/my-account" class="shop-account-menu__link" role="menuitem">Overview</a>
          <a href="/profile" class="shop-account-menu__link" role="menuitem">Profile and preferences</a>
          <a href="/orders" class="shop-account-menu__link" role="menuitem">Orders and invoices</a>
          <a href="/wishlist" class="shop-account-menu__link" role="menuitem">Wishlist</a>
          <a href="/sign-out" class="shop-account-menu__link shop-account-menu__link--sign-out" role="menuitem">Sign out</a>
        </div>
      </div>
      <!-- cart button, see 5.3 -->
      <!-- only with the dark mode toggle enabled -->
      <button class="shop-color-scheme-toggle" aria-pressed="false" aria-label="Dark mode">
        <svg class="shop-color-scheme-toggle__icon shop-color-scheme-toggle__icon--moon">…</svg>
        <svg class="shop-color-scheme-toggle__icon shop-color-scheme-toggle__icon--sun">…</svg>
      </button>
      <div class="shop-language-button">…</div>
    </div>
  </div>

  <div>
    <div class="shop-row">
      <nav class="shop-breadcrumb" aria-label="Breadcrumb">
        <a href="/" class="shop-breadcrumb__link">Home</a>
        <span class="shop-breadcrumb__separator">/</span>
        <a href="/category/2" class="shop-breadcrumb__link">Jewellery</a>
        <span class="shop-breadcrumb__separator">/</span>
        <span class="shop-breadcrumb__current" aria-current="page">Crescent necklace</span>
      </nav>
      <!-- page content -->
    </div>
  </div>

  <footer class="shop-footer">
    <div class="shop-footer__columns">
      <nav>
        <h3 class="shop-footer__heading">Help</h3>
        <ul class="shop-footer__links">
          <li class="shop-footer__link-item"><a href="/shipping-and-delivery" class="shop-footer__link">Shipping &amp; delivery</a></li>
          <li class="shop-footer__link-item"><a href="/contact" class="shop-footer__link">Contact us</a></li>
        </ul>
      </nav>
      <nav>
        <h3 class="shop-footer__heading">Legal</h3>
        <ul class="shop-footer__links">
          <li class="shop-footer__link-item"><a href="/privacy" class="shop-footer__link">Privacy policy</a></li>
        </ul>
      </nav>
      <section>
        <h3 class="shop-footer__heading">Stay in touch</h3>
        <form class="shop-footer__newsletter">
          <label class="shop-label" for="email">Newsletter</label>
          <input class="shop-input" id="email" type="email" placeholder="you@example.com">
          <button class="shop-button shop-footer__newsletter-button">Subscribe</button>
        </form>
        <p class="shop-footer__social-title">Follow us</p>
        <div class="shop-footer__social"><a href="#" aria-label="Instagram"><svg>…</svg></a></div>
      </section>
    </div>
    <div class="shop-footer__badges">
      <span class="shop-footer__badge">Made in the EU</span>
      <span class="shop-footer__badge">GDPR compliant</span>
    </div>
    <div class="shop-footer__copyright"><span>© 2026 Maison Lune, all rights reserved</span></div>
  </footer>
</div>
```

### 5.2 Drawers, mobile menu and search overlay

A drawer is a panel that slides over the page above a backdrop. The cart, the mobile menu, the search overlay and the bottom sheet (used for long category descriptions on mobile) are all drawers. The `--open` modifiers are added while a drawer is open.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-drawer` | `<div>` | Wrapper of a drawer, mixed with the component's own block. |
| `shop-drawer__backdrop` | `<div>` | Dimmed layer behind the panel. |
| `shop-drawer__backdrop--open` | `<div>` | Backdrop while the drawer is open. |
| `shop-drawer__panel` | `<div>` | The sliding panel. |
| `shop-drawer__panel--left` | `<div>` | Panel sliding in from the left (mobile menu). |
| `shop-drawer__panel--right` | `<div>` | Panel sliding in from the right (cart). |
| `shop-drawer__panel--top` | `<div>` | Panel sliding down from the top (search overlay). |
| `shop-drawer__panel--bottom` | `<div>` | Bottom sheet. |
| `shop-drawer__panel--open` | `<div>` | Panel while the drawer is open. |
| `shop-drawer__header` | `<div>` | Title row of the panel. |
| `shop-drawer__title` | `<div>` | Panel title. |
| `shop-drawer__close` | `<button>` | Round close button. |
| `shop-mobile-menu` | `<div>` | Mobile menu drawer (below md). |
| `shop-mobile-menu__links` | `<nav>` | List of menu links. |
| `shop-mobile-menu__link` | `<a>`, `<button>` | One menu entry: a link, or a button that expands its children. |
| `shop-mobile-menu__item` | `<div>` | Wrapper of an entry that has children. |
| `shop-mobile-menu__item--open` | `<div>` | The entry while its children are expanded. |
| `shop-mobile-menu__toggle` | `<button>` | The button of an entry with children (mixed with `shop-mobile-menu__link`). |
| `shop-mobile-menu__chevron` | `<svg>` | Arrow inside the toggle button. Rotated while the entry is expanded. |
| `shop-mobile-menu__children` | `<div>` | The expanded children of an entry. The CSS variable `--depth` (1, 2, …) holds the nesting level, used for the indent. |
| `shop-mobile-menu__link--all` | `<a>` | First child of an entry that also has a page: the "All" link to that page. |
| `shop-search-bar` | `<div>` | Search drawer. |
| `shop-search-bar__trigger` | `<button>` | Search field look-alike in the header that opens the overlay. |
| `shop-search-bar__panel` | `<div>` | The overlay panel (mixed with `shop-drawer__panel--top`). |
| `shop-search-bar__top-row` | `<div>` | Brand and close button row. |
| `shop-search-bar__close` | `<button>` | Close button (mixed with `shop-drawer__close`). |
| `shop-search-bar__input-row` | `<div>` | Rounded frame around the search input. |
| `shop-search-bar__input` | `<input>` | Search input. |
| `shop-search-bar__columns` | `<div>` | Two areas: recent searches and featured items. |
| `shop-search-bar__section-label` | `<div>` | Area label ("Recent searches", "Featured"). |
| `shop-search-bar__recent-item` | `<div>` | One recent search row. |
| `shop-search-bar__recent-link` | `<button>` | Repeats a recent search. |
| `shop-search-bar__recent-remove` | `<button>` | Removes a recent search. |
| `shop-search-bar__featured-list` | `<div>` | Grid of featured items. |
| `shop-search-bar__featured-item` | `<a>` | One featured product or category. |
| `shop-search-bar__featured-name` | `<span>` | Name of a featured item. |
| `shop-search-bar__featured-image` | `<img>` | Image of a featured item. |
<!-- classes:end -->

```html
<!-- mobile menu (left drawer), open -->
<div class="shop-drawer shop-mobile-menu">
  <button aria-label="Open menu">☰</button>
  <div class="shop-drawer__backdrop shop-drawer__backdrop--open"></div>
  <div class="shop-drawer__panel shop-drawer__panel--left shop-drawer__panel--open" role="dialog" aria-modal="true">
    <div class="shop-drawer__header">
      <div class="shop-drawer__title">Menu</div>
      <button class="shop-drawer__close" aria-label="Close">×</button>
    </div>
    <nav class="shop-mobile-menu__links">
      <a href="/category/1" class="shop-mobile-menu__link">New in</a>
      <a href="/category/2" class="shop-mobile-menu__link">Jewellery</a>
      <!-- an entry with children, expanded -->
      <div class="shop-mobile-menu__item shop-mobile-menu__item--open">
        <button class="shop-mobile-menu__link shop-mobile-menu__toggle" aria-expanded="true">
          <span>Brands</span><svg class="shop-mobile-menu__chevron">…</svg>
        </button>
        <div class="shop-mobile-menu__children" style="--depth: 1">
          <a href="/category/4" class="shop-mobile-menu__link shop-mobile-menu__link--all">All</a>
          <a href="/category/5" class="shop-mobile-menu__link">Silver</a>
        </div>
      </div>
    </nav>
  </div>
</div>

<!-- search overlay (top drawer), open -->
<div class="shop-drawer shop-search-bar">
  <button class="shop-search-bar__trigger">Search…</button>
  <div class="shop-drawer__backdrop shop-drawer__backdrop--open"></div>
  <div class="shop-drawer__panel shop-drawer__panel--top shop-search-bar__panel shop-drawer__panel--open">
    <div class="shop-search-bar__top-row">
      <div><a href="/" class="shop-brand"><span class="shop-brand__name">Maison Lune</span></a></div>
      <div><button class="shop-drawer__close shop-search-bar__close" aria-label="Close search">×</button></div>
    </div>
    <div class="shop-search-bar__input-row">
      <input class="shop-search-bar__input" type="text" placeholder="Search…">
    </div>
    <div class="shop-search-bar__columns">
      <div>
        <div class="shop-search-bar__section-label">Recent searches</div>
        <div class="shop-search-bar__recent-item">
          <button class="shop-search-bar__recent-link">silver rings</button>
          <button class="shop-search-bar__recent-remove" aria-label="Remove">×</button>
        </div>
      </div>
      <div>
        <div class="shop-search-bar__section-label">Featured</div>
        <div class="shop-search-bar__featured-list">
          <a href="/category/4" class="shop-search-bar__featured-item">
            <span class="shop-search-bar__featured-name">Earrings</span>
            <img class="shop-search-bar__featured-image" src="earrings.jpg" alt="Earrings">
          </a>
        </div>
      </div>
    </div>
  </div>
</div>
```

### 5.3 Cart button and cart drawer

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-cart-drawer` | `<div>` | Cart drawer (mixed with `shop-drawer`, right panel). |
| `shop-cart-button` | `<button>` | Cart icon in the header that opens the drawer. |
| `shop-cart-button__counter` | `<div>` | Item count badge on the cart icon. |
| `shop-cart-empty` | `<p>` | "Your cart is empty" message (drawer and checkout). |
| `shop-cart-line-item` | `<div>` | One product row in the cart (drawer and checkout). |
| `shop-cart-line-item--large` | `<div>` | Roomier variant used on the checkout page. |
| `shop-cart-line-item__image` | `<img>` | Product image. |
| `shop-cart-line-item__details` | `<div>` | Middle column: name, unit price and quantity. |
| `shop-cart-line-item__name` | `<div>` | Product name. |
| `shop-cart-line-item__price` | `<div>` | Unit price. |
| `shop-cart-line-item__aside` | `<div>` | End column: line total and remove action. |
| `shop-cart-line-item__total` | `<div>` | Line total. |
| `shop-cart-line-item__remove` | `<button>` | Remove action. |
| `shop-qty-stepper` | `<div>` | Quantity pill with minus, value and plus. |
| `shop-qty-stepper__button` | `<button>` | Minus or plus button. |
| `shop-qty-stepper__value` | `<span>` | Current quantity. |
| `shop-cart-drawer__footer` | `<div>` | Bottom area: summary, total and checkout button. |
| `shop-cart-drawer__summary-row` | `<div>` | Subtotal or discount row. |
| `shop-cart-drawer__summary-row--discount` | `<div>` | The discount row. |
| `shop-cart-drawer__total-row` | `<div>` | Total row. |
| `shop-cart-drawer__checkout` | `<a>` | Checkout button (mixed with `shop-button`). |
<!-- classes:end -->

```html
<div class="shop-drawer shop-cart-drawer">
  <button class="shop-cart-button" aria-label="Open cart">
    <svg>…</svg>
    <div class="shop-cart-button__counter"><span>2</span></div>
  </button>
  <div class="shop-drawer__backdrop shop-drawer__backdrop--open"></div>
  <div class="shop-drawer__panel shop-drawer__panel--right shop-drawer__panel--open" role="dialog" aria-modal="true">
    <div class="shop-drawer__header">
      <div class="shop-drawer__title">Your cart</div>
      <button class="shop-drawer__close" aria-label="Close">×</button>
    </div>
    <div>
      <!-- when empty: <p class="shop-cart-empty">Your cart is empty.</p> -->
      <div class="shop-cart-line-item">
        <img class="shop-cart-line-item__image" src="necklace.jpg" alt="Crescent necklace">
        <div class="shop-cart-line-item__details">
          <div class="shop-cart-line-item__name">Crescent necklace</div>
          <div class="shop-cart-line-item__price">€49.00</div>
          <div class="shop-qty-stepper">
            <button class="shop-qty-stepper__button" aria-label="Decrease quantity">−</button>
            <span class="shop-qty-stepper__value">2</span>
            <button class="shop-qty-stepper__button" aria-label="Increase quantity">+</button>
          </div>
        </div>
        <div class="shop-cart-line-item__aside">
          <div class="shop-cart-line-item__total">€98.00</div>
          <button class="shop-cart-line-item__remove">Remove</button>
        </div>
      </div>
    </div>
    <div class="shop-cart-drawer__footer">
      <div class="shop-cart-drawer__summary-row"><span>Subtotal</span><span>€98.00</span></div>
      <div class="shop-cart-drawer__summary-row shop-cart-drawer__summary-row--discount"><span>SUMMER10</span><span>−€9.80</span></div>
      <div class="shop-cart-drawer__total-row"><span>Total</span><span>€88.20</span></div>
      <a href="/checkout" class="shop-button shop-cart-drawer__checkout">Checkout</a>
    </div>
  </div>
</div>
```

### 5.4 Shared components: buttons, form fields, prices, options, captcha

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-button` | `<button>`, `<a>` | Button. The base style is the primary (filled) button. |
| `shop-button--secondary` | `<button>` | Secondary (neutral) button. |
| `shop-button--disabled` | `<button>` | Disabled look, e.g. a product that can't be ordered. `:disabled` looks the same. |
| `shop-label` | `<label>` | Form label above a field. |
| `shop-label--inline` | `<label>` | Label placed left of its field. |
| `shop-input` | `<input>` | Text, email or search input. |
| `shop-select` | `<div>` | Wrapper of a select field (holds the chevron). |
| `shop-select--inline` | `<div>` | Select field as wide as its content. |
| `shop-select__control` | `<select>` | The select element. |
| `shop-select__chevron` | `<svg>` | Down arrow of a select field. |
| `shop-price` | `<div>` | Price block on the product page. |
| `shop-price__actual` | `<div>` | The price to pay (regular price, or the sale price). |
| `shop-price__scratched` | `<div>` | Struck-through regular price when on sale. |
| `shop-price__sale-note` | `<div>` | Sale note badge, e.g. "-20%". |
| `shop-option` | `<div>`, `<button>` | A selectable, outlined choice: variant options and image thumbnails. |
| `shop-option--selected` | `<div>`, `<button>` | The selected choice. |
| `shop-captcha` | `<div>` | Captcha: a code to type over, to prove the visitor is a person (e.g. when creating an account). |
| `shop-captcha__image` | `<img>` | The code as an image. Has a white background by default, so the code stays readable. |
| `shop-captcha__audio` | `<audio>` | The code as audio, shown instead of the image after "Listen instead". |
| `shop-captcha__actions` | `<div>` | Row of captcha buttons. |
| `shop-captcha__button` | `<button>` | "New code", "Listen instead" or "Show image instead" (mixed with `shop-button shop-button--secondary`). |
| `shop-captcha__error` | `<p>` | Shown when a new code could not be loaded. |
| `shop-captcha__input` | `<input>` | Field to type the code in (mixed with `shop-input`). |
<!-- classes:end -->

```html
<button class="shop-button">Add to cart</button>
<button class="shop-button shop-button--secondary">Back</button>
<button class="shop-button shop-button--disabled">Sold out</button>

<div>
  <label class="shop-label" for="q">Search</label>
  <input class="shop-input" id="q" type="text" placeholder="Search…">
</div>

<div>
  <label class="shop-label shop-label--inline" for="sort">Sort by</label>
  <div class="shop-select shop-select--inline">
    <select class="shop-select__control" id="sort"><option>Newest</option></select>
    <svg class="shop-select__chevron">…</svg>
  </div>
</div>

<!-- product page price, on sale -->
<div class="shop-price">
  <div class="shop-price__scratched">€59.00</div>
  <div class="shop-price__actual">€49.00</div>
</div>
<div class="shop-price__sale-note">-17%</div>

<div class="shop-captcha">
  <label class="shop-label" for="captchaValue">Type the code you see or hear</label>
  <img class="shop-captcha__image" src="…" alt="Code to type over">
  <audio class="shop-captcha__audio" controls></audio>
  <div class="shop-captcha__actions">
    <button class="shop-button shop-button--secondary shop-captcha__button">New code</button>
    <button class="shop-button shop-button--secondary shop-captcha__button">Listen instead</button>
  </div>
  <p class="shop-captcha__error" role="alert">Sorry, we could not load a new code.</p>
  <input class="shop-input shop-captcha__input" type="text" id="captchaValue">
</div>
```

### 5.5 Category and search listing

The category page and the search page share one template. The category page shows the title and description; the search page shows the search field and tag filters.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-search-results` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-search-results__submit` | `<button>` | Search button (mixed with `shop-button`). |
| `shop-search-results__count` | `<div>` | "24 results". |
| `shop-search-results__separator` | `<div>` | Thin vertical line between count and sort. |
| `shop-search-results__grid` | `<div>` | Product grid (1, 2 from sm, 3 from md, 4 from lg, 5 from xl columns). |
| `shop-category__title` | `<h1>` | Category name. |
| `shop-category__description` | `<div>` | Category description. |
| `shop-category__description--collapsed` | `<div>` | One-line description with a "Show more" button (below md). |
| `shop-category__description-text` | `<span>` | Truncated description text. |
| `shop-category__more` | `<button>` | "Show more" link that opens the bottom sheet. |
| `shop-tag-filter` | `<label>` | Toggle chip to filter by tag (wraps a hidden checkbox). |
| `shop-tag-filter__check` | `<svg>` | Check mark, visible when the filter is active. |
| `shop-search-result` | `<div>` | Product card. |
| `shop-search-result__content` | `<div>` | Inner column of the card. |
| `shop-search-result__image` | `<div>` | Image area (carousel when there are several images). |
| `shop-search-result__image-arrow` | `<button>` | Previous or next image arrow. |
| `shop-search-result__text-row` | `<div>` | Horizontal padding for the name row and the price row. |
| `shop-search-result__name` | `<div>` | Product name, clamped to two lines. |
| `shop-search-result__add-to-cart` | `<button>` | Small "Add to cart" pill. |
| `shop-search-result__add-to-cart--disabled` | `<button>` | Pill while adding is in progress or just done. |
| `shop-tags` | `<div>` | Tag area at the top-left of the card image. |
| `shop-tags__tag` | `<div>` | One tag pill, e.g. "New". |
| `shop-wishlist-button` | `<button>` | Heart button at the top-right of the card image. |
| `shop-wishlist-button__icon` | `<path>` | Heart icon. Style it with `fill` and `stroke`. |
| `shop-wishlist-button__icon--active` | `<path>` | Heart when the product is on the wishlist. |
| `shop-pagination` | `<nav>` | Page navigation. |
| `shop-pagination__arrow` | `<a>`, `<span>` | Previous or next arrow. |
| `shop-pagination__arrow--disabled` | `<span>` | Arrow at the first or last page. |
| `shop-pagination__page` | `<a>` | A page number. |
| `shop-pagination__page--current` | `<a>` | The current page. |
<!-- classes:end -->

```html
<div class="shop-row shop-search-results">
  <form method="get">
    <!-- search page only -->
    <div>
      <div>
        <label class="shop-label" for="queryStringInput">Search</label>
        <input class="shop-input" id="queryStringInput" placeholder="Search…" value="ring">
      </div>
      <div>
        <label class="shop-tag-filter">
          <input type="checkbox" checked>
          <svg class="shop-tag-filter__check">…</svg>
          Silver
        </label>
        <button class="shop-button shop-search-results__submit">Search</button>
      </div>
    </div>

    <div>
      <!-- category page only -->
      <h1 class="shop-category__title">Jewellery</h1>
      <div>
        <div class="shop-search-results__count">24 results</div>
        <div class="shop-search-results__separator"></div>
        <div><!-- inline "Sort by" select, see 5.4 --></div>
      </div>
    </div>

    <!-- category page only, md and up -->
    <div class="shop-category__description">Handmade pieces in recycled silver.</div>
    <!-- below md -->
    <div class="shop-drawer">
      <div class="shop-category__description shop-category__description--collapsed">
        <span class="shop-category__description-text">Handmade pieces in recycled silver.</span>
        <button class="shop-category__more">Show more</button>
      </div>
      <!-- bottom sheet drawer, see 5.2 -->
    </div>
  </form>

  <div class="shop-search-results__grid">
    <div class="shop-search-result">
      <div class="shop-search-result__content">
        <div>
          <div class="shop-search-result__image">
            <img src="ring.jpg" alt="">
            <button class="shop-search-result__image-arrow" aria-label="Previous image">‹</button>
            <button class="shop-search-result__image-arrow" aria-label="Next image">›</button>
          </div>
          <div class="shop-search-result__text-row shop-search-result__name">Moonstone ring</div>
          <div class="shop-search-result__text-row">
            <div>
              <div>
                <div class="shop-price__scratched">€39.00</div>
                <div class="shop-price__actual">€29.00</div>
              </div>
              <div><button class="shop-search-result__add-to-cart">Add to cart</button></div>
            </div>
          </div>
          <div class="shop-tags"><div class="shop-tags__tag">New</div></div>
        </div>
        <button class="shop-wishlist-button" aria-label="Add to wishlist">
          <svg><path class="shop-wishlist-button__icon shop-wishlist-button__icon--active" d="…"/></svg>
        </button>
      </div>
    </div>
    <!-- more cards -->
  </div>

  <nav class="shop-pagination" aria-label="pagination">
    <ul>
      <li><span class="shop-pagination__arrow shop-pagination__arrow--disabled">‹</span></li>
      <li><a href="?page=0" class="shop-pagination__page shop-pagination__page--current" aria-current="page">1</a></li>
      <li><a href="?page=1" class="shop-pagination__page">2</a></li>
      <li><a href="?page=1" class="shop-pagination__arrow">›</a></li>
    </ul>
  </nav>
</div>
```

### 5.6 Product detail

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-product` | `<div>` | Two-part product area: media and details. |
| `shop-product__info` | `<div>` | Details column: name, price, options, button, description. |
| `shop-product__add-to-cart` | `<button>` | Add to cart button (mixed with `shop-button`). |
| `shop-product__description` | `<div>` | Product description (rich text from the product editor). |
| `shop-variant-options` | `<div>` | Row of options for one variant type (size, color, …). |
| `shop-variant-options__option` | `<div>` | A text option, e.g. "M" (mixed with `shop-option`). |
<!-- classes:end -->

Color options and image thumbnails use `shop-option` / `shop-option--selected` (see 5.4) without an extra class.

```html
<div class="shop-row">
  <nav class="shop-breadcrumb">…</nav>
  <div class="shop-product">
    <div>
      <div><img src="necklace-large.jpg" alt=""></div>
      <div>
        <button class="shop-option shop-option--selected"><img src="necklace-1.jpg" alt=""></button>
        <button class="shop-option"><img src="necklace-2.jpg" alt=""></button>
      </div>
    </div>
    <div class="shop-product__info">
      <h1>Crescent necklace</h1>
      <div>
        <div class="shop-price">
          <div class="shop-price__scratched">€59.00</div>
          <div class="shop-price__actual">€49.00</div>
        </div>
        <div class="shop-price__sale-note">-17%</div>
      </div>
      <div>
        <div>
          <div class="shop-variant-options">
            <div class="shop-variant-options__option shop-option shop-option--selected">40 cm</div>
            <div class="shop-variant-options__option shop-option">45 cm</div>
          </div>
        </div>
        <div>
          <div class="shop-variant-options">
            <div class="shop-option shop-option--selected"><div style="background-color: #c0c0c0"></div></div>
            <div class="shop-option"><div style="background-color: #d4af37"></div></div>
          </div>
        </div>
      </div>
      <div><button class="shop-button shop-product__add-to-cart">Add to cart</button></div>
      <div class="shop-product__description"><p>A delicate crescent in recycled sterling silver.</p></div>
    </div>
  </div>
</div>
```

### 5.7 Checkout

The checkout is a step wizard. Step 1 is the cart. Delivery and payment follow, but they don't have public classes yet.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-checkout-wizard` | `<div>` | Checkout wrapper. |
| `shop-checkout-wizard__nav` | `<nav>` | Step indicator area. |
| `shop-checkout-wizard__steps` | `<ol>` | List of steps. |
| `shop-checkout-wizard__step-item` | `<li>` | One step plus its connector. |
| `shop-checkout-wizard__step` | `<button>` | Clickable step. |
| `shop-checkout-wizard__step--active` | `<button>` | The current step. |
| `shop-checkout-wizard__step--completed` | `<button>` | A finished step. |
| `shop-checkout-wizard__circle` | `<span>` | Step number circle. |
| `shop-checkout-wizard__label` | `<span>` | Step name (shown from xs, 576px). |
| `shop-checkout-wizard__connector` | `<span>` | Line between two steps. |
| `shop-checkout-wizard__connector--active` | `<span>` | Line after a passed step. |
| `shop-checkout-wizard__panels` | `<div>` | Content of the steps. |
| `shop-checkout-wizard__actions` | `<div>` | Back and Next buttons. |
| `shop-checkout-wizard__back` | `<button>` | Back button (mixed with `shop-button shop-button--secondary`). |
| `shop-checkout-wizard__next` | `<button>` | Next button (mixed with `shop-button`). |
| `shop-checkout-cart` | `<div>` | Cart step. |
| `shop-checkout-cart__heading` | `<h2>` | Cart step heading. |
| `shop-checkout-cart__items` | `<div>` | List of cart line items (see 5.3). |
| `shop-checkout-cart__summary` | `<div>` | Order summary card. |
| `shop-checkout-cart__totals` | `<div>` | Summary rows. |
| `shop-checkout-cart__summary-row` | `<div>` | One summary row: label and amount. |
| `shop-checkout-cart__summary-row--discount` | `<div>` | Discount row. |
| `shop-checkout-cart__summary-row--total` | `<div>` | Total row. |
| `shop-checkout-cart__summary-row--tax` | `<div>` | "Including VAT" line below the total. |
| `shop-discount` | `<form>` | Discount code form. |
| `shop-discount__apply` | `<button>` | Apply button (mixed with `shop-button`). |
| `shop-discount__error` | `<p>` | Error message for an invalid code. |
| `shop-applied-discount` | `<div>` | Pill showing the applied discount. |
| `shop-applied-discount__code` | `<span>` | The discount code. |
| `shop-applied-discount__description` | `<span>` | What the discount does. |
| `shop-applied-discount__remove` | `<button>` | Removes the discount. |
<!-- classes:end -->

```html
<div class="shop-row">
  <div class="shop-checkout-wizard">
    <nav class="shop-checkout-wizard__nav" aria-label="Checkout steps">
      <ol class="shop-checkout-wizard__steps">
        <li class="shop-checkout-wizard__step-item">
          <button class="shop-checkout-wizard__step shop-checkout-wizard__step--completed" aria-label="Cart">
            <span class="shop-checkout-wizard__circle">1</span>
            <span class="shop-checkout-wizard__label">Cart</span>
          </button>
          <span class="shop-checkout-wizard__connector shop-checkout-wizard__connector--active"></span>
        </li>
        <li class="shop-checkout-wizard__step-item">
          <button class="shop-checkout-wizard__step shop-checkout-wizard__step--active" aria-label="Delivery">
            <span class="shop-checkout-wizard__circle">2</span>
            <span class="shop-checkout-wizard__label">Delivery</span>
          </button>
          <span class="shop-checkout-wizard__connector"></span>
        </li>
        <li class="shop-checkout-wizard__step-item">
          <button class="shop-checkout-wizard__step" aria-label="Payment">
            <span class="shop-checkout-wizard__circle">3</span>
            <span class="shop-checkout-wizard__label">Payment</span>
          </button>
        </li>
      </ol>
    </nav>

    <div class="shop-checkout-wizard__panels">
      <div class="shop-checkout-cart">
        <h2 class="shop-checkout-cart__heading">Your cart</h2>
        <div class="shop-checkout-cart__items">
          <div class="shop-cart-line-item shop-cart-line-item--large">…</div>
        </div>
        <div class="shop-checkout-cart__summary">
          <form class="shop-discount">
            <label class="shop-label" for="discountCodeInput">Discount code</label>
            <div>
              <input class="shop-input" id="discountCodeInput">
              <button class="shop-button shop-discount__apply">Apply</button>
            </div>
            <p class="shop-discount__error">This code is not valid.</p>
          </form>
          <div class="shop-applied-discount">
            <span class="shop-applied-discount__code">SUMMER10</span>
            <span class="shop-applied-discount__description">10% off your order</span>
            <button class="shop-applied-discount__remove" aria-label="Remove discount">×</button>
          </div>
          <div class="shop-checkout-cart__totals">
            <div class="shop-checkout-cart__summary-row"><span>Subtotal</span><span>€98.00</span></div>
            <div class="shop-checkout-cart__summary-row shop-checkout-cart__summary-row--discount"><span>Discount</span><span>−€9.80</span></div>
            <div class="shop-checkout-cart__summary-row shop-checkout-cart__summary-row--total"><span>Total</span><span>€88.20</span></div>
            <div class="shop-checkout-cart__summary-row shop-checkout-cart__summary-row--tax"><span>Including VAT</span><span>€15.31</span></div>
          </div>
        </div>
      </div>
    </div>

    <div class="shop-checkout-wizard__actions">
      <button class="shop-button shop-button--secondary shop-checkout-wizard__back">Back</button>
      <button class="shop-button shop-checkout-wizard__next">Next</button>
    </div>
  </div>
</div>
```

### 5.8 Shipping and delivery

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-shipping` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-shipping__title` | `<h1>` | Page title. |
| `shop-shipping__pickup-only` | `<p>` | Shown instead of the regions when the store only offers pickup. |
| `shop-shipping__regions` | `<div>` | Grid of region cards (1 column, 2 from md). |
| `shop-shipping__region` | `<section>` | One shipping region card. |
| `shop-shipping__region--out-of-region` | `<section>` | Card for all other countries. |
| `shop-shipping__region-heading` | `<h2>` | Region card heading. |
| `shop-shipping__countries` | `<ul>` | Countries in the region. |
| `shop-shipping__country` | `<li>` | One country pill. |
| `shop-shipping__cost` | `<p>` | Shipping cost. |
| `shop-shipping__threshold` | `<p>` | Free shipping threshold. |
| `shop-shipping__unsupported` | `<p>` | "We don't ship to other countries." |
<!-- classes:end -->

```html
<div class="shop-row shop-shipping">
  <h1 class="shop-shipping__title">Shipping &amp; delivery</h1>
  <div class="shop-shipping__regions">
    <section class="shop-shipping__region">
      <h2 class="shop-shipping__region-heading">We ship to</h2>
      <ul class="shop-shipping__countries">
        <li class="shop-shipping__country">Belgium</li>
        <li class="shop-shipping__country">Netherlands</li>
      </ul>
      <p class="shop-shipping__cost">Shipping: €4.95</p>
      <p class="shop-shipping__threshold">Free shipping from €50.00</p>
    </section>
    <section class="shop-shipping__region shop-shipping__region--out-of-region">
      <h2 class="shop-shipping__region-heading">Other countries</h2>
      <p class="shop-shipping__unsupported">We don't ship to other countries yet.</p>
    </section>
  </div>
</div>
```

### 5.9 Privacy policy

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-privacy` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-privacy__header` | `<header>` | Title, intro and meta data. |
| `shop-privacy__title` | `<h1>` | Page title. |
| `shop-privacy__intro` | `<p>` | Introduction text. |
| `shop-privacy__meta` | `<dl>` | Version and effective date. |
| `shop-privacy__meta-term` | `<dt>` | Meta label. |
| `shop-privacy__meta-value` | `<dd>` | Meta value. |
| `shop-privacy__layout` | `<div>` | Table of contents plus content (side by side from md). |
| `shop-privacy__toc` | `<nav>` | Table of contents (sticky from md). |
| `shop-privacy__toc-heading` | `<h2>` | "Contents" heading. |
| `shop-privacy__toc-list` | `<ol>` | Contents list. |
| `shop-privacy__toc-link` | `<a>` | Link to a section. |
| `shop-privacy__toc-number` | `<span>` | Section number in the contents. |
| `shop-privacy__content` | `<article>` | All sections. |
| `shop-privacy__section` | `<section>` | One section. |
| `shop-privacy__section-number` | `<div>` | Section number. |
| `shop-privacy__section-title` | `<h2>` | Section title. |
| `shop-privacy__short` | `<div>` | "In short" summary box. |
| `shop-privacy__short-label` | `<div>` | "In short" label. |
| `shop-privacy__short-text` | `<p>` | Summary text. |
| `shop-privacy__paragraph` | `<p>` | Body paragraph. |
<!-- classes:end -->

```html
<div class="shop-row shop-privacy">
  <header class="shop-privacy__header">
    <h1 class="shop-privacy__title">Privacy policy</h1>
    <p class="shop-privacy__intro">How Maison Lune handles your personal data.</p>
    <dl class="shop-privacy__meta">
      <div><dt class="shop-privacy__meta-term">Version</dt><dd class="shop-privacy__meta-value">3</dd></div>
      <div><dt class="shop-privacy__meta-term">Effective</dt><dd class="shop-privacy__meta-value">1 March 2026</dd></div>
    </dl>
  </header>
  <div class="shop-privacy__layout">
    <nav class="shop-privacy__toc">
      <h2 class="shop-privacy__toc-heading">Contents</h2>
      <ol class="shop-privacy__toc-list">
        <li><a href="#data" class="shop-privacy__toc-link"><span class="shop-privacy__toc-number">1</span> Data we collect</a></li>
      </ol>
    </nav>
    <article class="shop-privacy__content">
      <section id="data" class="shop-privacy__section">
        <div class="shop-privacy__section-number">1</div>
        <h2 class="shop-privacy__section-title">Data we collect</h2>
        <div class="shop-privacy__short">
          <div class="shop-privacy__short-label">In short</div>
          <p class="shop-privacy__short-text">Only what we need to deliver your order.</p>
        </div>
        <p class="shop-privacy__paragraph">We collect your name, address and email address when you place an order…</p>
      </section>
    </article>
  </div>
</div>
```

### 5.10 Sign in and sign up

By default these pages, and the email verification pages that follow signing up, are focused: they show only the card, centred in the window, without the header and the footer. The notification bar stays visible. An arrow in the top-left corner leads back to the home page. The card shows your logo at the top, which reassures shoppers that they are giving their password to your store and leads back to the shop.

To show the header and footer again, and hide the arrow because the header then leads back:

```css
:is(.shop-page--sign-in, .shop-page--sign-up, .shop-page--verify-email) .shop-header { display: flex; }
:is(.shop-page--sign-in, .shop-page--sign-up, .shop-page--verify-email) .shop-footer { display: block; }
:is(.shop-page--sign-in, .shop-page--sign-up, .shop-page--verify-email) :is(.shop-sign-in, .shop-sign-up, .shop-verify-email) { min-height: 0; }
:is(.shop-sign-in__back, .shop-sign-up__back, .shop-verify-email__back) { display: none; }
```

**Sign in.** The page offers signing in with Google, with an email and password, or both, depending on your store settings.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-sign-in` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-sign-in__back` | `<a>` | Round arrow in the top-left corner of the page, back to the home page. |
| `shop-sign-in__card` | `<div>` | Box holding everything below. |
| `shop-sign-in__brand` | `<div>` | Your logo, or store name, at the top of the card (holds `shop-brand`, see 5.1). |
| `shop-sign-in__title` | `<h1>` | Page title. |
| `shop-sign-in__error` | `<p>` | Error message, e.g. after a wrong email or password. |
| `shop-sign-in__unavailable` | `<p>` | Shown when the store offers no way to sign in. |
| `shop-sign-in__google` | `<a>` | "Sign in with Google" button (mixed with `shop-button shop-button--secondary`). |
| `shop-sign-in__divider` | `<div>` | "or" line between the Google button and the form. |
| `shop-sign-in__form` | `<form>` | Email and password form (uses `shop-label` and `shop-input`). |
| `shop-sign-in__submit` | `<button>` | Submit button (mixed with `shop-button`). |
| `shop-sign-in__links` | `<div>` | Links below the form. |
| `shop-sign-in__link` | `<a>` | "Forgot your password?" or "Create an account" link. |
<!-- classes:end -->

```html
<div class="shop-row shop-sign-in">
  <a href="/" class="shop-sign-in__back" aria-label="Back to the shop"><svg>…</svg></a>
  <div class="shop-sign-in__card">
    <div class="shop-sign-in__brand"><a href="/" class="shop-brand"><img class="shop-brand__logo" src="logo.svg" alt="Maison Lune"></a></div>
    <h1 class="shop-sign-in__title">Sign in</h1>
    <p class="shop-sign-in__error" role="alert">The email or password is incorrect.</p>
    <a href="…" class="shop-button shop-button--secondary shop-sign-in__google"><svg>…</svg> Sign in with Google</a>
    <div class="shop-sign-in__divider">or</div>
    <form class="shop-sign-in__form">
      <div>
        <label class="shop-label" for="email">Email</label>
        <input class="shop-input" type="email" id="email" name="email">
      </div>
      <div>
        <label class="shop-label" for="password">Password</label>
        <input class="shop-input" type="password" id="password" name="password">
      </div>
      <button class="shop-button shop-sign-in__submit">Sign in</button>
    </form>
    <div class="shop-sign-in__links">
      <a href="…" class="shop-sign-in__link">Forgot your password?</a>
      <a href="…" class="shop-sign-in__link">Create an account</a>
    </div>
  </div>
</div>
```

**Sign up.** Creating an account with an email and password. The page is only available when your store offers signing in with an email and password. Signing in with Google creates the account on the first sign in, so it needs no sign up page.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-sign-up` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-sign-up__back` | `<a>` | Round arrow in the top-left corner of the page, back to the home page. |
| `shop-sign-up__card` | `<div>` | Box holding everything below. |
| `shop-sign-up__brand` | `<div>` | Your logo, or store name, at the top of the card (holds `shop-brand`, see 5.1). |
| `shop-sign-up__title` | `<h1>` | Page title. |
| `shop-sign-up__error` | `<p>` | Error message, e.g. when an account with this email already exists. |
| `shop-sign-up__form` | `<form>` | Email, password and captcha form (uses `shop-label`, `shop-input` and `shop-captcha`). |
| `shop-sign-up__hint` | `<ul>` | Password rules below the password field. Shown once the visitor starts typing a password. |
| `shop-sign-up__rule` | `<li>` | One password rule, with a cross or a check mark in front. |
| `shop-sign-up__rule--met` | `<li>` | Modifier: the password typed so far meets this rule. |
| `shop-sign-up__rule-icon` | `<svg>` | The cross (rule not met) or check mark (rule met) in front of a rule. |
| `shop-sign-up__consent` | `<p>` | Line above the submit button: by creating an account, the visitor agrees to your terms and acknowledges your privacy policy. Only shown when your store has at least one of these pages, and only mentions the pages it has. |
| `shop-sign-up__consent-link` | `<a>` | Link to your terms or privacy policy, inside `shop-sign-up__consent`. Opens in a new tab. |
| `shop-sign-up__submit` | `<button>` | Submit button (mixed with `shop-button`). |
| `shop-sign-up__links` | `<div>` | "Already have an account?" line below the form. |
| `shop-sign-up__link` | `<a>` | Link to the sign in page. |
<!-- classes:end -->

```html
<div class="shop-row shop-sign-up">
  <a href="/" class="shop-sign-up__back" aria-label="Back to the shop"><svg>…</svg></a>
  <div class="shop-sign-up__card">
    <div class="shop-sign-up__brand"><a href="/" class="shop-brand"><img class="shop-brand__logo" src="logo.svg" alt="Maison Lune"></a></div>
    <h1 class="shop-sign-up__title">Create an account</h1>
    <p class="shop-sign-up__error" role="alert">An account with this email already exists. Please sign in instead.</p>
    <form class="shop-sign-up__form">
      <div>
        <label class="shop-label" for="email">Email</label>
        <input class="shop-input" type="email" id="email" name="email">
      </div>
      <div>
        <label class="shop-label" for="password">Password</label>
        <input class="shop-input" type="password" id="password" name="password">
        <ul class="shop-sign-up__hint"> <!-- shown once the visitor starts typing -->
          <li class="shop-sign-up__rule shop-sign-up__rule--met"><svg class="shop-sign-up__rule-icon">…</svg> At least 8 characters</li>
          <li class="shop-sign-up__rule"><svg class="shop-sign-up__rule-icon">…</svg> A digit</li>
          …
        </ul>
      </div>
      <div class="shop-captcha">…</div> <!-- see 5.4 -->
      <p class="shop-sign-up__consent">
        By creating an account, you agree to our <a href="/terms" class="shop-sign-up__consent-link">Terms</a>
        and acknowledge our <a href="/privacy" class="shop-sign-up__consent-link">Privacy Policy</a>.
      </p>
      <button class="shop-button shop-sign-up__submit">Create account</button>
    </form>
    <div class="shop-sign-up__links">
      <span>Already have an account?</span>
      <a href="…" class="shop-sign-up__link">Sign in</a>
    </div>
  </div>
</div>
```

**Email verification.** After signing up, the shopper first verifies their email address. Three pages share the `shop-verify-email` block:

- *Check your email*: shown right after signing up. It shows the address the email was sent to, a button to send the email again, and a link back to the sign up form to correct the address.
- *Verifying*: opened from the link in the email. It verifies the address at once. It only shows a button when the browser doesn't run JavaScript.
- *Email verified*: the shopper is now signed in, with a button back to your shop.

<!-- classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-verify-email` | `<div>` | Page wrapper (mixed with `shop-row`). |
| `shop-verify-email__back` | `<a>` | Round arrow in the top-left corner of the page, back to the home page. |
| `shop-verify-email__card` | `<div>` | Box holding everything below. |
| `shop-verify-email__brand` | `<div>` | Your logo, or store name, at the top of the card (holds `shop-brand`, see 5.1). |
| `shop-verify-email__title` | `<h1>` | Page title, e.g. "Verify your email" or "Email verified!". |
| `shop-verify-email__intro` | `<p>` | Line below the title. |
| `shop-verify-email__notice` | `<p>` | Confirmation after the shopper asked to send the email again. |
| `shop-verify-email__box` | `<div>` | Box with the email address. |
| `shop-verify-email__box--verified` | `<div>` | Modifier: on the email verified page, the box says the address has been verified. |
| `shop-verify-email__icon` | `<svg>` | Check mark at the top of the verified box. |
| `shop-verify-email__label` | `<p>` | Text in the box, e.g. "We've sent a verification email to:". |
| `shop-verify-email__email` | `<p>`, `<span>` | The email address, in the box. |
| `shop-verify-email__help` | `<p>` | Short explanation below the box. |
| `shop-verify-email__resend` | `<form>` | Form holding the button that sends the email again. |
| `shop-verify-email__resend-button` | `<button>` | "Resend verification email", styled as a link. |
| `shop-verify-email__links` | `<div>` | "Entered the wrong address?" line at the bottom of the card. |
| `shop-verify-email__link` | `<a>` | Link back to the sign up form, to correct the address. |
| `shop-verify-email__form` | `<form>` | On the verifying page: the form that verifies the address. |
| `shop-verify-email__submit` | `<button>` | "Verify my email" button in that form (mixed with `shop-button`). |
| `shop-verify-email__continue` | `<a>` | "Continue to …" button on the email verified page (mixed with `shop-button`). |
<!-- classes:end -->

```html
<!-- check your email -->
<div class="shop-row shop-verify-email">
  <a href="/" class="shop-verify-email__back" aria-label="Back to the shop"><svg>…</svg></a>
  <div class="shop-verify-email__card">
    <div class="shop-verify-email__brand"><a href="/" class="shop-brand"><img class="shop-brand__logo" src="logo.svg" alt="Maison Lune"></a></div>
    <h1 class="shop-verify-email__title">Verify your email</h1>
    <p class="shop-verify-email__intro">One last step to create your account</p>
    <p class="shop-verify-email__notice" role="status">We've sent you a new verification email.</p> <!-- after resending -->
    <div class="shop-verify-email__box">
      <p class="shop-verify-email__label">We've sent a verification email to:</p>
      <p class="shop-verify-email__email">jane@example.com</p>
    </div>
    <p class="shop-verify-email__help">Click the link in the email to continue. Don't see it? Check your spam folder.</p>
    <form class="shop-verify-email__resend">
      <button class="shop-verify-email__resend-button">Resend verification email</button>
    </form>
    <div class="shop-verify-email__links">
      <span>Entered the wrong address?</span>
      <a href="…" class="shop-verify-email__link">Update your email</a>
    </div>
  </div>
</div>

<!-- email verified (back arrow and brand as above) -->
<div class="shop-row shop-verify-email">
  <div class="shop-verify-email__card">
    <h1 class="shop-verify-email__title">Email verified!</h1>
    <p class="shop-verify-email__intro">Your email has been successfully verified</p>
    <div class="shop-verify-email__box shop-verify-email__box--verified">
      <svg class="shop-verify-email__icon">…</svg>
      <p class="shop-verify-email__label"><span class="shop-verify-email__email">jane@example.com</span> has been verified</p>
    </div>
    <p class="shop-verify-email__help">Your account is ready and you are signed in.</p>
    <a href="/" class="shop-button shop-verify-email__continue">Continue to Maison Lune</a>
  </div>
</div>
```

The verifying page has the same back arrow, brand, title and intro, followed by `<form class="shop-verify-email__form">` with a `<button class="shop-button shop-verify-email__submit">`.

### 5.11 Pages without public classes yet

These pages follow the design tokens and carry their [page type](#page-type) class, but they don't have other stable classes yet: home, the account pages (overview, profile and preferences, orders and invoices, wishlist), contact, pricing, terms and conditions, data processing agreement, the delivery and payment steps of the checkout, and the error pages (not found, etc.).

New public classes for these pages will arrive in minor versions.

---

## 6. Rules and best practices

1. **Prefer tokens over class overrides.** A token change reaches every component, including future ones. Override a class only for what tokens can't express (layout, borders, letter-spacing, text-transform, …).
2. **Avoid `!important`.** Your styles already load last and the tokens sit in a low cascade layer, so normal rules win. When a default rule doesn't give way, match its selector (see [How the cascade works](#how-the-cascade-works)) instead of forcing it.
3. **Only target public classes.** Don't use internal classes, element selectors based on page structure (`.shop-header > div:nth-child(2)`), or IDs. They can change in any release. To style a single kind of page, start your selector with its page class (see [Page type](#page-type)) instead of detecting the page from its content.
4. **Keep text contrast at WCAG AA.** Normal text needs at least 4.5:1, large text (24px, or 18.5px bold) at least 3:1.
   - Check `--color-primary-content` on `--color-primary` (buttons).
   - Check `--color-primary` on `--color-base-100` (prices, links).
   - Check `--color-base-content` on `--color-base-100`.
   - Secondary text uses `--color-base-content` at 55–70% opacity. Choose a base-content with enough headroom, for example at least 10:1 against base-100.
5. **Keep the focus ring visible.** Interactive elements get a 2px `--color-primary` outline when focused with the keyboard. Don't remove outlines. If your primary is too light against your background, set a darker primary.
6. **Support mobile widths.** Most shoppers use a phone. Write base styles for small screens first and add `@media (min-width: …)` rules using the breakpoints in [section 4](#breakpoints-reference-values-not-tokens). Don't set fixed widths larger than 20rem. Keep tap targets at least 2rem high, and let rows wrap instead of overflowing.
7. **Respect reduced motion.** The shop disables animations for visitors who ask for reduced motion. Don't reintroduce essential motion in your styles.
8. **Keep it light.** Load at most two font families and only the weights you use (500, 600, 700, 900), with `display=swap`.
9. **Test on real pages:** the home page, a category, a product, the cart drawer, the checkout and the shipping page, at a phone width and a desktop width, and in both the light and the dark theme when the dark mode toggle is enabled. Use the theme editor (see [Preview before you publish](#preview-before-you-publish)) to check them before you publish.

### Allowed in the custom styles

- `<style>` … `</style>` blocks with CSS.
- `<link rel="stylesheet" href="https://…">` for web fonts, e.g. Google Fonts or Adobe Fonts.
- `<link rel="preconnect" href="https://…">` to speed up those font hosts.
- `@font-face` rules inside your `<style>`, pointing to font files over `https://`.

### Not allowed

- `<script>`, inline event handlers (`onload=…`), and any other JavaScript.
- `<meta>`, `<base>`, `<title>`, and other elements that change page behaviour or SEO. The shop manages these.
- Tracking pixels, iframes, and stylesheets from hosts you don't control.
- `http://` URLs (always use `https://`).
- Hiding or covering legally required content: prices, taxes, legal links, the cookie notice.

Content that is not allowed may be removed without notice.

---

## 7. Example themes

Each example is complete: paste it into the custom styles as it is. All color pairs meet WCAG AA.

### Minimal boutique

*Monochrome and quiet, with small radii and a refined geometric font, for fashion and jewellery.*

```html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700;900&display=swap">
<style>
  :root {
    --color-base-100: #ffffff;
    --color-base-200: #f5f5f4;
    --color-base-300: #e7e5e4;
    --color-base-content: #1c1917;
    --color-primary: #1c1917;
    --color-primary-content: #ffffff;
    --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;
    --radius-lg: .125rem;
    --radius-xl: .25rem;
    --radius-2xl: .375rem;
    --shadow-sm: none;
  }
  body {
    background-image: none;          /* plain white page, no grid texture */
  }
  .shop-header__nav-link,
  .shop-footer__heading,
  .shop-button {
    text-transform: uppercase;
    letter-spacing: .12em;
  }
  .shop-search-result {
    border-width: 1px;
  }
</style>
```

### Warm bakery

*Cream surfaces, a toasted-brown accent and a friendly rounded font, for food and craft shops.*

```html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;900&display=swap">
<style>
  :root {
    --color-base-100: #fffaf3;
    --color-base-200: #f8eedf;
    --color-base-300: #efdfc8;
    --color-base-content: #3b2a1e;
    --color-primary: #9a4a1c;
    --color-primary-content: #fffaf3;
    --color-error: #b42318;
    --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
    --radius-lg: .75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
  }
  body {
    background-image: none;
  }
  .shop-notification-bar {
    background-color: var(--color-primary);
    color: var(--color-primary-content);
  }
  .shop-footer {
    background-color: var(--color-base-200);
  }
</style>
```

### Bold streetwear

*A dark canvas, an acid-lime accent, square corners and a heavy grotesk font, for streetwear and sneaker drops.*

```html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap">
<style>
  :root {
    --color-base-100: #0f0f10;
    --color-base-200: #1c1c1f;
    --color-base-300: #2a2a2e;
    --color-base-content: #f4f4f5;
    --color-primary: #d4ff3a;
    --color-primary-content: #0f0f10;
    --color-error: #ff6b6b;
    --font-sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-2xl: 0;
    --shadow-sm: none;
    --shadow-xl: 0 0 0 2px var(--color-primary);
  }
  h1, h2,
  .shop-header__nav-link,
  .shop-button {
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .shop-tags__tag,
  .shop-footer__badge {
    border-radius: 0;                /* pills are always round, see the token section */
  }
</style>
```

Space Grotesk has no 900 weight; the browser uses the 700 weight wherever the shop asks for 900.

---

## 8. Using an AI assistant

You can ask an AI assistant (ChatGPT, Claude, Gemini, Grok, …) to design a theme for you. Give it **this whole guide** and the prompt below, and fill in the parts in brackets.

```text
You are a senior web designer. Attached is the Instoor storefront theming guide
(contract version 1.0.0). Design a custom theme for my online shop.

About my shop:
- Name: [shop name]
- What I sell: [products]
- Target audience: [who buys]
- Brand personality, in three words: [e.g. calm, natural, premium]
- Brand colors I already have (optional): [hex codes]
- Fonts I already use (optional): [font names]
- Shops or websites whose look I like (optional): [links or names]

Rules you must follow:
1. Output ONE block of HTML that I can paste into the "custom styles" field:
   optional <link> tags for web fonts (https only, at most two families,
   weights 500, 600, 700 and 900 where available), followed by one <style> block.
2. Use ONLY the design tokens and public classes listed in the guide.
   Do not invent tokens or classes, and do not target HTML structure, IDs or
   internal classes.
3. Change as much as possible through the tokens on :root. Override classes
   only for things tokens can't do.
4. Never use !important. Never include <script>, <meta>, inline event handlers
   or tracking.
5. Every text/background pair must meet WCAG AA (4.5:1 for normal text).
   In particular check --color-primary-content on --color-primary,
   --color-primary on --color-base-100 and --color-base-content on
   --color-base-100. Keep focus outlines visible.
6. Mobile first: base styles for phones, @media (min-width: …) for larger
   screens, using the breakpoints from the guide.
7. Add short CSS comments explaining your choices.

After the code, give me:
- a one-line description of the theme,
- a table of the color pairs you checked with their contrast ratios,
- anything I should check on the live shop (e.g. product photos on a dark
  background).
```

Tips:

- Ask for two or three variations, then refine the one you like ("make the accent warmer", "less rounded").
- Always preview the result on your shop at a phone and a desktop width before you publish it.
- If the assistant uses a class or token that isn't in this guide, ask it to remove it.

---

## 9. Changelog

### 1.0.0 — 2026-10-27

- First public version of the theming contract: 17 design tokens, the behaviour setting `--menu-open-on-hover`, the page type classes on `<body>`, and the public classes for the layout (notification bar, header with navigation, submenus and account menu, footer), drawers, mobile menu and search overlay, cart, shared components (including the captcha), category and search listing, product detail, checkout, shipping and delivery, privacy policy, and the sign in, sign up and email verification pages.
- Light and dark themes, with an optional dark mode toggle in the header. See [Light and dark themes](#light-and-dark-themes).
- The theme editor, to preview the default look, a ready-made theme or your own styles, in light and dark, before you publish them.

---

## 10. Not part of the contract

You may see these names in the page source. They exist, but they are internal: they may change or disappear in any release, so don't rely on them.

<!-- internal-tokens:start -->
| Token | Default | Description |
|---|---|---|
| `--color-secondary` | `oklch(75% .15 350)` | Reserved, not used by the storefront yet. |
| `--color-accent` | `oklch(75% .15 150)` | Reserved, not used by the storefront yet. |
| `--color-neutral` | `oklch(45% .02 280)` | Reserved, not used by the storefront yet. |
| `--color-info` | `oklch(70% .12 240)` | Reserved, not used by the storefront yet. |
| `--color-warning` | `oklch(80% .15 80)` | Reserved, not used by the storefront yet. |
| `--radius-3xl` | `1.5rem` | Reserved, not used by the storefront yet. |
| `--breakpoint-xs` | `36rem` | Breakpoint; can't be changed from CSS (see breakpoints). |
| `--text-2xs` | `0.68rem` | Internal font size. |
| `--text-2xs--line-height` | `1.3` | Internal line height. |
<!-- internal-tokens:end -->

<!-- internal-classes:start -->
| Class | Element | Purpose |
|---|---|---|
| `shop-cart-button__counter--bump` | `<div>` | Short animation when an item is added to the cart. |
| `shop-search-result__add-to-cart-label` | `<span>` | Label inside the add-to-cart pill. |
| `shop-search-result__add-to-cart-label--hidden` | `<span>` | Hides the label while the check mark shows. |
| `shop-search-result__add-to-cart-progress` | `<span>` | Progress bar while adding to the cart. |
| `shop-search-result__add-to-cart-checkmark` | `<svg>` | Check mark after adding to the cart. |
| `shop-related-products` | `<div>` | "You might also like" carousel on the product page (work in progress). |
| `shop-no-longer-available-banner` | `<div>` | Banner over the image of a product that is no longer sold (work in progress). |
<!-- internal-classes:end -->
