/* E-shop Forge — public storefront base stylesheet.
 * Colours/fonts/radius come from the per-shop theme (CSS variables injected inline by
 * the forge's design tokens). Everything here uses those variables with safe fallbacks,
 * so a single stylesheet themes every shop. Mobile-first, accessible, no framework. */

:root {
  --color-background: #ffffff;
  --color-surface: #f7f7f5;
  --color-ink: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-primary: #111111;
  --color-on-primary: #ffffff;
  --color-accent: #b8860b;
  --color-border: #e6e6e3;
  --radius: 8px;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --space: clamp(1rem, 2vw, 1.6rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, .brand__name { font-family: var(--font-heading); line-height: 1.15; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--space); }

.muted { color: var(--color-muted); }
.small { font-size: 0.85rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: var(--color-on-primary); padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius);
  padding: .8rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  text-align: center; transition: transform .08s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-ink); }

/* ── Header / nav ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.brand__name { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
/* Operator-uploaded logo (rasterised from PDF). Capped by height so any aspect ratio fits the
   header band; width follows. The presta skin gives it a touch more room. */
.brand__logo { display: block; height: 108px; width: auto; max-width: 520px; object-fit: contain; }
[data-template="presta"] .brand__logo { height: 124px; max-width: 640px; }
.nav-toggle {
  font-size: 1.4rem; background: none; border: 0; color: inherit;
  cursor: pointer; display: none;
}

/* Header search box */
.site-search {
  margin-left: auto; display: flex; align-items: center; flex: 1 1 280px; max-width: 460px;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
  overflow: hidden; transition: border-color .15s ease;
}
.site-search:focus-within { border-color: var(--color-accent); }
.site-search input {
  flex: 1; border: 0; background: none; padding: .6rem .2rem .6rem 1rem; font: inherit;
  color: var(--color-ink); min-width: 0;
}
.site-search input:focus { outline: none; }
.site-search button {
  border: 0; background: none; color: var(--color-muted); cursor: pointer;
  padding: .5rem .9rem .5rem .5rem; display: flex; align-items: center;
}
.site-search button:hover { color: var(--color-accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Full-width category bar below the header row */
.main-nav { border-top: 1px solid var(--color-border); background: var(--color-background); }
.main-nav > .wrap > ul {
  display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; list-style: none; margin: 0; padding: 0;
}
.main-nav__item { position: relative; }
.main-nav__item > a { display: block; padding: .7rem 0; font-weight: 600; white-space: nowrap; }
.main-nav__item > a .caret { color: var(--color-muted); font-size: .8em; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem;
  list-style: none; margin: 0; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 60;
}
.main-nav__item:hover .submenu, .main-nav__item:focus-within .submenu { display: block; }
.submenu > li > a { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .6rem; border-radius: calc(var(--radius) - 2px); }
.submenu > li > a:hover { background: var(--color-background); text-decoration: none; }
.submenu__all a { font-weight: 700; }
.submenu__head { font-weight: 600; }
.submenu__sub { list-style: none; margin: 0 0 .4rem; padding: 0 0 .2rem .6rem; }
.submenu__sub a { display: block; padding: .25rem .6rem; font-size: .85rem; color: var(--color-muted); }
.submenu__sub a:hover { color: var(--color-ink); text-decoration: none; }
.count { color: var(--color-muted); font-size: .8rem; }

.compliance-bar {
  background: var(--color-ink); color: var(--color-background); text-align: center;
  font-size: .82rem; padding: .5rem var(--space);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--color-surface); border-radius: var(--radius); margin-top: var(--space); padding: clamp(2.5rem, 6vw, 5rem) var(--space); }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--color-accent); margin: 0 0 .6rem; font-weight: 700; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .6rem; }
.hero__lead { font-size: 1.15rem; color: var(--color-muted); max-width: 46ch; margin: 0 0 1.6rem; }

/* ── Sections / grids ────────────────────────────────────────────────────── */
.section { margin: clamp(2.5rem, 5vw, 4rem) 0; }
.section__title { font-size: 1.5rem; margin: 0 0 1.4rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.cat-tile {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.2rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); transition: border-color .15s ease, transform .08s ease;
}
.cat-tile:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.cat-tile__name { font-weight: 700; font-family: var(--font-heading); font-size: 1.1rem; }
.cat-tile__count { color: var(--color-muted); font-size: .85rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }

/* ── Brands (manufacturer axis) ──────────────────────────────────────────── */
/* Home logo strip: a horizontal, scrollable row of brand logos. */
.brand-strip { display: flex; flex-wrap: wrap; gap: .8rem; }
.brand-chip {
  flex: 0 0 auto; width: 132px; height: 72px; display: flex; align-items: center; justify-content: center;
  padding: .8rem 1rem; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); transition: border-color .15s ease, transform .08s ease;
}
.brand-chip:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.brand-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-chip span { font-weight: 700; font-family: var(--font-heading); font-size: .95rem; text-align: center; color: var(--color-ink); }

/* Brand index ("Marques") grid: a logo tile per brand. */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.brand-tile {
  display: flex; flex-direction: column; gap: .5rem; padding: 1rem; text-align: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); transition: border-color .15s ease, transform .08s ease;
}
.brand-tile:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.brand-tile__media { aspect-ratio: 16 / 9; background: #fff; border-radius: calc(var(--radius) - 2px);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: .6rem; }
.brand-tile__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile__fallback { font-family: var(--font-heading); font-weight: 700; color: var(--color-muted); }
.brand-tile__name { font-weight: 700; font-family: var(--font-heading); font-size: 1rem; }
.brand-tile__count { color: var(--color-muted); font-size: .82rem; }

.card { background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s ease, transform .08s ease; }
.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.card__link { display: block; height: 100%; }
.card__link:hover { text-decoration: none; }
.card__media { aspect-ratio: 1 / 1; background: #ffffff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__media--placeholder { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-muted); }
.card__body { padding: .9rem 1rem 1.1rem; }
.card__brand { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--color-accent); margin: 0 0 .3rem; font-weight: 700; }
.card__title { font-size: .98rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 .6rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin: 0; }
.price { font-weight: 700; font-size: 1.05rem; }
.price--lg { font-size: 1.8rem; }
.price--na { color: var(--color-muted); font-weight: 600; font-size: .95rem; }
.price__prefix { color: var(--color-muted); font-weight: 600; font-size: .85em; }

/* ── Breadcrumb / listing ────────────────────────────────────────────────── */
.breadcrumb { margin: 1.4rem 0; font-size: .9rem; color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-ink); }
.listing-head { margin: 1rem 0 1.6rem; }
.listing-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .3rem; }
.listing-head--brand { display: flex; align-items: center; gap: 1.2rem; }
.listing-head__logo { width: 120px; height: 72px; object-fit: contain; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; flex: 0 0 auto; }
.product__brand a { color: var(--color-accent); }
.product__brand a:hover { text-decoration: underline; }
.subcats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: .9rem; background: var(--color-surface); }
.chip:hover { border-color: var(--color-accent); text-decoration: none; }

