/* ============================================================
   shop.html : la boutique, dans
   l'esprit des pages catalogue d'attio.com (apps, templates) : titre sobre,
   recherche en tete, menu de filtres colle a gauche, grille de cartes a
   bordure fine, une seule couleur d'accent.
   Nav, footer, jetons et boutons viennent de help.css (composants de
   lp-alt-1). Cette page NE charge PAS style.css : les regles du moteur de
   manette dont les apercus ont besoin sont recopiees plus bas (bloc
   "copie de style.css"), a garder alignees.
   Le script de la page est celui de shop.html : aucune classe ni id pilote
   par le script n'est renomme (product-card, mini-mount, shop-grid, etc.).
   ============================================================ */

/* ---- Nav : panier ---- */
.nav-cart { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink-2);
  transition: border-color .2s ease; }
.nav-cart:hover, .nav-cart:focus-visible { border-color: #6f7988; }
.nav-cart:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.nav-cart svg { width: 16px; height: 16px; }
.cart-badge { position: absolute; top: -6px; right: -6px; display: none; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 10px/14px var(--font-mono); text-align: center; }
.cart-badge.is-visible { display: block; }

/* ---- Mise en page ---- */
.sa { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.sa-hero { max-width: 1240px; margin: 0 auto; padding: 88px 0 40px; }
.sa-hero .pill { display: inline-flex; margin-bottom: 20px; }
.sa-hero h1 { max-width: 720px; font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -.015em; color: var(--ink); }
.sa-hero p { max-width: 560px; margin-top: 16px; font: 500 20px/28px var(--font-body); letter-spacing: -.01em; color: var(--muted); }
.sa-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font: 500 13px/20px var(--font-body); color: var(--muted); }
.sa-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.sa-hero-meta strong { color: var(--ink); font-weight: 600; }
.sa-hero-meta .feat-check { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #f1f2f4; color: #6f7988; }
.sa-hero-meta .feat-check svg { width: 11px; height: 11px; }

.sa-body { max-width: 1240px; margin: 0 auto; padding: 24px 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 48px; }

/* ---- Menu lateral ---- */
.sa-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; padding-top: 8px; }
.sa-side h2 { margin: 0 0 6px; padding: 0 10px; font: 500 12px/18px var(--font-body); color: var(--faint); }
.sa-side-group + .sa-side-group { margin-top: 24px; }
.sa-filters { display: flex; flex-direction: column; gap: 2px; }
.sa-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  font: 500 14px/20px var(--font-body); color: var(--ink-2); text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sa-filter:hover { background: var(--hover); }
.sa-filter[aria-pressed="true"] { background: #f1f2f4; color: var(--ink); }
.sa-filter:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 1px; }
.sa-filter .n { font: 500 12px/16px var(--font-mono); color: var(--faint); }
.sa-filter[aria-pressed="true"] .n { color: var(--muted); }
.sa-filter[hidden] { display: none; }
.sa-side-card { margin-top: 32px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--fill); }
.sa-side-card b { display: block; font: 600 14px/20px var(--font-body); color: var(--ink); }
.sa-side-card p { margin-top: 4px; font: 400 13px/19px var(--font-body); color: var(--muted); }
.sa-side-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font: 500 13px/18px var(--font-body); color: var(--link); }
.sa-side-card a:hover { text-decoration: underline; }
.sa-side-card svg { width: 12px; height: 12px; }

/* ---- Barre d'outils : recherche + resultat ---- */
.sa-main { min-width: 0; }
.shop-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; }
.shop-search:focus-within { border-color: var(--brand-bright); box-shadow: 0 0 0 3px rgba(79,124,255,.14); }
.shop-search svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.shop-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 400 14px/20px var(--font-body); color: var(--ink); }
.shop-search input::placeholder { color: var(--faint); }
.shop-search input::-webkit-search-cancel-button { display: none; }
.shop-search kbd { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--fill);
  font: 500 11px/1 var(--font-mono); color: var(--muted); }
.shop-search-clear { flex: none; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: 500 12px/16px var(--font-body); color: var(--muted); cursor: pointer; }
.shop-search-clear:hover { color: var(--ink); border-color: var(--field); }
.shop-search-clear[hidden], .shop-search-clear:not([hidden]) ~ kbd { display: none; }
.sa-toolbar-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 20px; margin-top: 12px; font: 500 13px/20px var(--font-body); color: var(--muted); }
.sa-reset { border: 0; padding: 0; background: none; font: 500 13px/20px var(--font-body); color: var(--link); cursor: pointer; }
.sa-reset[hidden] { display: none; }
.sa-reset:hover { text-decoration: underline; }