/* ── Product page ────────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin: 1rem 0; }
.product__media { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: contain; }
.product__media--placeholder { font-size: 5rem; }
/* Gallery: main photo above a strip of thumbnails (only rendered when 2+ photos). */
.product__gallery { display: flex; flex-direction: column; gap: .7rem; }
.product__gallery [data-gallery-main][role="button"] { cursor: zoom-in; }
.product__thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.product__thumb { width: 64px; height: 64px; padding: 0; background: #ffffff; border: 1px solid var(--color-border); border-radius: calc(var(--radius) * .6); overflow: hidden; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product__thumb:hover { border-color: var(--color-accent); }
.product__thumb.is-active { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.product__thumb:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
/* Full-screen zoom overlay (JS-created on click). */
.product-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 8, 12, .88); display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); cursor: zoom-out; animation: product-zoom-in .15s ease; }
.product-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 12px 48px rgba(0, 0, 0, .5); }
@keyframes product-zoom-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .product-zoom { animation: none; } }
.product__brand { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--color-accent); font-weight: 700; margin: 0 0 .5rem; }
.product__title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 1rem; }
.product__price { margin: 0 0 .8rem; }
.product__variants { margin: 0 0 1.2rem; max-width: 22rem; }
.product__variants-label { display: block; font-size: .85rem; font-weight: 600; color: var(--color-muted); margin: 0 0 .35rem; }
.product__variant-select { width: 100%; padding: .6rem .8rem; font: inherit; color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); cursor: pointer; }
.product__variant-select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.product__stock { font-weight: 600; margin: 0 0 1.4rem; }
.product__stock.in { color: #1a7f37; }
.product__stock.out { color: #b42318; }
.product__cta { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.product__description { max-width: 70ch; }

.rich { line-height: 1.7; }
.rich h1, .rich h2, .rich h3 { margin-top: 1.6rem; }
.rich p { margin: 0 0 1rem; }
.rich ul { padding-left: 1.3rem; }
.doc { max-width: 75ch; margin-inline: auto; padding-bottom: 2rem; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.article-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.article-card:hover { border-color: var(--color-accent); text-decoration: none; }
.article-card__img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.article-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.6rem 1.6rem; }
.article-card__title { font-family: var(--font-heading, inherit); font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
.article-card__excerpt { color: var(--color-muted); font-size: 0.92rem; line-height: 1.45; }
.article-card h2 { font-size: 1.2rem; margin: 0 0 1rem; }
.article-card__more { color: var(--color-accent); font-weight: 600; margin-top: 0.2rem; }
.blog-article__hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.6rem; display: block; }

.empty-state { padding: 3rem 0; text-align: center; }
.not-found { padding: 5rem 0; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 4rem; background: var(--color-surface); border-top: 1px solid var(--color-border); padding-top: 3rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer__title { font-size: 1.05rem; margin: 0 0 1rem; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.link-list a { color: var(--color-muted); }
.link-list a:hover { color: var(--color-ink); }
.site-footer__bottom { border-top: 1px solid var(--color-border); padding-block: 1.4rem; }

/* ── Age gate ────────────────────────────────────────────────────────────── */
.age-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.age-gate__panel { background: var(--color-background); color: var(--color-ink); max-width: 480px; width: 100%; padding: 2.4rem; border-radius: var(--radius); text-align: center; }
.age-gate__panel h1 { font-size: 1.6rem; margin: 0 0 1rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: .8rem; margin: 1.6rem 0; }
.age-gate__legal { font-size: .8rem; color: var(--color-muted); margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; border-top: 1px solid var(--color-border); padding: var(--space) 0; }
  .main-nav.open { display: block; }
  .main-nav > .wrap > ul { flex-direction: column; gap: .2rem; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding-left: 1rem; background: transparent; min-width: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-aside { position: static; }
  .product { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-search { flex-basis: 100%; order: 3; max-width: none; }
  .site-header__inner { flex-wrap: wrap; }
}

/* ── Catalogue layout: left category sidebar + main listing (Josh-style) ────── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.catalog-aside {
  position: sticky; top: 84px; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--color-surface);
}
.catalog-aside__title { font-size: 1.05rem; margin: 0 0 .6rem; }
.catalog-aside__title a:hover { color: var(--color-accent); }
.cattree, .cattree__sub { list-style: none; margin: 0; padding: 0; }
.cattree__sub { margin-left: .8rem; border-left: 1px solid var(--color-border); padding-left: .6rem; }
.cattree__link {
  display: flex; justify-content: space-between; gap: .6rem; padding: .3rem .2rem;
  font-size: .92rem; border-radius: calc(var(--radius) - 2px);
}
.cattree__link:hover { color: var(--color-accent); text-decoration: none; }
.cattree__link.is-active { font-weight: 700; color: var(--color-accent); }

/* Sub-category cards: turn a parent rayon into a real landing page, not an empty grid */
.subcat-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem; margin: 0 0 1.8rem;
}
.subcat-card {
  display: flex; flex-direction: column; border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; background: var(--color-background);
  transition: border-color .12s ease, transform .12s ease;
}
.subcat-card:hover { border-color: var(--color-accent); transform: translateY(-2px); text-decoration: none; }
.subcat-card__media {
  aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--color-border);
}
.subcat-card__media img { width: 100%; height: 100%; object-fit: contain; }
.subcat-card__ph { font-family: var(--font-heading); font-size: 2rem; color: var(--color-border); }
.subcat-card__name { font-weight: 700; padding: .6rem .7rem .1rem; }
.subcat-card__count { color: var(--color-muted); font-size: .82rem; padding: 0 .7rem .7rem; }

/* Filter / sort bar */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .8rem; padding: .7rem 0 1rem; border-bottom: 1px solid var(--color-border); margin-bottom: 1.4rem;
}
.filter-bar__label { color: var(--color-muted); font-size: .9rem; }
.filter-bar__controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.filter-bar__controls label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--color-muted); }
.filter-bar__controls select {
  font: inherit; font-size: .9rem; color: var(--color-ink); padding: .4rem .6rem;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-background);
}

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0 1rem; }
.pagination__link {
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem 1rem; font-weight: 600;
}
.pagination__link:hover { border-color: var(--color-accent); text-decoration: none; }
.pagination__link.is-disabled { color: var(--color-muted); border-style: dashed; cursor: default; }
.pagination__status { color: var(--color-muted); font-size: .9rem; }

.section__subtitle { font-size: 1.15rem; margin: 0 0 .8rem; }
.search-brands { margin: 1.4rem 0 1.8rem; }