/* ---- Sections ---- */
.shop-section { margin-top: 40px; }
.shop-section[hidden] { display: none; }
.shop-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.shop-section-head h2 { font: 600 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.shop-section-head p { margin-top: 4px; font: 400 14px/20px var(--font-body); color: var(--muted); }
.shop-section-count { flex: none; font: 500 12px/18px var(--font-mono); color: var(--faint); }
.shop-loading { padding: 64px 0; text-align: center; font: 500 13px/20px var(--font-body); color: var(--faint); }
.shop-search-empty { margin-top: 28px; padding: 48px 24px; border: 1px dashed var(--field); border-radius: 16px; text-align: center; }
.shop-search-empty[hidden] { display: none; }
.shop-search-empty p { font: 400 15px/22px var(--font-body); color: var(--muted); }
.shop-search-empty b { color: var(--ink); font-weight: 500; }
.shop-search-empty button { margin-top: 16px; }

/* ---- Grille et cartes, facon framer.com/marketplace ----
   Visuel sans bordure aux coins arrondis, puis nom et createur a gauche,
   prix en pastille a droite. Pas de bouton panier sur la carte : un clic
   ouvre la fiche du design, ou se fait l'achat. */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 36px 20px; }
.product-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "media media" "title price" "maker price"; column-gap: 12px; cursor: pointer; }
.shop-grid .product-card.is-search-hidden { display: none; }
/* La cible du toucher est le lien, jamais un calque SVG de la manette (mobile). */
.shop-grid .shop-card-preview-link .mini-mount { pointer-events: none; }
.shop-card-preview-link { grid-area: media; display: block; border-radius: 16px; }
.shop-card-preview-link:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }
.product-card .mini-mount { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; margin: 0; border-radius: 16px;
  background: #f3f4f6; overflow: hidden; isolation: isolate; contain: paint; transition: box-shadow .2s ease; }
.product-card:hover .mini-mount { box-shadow: inset 0 0 0 1px rgba(16,24,40,.08); }
.product-card .mini-mount img { width: 100%; height: 100%; object-fit: contain; }
.product-card .mini-live-preview { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  overflow: hidden; isolation: isolate; contain: paint; clip-path: inset(0); pointer-events: none; opacity: 1; transition: opacity .24s ease; }
.product-card .mini-live-preview .gp-svg { display: block; width: 100%; height: 100%; max-width: none; max-height: none; transform: scale(.98); transform-origin: 50% 48%; }
.product-card .mini-live-preview [data-part="dpad_right"] .gp-btn-img { clip-path: inset(.7px); }
.product-card .mini-static-thumb { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .24s ease; pointer-events: none; }
.product-card .mini-mount.has-static-thumb:not(.is-live-preview) .mini-live-preview { opacity: 0; }
.product-card .mini-mount.is-live-preview .mini-static-thumb { opacity: 0; }
.product-card .mini-preview-loading { position: absolute; z-index: 4; top: 12px; right: 12px; display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 0; pointer-events: none; }
.product-card .mini-preview-loading::before { content: ""; width: 10px; height: 10px; border: 1.5px solid #d6dbe3; border-top-color: var(--muted); border-radius: 50%; animation: sa-spin .72s linear infinite; }
.product-card .mini-preview-loading { display: none; } /* le chargement est l'anneau centre */
.product-card .mini-mount.is-preview-error .mini-preview-loading { display: inline-grid; }
.product-card .mini-mount.is-preview-error .mini-preview-loading { width: auto; font-size: 11px; color: var(--muted); }
.product-card .mini-mount.is-preview-error .mini-preview-loading::before { display: none; }
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* Chargement d'un design (2026-10-01) : l'animation de la marque (brand-loader.js,
   element .mini-bl ajoute a chaque carte) remplace l'anneau et le reflet. Memes
   conditions qu'avant : seulement pour une carte en file, en chargement ou en rendu,
   jamais pour les cartes plus bas pas encore demandees (aucun calcul au defilement). */
.product-card .mini-bl { position: absolute; top: 50%; left: 50%; z-index: 4; transform: translate(-50%, -50%); display: none; pointer-events: none; }
.product-card:is([data-preview-queued], [data-preview-loading], [data-preview-loaded]):not([data-product-type="bundle"]) .mini-mount:not(.is-live-preview):not(.is-preview-error):not(.has-static-thumb) .mini-bl,
.product-card[data-product-type="bundle"]:not([data-preview-loaded="true"]) .mini-mount:not(.has-static-thumb) .mini-bl,
.product-card .mini-mount.has-static-thumb.is-rendering .mini-bl { display: inline-flex; }
.gp-preview-fade.is-rendering > .mini-bl { opacity: 1; }
.product-card .mini-mount.has-static-thumb.is-rendering > * { opacity: 1; }
.product-card .mini-mount.has-static-thumb.is-rendering .mini-static-thumb { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .product-card .mini-mount::before { animation-duration: 2.4s; } .product-card .mini-mount::after { animation-duration: 3s; } }

.shop-card-features { position: absolute; z-index: 5; left: 12px; bottom: 12px; display: flex; gap: 4px; }
.card-flag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; background: rgba(255,255,255,.94);
  font: 500 11px/1 var(--font-body); color: var(--ink-2); white-space: nowrap; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.card-flag svg { width: 12px; height: 12px; }
.card-flag.is-animated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22a06b; }
.product-card.is-shop-featured::before { content: "New"; position: absolute; z-index: 6; top: 12px; left: 12px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 7px; background: var(--navy); color: #fff; font: 500 11px/1 var(--font-body); }

.shop-card-title-row { grid-area: title; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 12px; }
.shop-card-title-row h4 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/20px var(--font-body); letter-spacing: -.005em; color: var(--ink); }
.shop-card-model { display: none; }
.product-card .maker { grid-area: maker; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/19px var(--font-body); color: var(--muted); }
.product-card .maker a:hover { color: var(--ink); }
/* Designs officiels : le script n'ecrit pas de ligne createur, on l'affiche ici */
.product-card[data-maker="Padcraft"]::after { content: "Padcraft"; grid-area: maker; font: 400 13px/19px var(--font-body); color: var(--muted); }
.product-card .price-row { grid-area: price; align-self: center; margin-top: 12px; }
.product-card .price { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: #f1f2f4; font: 600 12px/12px var(--font-body); color: var(--ink); white-space: nowrap; }
.product-card .price.is-free-price { color: #1f7a4d; background: #e8f5ee; }
.product-card .price .was { margin-right: 6px; font-weight: 500; color: var(--faint); text-decoration: line-through; }
.product-card .partner-price-main { display: flex; align-items: baseline; gap: 6px; }
.product-card .partner-price .was { margin: 0; }
.product-card .partner-price-badge { display: none; }
/* Plus de bouton panier ni de bouton "View design" sur la carte */
.card-actions { display: none !important; }

/* Outils admin (uniquement pour un compte admin) */
.btn-admin-delete, .btn-admin-edit, .btn-admin-rename { position: absolute; top: 14px; z-index: 7; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(28,29,31,.78);
  color: #fff; font: 500 11px/24px var(--font-body); cursor: pointer; }
.btn-admin-delete { right: 14px; width: 24px; padding: 0; }
.btn-admin-edit { right: 44px; }
.btn-admin-rename { right: 112px; }
.btn-admin-delete:hover { background: #c53030; }
.btn-admin-edit:hover, .btn-admin-rename:hover { background: var(--navy); }

/* Bundles (apercu compose par shop-bundle-preview.js) */
.bundle-shop-preview { position: relative; display: flex; align-items: center; width: 100%; background: transparent; isolation: isolate; overflow: hidden; }
.mini-mount > .bundle-shop-preview { position: absolute; inset: 0; }
.bundle-shop-preview .pc-bundle { opacity: 0; pointer-events: none; }
.bundle-shop-preview.is-ready .pc-bundle { opacity: 1; }
.bundle-shop-loading { margin: auto; padding: 12px; font-size: 11px; color: var(--muted); text-align: center; }

/* ---- Comment ca marche ---- */
.sa-steps { margin-top: 96px; }
.sa-steps > h2, .designs-index h2 { font: 600 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.sa-steps > p { margin-top: 4px; font: 400 14px/20px var(--font-body); color: var(--muted); }
.sa-steps ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sa-steps li { padding: 22px 22px 24px; }
.sa-steps li + li { border-left: 1px solid var(--line); }
.sa-steps .num { font: 500 12px/18px var(--font-mono); color: var(--faint); }
.sa-steps b { display: block; margin-top: 18px; font: 600 16px/22px var(--font-body); color: var(--ink); }
.sa-steps li p { margin-top: 6px; font: 400 14px/21px var(--font-body); color: var(--muted); }
.sa-steps li a { color: var(--link); }
.sa-steps li a:hover { text-decoration: underline; }

/* ---- Index A a Z (genere par scripts/tools-prerender-designs.js) ---- */
.designs-index { margin-top: 96px; }
.designs-index ul { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); columns: 3; column-gap: 32px; }
.designs-index li { break-inside: avoid; padding: 5px 0; font: 400 13px/19px var(--font-body); color: var(--faint); }
.designs-index a { font-weight: 500; color: var(--ink-2); }
.designs-index a:hover { color: var(--link); }

/* ---- Bandeau final ---- */
.sa-cta { max-width: 1240px; margin: 120px auto 0; padding: 56px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--fill); text-align: center; }
.sa-cta h2 { font: 600 36px/40px var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.sa-cta p { max-width: 460px; margin: 12px auto 0; font: 400 16px/24px var(--font-body); color: var(--muted); }
.sa-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.sa + .footer { margin-top: 120px; }

/* ---- Confirmation d'ajout au panier ---- */
.cart-toast { position: fixed; bottom: 24px; left: 50%; z-index: 200; display: flex; align-items: center; gap: 10px; min-width: min(420px, calc(100vw - 32px)); padding: 8px 8px 8px 14px;
  border-radius: 14px; background: var(--ink); color: #fff; font: 500 13px/18px var(--font-body); box-shadow: 0 16px 40px rgba(16,24,40,.22);
  opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(16px); transition: opacity .22s ease, transform .22s ease; }
.cart-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cart-toast-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #22a06b; color: #fff; font-size: 12px; }
.cart-toast-copy { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.cart-toast-copy strong { overflow: hidden; max-width: 220px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast-copy small { font-size: 11px; color: rgba(255,255,255,.6); }
.cart-toast-link { height: 32px; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 500; line-height: 32px; white-space: nowrap; }
.cart-toast-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.6); font-size: 18px; cursor: pointer; }
.cart-toast-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---- Performance du defilement ----
   1. Chaque apercu termine a sa propre couche graphique : pendant le defilement, le
      navigateur le deplace sans le redessiner (une manette SVG a masques et fusions
      coute cher a repeindre).
   2. Nav opaque sur cette page : le flou devait recalculer, a chaque image du
      defilement, les manettes animees qui passaient dessous.
   3. Les cartes affichent une image fixe du design (assets/shop/, voir
      scripts/tools-build-shop-stills.js) : plus de moteur dans la grille. */
.shop-grid .mini-mount.is-live-preview .mini-live-preview { transform: translateZ(0); will-change: transform; }
.nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ============================================================
   Copie de style.css : rendu de la manette (gamepad-engine.js).
   Sans ces regles, les liseres, les teintes et les fondus des apercus
   ne s'affichent pas. A garder alignees sur style.css.
   ============================================================ */
.gp-mount { display: flex; align-items: center; justify-content: center; }
.gp-svg { width: 100%; height: auto; max-width: 520px; overflow: visible; }
.gp-strip-material { background-size: 300% 100%; background-position: 0 0; }
.gp-strip-shine { animation: gp-strip-shine var(--gp-shine-dur, var(--gp-strip-dur, 8s)) linear infinite; mix-blend-mode: screen; }
@keyframes gp-strip-shine { to { stroke-dashoffset: 0; } }
.gp-strip-shine--gold { animation-name: gp-strip-gold-trail; animation-timing-function: linear; mix-blend-mode: screen; will-change: stroke-dashoffset; }
@keyframes gp-strip-gold-trail { from { stroke-dashoffset: var(--gp-gold-start); } to { stroke-dashoffset: var(--gp-gold-end); } }
.gp-strip-gold-base { animation: none; }
.gp-strip--flow { animation: gp-strip-flow var(--gp-strip-dur, 8s) linear infinite; }
@keyframes gp-strip-flow { to { background-position: -200% 0; } }
.gp-strip--pulse { animation: gp-strip-pulse var(--gp-strip-dur, 8s) ease-in-out infinite; }
@keyframes gp-strip-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.gp-strip--comet { animation: gp-strip-comet var(--gp-strip-dur, 8s) linear infinite; }
@keyframes gp-strip-comet { to { background-position: -200% 0; } }
.gp-strip--energy { background-size: 260% 100% !important; animation: gp-strip-energy var(--gp-strip-dur, 8s) linear infinite; }
@keyframes gp-strip-energy { 0% { background-position: 100% 50%; opacity: .60; } 38% { opacity: .60; } 45% { background-position: -160% 50%; opacity: 1; } 100% { background-position: -160% 50%; opacity: .60; } }
.gp-strip--surge { background-size: 320% 100% !important; animation: gp-strip-surge var(--gp-strip-dur, 8s) linear infinite; animation-delay: var(--gp-strip-delay, 0s); }
@keyframes gp-strip-surge { 0%, 12% { background-position: 120% 50%; opacity: .48; } 42% { opacity: 1; } 72%, 100% { background-position: -220% 50%; opacity: .58; } }
@media (prefers-reduced-motion: reduce) {
  .gp-strip--flow, .gp-strip--pulse, .gp-strip--comet, .gp-strip--energy, .gp-strip--surge { animation-duration: calc(var(--gp-strip-dur, 8s) * 2); }
  .gp-strip-shine { animation-duration: calc(var(--gp-shine-dur, var(--gp-strip-dur, 8s)) * 2); }
}
.gp-bg-variant-a, .gp-bg-variant-b { transition: opacity .3s ease; }
.gp-tint { transition: opacity .06s ease, fill .2s ease; pointer-events: none; }
.gp-tint[data-key="body"] { mix-blend-mode: multiply; }
.gp-tint:not([data-key="body"]) { mix-blend-mode: normal; }
.gp-btn-img, .gp-stick-wrap, .gp-skin-img, .gp-bg-photo, .gp-touchpad-skin { pointer-events: none; }
.gp-preview-fade { transition: opacity .28s ease; }
.gp-preview-fade.is-rendering > * { opacity: 0; }
.gp-preview-fade > * { opacity: 1; transition: opacity .28s ease; }
.gp-preview-fade.is-rendering > .mini-preview-loading { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sa-hero { padding-top: 64px; }
  .sa-hero h1 { font-size: 44px; line-height: 48px; }
  .sa-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* Le menu lateral devient une rangee de filtres qui defile */
  .sa-side { position: sticky; top: var(--nav-h); z-index: 20; margin: 0 -24px; padding: 10px 24px; background: #fff;
    border-bottom: 1px solid var(--line-2); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .sa-side::-webkit-scrollbar { display: none; }
  .sa-side-group, .sa-side-group + .sa-side-group { display: contents; margin: 0; }
  .sa-side h2, .sa-side-card { display: none; }
  .sa-filters { display: contents; }
  .sa-filter { flex: none; width: auto; height: 32px; border: 1px solid var(--line); border-radius: 999px; }
  .sa-filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
  .sa-filter[aria-pressed="true"] .n { color: rgba(255,255,255,.6); }
  .sa-main { padding-top: 20px; }
  .sa-steps ol { grid-template-columns: minmax(0, 1fr); }
  .sa-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .designs-index ul { columns: 2; }
}
@media (max-width: 640px) {
  .sa { padding: 0 16px; }
  .sa-side { margin: 0 -16px; padding: 10px 16px; }
  .sa-hero { padding: 48px 0 28px; }
  .sa-hero h1 { font-size: 36px; line-height: 40px; }
  .sa-hero p { font-size: 17px; line-height: 25px; }
  .shop-grid { gap: 24px 10px; }
  .product-card { column-gap: 6px; }
  .product-card .mini-mount { border-radius: 12px; }
  .shop-card-title-row h4 { font-size: 13px; line-height: 18px; }
  .product-card .maker, .product-card[data-maker="Padcraft"]::after { font-size: 11px; }
  .product-card .price { height: 22px; padding: 0 7px; font-size: 11px; }
  .card-flag { height: 18px; padding: 0 6px; font-size: 10px; }
  .shop-card-features { left: 8px; bottom: 8px; }
  .product-card.is-shop-featured::before { top: 8px; left: 8px; height: 18px; font-size: 10px; }
  .designs-index ul { columns: 1; }
  .sa-cta { padding: 40px 20px; }
  .sa-cta h2 { font-size: 28px; line-height: 32px; }
  .shop-search input { font-size: 16px; }
  .shop-search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card .mini-mount, .cart-toast { transition-duration: .01s; }
  .product-card .mini-preview-loading::before { animation-duration: 2s; }
}