/* ════════════════════════════════════════════════════════════════════════════
   CUSTOMER AREA — header actions, auth, account, cart, checkout, forms
   Added with the storefront customer area (accounts / cart / checkout / invoices).
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Header account + cart ─────────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; }
.header-action {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border-radius: var(--radius); color: var(--color-ink); font-weight: 600;
  font-size: .9rem;
}
.header-action:hover { background: var(--color-surface); text-decoration: none; color: var(--color-accent); }
.header-action__badge {
  position: absolute; top: .1rem; right: .1rem; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--color-accent); color: #fff; border-radius: 999px; font-size: .68rem;
  line-height: 18px; text-align: center; font-weight: 700;
}
@media (max-width: 980px) { .header-action__label { display: none; } }

/* ── Buttons (extra) ───────────────────────────────────────────────────────── */
.btn--block { display: block; width: 100%; }
.btn--block + .btn--block { margin-top: .6rem; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--sm { max-width: 9rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--color-ink); background: var(--color-background);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: .65rem .8rem;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field input:disabled { background: var(--color-surface); color: var(--color-muted); }
.field__hint { margin: 0; }
.req { color: #b42318; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; line-height: 1.4; }
.check input { margin-top: .2rem; }

.alert { border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1.2rem; font-size: .92rem; border: 1px solid transparent; }
.alert--error { background: #fdecea; border-color: #f4c7c2; color: #842029; }
.alert--success { background: #e7f6ec; border-color: #b6e0c4; color: #14502a; }
.alert--info { background: #eef3fb; border-color: #cdddf2; color: #1e406e; }

/* ── Auth (login / register) ───────────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: clamp(1.5rem, 5vw, 3.5rem) 0; }
.auth-card {
  width: 100%; max-width: 460px; background: var(--color-background);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem);
}
.auth-card__title { font-size: 1.6rem; margin: 0 0 .3rem; }
.auth-card__lead { margin: 0 0 1.6rem; }
.auth-card .form { max-width: none; }
.auth-card__alt { margin: 1.4rem 0 0; text-align: center; font-size: .92rem; }
.auth-card__alt a { color: var(--color-accent); font-weight: 600; }

/* ── Account layout ────────────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; margin: 1.6rem 0 3rem; }
.account-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 1.4rem; }

.account-nav { position: sticky; top: 84px; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.2rem; background: var(--color-surface); }
.account-nav__hello { margin: 0 0 1rem; font-size: .95rem; }
.account-nav__list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .2rem; }
.account-nav__link { display: block; padding: .55rem .7rem; border-radius: calc(var(--radius) - 2px); font-weight: 600; font-size: .94rem; }
.account-nav__link:hover { background: var(--color-background); text-decoration: none; }
.account-nav__link.is-active { background: var(--color-primary); color: var(--color-on-primary); }
.account-nav__logout { margin: 0; }

.account-main { min-width: 0; }
.account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }

.panel { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.4rem; background: var(--color-background); margin: 0 0 1.4rem; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel__title { font-size: 1.15rem; margin: 0 0 1rem; }
.panel__head .panel__title { margin-bottom: 1rem; }
.panel__link { color: var(--color-accent); font-weight: 600; font-size: .9rem; }

.addr { font-style: normal; line-height: 1.5; color: var(--color-ink); margin: 0 0 1rem; }

/* ── Badges (order status) ─────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted); white-space: nowrap; }
.badge--default { background: var(--color-accent); color: #fff; border-color: transparent; }
.badge--pending_payment { background: #fff3da; color: #8a5a00; border-color: #f0dcae; }
.badge--paid, .badge--processing { background: #eef3fb; color: #1e406e; border-color: #cdddf2; }
.badge--shipped { background: #e9f0ff; color: #234bb5; border-color: #c5d4f7; }
.badge--delivered { background: #e7f6ec; color: #14502a; border-color: #b6e0c4; }
.badge--cancelled, .badge--refunded { background: #fdecea; color: #842029; border-color: #f4c7c2; }

/* ── Order mini list (dashboard) ───────────────────────────────────────────── */
.order-mini { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.order-mini__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem 1rem; padding: .6rem .2rem; border-bottom: 1px solid var(--color-border); }
.order-mini__row:hover { text-decoration: none; }
.order-mini__ref { font-weight: 600; }
.order-mini__total { font-weight: 700; text-align: right; }
.order-mini__date { grid-column: 1; }

/* ── Data tables (orders, order lines) ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { padding: .7rem .6rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.data-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table tfoot th, .data-table tfoot td { border-bottom: 0; padding-top: .5rem; padding-bottom: .2rem; }
.data-table__grand th, .data-table__grand td { font-size: 1.1rem; font-weight: 700; padding-top: .7rem; border-top: 2px solid var(--color-border); }
.data-table a { color: var(--color-accent); font-weight: 600; }

.link-action { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--color-accent); cursor: pointer; }
.link-action:hover { text-decoration: underline; }
.link-action--danger { color: #b42318; }

.order-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.order-head__aside { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ── Address book ──────────────────────────────────────────────────────────── */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-bottom: 1.4rem; }
.addr-card { position: relative; margin: 0; }
.addr-card .badge--default { position: absolute; top: 1rem; right: 1rem; }
.addr-card__label { font-size: 1rem; margin: 0 0 .6rem; }

/* ── Cart ──────────────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.cart-lines { display: grid; gap: .8rem; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto auto; grid-template-areas: "media info qty total" "media info qty remove"; gap: .3rem 1rem; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; }
.cart-line__media { grid-area: media; width: 84px; height: 84px; background: #fff; border: 1px solid var(--color-border); border-radius: calc(var(--radius) - 2px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-line__ph { font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-muted); }
.cart-line__info { grid-area: info; min-width: 0; }
.cart-line__brand { text-transform: uppercase; letter-spacing: .07em; font-size: .7rem; color: var(--color-accent); font-weight: 700; margin: 0 0 .2rem; }
.cart-line__name { font-size: 1rem; margin: 0 0 .25rem; font-family: var(--font-body); font-weight: 600; }
.cart-line__qty { grid-area: qty; }
.cart-line__total { grid-area: total; font-weight: 700; text-align: right; white-space: nowrap; }
.cart-line__remove { grid-area: remove; text-align: right; margin: 0; }
.qty-form { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.qty-input { width: 4.5rem; font: inherit; padding: .45rem .5rem; border: 1px solid var(--color-border); border-radius: var(--radius); text-align: center; }

.cart-summary { position: sticky; top: 84px; }
.summary { margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; }
.summary__row dt { color: var(--color-muted); margin: 0; }
.summary__row dd { margin: 0; font-weight: 600; }
.summary__row--grand { border-top: 1px solid var(--color-border); padding-top: .7rem; margin-top: .3rem; font-size: 1.15rem; }
.summary__row--grand dt, .summary__row--grand dd { color: var(--color-ink); font-weight: 700; }
.summary .free { color: #1a7f37; font-weight: 700; }
.summary__hint { margin: 0 0 1rem; }

/* ── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.checkout-aside { position: sticky; top: 84px; }
.addr-choices { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.addr-choice { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; }
.addr-choice:hover { border-color: var(--color-accent); }
.addr-choice input { margin-top: .2rem; }
.addr-choice__body { display: grid; gap: .15rem; }
.addr-form { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.2rem; margin: 0; display: grid; gap: 1rem; }
.ship-choices { display: grid; gap: .6rem; }
.ship-choice { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--color-border); border-radius: var(--radius); padding: .8rem 1rem; cursor: pointer; }
.ship-choice:hover { border-color: var(--color-accent); }
.ship-choice input { margin-top: .25rem; }
.ship-choice__body { display: grid; gap: .15rem; flex: 1; }
.ship-choice__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.ship-choice__price { font-weight: 700; white-space: nowrap; }
.relay-form { border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: -.2rem 0 .3rem; display: grid; gap: .8rem; }
.relay-form[hidden] { display: none; }
.relay-search__row { display: flex; gap: .5rem; align-items: stretch; }
.relay-search__row .relay-cp { flex: 1; }
.relay-results { margin-top: .2rem; }
.relay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; max-height: 260px; overflow-y: auto; }
.relay-pick { display: block; width: 100%; text-align: left; background: var(--color-surface, #fff); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .6rem .8rem; cursor: pointer; font: inherit; color: inherit; }
.relay-pick:hover { border-color: var(--color-accent); }
.relay-chosen { margin: .2rem 0 0; padding: .5rem .7rem; border-radius: var(--radius); background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.relay-manual-hint { margin-bottom: 0; }
.relay-map { height: 260px; border-radius: var(--radius); overflow: hidden; margin: .2rem 0; border: 1px solid var(--color-border); }
.relay-map[hidden] { display: none; }
.relay-pick.is-selected { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.leaflet-container { font: inherit; }
.checkout-items { list-style: none; margin: 0 0 1.2rem; padding: 0 0 1rem; border-bottom: 1px solid var(--color-border); display: grid; gap: .5rem; }
.checkout-items li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; font-size: .92rem; }
.checkout-items__qty { color: var(--color-muted); font-weight: 600; }
.checkout-items__total { font-weight: 600; white-space: nowrap; }
.checkout-legal { margin: .8rem 0 0; text-align: center; }

/* ── Product buy form ──────────────────────────────────────────────────────── */
.product__buy { display: contents; }
.product__cta { flex-direction: row; align-items: center; gap: .8rem; }
.product__qty .qty-input { width: 4.2rem; }

/* ── Order confirmation ────────────────────────────────────────────────────── */
.confirmation { max-width: 620px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) 0; text-align: center; }
.confirmation__icon { color: #1a7f37; display: flex; justify-content: center; margin-bottom: 1rem; }
.confirmation__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .6rem; }
.confirmation__lead { color: var(--color-muted); margin: 0 0 2rem; }
.confirmation__panel { text-align: left; }
.confirmation__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* Payment-pending / generic account copy + button rows. */
.lead { color: var(--color-muted); margin: 0 0 1.6rem; max-width: 60ch; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }

/* ── Responsive (customer area) ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-aside { position: static; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; grid-template-areas: "media info" "media qty" "total total" "remove remove"; }
  .cart-line__media { width: 64px; height: 64px; }
  .cart-line__total { text-align: left; }
  .cart-line__remove { text-align: left; }
}

/* ════════════════════════════════════════════════════════════════════════════
   REASSURANCE STRIP + COMMERCIAL CHROME
   Opt-in via the art-direction token `layout: "commercial"` (body[data-layout]).
   The reassurance strip itself renders whenever the shop's tokens ship items, so
   it is fully token-driven — no per-shop code. Editorial directions are untouched.
   ════════════════════════════════════════════════════════════════════════════ */

/* Trust / reassurance strip under the header. */
.reassurance {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  /* Breathing room from the menu bar above. Token-driven; the commercial layer and
     the floating chrome each override this with their own spacing. */
  margin-top: var(--space);
}
.reassurance__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  padding-block: .9rem;
}
.reassurance__item { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.reassurance__icon {
  flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--color-background);
  border: 1px solid var(--color-border); color: var(--color-primary);
}
.reassurance__icon svg { width: 22px; height: 22px; }
.reassurance__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.reassurance__title { font-weight: 700; font-size: .9rem; color: var(--color-ink); }
.reassurance__sub { font-size: .78rem; color: var(--color-muted); }

@media (max-width: 900px) {
  .reassurance__inner { grid-template-columns: repeat(2, 1fr); gap: .8rem 1.2rem; }
}
@media (max-width: 520px) {
  /* Keep all four visible but scannable: horizontal swipe row on small screens. */
  .reassurance__inner {
    grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: minmax(74%, 1fr); overflow-x: auto; gap: .8rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .reassurance__item { scroll-snap-align: start; }
}

/* ── Commercial chrome (only when the art direction opts in) ───────────────── */
/* Coloured category bar (mass-market vape feel), bolder header, punchier CTAs. */
[data-layout="commercial"] .brand__name { letter-spacing: 0; }

[data-layout="commercial"] .main-nav {
  background: var(--color-primary); border-top: 0;
}
[data-layout="commercial"] .main-nav > .wrap > ul { gap: .1rem .4rem; }
[data-layout="commercial"] .main-nav__item > a {
  color: var(--color-on-primary); padding: .8rem .9rem; border-radius: 0;
}
[data-layout="commercial"] .main-nav__item > a:hover {
  background: rgba(255, 255, 255, .14); text-decoration: none;
}
[data-layout="commercial"] .main-nav__item > a .caret { color: var(--color-on-primary); opacity: .8; }
/* The "Le journal" plain link sits in the coloured bar too. */
[data-layout="commercial"] .main-nav__item:last-child > a { color: var(--color-on-primary); }

[data-layout="commercial"] .site-search { border-radius: var(--radius); }
[data-layout="commercial"] .site-search:focus-within { border-color: var(--color-primary); }

/* Primary buttons get a touch more presence and a branded focus ring. */
[data-layout="commercial"] .btn--primary { box-shadow: 0 1px 0 rgba(0,0,0,.04); }
[data-layout="commercial"] .btn--primary:hover { filter: brightness(1.05); }

/* Bold, brand-coloured hero on the home page (derived from --color-primary, so it
   adapts to any commercial palette). Solid fallback first for older browsers. */
[data-layout="commercial"] .hero {
  background: var(--color-primary);
  background: linear-gradient(135deg,
    var(--color-primary),
    color-mix(in srgb, var(--color-primary) 68%, #000));
  color: var(--color-on-primary);
  border: 0;
}
[data-layout="commercial"] .hero .hero__title { color: var(--color-on-primary); }
[data-layout="commercial"] .hero .hero__eyebrow { color: var(--color-on-primary); opacity: .85; }
[data-layout="commercial"] .hero .hero__lead { color: var(--color-on-primary); opacity: .9; }
[data-layout="commercial"] .hero .btn--primary {
  background: var(--color-on-primary); color: var(--color-primary);
}
[data-layout="commercial"] .hero .btn--primary:hover { filter: brightness(.97); }

/* Product / category cards lean on the primary colour for affordance. */
[data-layout="commercial"] .card:hover { box-shadow: 0 14px 30px rgba(14, 118, 188, .14); }
[data-layout="commercial"] .cat-tile:hover,
[data-layout="commercial"] .subcat-card:hover,
[data-layout="commercial"] .brand-tile:hover,
[data-layout="commercial"] .brand-chip:hover { border-color: var(--color-primary); }

/* On mobile the coloured nav collapses; keep the branded background. */
@media (max-width: 820px) {
  [data-layout="commercial"] .main-nav { background: var(--color-primary); }
  [data-layout="commercial"] .submenu { background: rgba(255,255,255,.10); }
  [data-layout="commercial"] .submenu > li > a,
  [data-layout="commercial"] .submenu__sub a { color: var(--color-on-primary); }
}

/* ── Hero carousel (adapted from the Carrousel IA module) ────────────────────
   Token-driven so it inherits any art direction. Slides cross-fade; a slide with
   an image goes full-bleed under a readability scrim, a slide without one uses the
   shop's branded gradient. */
.hero-carousel {
  position: relative;
  margin-top: var(--space);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgba(16, 38, 61, .10);
}
.hero-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 720;
  min-height: 320px;
}
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
  /* Text-only fallback: branded gradient derived from the primary colour. */
  background: var(--color-primary);
  background: linear-gradient(125deg,
    var(--color-primary),
    color-mix(in srgb, var(--color-primary) 62%, #000));
  color: var(--color-on-primary);
}
.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease;
}
.hero-carousel.is-single .hero-carousel__slide { position: relative; }
.hero-carousel__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-carousel__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 16, 26, .72) 0%, rgba(8, 16, 26, .42) 42%, rgba(8, 16, 26, 0) 78%);
}
.hero-carousel__content {
  position: relative;
  z-index: 2;
  max-width: min(60ch, 60%);
  padding: clamp(1.75rem, 4vw, 3.5rem);
}
.hero-carousel__eyebrow {
  margin: 0 0 .6rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 700;
  opacity: .9;
}
.hero-carousel__title {
  margin: 0 0 .7rem;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.08;
  color: inherit;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.hero-carousel__lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.5;
  max-width: 44ch;
  opacity: .95;
}
.hero-carousel__cta { margin: 0; }
/* On a slide the primary button reads as a light chip on the dark hero. */
.hero-carousel__slide .btn--primary.hero-carousel__cta {
  background: var(--color-on-primary);
  color: var(--color-primary);
}
.hero-carousel__slide .btn--primary.hero-carousel__cta:hover { filter: brightness(.97); }

/* Prev / next arrows */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink, #16263d);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: background .2s, transform .2s;
}
.hero-carousel__arrow svg { width: 22px; height: 22px; }
.hero-carousel__arrow:hover { background: #fff; }
.hero-carousel__arrow--prev { left: 14px; }
.hero-carousel__arrow--next { right: 14px; }

/* Pagination dots */
.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 9px;
  justify-content: center;
}
.hero-carousel__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: background .2s, transform .2s;
}
.hero-carousel__dot:hover { background: rgba(255, 255, 255, .85); }
.hero-carousel__dot.is-active { background: #fff; transform: scale(1.25); }

/* Editorial art directions: calmer, lighter scrim, thinner shadow. */
[data-layout="editorial"] .hero-carousel { box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
[data-layout="editorial"] .hero-carousel__viewport { aspect-ratio: 1920 / 640; }

@media (max-width: 720px) {
  .hero-carousel__viewport { aspect-ratio: 4 / 3; }
  .hero-carousel__content { max-width: 100%; }
  .hero-carousel__scrim {
    background: linear-gradient(0deg, rgba(8, 16, 26, .78) 0%, rgba(8, 16, 26, .35) 55%, rgba(8, 16, 26, .15) 100%);
  }
  .hero-carousel__slide { align-items: flex-end; }
  .hero-carousel__arrow { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   MODERN COMMERCIAL 2.0  +  HOME MODULES
   A softer, more spacious, less "boxy" treatment for mass-market shops
   (data-layout="commercial"). Editorial art directions are untouched. Home
   modules (DIY calculator, video, editorial bands) are opt-in via shop.modules,
   so they only render where enabled — and inherit the shop's design tokens.
   ════════════════════════════════════════════════════════════════════════════ */
[data-layout="commercial"] {
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(16, 38, 61, .06);
  --shadow-md: 0 14px 34px rgba(16, 38, 61, .10);
  --shadow-lg: 0 26px 60px rgba(16, 38, 61, .14);
  --tint: color-mix(in srgb, var(--color-primary) 6%, #fff);
  --tint-2: color-mix(in srgb, var(--color-accent) 7%, #fff);
}
[data-layout="commercial"] body,
body[data-layout="commercial"] { background: #fff; }

/* Generous page rhythm. */
[data-layout="commercial"] main.wrap { padding-bottom: clamp(3rem, 6vw, 5rem); }
[data-layout="commercial"] .section { margin: clamp(3rem, 6vw, 5.5rem) 0; }

/* Pill, gradient-lit primary buttons with a soft shadow and spring hover. */
[data-layout="commercial"] .btn {
  border-radius: var(--radius-pill);
  padding: .85rem 1.7rem;
  transition: transform .14s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, filter .18s ease;
}
[data-layout="commercial"] .btn--primary {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 88%, #fff),
    var(--color-primary));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary) 28%, transparent);
}
[data-layout="commercial"] .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px color-mix(in srgb, var(--color-primary) 36%, transparent);
  filter: none;
}
[data-layout="commercial"] .btn--ghost {
  border-color: color-mix(in srgb, var(--color-primary) 24%, var(--color-border));
}

/* Sticky header with a frosted, shadowed feel. */
[data-layout="commercial"] .site-header {
  background: color-mix(in srgb, #fff 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--color-border), 0 8px 24px rgba(16,38,61,.05);
}
[data-layout="commercial"] .site-header__inner { min-height: 80px; }
[data-layout="commercial"] .brand__name { font-weight: 800; }
[data-layout="commercial"] .site-search {
  background: var(--tint);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

/* Rounded, edge-to-edge coloured nav that floats just under the header. */
[data-layout="commercial"] .main-nav {
  background: linear-gradient(135deg,
    var(--color-primary),
    color-mix(in srgb, var(--color-primary) 78%, #000));
}
[data-layout="commercial"] .main-nav__item > a {
  border-radius: var(--radius-pill);
  margin: .35rem .1rem;
  transition: background .16s ease;
}
[data-layout="commercial"] .submenu {
  border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: .7rem;
}

/* Section headers: centred, with an eyebrow and a short accent underline. */
[data-layout="commercial"] .section > .section__title,
[data-layout="commercial"] .module__head { text-align: center; }
[data-layout="commercial"] .section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 auto 1.8rem;
  position: relative; padding-bottom: .9rem; max-width: 22ch;
}
[data-layout="commercial"] .section__title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* ── Category tiles → image-lit gradient cards ───────────────────────────────── */
[data-layout="commercial"] .cat-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem;
}
[data-layout="commercial"] .cat-tile {
  position: relative; overflow: hidden; min-height: 132px;
  border: 0; border-radius: var(--radius-lg); padding: 1.3rem 1.2rem;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--tint-2), transparent 60%),
    linear-gradient(160deg, var(--tint), #fff);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
[data-layout="commercial"] .cat-tile::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 10%, transparent);
  pointer-events: none;
}
[data-layout="commercial"] .cat-tile::after {
  content: "→"; position: absolute; top: 1.1rem; right: 1.2rem;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--color-primary); font-weight: 700;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, background .18s ease;
}
[data-layout="commercial"] .cat-tile:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
}
[data-layout="commercial"] .cat-tile:hover::after {
  transform: translateX(3px); background: var(--color-primary); color: var(--color-on-primary);
}
[data-layout="commercial"] .cat-tile__name { font-weight: 800; font-size: 1.12rem; }
[data-layout="commercial"] .cat-tile__count { color: var(--color-muted); font-size: .85rem; }

/* ── Product cards → rounded, shadow-lifted, image zoom on hover ──────────────── */
[data-layout="commercial"] .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem;
}
[data-layout="commercial"] .card {
  border: 0; border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
[data-layout="commercial"] .card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
[data-layout="commercial"] .card__media {
  background: linear-gradient(160deg, var(--tint), #fff);
  padding: 1rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
[data-layout="commercial"] .card__media img { transition: transform .35s ease; }
[data-layout="commercial"] .card:hover .card__media img { transform: scale(1.06); }
[data-layout="commercial"] .card__body { padding: 1rem 1.15rem 1.3rem; }
[data-layout="commercial"] .card__title { font-weight: 700; }
[data-layout="commercial"] .card__price .price__amount,
[data-layout="commercial"] .card__price b {
  color: var(--color-primary); font-weight: 800; font-size: 1.12rem;
}

/* ── Reassurance bar → floating rounded card that overlaps the hero ───────────── */
[data-layout="commercial"] .reassurance {
  background: transparent; border: 0; margin-top: calc(var(--space) * -0.6);
}
[data-layout="commercial"] .reassurance__inner {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: 1.1rem clamp(1rem, 3vw, 2rem); position: relative; z-index: 5;
}
[data-layout="commercial"] .reassurance__icon {
  background: var(--tint); color: var(--color-primary); border-radius: 14px;
}

/* ── Carousel polish: match the AI banner ratio, rounder, deeper ─────────────── */
[data-layout="commercial"] .hero-carousel {
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
[data-layout="commercial"] .hero-carousel__viewport { aspect-ratio: 1920 / 720; }
[data-layout="commercial"] .hero-carousel__title { font-weight: 800; }
[data-layout="commercial"] .hero-carousel__dot.is-active {
  background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 45%, transparent);
}

/* ════════════════════════════════════════════════════════════════════════════
   HOME MODULES (DIY calculator, video) — token-driven, opt-in
   ════════════════════════════════════════════════════════════════════════════ */
.module { margin: clamp(3rem, 6vw, 5.5rem) 0; }
.module__head { max-width: 60ch; margin: 0 auto 2rem; text-align: center; }
.module__eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800;
  color: var(--color-accent); margin: 0 0 .6rem;
}
.module__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 .7rem; }
.module__lead { color: var(--color-muted); font-size: 1.08rem; margin: 0; }

/* Reveal-on-scroll: subtle rise + fade (disabled for reduced motion in JS).
   Gated behind `.js` on <html> so that, without JS (or if the script fails to load),
   the content is ALWAYS visible — a reveal animation must never hide content. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── DIY calculator ──────────────────────────────────────────────────────────── */
.module--diy .diy {
  max-width: 880px; margin: 0 auto; background: #fff;
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 26px 60px rgba(16,38,61,.14), inset 0 0 0 1px rgba(16,38,61,.05);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.module--diy {
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--color-primary) 9%, #fff), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--color-accent) 9%, #fff), transparent 55%),
    color-mix(in srgb, var(--color-primary) 4%, #fff);
  padding: clamp(2rem, 5vw, 3.5rem) var(--space);
  border-radius: var(--radius-xl, 28px);
}
.diy__tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem;
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
  border-radius: 999px; margin: 0 auto 1.6rem; width: fit-content; max-width: 100%;
}
.diy__tab {
  border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700;
  color: var(--color-muted); padding: .6rem 1.2rem; border-radius: 999px;
  transition: background .16s ease, color .16s ease;
}
.diy__tab:hover { color: var(--color-ink); }
.diy__tab.is-active {
  background: #fff; color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(16,38,61,.12);
}
.diy__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.diy__field { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.diy__field > span:first-child { font-size: .92rem; color: var(--color-ink); }
.diy__input {
  display: flex; align-items: center; gap: .4rem; background: var(--color-surface);
  border-radius: 14px; padding: .2rem .9rem .2rem 0; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.diy__input:focus-within { box-shadow: inset 0 0 0 2px var(--color-primary); }
.diy__input input {
  flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-weight: 700;
  padding: .7rem 1rem; color: var(--color-ink);
}
.diy__input input:focus { outline: none; }
.diy__input em { font-style: normal; color: var(--color-muted); font-weight: 600; font-size: .9rem; }
.diy__err { color: #b42318; font-size: .9rem; min-height: 1.2em; margin: 0 0 .8rem; text-align: center; font-weight: 600; }
.diy__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.diy__result {
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 10%, #fff), #fff);
  border-radius: 16px; padding: 1.1rem 1rem; text-align: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.diy__result-label { display: block; font-size: .8rem; color: var(--color-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.diy__result-value { display: block; font-size: 1.45rem; font-weight: 800; color: var(--color-primary); }
.diy__equiv {
  display: block; margin-top: .3rem; font-size: .82rem; font-weight: 700;
  color: var(--color-muted); min-height: 1em;
}
/* Shopping links — turn the recipe into a path to purchase. */
.diy__shop {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .7rem; margin: 1.6rem 0 0;
}
.diy__shop-label { font-weight: 700; color: var(--color-ink); font-size: .95rem; }
.diy__links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.diy__buy {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 700; font-size: .92rem; color: var(--color-primary);
  background: #fff; border-radius: 999px; padding: .55rem 1.1rem;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-primary) 35%, transparent);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.diy__buy:hover {
  background: var(--color-primary); color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.diy__buy-count {
  font-size: .76rem; font-weight: 800; line-height: 1; padding: .2rem .45rem;
  border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 14%, #fff);
  color: var(--color-primary);
}
.diy__buy:hover .diy__buy-count { background: rgba(255,255,255,.22); color: #fff; }
.diy__note { text-align: center; margin: 1.4rem 0 0; }

/* ── Video module ────────────────────────────────────────────────────────────── */
.video-frame {
  position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl, 24px); overflow: hidden; background: #000;
  box-shadow: 0 26px 60px rgba(16,38,61,.20);
}
.video-frame__media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-frame__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s ease, transform .4s ease; }
.video-frame__facade:hover .video-frame__poster { opacity: 1; transform: scale(1.03); }
.video-frame__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); transition: transform .18s ease;
}
.video-frame__facade:hover .video-frame__play { transform: translate(-50%, -50%) scale(1.08); }
/* External variant: age-restricted videos can't play inline (YouTube forbids it), so the
   facade becomes a link that opens YouTube. A bottom ribbon makes the behaviour explicit. */
.video-frame__facade--external { display: block; text-decoration: none; }
.video-frame__external {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .6rem .9rem; font-size: .82rem; font-weight: 600; line-height: 1.2;
  color: #fff; text-align: center; letter-spacing: .01em;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
}

/* Video + SEO/product-link aside, side by side on desktop, stacked on mobile. */
.video-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.video-layout .video-frame { max-width: none; margin: 0; }
.video-aside { display: flex; flex-direction: column; gap: 1rem; }
.video-aside__channel {
  margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--color-primary);
}
.video-aside__text { margin: 0; color: var(--color-muted, #5b6b7d); line-height: 1.6; }
.video-aside__cta { align-self: flex-start; }
/* Inline product hyperlinks inside the AI-written SEO paragraph (home video module). */
.video-aside__inline-link {
  color: var(--color-primary); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent);
  transition: border-color .15s ease, color .15s ease;
}
.video-aside__inline-link:hover {
  border-bottom-color: var(--color-primary);
  color: color-mix(in srgb, var(--color-primary) 80%, #000);
}
@media (max-width: 860px) {
  .video-layout { grid-template-columns: 1fr; }
}

/* Permanent product-page video. */
.product__video .video-frame { max-width: 760px; }

@media (max-width: 720px) {
  [data-layout="commercial"] .reassurance { margin-top: 0; }
  .diy__tabs { width: 100%; justify-content: center; }
}

/* ── Hero carousel: fully-composed AI banners (image-only slides) ─────────────
   The slide service returns a finished 1920×580 banner with copy + products +
   CTA baked in — so we show it edge-to-edge with no text overlay, at its native
   ratio, the whole slide clickable. */
.hero-carousel--banner .hero-carousel__viewport,
[data-layout="commercial"] .hero-carousel--banner .hero-carousel__viewport {
  aspect-ratio: 1920 / 580;
  min-height: 0;
}
.hero-carousel--banner .hero-carousel__slide { display: block; background: var(--color-surface); }
.hero-carousel__link { position: absolute; inset: 0; display: block; }
.hero-carousel.is-single .hero-carousel__link { position: relative; }
.hero-carousel__banner { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel--banner .hero-carousel__dots { bottom: 12px; }
@media (max-width: 720px) {
  /* Keep the composed banner readable on mobile: show it whole rather than crop. */
  .hero-carousel--banner .hero-carousel__viewport { aspect-ratio: 1920 / 720; }
  .hero-carousel--banner .hero-carousel__banner { object-fit: cover; object-position: center; }
}

/* ════════════════════════════════════════════════════════════════════════════
   DESIGN 3.0 — IMAGE-LED UNIVERSE CARDS · NAV MOTION · MICRO-INTERACTIONS
   Token-driven (no per-shop code): every rule reads the shop's design tokens, so
   BOTH the editorial (Vapeur Noire) and commercial (Born To Vape) directions are
   lifted at once. Honours prefers-reduced-motion. Added 06/06/2026.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── "Nos univers": rich image cards instead of empty boxes ───────────────────
   A representative product/brand image fills the card under a brand-tinted
   gradient, the name + count sit bottom-left, an arrow chip animates on hover.
   Replaces the old flat .cat-tile look on the home page for every art direction. */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 1.1rem;
}
.universe-card {
  position: relative;
  display: block;
  min-height: 188px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(16, 38, 61, .10);
  isolation: isolate;
  transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease;
  will-change: transform;
}
.universe-card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: 0 22px 46px rgba(16, 38, 61, .20); }
.universe-card__media { position: absolute; inset: 0; z-index: 0; display: block; background:
  radial-gradient(120% 130% at 100% 0%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 60%),
  linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)), var(--color-surface)); }
.universe-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.universe-card:hover .universe-card__media img { transform: scale(1.07); }
/* Gradient overlay keeps the name legible over any product photo. */
.universe-card__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Fixed dark scrim (theme-independent) so the white name/count stay legible over
     any product photo — regardless of whether the shop's --color-ink is light or
     dark. (An ink-based scrim broke on dark art directions where ink is light.) */
  background: linear-gradient(180deg,
    rgba(8, 8, 12, 0) 0%,
    rgba(8, 8, 12, .12) 40%,
    rgba(8, 8, 12, .82) 100%);
  transition: background .28s ease;
}
.universe-card:hover .universe-card__overlay {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-primary) 18%, transparent) 0%,
    rgba(8, 8, 12, .44) 45%,
    rgba(8, 8, 12, .88) 100%);
}
.universe-card__body { position: absolute; left: 0; right: 3.2rem; bottom: 0; z-index: 2; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.universe-card__name { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.18rem; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.universe-card__count { color: rgba(255,255,255,.88); font-size: .82rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.universe-card__go {
  position: absolute; right: 1rem; bottom: 1.1rem; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transform: translateX(0); transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .28s ease, color .28s ease;
}
.universe-card__go svg { width: 18px; height: 18px; }
.universe-card:hover .universe-card__go { transform: translateX(4px) scale(1.08); background: var(--color-accent); color: #fff; }
/* Text-only fallback (no usable image): a confident branded gradient tile. */
.universe-card.is-textonly .universe-card__media { background:
  linear-gradient(150deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, #000)); }
.universe-card.is-textonly .universe-card__overlay {
  background: radial-gradient(140% 120% at 0% 0%, color-mix(in srgb, #fff 14%, transparent), transparent 60%); }

/* Editorial direction: a touch calmer (less lift, tighter shadow). */
[data-layout="editorial"] .universe-card { border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.10); }
[data-layout="editorial"] .universe-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.18); }

/* Staggered reveal: each card rises slightly after the previous one. */
.js [data-reveal] .universe-card { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-revealed .universe-card {
  opacity: 1; transform: none;
  transition: opacity .55s ease calc(var(--i, 0) * 70ms), transform .55s cubic-bezier(.22,.61,.36,1) calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .universe-card { opacity: 1; transform: none; }
}

/* ── Navigation micro-animations (requested) ─────────────────────────────────
   Animated underline that wipes in from the left on hover/focus, a caret that
   rotates, and submenus that fade + slide in (instead of an instant show). */
.main-nav__item > a { position: relative; }
.main-nav__item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s cubic-bezier(.22,.61,.36,1); opacity: .9;
}
.main-nav__item > a:hover::after,
.main-nav__item > a:focus-visible::after { transform: scaleX(1); }
.main-nav__item > a:hover { text-decoration: none; }
.main-nav__item > a .caret { display: inline-block; transition: transform .26s ease; }
.main-nav__item:hover > a .caret,
.main-nav__item:focus-within > a .caret { transform: rotate(180deg); }

/* Animated submenu: keep it in the layout but transition opacity/transform.
   Overrides the display:none toggle so the panel can animate. */
@media (min-width: 821px) {
  .main-nav__item .submenu {
    display: block;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(8px) scale(.99); transform-origin: top left;
    transition: opacity .2s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility 0s linear .22s;
  }
  .main-nav__item:hover .submenu,
  .main-nav__item:focus-within .submenu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity .22s ease, transform .26s cubic-bezier(.22,.61,.36,1);
  }
  .submenu > li > a { transition: background .16s ease, transform .16s ease, color .16s ease; }
  .submenu > li > a:hover { transform: translateX(3px); color: var(--color-accent); }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav__item > a::after { transition: none; }
  .main-nav__item .submenu { transition: none; transform: none; }
}

/* ── Header micro-interactions ───────────────────────────────────────────────── */
.header-action { transition: background .16s ease, color .16s ease, transform .16s ease; }
.header-action:hover { transform: translateY(-1px); }
.header-action__badge { transition: transform .18s cubic-bezier(.34,1.56,.64,1); }
.header-action:hover .header-action__badge { transform: scale(1.12); }
.site-search { transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease; }
.site-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.site-search button svg { transition: transform .2s ease; }
.site-search button:hover svg { transform: scale(1.12); }
.brand { transition: opacity .18s ease; }
.brand:hover { opacity: .82; text-decoration: none; }

/* Buttons everywhere get a spring + a moving sheen on hover (editorial included). */
.btn { position: relative; overflow: hidden; }
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn--primary:hover::before { left: 140%; }
@media (prefers-reduced-motion: reduce) { .btn--primary::before { display: none; } }

/* ── Page entrance: hero / carousel ease in on first paint ───────────────────── */
@keyframes sf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero,
.js .hero-carousel { animation: sf-rise .65s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
  .js .hero, .js .hero-carousel { animation: none; }
}

/* Product card image: gentle zoom on hover for the editorial direction too. */
[data-layout="editorial"] .card__media img { transition: transform .4s cubic-bezier(.22,.61,.36,1); }
[data-layout="editorial"] .card:hover .card__media img { transform: scale(1.05); }

/* Brand chips / tiles: subtle lift already exists; add image zoom + graceful text. */
.brand-chip img, .brand-tile__media img { transition: transform .35s ease; }
.brand-chip:hover img, .brand-tile:hover .brand-tile__media img { transform: scale(1.06); }

@media (max-width: 560px) {
  .universe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
  .universe-card { min-height: 150px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   EDITORIAL DARK LUXE — "onyx" art direction (data-layout="editorial")
   Vapeur Noire ships a deliberately dark, gold-on-black palette via its design
   tokens, but several home blocks (the DIY atelier especially) hard-code light
   surfaces tuned for the commercial (light) direction. This scoped layer re-skins
   exactly those blocks for the dark direction — gold on onyx — WITHOUT touching the
   commercial direction (Born To Vape stays pixel-identical). Everything reads the
   shop's own tokens, so any future dark art direction inherits it for free.
   Added 08/06/2026.
   ════════════════════════════════════════════════════════════════════════════ */

/* — Section headers: a confident gold accent rule for editorial rhythm — */
[data-layout="editorial"] .section__title,
[data-layout="editorial"] .module__title {
  position: relative; letter-spacing: .01em;
}
[data-layout="editorial"] .section__title { padding-bottom: .7rem; }
[data-layout="editorial"] .section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 52px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* — Product cards: lift the white packshot tile into an intentional framed look
     (subtle elevated surface, rounded tile, warm gold hover) on the dark UI — */
[data-layout="editorial"] .card {
  background: var(--color-surface); border-radius: 14px;
}
[data-layout="editorial"] .card__media { border-radius: 13px 13px 0 0; }
[data-layout="editorial"] .card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  box-shadow: 0 18px 40px color-mix(in srgb, #000 55%, transparent);
}
[data-layout="editorial"] .universe-card {
  box-shadow: 0 10px 26px color-mix(in srgb, #000 45%, transparent);
}
[data-layout="editorial"] .brand-chip { border-radius: 12px; }

/* — DIY atelier: re-skin the light surfaces to gold-on-onyx — */
[data-layout="editorial"] .module--diy {
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--color-primary) 13%, var(--color-background)), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, color-mix(in srgb, var(--color-accent) 11%, var(--color-background)), transparent 55%),
    var(--color-background);
}
[data-layout="editorial"] .module--diy .diy {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px color-mix(in srgb, #000 55%, transparent),
              inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 10%, transparent);
}
[data-layout="editorial"] .diy__tabs {
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-background));
}
[data-layout="editorial"] .diy__tab.is-active {
  background: color-mix(in srgb, var(--color-accent) 18%, var(--color-surface));
  color: var(--color-accent);
  box-shadow: 0 4px 14px color-mix(in srgb, #000 45%, transparent);
}
[data-layout="editorial"] .diy__input { background: var(--color-background); }
[data-layout="editorial"] .diy__result {
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 14%, var(--color-surface)), var(--color-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 20%, transparent);
}
[data-layout="editorial"] .diy__result-value { color: var(--color-accent); }
[data-layout="editorial"] .diy__buy {
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-accent) 40%, transparent);
}
[data-layout="editorial"] .diy__buy:hover {
  background: var(--color-accent); color: var(--color-on-primary);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--color-accent) 30%, transparent);
}
[data-layout="editorial"] .diy__buy-count {
  background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface));
  color: var(--color-accent);
}
[data-layout="editorial"] .diy__buy:hover .diy__buy-count {
  background: color-mix(in srgb, var(--color-on-primary) 22%, transparent);
  color: var(--color-on-primary);
}

/* — Product page (QA dark) : the packshot sits on white (baked into supplier
     photos). On onyx, a raw white rectangle butting the dark page looks cheap.
     Reframe it as a deliberate "light box" — a rounded, gold-rimmed tile that
     floats above the page with depth — and brighten the state colours so stock
     status stays legible on near-black. Commercial (BTV) direction untouched. — */
[data-layout="editorial"] .product__media {
  background: radial-gradient(125% 120% at 50% 0%, #ffffff 0%, #f3f1ec 80%);
  border: 1px solid color-mix(in srgb, var(--color-accent) 24%, var(--color-border));
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 2.2rem);
  box-shadow: 0 30px 64px color-mix(in srgb, #000 60%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .65);
}
[data-layout="editorial"] .product__media img { border-radius: 6px; }
[data-layout="editorial"] .product__stock.in { color: #4ade80; }
[data-layout="editorial"] .product__stock.out { color: #f87171; }
[data-layout="editorial"] .breadcrumb a { color: var(--color-muted); }
[data-layout="editorial"] .breadcrumb a:hover { color: var(--color-accent); text-decoration: none; }
[data-layout="editorial"] .product__variant-select {
  background: var(--color-background);
  border-color: color-mix(in srgb, var(--color-accent) 18%, var(--color-border));
}
/* Product-grid packshot tiles get the same gold hairline so cards read as a set
   of framed gallery plates rather than full-bleed white blocks. */
[data-layout="editorial"] .card__media {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 12%, transparent);
}

/* ── Promo code (cart + checkout) ──────────────────────────────────────────── */
.summary__row--promo dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.summary__row--promo dd { color: var(--color-accent, #1a7f37); font-weight: 600; }
.promo-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 700; background: color-mix(in srgb, var(--color-accent) 16%, transparent);
  color: var(--color-accent); }
.promo-box { margin: 14px 0; }
.promo-form { display: flex; gap: 8px; }
.promo-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--color-border, #d8d8de);
  border-radius: 10px; background: var(--color-surface, #fff); color: inherit; font-size: 15px; }
.promo-applied { color: var(--color-accent, #1a7f37); font-size: 14px; margin: 0 0 6px; }
.promo-error { color: #c0392b; font-size: 14px; margin: 0 0 8px; }

/* ════════════════════════════════════════════════════════════════════════════
   FLOATING CHROME  (opt-in via the `chrome: "floating"` design token)
   No stacked full-bleed banners: the page sits on one branded gradient and every
   piece of chrome (header, category bar, trust strip, sections) floats above it as
   a soft card. Fully palette-driven from --color-primary, so it adapts to any shop
   that opts in. The gradient backdrop is scoped to the home page (data-page="home")
   so inner pages keep their light, readable surfaces; the floating header/nav are
   semi-opaque blue and stay legible over both the gradient and white inner pages.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── One light, airy field for EVERY page (home + inner) ──────────────────────
   Pikali mechanic: a near-white base with two soft brand-tinted glows in the
   corners — never a saturated full-bleed block. Because the SAME field is used on
   the home and on inner pages, there is no two-tone seam between the menu zone and
   the body. The single accent is --color-primary, used only on links, buttons,
   prices and the title underline; nothing else is coloured. White elements (cards,
   menus, trust strip) float on the field with soft shadows. */
body[data-chrome="floating"] {
  background-color: #FBFCFE;
  background-image:
    radial-gradient(42rem 32rem at 92% -10%, color-mix(in srgb, var(--color-primary) 11%, transparent), transparent 62%),
    radial-gradient(34rem 26rem at -8% 4%, color-mix(in srgb, var(--color-primary) 7%, transparent), transparent 58%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Section titles: dark ink with a short brand-blue underline accent. */
body[data-chrome="floating"] .section__title { color: var(--color-ink); }
body[data-chrome="floating"] .section__title::after { background: var(--color-primary); }

/* ── Floating header ─────────────────────────────────────────────────────────
   The header shell is transparent; logo / search / actions sit straight on the
   field and float on it (no banner, no pill). Dark ink text, blue on hover. */
body[data-chrome="floating"] .site-header { background: transparent; border-bottom: 0; padding-inline: var(--space); }
body[data-chrome="floating"] .site-header__inner {
  max-width: var(--wrap); margin: .6rem auto 0; padding: .35rem .2rem;
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
body[data-chrome="floating"] .brand__name,
body[data-chrome="floating"] .header-action,
body[data-chrome="floating"] .header-action__label,
body[data-chrome="floating"] .nav-toggle { color: var(--color-ink); }
body[data-chrome="floating"] .site-search {
  background: #fff; border-color: var(--color-border);
  box-shadow: 0 6px 18px rgba(16,32,55,.06);
}
body[data-chrome="floating"] .site-search:focus-within { border-color: var(--color-primary); }
body[data-chrome="floating"] .site-search input { color: var(--color-ink); }
body[data-chrome="floating"] .site-search input::placeholder { color: var(--color-muted); }
body[data-chrome="floating"] .site-search button { color: var(--color-muted); }
body[data-chrome="floating"] .site-search button:hover { color: var(--color-primary); }
body[data-chrome="floating"] .header-action__badge { background: var(--color-primary); color: #fff; }

/* ── Floating category bar ──────────────────────────────────────────────────
   Transparent bar; links sit straight on the field. ONE single ink tone for every
   link — no item special-cased (no stray black links, no lone blue "Journal"). */
body[data-chrome="floating"] .main-nav {
  background: transparent; border-top: 0; padding-inline: var(--space); margin-top: .15rem;
}
body[data-chrome="floating"] .main-nav > .wrap {
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: .2rem;
}
body[data-chrome="floating"] .main-nav__item > a,
body[data-chrome="floating"] .main-nav__item:last-child > a {
  color: var(--color-ink);
  padding: .7rem .85rem; border-radius: 10px; font-weight: 600;
}
body[data-chrome="floating"] .main-nav__item > a:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary); text-decoration: none;
}
body[data-chrome="floating"] .main-nav__item > a .caret { color: inherit; opacity: .55; }
/* Dropdowns: solid white floating cards. */
body[data-chrome="floating"] .submenu {
  background: #fff; border-color: var(--color-border);
  box-shadow: 0 18px 40px rgba(16,32,55,.16);
}
body[data-chrome="floating"] .submenu > li > a,
body[data-chrome="floating"] .submenu__head,
body[data-chrome="floating"] .submenu__all a { color: var(--color-ink); }
body[data-chrome="floating"] .submenu__sub a { color: var(--color-muted); }
body[data-chrome="floating"] .submenu > li > a:hover { background: var(--color-surface); }

/* ── Floating trust strip ──────────────────────────────────────────────────── */
/* margin-top:0 cancels the commercial layout's negative pull (meant to overlap a
   hero); under the floating chrome the strip sits BELOW the menu bar and needs a
   clear, token-driven gap from it — not the cramped ~0 it had before. */
body[data-chrome="floating"] .reassurance { background: transparent; border-bottom: 0; padding-inline: var(--space); margin-top: 0; }
body[data-chrome="floating"] .reassurance__inner {
  max-width: var(--wrap); margin: calc(var(--space) * 1.3) auto 0; padding: 1rem 1.3rem;
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16,32,55,.08);
}
body[data-chrome="floating"] .reassurance__icon {
  background: color-mix(in srgb, var(--color-primary) 10%, #fff); color: var(--color-primary);
}
body[data-chrome="floating"] .reassurance__title { color: var(--color-ink); }
body[data-chrome="floating"] .reassurance__sub { color: var(--color-muted); }

/* ── Floating cards (product / universe) — soft Pikali-style lift ──────────────
   White cards, generous radius, soft layered shadow, gentle hover lift. Applied
   the SAME way on home and inner pages, so the catalogue reads as one coherent set
   of floating tiles — never a wall of coloured blocks. */
body[data-chrome="floating"] .card,
body[data-chrome="floating"] .universe-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16,32,55,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
body[data-chrome="floating"] .card:hover,
body[data-chrome="floating"] .universe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(16,32,55,.13);
}
body[data-chrome="floating"] .card__media { border-radius: 14px; }
body[data-chrome="floating"] .card__title,
body[data-chrome="floating"] .card__price,
body[data-chrome="floating"] .card__price .price__amount,
body[data-chrome="floating"] .card__price b { color: var(--color-ink); }
body[data-chrome="floating"] .card__brand { color: var(--color-muted); }

/* Brand tiles: white floating plates, dark text. */
body[data-chrome="floating"] .brand-tile,
body[data-chrome="floating"] .brand-chip {
  background: #fff; border: 1px solid var(--color-border);
  box-shadow: 0 8px 22px rgba(16,32,55,.06);
}
body[data-chrome="floating"] .brand-tile__name,
body[data-chrome="floating"] .brand-chip span { color: var(--color-ink); }
body[data-chrome="floating"] .brand-tile__count { color: var(--color-muted); }

/* Mobile: collapsed nav becomes a white floating card. */
@media (max-width: 820px) {
  body[data-chrome="floating"] .main-nav.open > .wrap {
    background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16,32,55,.16); padding: .6rem .8rem;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   PRESTA SKIN — "Vapoteur" storefront template (opt-in via design_tokens.template).
   Pure presentation: re-dresses the SAME markup the classic skin uses, scoped under
   [data-template="presta"] so the historical look is untouched. Everything stays
   palette-driven (reads the shop's own --color-* tokens), so the operator's colour
   editor keeps working. Reference DA: vapoteur-refonte (Inter, prominent centred
   search, full-width mega-menu, white cards floating on a soft grey page).
   ════════════════════════════════════════════════════════════════════════════ */
body[data-template="presta"] {
  /* Retype the whole storefront in Inter (the reference UI typeface). */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Local skin tokens, all derived from the shop palette so colours stay editable. */
  --tpl-page: color-mix(in srgb, var(--color-background) 90%, var(--color-ink) 7%);
  --tpl-card: #ffffff;
  --tpl-radius: 12px;
  --tpl-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --tpl-shadow-hover: 0 16px 40px -18px rgba(16, 24, 40, .35);
  --tpl-line: color-mix(in srgb, var(--color-border) 80%, var(--color-ink) 4%);
  background: var(--tpl-page);
}
[data-template="presta"] h1,
[data-template="presta"] h2,
[data-template="presta"] h3 { font-weight: 700; letter-spacing: -.015em; }

/* ── Header: white, generous, prominent centred search ─────────────────────── */
[data-template="presta"] .site-header {
  background: var(--tpl-card);
  border-bottom: 1px solid var(--tpl-line);
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}
[data-template="presta"] .site-header__inner { min-height: 86px; gap: 1.6rem; }
[data-template="presta"] .brand__name {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.65rem;
  letter-spacing: -.02em; color: var(--color-ink);
}
[data-template="presta"] .site-search {
  flex: 1 1 520px; max-width: 640px; margin-inline: auto;
  border: 2px solid var(--tpl-line); border-radius: 999px;
  background: var(--tpl-page); height: 50px; transition: border-color .15s ease, box-shadow .15s ease;
}
[data-template="presta"] .site-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 16%, transparent);
  background: var(--tpl-card);
}
[data-template="presta"] .site-search input { padding: .7rem .4rem .7rem 1.3rem; font-size: 1rem; }
[data-template="presta"] .site-search button {
  margin: 4px; border-radius: 999px; background: var(--color-primary); color: var(--color-on-primary);
  padding: 0; width: 42px; height: 42px; justify-content: center;
}
[data-template="presta"] .site-search button:hover { color: var(--color-on-primary); filter: brightness(1.06); }
[data-template="presta"] .header-actions { display: flex; gap: 1.4rem; align-items: center; }
[data-template="presta"] .header-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--color-ink); font-size: .72rem; font-weight: 600; position: relative;
}
[data-template="presta"] .header-action:hover { color: var(--color-primary); text-decoration: none; }
[data-template="presta"] .header-action__badge {
  position: absolute; top: -6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--color-accent); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1;
}

/* ── Mega-menu: full-width panel under a centred category bar ───────────────── */
[data-template="presta"] .main-nav {
  border-top: 1px solid var(--tpl-line); background: var(--tpl-card);
}
[data-template="presta"] .main-nav > .wrap { position: relative; }
[data-template="presta"] .main-nav > .wrap > ul {
  justify-content: center; gap: 0 .4rem; flex-wrap: wrap;
}
[data-template="presta"] .main-nav__item { position: static; }
[data-template="presta"] .main-nav__item > a {
  padding: .95rem .95rem; font-weight: 600; font-size: .94rem; color: var(--color-ink);
  position: relative; border-radius: 8px;
}
[data-template="presta"] .main-nav__item > a::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: 6px; height: 2px;
  background: var(--color-accent); border-radius: 2px; transform: scaleX(0);
  transform-origin: left center; transition: transform .22s cubic-bezier(.4,0,.2,1);
}
[data-template="presta"] .main-nav__item:hover > a,
[data-template="presta"] .main-nav__item:focus-within > a { color: var(--color-primary); }
[data-template="presta"] .main-nav__item:hover > a::after,
[data-template="presta"] .main-nav__item:focus-within > a::after { transform: scaleX(1); }
[data-template="presta"] .main-nav__item > a .caret { color: inherit; }

[data-template="presta"] .submenu {
  position: absolute; left: var(--space); right: var(--space); top: 100%; min-width: 0;
  background: var(--tpl-card); border: 1px solid var(--tpl-line);
  border-top: 2px solid var(--color-accent);
  border-radius: 0 0 16px 16px; padding: 1.6rem 1.8rem;
  box-shadow: 0 24px 64px rgba(16,24,40,.15), 0 4px 16px rgba(16,24,40,.06);
  display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .4rem 2rem; z-index: 60;
}
/* Invisible "bridge" that extends the panel's hover region up to the nav bar, so the
   cursor never crosses a dead zone between the link and the panel (works together with
   the JS hover-intent close delay). */
[data-template="presta"] .submenu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px;
}
/* The global "animated submenu" rule drives visibility from :hover only, which closes the
   panel the moment the cursor leaves the link. Here the JS-managed .is-open-menu class (and
   :focus-within) ALSO forces the panel fully visible & interactive, with higher specificity,
   so the hover-intent layer can keep it open while the shopper travels to a category. */
[data-template="presta"] .main-nav__item:hover .submenu,
[data-template="presta"] .main-nav__item.is-open-menu .submenu,
[data-template="presta"] .main-nav__item:focus-within .submenu {
  display: grid; opacity: 1; visibility: visible; pointer-events: auto;
  transform: none; transition: opacity .18s ease;
}
[data-template="presta"] .main-nav__item.is-open-menu > a { color: var(--color-primary); }
[data-template="presta"] .main-nav__item.is-open-menu > a::after { transform: scaleX(1); }
[data-template="presta"] .submenu__all { grid-column: 1 / -1; margin-bottom: .4rem; }
[data-template="presta"] .submenu__all a {
  display: inline-flex; font-weight: 700; color: var(--color-primary);
  padding: .3rem 0; background: none;
}
[data-template="presta"] .submenu__all a:hover { background: none; text-decoration: underline; }
[data-template="presta"] .submenu__group { break-inside: avoid; margin-bottom: .8rem; }
[data-template="presta"] .submenu__head {
  display: block; font-weight: 700; font-size: .92rem; color: var(--color-ink);
  padding: .35rem 0; border-bottom: 1px solid var(--tpl-line); margin-bottom: .35rem;
}
[data-template="presta"] .submenu__head:hover { color: var(--color-primary); background: none; }
[data-template="presta"] .submenu__sub { padding-left: 0; }
[data-template="presta"] .submenu__sub a { padding: .28rem 0; font-size: .86rem; }
[data-template="presta"] .submenu__sub a:hover { color: var(--color-primary); }
[data-template="presta"] .submenu .count { font-weight: 500; }

/* ── Reassurance strip: clean white band of pill items ─────────────────────── */
[data-template="presta"] .reassurance {
  background: var(--tpl-card); border-bottom: 1px solid var(--tpl-line);
}
[data-template="presta"] .reassurance__icon { color: var(--color-primary); }

/* ── Cards / grids: white, soft shadow, lift on hover ──────────────────────── */
[data-template="presta"] .card {
  background: var(--tpl-card); border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius); box-shadow: var(--tpl-shadow);
}
[data-template="presta"] .card:hover { box-shadow: var(--tpl-shadow-hover); transform: translateY(-3px); }
[data-template="presta"] .card__media { background: #fff; padding: .6rem; }
[data-template="presta"] .card__brand { color: var(--color-accent); }
[data-template="presta"] .card__title { font-weight: 600; }
[data-template="presta"] .card__price .price { color: var(--color-ink); }
[data-template="presta"] .cat-tile,
[data-template="presta"] .subcat-card,
[data-template="presta"] .brand-tile,
[data-template="presta"] .article-card {
  background: var(--tpl-card); border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius); box-shadow: var(--tpl-shadow);
}
[data-template="presta"] .cat-tile:hover,
[data-template="presta"] .subcat-card:hover,
[data-template="presta"] .brand-tile:hover,
[data-template="presta"] .article-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 50%, var(--tpl-line));
  box-shadow: var(--tpl-shadow-hover);
}
[data-template="presta"] .product-grid { gap: 1.4rem; }

/* ── Hero / sections ───────────────────────────────────────────────────────── */
[data-template="presta"] .hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 10%, var(--tpl-card)) 0%,
    var(--tpl-card) 70%);
  border: 1px solid var(--tpl-line); border-radius: 18px;
}
[data-template="presta"] .hero__eyebrow { color: var(--color-accent); }

/* ── Buttons / chips ───────────────────────────────────────────────────────── */
[data-template="presta"] .btn { border-radius: 999px; font-weight: 700; }
[data-template="presta"] .btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
[data-template="presta"] .chip { background: var(--tpl-card); border-radius: 999px; box-shadow: var(--tpl-shadow); }
[data-template="presta"] .chip:hover { border-color: var(--color-primary); }

/* ── Catalogue sidebar / product page ──────────────────────────────────────── */
[data-template="presta"] .catalog-aside {
  background: var(--tpl-card); border: 1px solid var(--tpl-line);
  border-radius: var(--tpl-radius); box-shadow: var(--tpl-shadow);
}
[data-template="presta"] .cattree__link.is-active,
[data-template="presta"] .cattree__link:hover { color: var(--color-primary); }
[data-template="presta"] .product__media,
[data-template="presta"] .product__thumb { border-radius: var(--tpl-radius); }
[data-template="presta"] .product__brand { color: var(--color-accent); }

/* ── Footer: clean light, primary accent on hover ──────────────────────────── */
[data-template="presta"] .site-footer {
  background: var(--tpl-card); border-top: 1px solid var(--tpl-line);
}
[data-template="presta"] .link-list a:hover { color: var(--color-primary); }

/* ── Mobile: mega-menu collapses to a simple stacked list ──────────────────── */
@media (max-width: 820px) {
  [data-template="presta"] .submenu {
    position: static; display: block; grid-template-columns: 1fr; box-shadow: none;
    border: 0; border-radius: 0; padding: .2rem 0 .2rem 1rem; background: transparent;
  }
  [data-template="presta"] .main-nav > .wrap > ul { justify-content: flex-start; }
  [data-template="presta"] .site-search { flex-basis: 100%; max-width: none; order: 3; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PRESTA SKIN — interactive components (live search, mega-menu accordions,
   cart drawer, fly-to-cart). All scoped to [data-template="presta"].
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Live search dropdown ──────────────────────────────────────────────────── */
[data-template="presta"] .site-search { position: relative; }
/* The dropdown is `position: fixed` (its top/left/width set by JS from the search box rect)
   so it escapes the sticky header's stacking context — otherwise it gets painted UNDER the
   category nav bar that sits just below the search box. */
[data-template="presta"] .search-suggest {
  position: fixed; z-index: 2000;
  background: var(--tpl-card); border: 1px solid var(--tpl-line); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(16,24,40,.18); padding: .5rem; max-height: 70vh; overflow-y: auto;
}
[data-template="presta"] .search-suggest__brands {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem .35rem .55rem;
  border-bottom: 1px solid var(--tpl-line); margin-bottom: .4rem;
}
[data-template="presta"] .search-suggest__brand {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
  border: 1px solid var(--tpl-line); border-radius: 999px; font-size: .82rem; font-weight: 600;
}
[data-template="presta"] .search-suggest__brand img { width: 20px; height: 20px; object-fit: contain; }
[data-template="presta"] .search-suggest__brand:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
[data-template="presta"] .search-suggest__item {
  display: flex; align-items: center; gap: .8rem; padding: .5rem .55rem; border-radius: 10px;
}
[data-template="presta"] .search-suggest__item:hover { background: var(--tpl-page); text-decoration: none; }
[data-template="presta"] .search-suggest__media {
  width: 46px; height: 46px; flex: 0 0 auto; background: #fff; border: 1px solid var(--tpl-line);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
[data-template="presta"] .search-suggest__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
[data-template="presta"] .search-suggest__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
[data-template="presta"] .search-suggest__brand-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent); }
[data-template="presta"] .search-suggest__name { font-size: .9rem; font-weight: 600; color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-template="presta"] .search-suggest__price { font-size: .85rem; font-weight: 700; color: var(--color-ink); }
[data-template="presta"] .search-suggest__all {
  display: block; text-align: center; padding: .6rem; margin-top: .3rem; font-weight: 700;
  color: var(--color-primary); border-top: 1px solid var(--tpl-line);
}
[data-template="presta"] .search-suggest__all:hover { text-decoration: underline; }
[data-template="presta"] .search-suggest__empty { padding: 1rem; text-align: center; color: var(--color-muted); }

/* ── Mega-menu: thumbnails + closed accordions + "voir plus" ───────────────── */
[data-template="presta"] .submenu__head { display: flex; align-items: center; gap: .6rem; }
[data-template="presta"] .submenu__thumb {
  width: 38px; height: 38px; flex: 0 0 auto; object-fit: cover; border-radius: 8px;
  background: #fff; border: 1px solid var(--tpl-line);
}
[data-template="presta"] .submenu__head-text { flex: 1; min-width: 0; }
[data-template="presta"] .submenu__chevron { color: var(--color-muted); font-size: .8em; transition: transform .2s ease; cursor: pointer; padding: 0 .2rem; }
[data-template="presta"] .submenu__group.has-sub:hover .submenu__chevron,
[data-template="presta"] .submenu__group.is-open .submenu__chevron { transform: rotate(180deg); color: var(--color-primary); }
/* Closed by default, but a category UNFOLDS ITS SUB-LIST ON HOVER (Vapoteur behaviour) —
   the chevron click still pins it open for touch devices that have no hover. */
[data-template="presta"] .submenu__group.has-sub .submenu__sub { display: none; }
[data-template="presta"] .submenu__group.has-sub:hover .submenu__sub,
[data-template="presta"] .submenu__group.has-sub.is-open .submenu__sub { display: block; }
[data-template="presta"] .submenu__group.has-sub:hover > .submenu__head { color: var(--color-primary); }
[data-template="presta"] .submenu__sub li.is-extra { display: none; }
[data-template="presta"] .submenu__group.show-all .submenu__sub li.is-extra { display: list-item; }
[data-template="presta"] .submenu__more { list-style: none; margin: .2rem 0 0; }
[data-template="presta"] .submenu__more-btn {
  background: none; border: 0; padding: .25rem 0; font: inherit; font-size: .82rem; font-weight: 700;
  color: var(--color-primary); cursor: pointer;
}
[data-template="presta"] .submenu__more-btn:hover { text-decoration: underline; }

/* ── Fly-to-cart ghost + cart icon bump ────────────────────────────────────── */
.fly-ghost {
  position: fixed; z-index: 2000; pointer-events: none; object-fit: contain;
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); background: #fff;
  transition: transform .72s cubic-bezier(.5,-0.2,.3,1), opacity .72s ease;
  will-change: transform, opacity;
}
[data-template="presta"] .header-action.is-bumped svg { animation: cart-bump .55s ease; }
@keyframes cart-bump {
  0%,100% { transform: scale(1); }
  30% { transform: scale(1.32); }
  60% { transform: scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .fly-ghost { display: none; }
  [data-template="presta"] .header-action.is-bumped svg { animation: none; }
}

/* ── Slide-in cart drawer ──────────────────────────────────────────────────── */
.cart-drawer-backdrop {
  position: fixed; inset: 0; z-index: 1090; background: rgba(10,12,20,.45);
  opacity: 0; transition: opacity .26s ease;
}
.cart-drawer-backdrop.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 1100; height: 100%; width: min(400px, 92vw);
  background: var(--tpl-card, #fff); box-shadow: -18px 0 50px rgba(16,24,40,.22);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--tpl-line, #eee);
}
.cart-drawer__title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.cart-drawer__close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--color-muted, #777); padding: .2rem .4rem; }
.cart-drawer__close:hover { color: var(--color-ink, #111); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.cart-drawer__empty { text-align: center; color: var(--color-muted, #777); padding: 3rem 1rem; }
.cart-drawer__ship {
  background: color-mix(in srgb, var(--color-primary) 10%, #fff); color: var(--color-ink);
  border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; font-weight: 600; margin-bottom: .9rem;
}
.cart-drawer__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.cart-drawer__line { display: flex; gap: .8rem; align-items: center; }
.cart-drawer__media { width: 60px; height: 60px; flex: 0 0 auto; background: #fff; border: 1px solid var(--tpl-line, #eee); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-drawer__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-drawer__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-drawer__name { font-size: .9rem; font-weight: 600; color: var(--color-ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-drawer__qty { font-size: .82rem; color: var(--color-muted); }
.cart-drawer__right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-drawer__total { font-weight: 700; font-size: .92rem; }
.cart-drawer__remove { background: none; border: 0; color: var(--color-muted, #999); cursor: pointer; font-size: .9rem; padding: 0 .2rem; }
.cart-drawer__remove:hover { color: var(--color-accent, #c00); }
.cart-drawer__foot { padding: 1.1rem 1.2rem; border-top: 1px solid var(--tpl-line, #eee); display: flex; flex-direction: column; gap: .55rem; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cart-drawer__subtotal strong { font-size: 1.2rem; }
.cart-drawer__ship-line { display: flex; justify-content: space-between; font-size: .85rem; color: var(--color-muted); }
.cart-drawer__view, .cart-drawer__checkout { width: 100%; }
