/* ============================================================
   Shop face buyer (public profile landing) — styles
   Préfixe : .zh-shop-*  (root scopé sous .zh-shop-root)
   Inclut : en-tête de section, recherche, puces de type, grille, cartes,
            fiche (fenêtre / feuille du bas), tiroir, adresse, totaux,
            succès, toasts.
   Page vitrine (23 oct 2026, d'après « ZIC Profil Nouvelle version ») :
   grille 2 colonnes < 600 px puis auto-fill minmax(220px, 1fr) ; carte
   image 1:1, coins 16 px ; fiche en fenêtre ≥ 720 px, feuille du bas
   < 720 px (composant .zh-shop-dlg* en fin de fichier).
   Thème : jetons --zh-shop-* redéclarés en var(--pp-*) sur la racine ET sur
   chaque couche <body> → rendu clair / sombre identique quel que soit le
   parent. Aucun overflow / transform / z-index sur les ancêtres du panneau.
   ============================================================ */

/* Hidden override : indispensable car `.zh-shop-root` définit `display: flex`
   plus loin (même spécificité que `[hidden]`, gagne par ordre déclaration). */
.zh-shop-root[hidden],
.zh-shop-dlg[hidden],
.zh-shop-drawer-overlay[hidden],
.zh-shop-success-overlay[hidden],
.zh-shop-gallery-lightbox[hidden],
.zh-shop-btn[hidden],
.zh-shop-search[hidden],
.zh-shop-tabs[hidden],
.zh-shop-tkt-filters[hidden],
.zh-shop-card[hidden],
.zh-shop-card-cta[hidden],
.zh-shop-card-owned[hidden],
.zh-shop-sr[hidden],
.zh-shop-detail-ticket[hidden],
.zh-shop-detail-tkt[hidden],
.zh-shop-detail-tkt-where[hidden],
.zh-shop-detail-qty[hidden],
.zh-shop-detail-contents[hidden],
.zh-shop-card-tkt-state[hidden],
.zh-shop-tkt-reset[hidden],
.zh-shop-search-clear[hidden],
.zh-shop-filter-empty[hidden],
.zh-shop-gallery-nav[hidden],
.zh-shop-gallery-counter[hidden],
.zh-shop-cart-row-error[hidden],
.zh-shop-cart-row-fix[hidden],
.zh-shop-variant-missing[hidden],
/* Affiche vidéo dérivée en 404 → placeholder ; barre d'actions sans bouton. */
.zh-shop-card-image img[hidden],
.zh-shop-card-image-placeholder[hidden],
.zh-shop-detail-actions[hidden] {
  display: none !important;
}

/* Jetons boutique — la section (dans le panneau) ET les couches montées sur
   <body> (fiche, tiroir, succès, visionneuse, toasts) les redéclarent depuis
   les jetons du profil (--pp-*, posés sur :root par public-profile-theme.css)
   : même rendu clair / sombre partout. `.zh-shop-root[data-zh-shop-root]`
   (0,2,0) l'emporte sur l'ancien re-thème `.zh-ppf-body .zh-shop-root`. */
.zh-shop-root[data-zh-shop-root],
.zh-shop-dlg,
.zh-shop-drawer-overlay,
.zh-shop-success-overlay,
.zh-shop-gallery-lightbox,
.zh-shop-toasts {
  /* Boutons pleins = accent Customize du créateur (jetons dérivés de
     public-profile-page.css, contraste ≥ 4,5 par thème) ; repli marque
     #7B3FF2 / texte blanc (5,48:1). */
  --zh-shop-primary: var(--pp-accent-solid, #7b3ff2);
  --zh-shop-primary-dk: color-mix(in srgb, var(--pp-accent-solid, #7b3ff2) 86%, #000);
  --zh-shop-on-primary: var(--pp-accent-on, #ffffff);
  /* Texte d'accent posé sur une carte (#6D28D9 clair / #A78BFA sombre). */
  --zh-shop-accent-text: var(--pp-link, #6d28d9);
  --zh-shop-text: var(--pp-ink, var(--pp-text, #1f1340));
  --zh-shop-text-soft: var(--pp-mut, var(--pp-text-muted, #6b6383));
  /* Même valeur que « soft » : un gris plus pâle tomberait sous 4,5:1. */
  --zh-shop-text-mute: var(--pp-mut, var(--pp-text-muted, #6b6383));
  --zh-shop-border: var(--pp-line, var(--pp-border, #e7e2f5));
  --zh-shop-border-strong: var(--pp-line-strong, var(--pp-border-strong, #d9d3ea));
  --zh-shop-border-soft: var(--pp-line, var(--pp-border, #f0eef9));
  --zh-shop-bg: var(--pp-card, #ffffff);
  --zh-shop-bg-soft: var(--pp-card-light, var(--pp-bg-soft, #f4f1fc));
  --zh-shop-bg-row: var(--pp-card-light, var(--pp-bg-soft, #faf9ff));
  /* Puce active / bouton « encre » (template : fond ink, texte blanc). */
  --zh-shop-ink-bg: var(--pp-cta-bg, var(--pp-text, #1f1340));
  --zh-shop-ink-text: var(--pp-cta-ink, var(--pp-bg, #ffffff));
  --zh-shop-success: #16a34a;
  --zh-shop-success-bg: #dcfce7;
  --zh-shop-error: var(--pp-danger, #e11d48);
  --zh-shop-error-bg: #ffe4e6;
  /* Stock bas : ambre lisible en sombre (défaut) ; foncé en clair (plus bas). */
  --zh-shop-warn: #fbbf24;
  --zh-shop-radius-sm: 10px;
  --zh-shop-radius-md: 14px;
  --zh-shop-radius-card: 16px;
  --zh-shop-radius-lg: 20px;
  --zh-shop-shadow-card: none;
  --zh-shop-shadow-card-hover: 0 16px 30px -18px var(--pp-shadow, rgba(31, 19, 64, 0.45));
  --zh-shop-shadow-elev: 0 30px 80px -20px var(--pp-shadow, rgba(15, 8, 38, 0.35));
  --zh-shop-font-head: var(--pp-font-head, "Space Grotesk"), "DM Sans", sans-serif;
}

/* Thème clair (choix explicite ou système sans choix) : ambre foncé 5:1. */
:root[data-pp-theme="light"] .zh-shop-root[data-zh-shop-root],
:root[data-pp-theme="light"] .zh-shop-dlg {
  --zh-shop-warn: #b45309;
}
@media (prefers-color-scheme: light) {
  :root:not([data-pp-theme]) .zh-shop-root[data-zh-shop-root],
  :root:not([data-pp-theme]) .zh-shop-dlg {
    --zh-shop-warn: #b45309;
  }
}

.zh-shop-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--zh-shop-text);
  box-sizing: border-box;
}

.zh-shop-root *,
.zh-shop-root *::before,
.zh-shop-root *::after {
  box-sizing: inherit;
}

/* Texte réservé aux lecteurs d'écran (nombre de résultats, « Au lieu de »). */
.zh-shop-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── En-tête de section : titre + « N produits · paiement… » + recherche ─ */

.zh-shop-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.zh-shop-header-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.zh-shop-title {
  margin: 0;
  font-family: var(--zh-shop-font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--zh-shop-text);
}

.zh-shop-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--zh-shop-text-soft);
}

/* ─── Vitrine réglée par le vendeur (« Paramètres de la boutique ») ──────
   Logo 48 px avant le titre (logo de la boutique → avatar → initiales),
   puis bloc À propos + WhatsApp sous l'en-tête. Absents sans réglage :
   l'en-tête reste celui d'avant. */
.zh-shop-logo {
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--zh-shop-border);
  background: var(--zh-shop-bg-soft);
  color: var(--zh-shop-text);
}
.zh-shop-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zh-shop-logo img[hidden],
.zh-shop-logo-initials[hidden] {
  display: none;
}
.zh-shop-logo-initials {
  font-family: var(--zh-shop-font-head);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
/* Le texte reste À CÔTÉ du logo (base 0 : un long nom ne le fait plus passer
   à la ligne sous la vignette) ; nom long sans espace (80 caractères au plus)
   coupé au besoin. */
.zh-shop-logo + .zh-shop-header-text {
  flex: 1 1 0%;
}
.zh-shop-logo + .zh-shop-header-text .zh-shop-title {
  overflow-wrap: anywhere;
}

.zh-shop-intro {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
  flex-shrink: 0;
}
.zh-shop-about {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--zh-shop-text-soft);
  overflow-wrap: anywhere;
}
/* Cible ≥ 44 px partout (pas de bloc (pointer: coarse) ici : le premier du
   fichier reste celui des cibles tactiles de la fiche et du tiroir). */
.zh-shop-wa {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
}
.zh-shop-wa svg {
  color: #25d366;
}
/* Téléphone : le bouton passe sous le texte. */
@media (max-width: 599px) {
  .zh-shop-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .zh-shop-wa {
    margin-left: 0;
  }
}

/* ─── Catalogue grille ─────────────────────────────────────────────── */

.zh-shop-catalog {
  width: 100%;
  min-width: 0;
}

/* 2 colonnes sur téléphone (cartes ≈ 166 px à 375 px), puis le minmax du
   template : 3 colonnes à 768, 4 à partir de 1024 (conteneur plafonné). Avec
   1 ou 2 produits, auto-fill garde des cartes de 220 à 280 px. */
.zh-shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 600px) {
  .zh-shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* ─── Carte produit (lien étiré, aucun bouton imbriqué) ───────────────── */

.zh-shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--zh-shop-bg);
  border: 1px solid var(--zh-shop-border);
  border-radius: var(--zh-shop-radius-card);
  overflow: hidden;
  box-shadow: var(--zh-shop-shadow-card);
}
.zh-shop-card.is-oos .zh-shop-card-image {
  opacity: 0.6;
}
@media (hover: hover) {
  .zh-shop-card {
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  }
  .zh-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--zh-shop-shadow-card-hover);
    border-color: var(--zh-shop-border-strong);
  }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .zh-shop-card {
    transition: box-shadow 150ms ease, border-color 150ms ease;
  }
  .zh-shop-card:hover {
    transform: none;
  }
}

/* Média 1:1 en `cover` (comme le template) ; l'image entière reste visible
   dans la fiche. */
.zh-shop-card-media {
  position: relative;
  flex-shrink: 0;
}
.zh-shop-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--zh-shop-bg-soft);
  overflow: hidden;
}
.zh-shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--zh-shop-bg-soft);
  display: block;
}

.zh-shop-card-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--zh-shop-text-mute);
}
.zh-shop-card-image-placeholder svg {
  width: 36%;
  height: 36%;
  max-width: 60px;
  max-height: 60px;
}

/* Pastilles posées sur l'image : décoratives au clic (le lien étiré passe
   dessous), au-dessus du ::after du nom. */
.zh-shop-card-badges,
.zh-shop-card-flags,
.zh-shop-card-kind,
.zh-shop-card-video {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
/* Haut-gauche : « ★ En vedette » / « Plus que N ». */
.zh-shop-card-badges {
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 20px);
}
/* Haut-droite : remise, rupture, Terminé / Complet, ✓ Acheté. */
.zh-shop-card-flags {
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 60%;
}
.zh-shop-card-featured,
.zh-shop-card-low,
.zh-shop-card-discount,
.zh-shop-card-oos,
.zh-shop-card-tkt-state,
.zh-shop-card-owned,
.zh-shop-card-kind {
  display: inline-block;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Couleurs fixes : la pastille est posée sur une photo (claire ou sombre). */
.zh-shop-card-featured {
  background: #ffffff;
  color: #1f1340;
  box-shadow: 0 2px 8px rgba(15, 8, 38, 0.18);
}
.zh-shop-card-low {
  background: #fef3c7;
  color: #92400e;
}
.zh-shop-card-discount {
  background: #e11d48;
  color: #ffffff;
}
.zh-shop-card-oos,
.zh-shop-card-tkt-state {
  background: rgba(31, 19, 64, 0.88);
  color: #ffffff;
}
.zh-shop-card-tkt-state.is-full {
  background: #be123c;
}
.zh-shop-card-flags .zh-shop-card-owned {
  /* Bat l'ancien badge absolu de landing-public-digital.css (cache). */
  position: static;
  padding: 4px 9px;
  background: #15803d;
  color: #ffffff;
  font-size: 11px;
}
/* Bas-gauche : famille (Article, Fichier, Formation…). */
.zh-shop-card-kind {
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 56px);
  padding: 3px 9px;
  background: rgba(31, 19, 64, 0.78);
  color: #ffffff;
  font-weight: 700;
}

.zh-shop-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 13px 13px;
}

.zh-shop-card-name {
  margin: 0;
  font-family: var(--zh-shop-font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  color: var(--zh-shop-text);
}
/* Nom = bouton (ou lien pour la Fan Zone) ÉTIRÉ sur toute la carte. */
.zh-shop-card-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.zh-shop-card-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.zh-shop-card-btn:focus {
  outline: none;
}
.zh-shop-card-btn:focus-visible::after {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: -3px;
  border-radius: var(--zh-shop-radius-card);
}
.zh-shop-card-name-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sous-titre : variantes | méta billet | card_hint — ligne réservée. */
.zh-shop-card-hint {
  margin: 4px 0 0;
  min-height: 1.35em;
  font-size: 12px;
  line-height: 1.35;
  color: var(--zh-shop-text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zh-shop-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.zh-shop-card-prices {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.zh-shop-card-price {
  font-family: var(--zh-shop-font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--zh-shop-text);
  white-space: nowrap;
}
.zh-shop-card-price--na {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  color: var(--zh-shop-text-soft);
}
.zh-shop-card-from {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--zh-shop-text-soft);
}

.zh-shop-card-compare {
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--zh-shop-text-mute);
  text-decoration: line-through;
  white-space: nowrap;
}

/* CTA à action directe — au-dessus du lien étiré. */
.zh-shop-card-cta,
.zh-shop-tkt-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: auto;
  padding: 7px 12px;
  border: 0;
  border-radius: var(--zh-shop-radius-sm);
  background: var(--zh-shop-primary);
  color: var(--zh-shop-on-primary);
  font: 800 12.5px/1.2 "DM Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.zh-shop-card-cta:focus-visible,
.zh-shop-tkt-cta:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: 2px;
}
.zh-shop-card-cta:disabled,
.zh-shop-tkt-cta:disabled {
  background: var(--zh-shop-bg-soft);
  color: var(--zh-shop-text-soft);
  cursor: not-allowed;
}
@media (hover: hover) {
  .zh-shop-card-cta:hover:not(:disabled),
  .zh-shop-tkt-cta:hover:not(:disabled) {
    background: var(--zh-shop-primary-dk);
  }
}

/* Téléphone : carte compacte, prix au-dessus d'un CTA pleine largeur. */
@media (max-width: 599px) {
  .zh-shop-card-body {
    padding: 10px;
  }
  .zh-shop-card-name {
    font-size: 13.5px;
    min-height: 2.6em;
  }
  .zh-shop-card-hint {
    font-size: 11.5px;
  }
  .zh-shop-card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .zh-shop-card-price {
    font-size: 15px;
  }
  .zh-shop-card-cta,
  .zh-shop-tkt-cta {
    width: 100%;
    min-height: 40px;
    margin-left: 0;
  }
  .zh-shop-card-badges,
  .zh-shop-card-flags {
    top: 8px;
  }
  .zh-shop-card-badges {
    left: 8px;
  }
  .zh-shop-card-flags {
    right: 8px;
  }
  .zh-shop-card-kind {
    left: 8px;
    bottom: 8px;
  }
}

/* ─── Empty state catalogue ────────────────────────────────────────── */

.zh-shop-empty {
  text-align: center;
  padding: 48px 16px;
  background: var(--zh-shop-bg-soft);
  border: 1px dashed var(--zh-shop-border);
  border-radius: var(--zh-shop-radius-md);
  color: var(--zh-shop-text-soft);
}
.zh-shop-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-accent-text);
}
.zh-shop-empty-icon svg {
  width: 28px;
  height: 28px;
}
.zh-shop-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--zh-shop-text);
}
.zh-shop-empty-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
/* Propriétaire : « Ajouter un produit » (handoff admin). */
.zh-shop-empty-cta {
  margin-top: 18px;
}

/* ─── Vue détail produit (dans la couche .zh-shop-dlg, cf. fin de fichier) ─ */

.zh-shop-detail {
  padding: 0 20px 8px;
}

.zh-shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.zh-shop-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zh-shop-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--zh-shop-bg-soft);
  border-radius: var(--zh-shop-radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--zh-shop-text-mute);
}
.zh-shop-detail-image.is-zoomable {
  cursor: zoom-in;
}
.zh-shop-detail-image.is-zoomable:focus-visible {
  outline: 2px solid var(--zh-shop-primary);
  outline-offset: 3px;
}
.zh-shop-detail-image img {
  width: 100%;
  height: 100%;
  max-height: min(56vh, 520px);
  max-height: min(56dvh, 520px);
  object-fit: contain;
  object-position: center;
  background: var(--zh-shop-bg-soft);
  display: block;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .zh-shop-detail-image.is-zoomable:hover img {
    cursor: zoom-in;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zh-shop-detail-image img {
    transition: none;
  }
}
.zh-shop-detail-image video,
.zh-shop-detail-image video,
.zh-shop-detail-video {
  width: 100%;
  height: 100%;
  /* contain : une vidéo verticale n'est plus rognée dans le cadre carré. */
  object-fit: contain;
  display: block;
  background: #000;
}
.zh-shop-detail-image-placeholder svg {
  width: 56px;
  height: 56px;
}

.zh-shop-detail-thumbs {
  position: relative; /* offsetParent des vignettes (défilement auto) */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.zh-shop-detail-thumb button {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--zh-shop-bg-soft);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 140ms ease;
  flex-shrink: 0;
}
.zh-shop-detail-thumb button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zh-shop-detail-thumb-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.zh-shop-detail-thumb-media img,
.zh-shop-detail-thumb-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zh-shop-detail-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.zh-shop-detail-thumb-play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  box-shadow: 0 3px 10px var(--pp-shadow-soft, rgba(0, 0, 0, 0.25));
}
.zh-shop-detail-thumb-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}
.zh-shop-detail-thumb.is-active button {
  border-color: var(--zh-shop-primary);
}

.zh-shop-detail-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zh-shop-detail-name {
  margin: 0;
  font-family: var(--zh-shop-font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--zh-shop-text);
}

.zh-shop-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.zh-shop-detail-price {
  font-family: var(--zh-shop-font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--zh-shop-text);
}
.zh-shop-detail-compare {
  font-size: 15px;
  color: var(--zh-shop-text-mute);
  text-decoration: line-through;
}
.zh-shop-detail-discount {
  padding: 3px 8px;
  background: var(--zh-shop-error-bg);
  color: var(--zh-shop-error);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

.zh-shop-detail-stock {
  margin: 0;
  font-size: 13px;
  color: var(--zh-shop-text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.zh-shop-detail-stock.is-oos {
  color: var(--zh-shop-error);
}
.zh-shop-detail-stock.is-low {
  color: var(--zh-shop-warn, #b45309);
}

.zh-shop-detail-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--zh-shop-text-soft);
  white-space: pre-wrap;
}

.zh-shop-detail-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zh-shop-variant-group {
  margin: 0;
  padding: 0;
  border: 0;
}
.zh-shop-variant-legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zh-shop-text-soft);
  margin-bottom: 6px;
}
.zh-shop-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.zh-shop-variant-chip {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--zh-shop-border);
  border-radius: 999px;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .zh-shop-variant-chip:hover {
    border-color: var(--zh-shop-text);
  }
}
.zh-shop-variant-chip.is-active {
  background: var(--zh-shop-ink-bg);
  color: var(--zh-shop-ink-text);
  border-color: var(--zh-shop-ink-bg);
}

.zh-shop-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 480px) {
  .zh-shop-detail-actions {
    flex-direction: row;
  }
  .zh-shop-detail-actions .zh-shop-btn {
    flex: 1;
  }
}

/* ─── Boutons ──────────────────────────────────────────────────────── */

.zh-shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--zh-shop-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.zh-shop-btn:active {
  transform: scale(0.98);
}
.zh-shop-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.zh-shop-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.zh-shop-btn--primary {
  background: var(--zh-shop-primary);
  color: var(--zh-shop-on-primary, #fff);
  box-shadow: 0 6px 18px rgba(123, 63, 242, 0.24);
}

.zh-shop-btn--ghost {
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  border-color: var(--zh-shop-border);
}
@media (hover: hover) {
  .zh-shop-btn--primary:hover:not(:disabled) {
    background: var(--zh-shop-primary-dk);
  }
  .zh-shop-btn--ghost:hover:not(:disabled) {
    background: var(--zh-shop-bg-soft);
    border-color: var(--zh-shop-text);
  }
}
.zh-shop-btn:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: 2px;
}

.zh-shop-btn--full {
  width: 100%;
}

.zh-shop-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zh-shop-spin 720ms linear infinite;
}
/* `display:inline-block` bat la feuille UA `[hidden]` → spinner toujours visible. */
.zh-shop-spinner[hidden] {
  display: none !important;
}
@keyframes zh-shop-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Drawer panier ────────────────────────────────────────────────── */

.zh-shop-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}
.zh-shop-drawer-overlay[hidden] {
  display: none;
}

.zh-shop-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--pp-scrim, rgba(15, 8, 38, 0.45));
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: auto;
}
.zh-shop-drawer-overlay.is-open .zh-shop-drawer-backdrop {
  opacity: 1;
}

.zh-shop-drawer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--zh-shop-bg);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px var(--pp-shadow, rgba(15, 8, 38, 0.22));
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--zh-shop-text);
  /* Jetons : bloc partagé en tête de fichier (.zh-shop-drawer-overlay). */
}
.zh-shop-drawer-overlay.is-open .zh-shop-drawer {
  transform: translateX(0);
}

.zh-shop-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--zh-shop-border);
  flex-shrink: 0;
}
.zh-shop-drawer-title {
  margin: 0;
  font-family: var(--zh-shop-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.zh-shop-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--zh-shop-text-soft);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
@media (hover: hover) {
  .zh-shop-drawer-close:hover {
    background: var(--zh-shop-bg-soft);
    color: var(--zh-shop-text);
  }
}
.zh-shop-drawer-close svg {
  width: 18px;
  height: 18px;
}

.zh-shop-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zh-shop-drawer-empty {
  text-align: center;
  padding: 48px 16px 24px;
  color: var(--zh-shop-text-soft);
}
.zh-shop-drawer-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--zh-shop-bg-soft);
  color: var(--zh-shop-accent-text);
}
.zh-shop-drawer-empty-icon svg {
  width: 28px;
  height: 28px;
}
.zh-shop-drawer-empty-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--zh-shop-text);
}
.zh-shop-drawer-empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Items panier */

.zh-shop-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zh-shop-cart-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--zh-shop-bg-soft);
  border-radius: var(--zh-shop-radius-md);
  align-items: flex-start;
}

.zh-shop-cart-row-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--zh-shop-bg);
  flex-shrink: 0;
}
.zh-shop-cart-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zh-shop-cart-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.zh-shop-cart-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zh-shop-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.zh-shop-cart-row-variant {
  font-size: 11px;
  color: var(--zh-shop-text-mute);
}
.zh-shop-cart-row-variant:empty {
  display: none;
}
.zh-shop-cart-row-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--zh-shop-text);
}

.zh-shop-cart-row-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  background: var(--zh-shop-bg);
  border: 1px solid var(--zh-shop-border);
  border-radius: 999px;
  padding: 2px;
  width: fit-content;
}
.zh-shop-qty-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--zh-shop-text);
  cursor: pointer;
  transition: background 140ms ease;
}
@media (hover: hover) {
  .zh-shop-qty-btn:hover {
    background: var(--zh-shop-bg-soft);
  }
}
.zh-shop-qty-btn svg {
  width: 12px;
  height: 12px;
}
.zh-shop-qty-value {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.zh-shop-cart-row-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--zh-shop-text-mute);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  flex-shrink: 0;
}
@media (hover: hover) {
  .zh-shop-cart-row-remove:hover {
    background: var(--zh-shop-error-bg);
    color: var(--zh-shop-error);
  }
}
.zh-shop-cart-row-remove svg {
  width: 14px;
  height: 14px;
}

/* Adresse */

.zh-shop-address {
  background: var(--zh-shop-bg-soft);
  border-radius: var(--zh-shop-radius-md);
  padding: 12px 14px;
}
.zh-shop-address-summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--zh-shop-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zh-shop-address-summary::-webkit-details-marker {
  display: none;
}
.zh-shop-address-summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--zh-shop-text-mute);
  transition: transform 180ms ease;
}
.zh-shop-address[open] .zh-shop-address-summary::after {
  transform: rotate(180deg);
}
.zh-shop-address-hint {
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--zh-shop-text-soft);
}

.zh-shop-address-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .zh-shop-address-form {
    grid-template-columns: 1fr 1fr;
  }
}

.zh-shop-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.zh-shop-field--full {
  grid-column: 1 / -1;
}
.zh-shop-field-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zh-shop-text-soft);
}
.zh-shop-input {
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--zh-shop-text);
  background: var(--zh-shop-bg);
  border: 1.5px solid var(--zh-shop-border);
  border-radius: 8px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  width: 100%;
}
.zh-shop-input:focus {
  outline: none;
  border-color: var(--zh-shop-primary);
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.18);
}
.zh-shop-input.is-error {
  border-color: var(--zh-shop-error);
}

.zh-shop-address-error {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--zh-shop-error);
}

/* Totaux */

.zh-shop-totals {
  background: var(--zh-shop-bg);
  border: 1px solid var(--zh-shop-border);
  border-radius: var(--zh-shop-radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zh-shop-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--zh-shop-text);
}
.zh-shop-totals-row--muted {
  color: var(--zh-shop-text-soft);
  font-size: 12px;
}
.zh-shop-totals-row--total {
  font-size: 16px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid var(--zh-shop-border);
}
.zh-shop-totals-value {
  font-weight: 700;
  color: var(--zh-shop-text);
}

/* Footer drawer */

.zh-shop-drawer-foot {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--zh-shop-border);
  flex-shrink: 0;
  background: var(--zh-shop-bg);
}
.zh-shop-checkout-help {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--zh-shop-text-mute);
}
/* Mobile Money : page hébergée pawaPay (pays choisi dans ZIC). */
.zh-shop-checkout-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--zh-shop-text-soft);
}

/* ─── Overlay succès ───────────────────────────────────────────────── */

.zh-shop-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: var(--pp-scrim, rgba(15, 8, 38, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: zh-shop-fade-in 220ms ease;
  /* Jetons : bloc partagé en tête de fichier. */
}
.zh-shop-success-overlay[hidden] {
  display: none;
}
@keyframes zh-shop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.zh-shop-success-card:focus {
  outline: none;
}
.zh-shop-success-card {
  background: var(--pp-card, #fff);
  border-radius: var(--zh-shop-radius-lg, 20px);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--zh-shop-shadow-elev, 0 20px 60px var(--pp-shadow, rgba(15, 8, 38, 0.22)));
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--pp-text, #1f1840);
}
.zh-shop-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #d1fae5;
  color: #10b981;
}
.zh-shop-success-icon svg {
  width: 36px;
  height: 36px;
}
.zh-shop-success-title {
  margin: 0 0 8px;
  font-family: var(--zh-shop-font-head);
  font-size: 20px;
  font-weight: 700;
}
.zh-shop-success-body {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--pp-text-muted, #6b7280);
  line-height: 1.5;
}
.zh-shop-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Badge du bouton panier de l'en-tête (contrat C6) : « respire » à l'ajout. */
@keyframes zh-shop-badge-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
[data-zh-shop-count-badge].is-pulse {
  animation: zh-shop-badge-pulse 480ms ease;
}
@media (prefers-reduced-motion: reduce) {
  [data-zh-shop-count-badge].is-pulse {
    animation: none;
  }
}

/* ─── Toasts ───────────────────────────────────────────────────────── */

.zh-shop-toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}
@media (max-width: 599px) {
  .zh-shop-toasts {
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
  }
  /* Feuille ouverte : son pied collant (Payer, Ajouter…) occupe le bas →
     toasts relevés en haut de l'écran. */
  body.zh-shop-sheet-open .zh-shop-toasts {
    top: calc(12px + env(safe-area-inset-top, 0px));
    bottom: auto;
  }
}

.zh-shop-toast {
  background: #1f1840;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 28px var(--pp-shadow-soft, rgba(15, 8, 38, 0.25));
  pointer-events: auto;
  animation: zh-shop-toast-in 240ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 360px;
}
.zh-shop-toast.is-success {
  background: #10b981;
}
.zh-shop-toast.is-error {
  background: #ef4444;
}
.zh-shop-toast.is-info {
  background: #1f1840;
}
.zh-shop-toast.is-leaving {
  animation: zh-shop-toast-out 180ms ease forwards;
}
@keyframes zh-shop-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zh-shop-toast-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ─── Visionneuse galerie (zoom + plein écran) ───────────────────────── */

.zh-shop-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.zh-shop-gallery-lightbox-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.zh-shop-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--pp-scrim, rgba(15, 8, 38, 0.82));
  cursor: pointer;
}
.zh-shop-gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.zh-shop-gallery-lightbox-panel > * {
  pointer-events: auto;
}
.zh-shop-gallery-lightbox-body {
  width: 100%;
  max-height: calc(92vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--zh-shop-radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.zh-shop-gallery-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 56px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
}
.zh-shop-gallery-lightbox-counter {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}
.zh-shop-gallery-lightbox-close {
  position: absolute;
  top: -6px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease;
}
@media (hover: hover) {
  .zh-shop-gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
  }
}
.zh-shop-gallery-lightbox-close svg {
  width: 20px;
  height: 20px;
}
.zh-shop-gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, opacity 140ms ease;
}
@media (hover: hover) {
  .zh-shop-gallery-lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
  }
}
.zh-shop-gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.zh-shop-gallery-lightbox-nav svg {
  width: 22px;
  height: 22px;
}
.zh-shop-gallery-lightbox-nav--prev {
  left: -56px;
}
.zh-shop-gallery-lightbox-nav--next {
  right: -56px;
}
@media (max-width: 900px) {
  .zh-shop-gallery-lightbox-nav--prev {
    left: 4px;
  }
  .zh-shop-gallery-lightbox-nav--next {
    right: 4px;
  }
  .zh-shop-gallery-lightbox-close {
    top: 4px;
    right: 4px;
  }
}

/* ============================================================ */
/* Abonnement ZIC — carte produit + modale de souscription      */
/* ============================================================ */
.zh-shop-card-permo {
  margin-left: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--zh-shop-text-mute);
}
.zh-shop-card-sub-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* Abonnement ZIC : couleurs de la marque ZIC, jamais l'accent du créateur. */
  background: linear-gradient(135deg, #7b3ff2, #6a2fe0);
  color: #fff;
  font-weight: 800;
  font-size: 54px;
  letter-spacing: -2px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}
.zh-shop-card-sub-logo--fz {
  font-size: 64px;
  letter-spacing: 0;
}
.zh-shop-detail-sub-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #7b3ff2, #6a2fe0);
  color: #fff;
  font-weight: 800;
  font-size: 72px;
  letter-spacing: -3px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  border-radius: inherit;
}

/* Un bouton avec l'attribut [hidden] doit disparaître malgré display:inline-flex de .zh-shop-btn. */
.zh-shop-btn[hidden] { display: none !important; }

/* « Ce qui est inclus » (style pricing) dans le détail abonnement. */
.zh-shop-detail-sub-incl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--zh-shop-radius-md);
  background: rgba(123, 63, 242, 0.06);
  border: 1px solid var(--zh-shop-border-soft);
}
.zh-shop-detail-sub-incl[hidden] { display: none; }
.zh-shop-detail-sub-incl-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zh-shop-text-mute);
}
.zh-shop-detail-sub-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zh-shop-detail-sub-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--zh-shop-text-soft);
}
.zh-shop-detail-sub-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
}

/* Paiement en pièces (XP) — produit physique sur la fiche (setupPhysicalXp).
   Carte pleine largeur ; le form d'adresse réutilise .zh-shop-address-form (grille). */
.zh-shop-detail-physical-xp {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--zh-shop-bg-soft);
  border-radius: var(--zh-shop-radius-md);
  padding: 14px;
}
.zh-shop-detail-physical-xp[hidden] { display: none; }
.zh-shop-phys-xp-addr-title { margin: 4px 0 0; font-weight: 600; font-size: 14px; color: var(--zh-shop-text); }
.zh-shop-phys-xp-addr-hint { margin: 0; font-size: 12px; color: var(--zh-shop-text-soft); }
.zh-shop-phys-xp-form { margin: 2px 0 4px; }
.zh-shop-phys-xp-err { color: var(--zh-shop-error); margin: 0; }
.zh-shop-phys-xp-ok { font-weight: 600; color: #10b981; padding: 6px 0; }
.zh-shop-phys-xp-wait { opacity: .8; margin: 0; }

/* Country picker : select natif stylé (chevron custom, même look que .zh-shop-input). */
.zh-shop-country-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}
.zh-shop-country-select:invalid { color: var(--zh-shop-text-mute); }

/* ============================================================
   Recherche (toujours visible) + puces de type + billetterie AWIN
   Structurel en jetons --zh-shop-… / --pp-… (thème clair/sombre) ;
   puce active = fond « encre » du template (--pp-cta-bg/-ink).
   ============================================================ */

.zh-shop-search {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 600px) {
  .zh-shop-search {
    flex: 0 1 280px;
    margin-left: auto;
  }
}
.zh-shop-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  color: var(--zh-shop-text-soft);
  pointer-events: none;
}
.zh-shop-search-input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 40px 0 38px;
  border: 1px solid var(--zh-shop-border);
  border-radius: 11px;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  font: 13.5px "DM Sans", sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.zh-shop-search-input::placeholder {
  color: var(--zh-shop-text-soft);
  opacity: 1;
}
.zh-shop-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.zh-shop-search-input:focus-visible {
  border-color: var(--zh-shop-accent-text);
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.18);
}
.zh-shop-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  margin-top: -14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--zh-shop-bg-soft);
  color: var(--zh-shop-text-soft);
  cursor: pointer;
}
.zh-shop-search-clear svg {
  width: 14px;
  height: 14px;
}
.zh-shop-search-clear:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: 1px;
}
.zh-shop-header,
.zh-shop-search,
.zh-shop-tabs,
.zh-shop-tkt-filters {
  flex-shrink: 0;
}
/* Puces : défilantes sans barre (fondu à droite sur téléphone). */
.zh-shop-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 2px;
  scrollbar-width: none;
}
.zh-shop-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 599px) {
  .zh-shop-tabs {
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
}
/* Puces de type et puces catégories : MÊME gabarit de pilule. */
.zh-shop-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  border: 1px solid var(--zh-shop-border);
  font: 700 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.zh-shop-tab.is-active {
  background: var(--zh-shop-ink-bg);
  border-color: var(--zh-shop-ink-bg);
  color: var(--zh-shop-ink-text);
}
.zh-shop-tab:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: 2px;
}
@media (hover: hover) {
  .zh-shop-tab:hover:not(.is-active) {
    border-color: var(--zh-shop-text);
  }
}
.zh-shop-tab-count {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}

.zh-shop-tkt-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.zh-shop-tkt-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zh-shop-tkt-cat {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 99px;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  border: 1px solid var(--zh-shop-border);
  font: 600 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.zh-shop-tkt-cat.is-active {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}
.zh-shop-tkt-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.zh-shop-tkt-price-label {
  font: 700 12px "DM Sans", sans-serif;
  color: var(--zh-shop-text);
  white-space: nowrap;
}
.zh-shop-tkt-range {
  flex: 1 1 200px;
  max-width: 320px;
  accent-color: #e11d48;
  cursor: pointer;
}
.zh-shop-tkt-price-value {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--zh-shop-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.zh-shop-tkt-reset {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--zh-shop-border);
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text-soft);
  font: 600 11.5px "DM Sans", sans-serif;
  cursor: pointer;
}

/* Carte billet : méta « Festival · 12 sept. » ; CTA « Ma place » = CTA de
   carte (.zh-shop-tkt-cta, règles communes plus haut). */
.zh-shop-card-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zh-shop-tkt-cta-wrap {
  display: contents;
}

/* Détail billet */
.zh-shop-btn--ticket {
  background: linear-gradient(135deg, #be123c, #e11d48) !important;
  color: #fff !important;
}
.zh-shop-detail-price.is-ticket { color: #e11d48; }
.zh-shop-detail-ticket {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zh-shop-detail-ticket-meta,
.zh-shop-detail-ticket-note {
  margin: 0;
  font-size: 13px;
  color: var(--zh-shop-text-soft);
  line-height: 1.5;
}

/* État vide filtré */
.zh-shop-filter-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--zh-shop-text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}


/* ── Billetterie NATIVE (achat sur ZIC) ──────────────────────────────────── */

/* État Terminé / Complet : pastille haut-droite (.zh-shop-card-flags). */

/* Bloc de la fiche détail : quand/où + récap des catégories (lecture seule ;
   la sélection se fait dans le modal ztk-). */
.zh-shop-detail-tkt {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px; margin-bottom: 12px;
  border-radius: var(--zh-shop-radius-md, 14px);
  border: 1px solid rgba(225, 29, 72, .22);
  background: rgba(225, 29, 72, .05);
}
.zh-shop-detail-tkt-when,
.zh-shop-detail-tkt-where {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--zh-shop-text);
}
.zh-shop-detail-tkt-tiers { list-style: none; margin: 4px 0 6px; padding: 0; }
.zh-shop-tkt-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 13px;
  border-bottom: 1px dashed var(--zh-shop-border);
}
.zh-shop-tkt-line:last-child { border-bottom: none; }
.zh-shop-tkt-line.is-soldout { opacity: .55; text-decoration: line-through; }


/* ============================================================
   Étape 2 — vitrine & panier robuste
   ============================================================ */

/* ── Cartes : icône vidéo (bas-droite) ; « En vedette » / « Plus que N »
   et le résumé des variantes sont stylés avec la carte, plus haut. ── */
.zh-shop-card-video {
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
}
.zh-shop-card-video svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

/* ── Galerie : scène + précédent / suivant + compteur ── */
.zh-shop-detail-stage {
  position: relative;
}
.zh-shop-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1840;
  box-shadow: 0 4px 14px rgba(15, 8, 38, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease;
}
@media (hover: hover) {
  .zh-shop-gallery-nav:hover {
    background: #fff;
  }
}
.zh-shop-gallery-nav:active {
  transform: scale(0.94);
}
.zh-shop-gallery-nav:focus-visible {
  outline: 2px solid var(--zh-shop-primary);
  outline-offset: 2px;
}
.zh-shop-gallery-nav svg {
  width: 18px;
  height: 18px;
}
.zh-shop-gallery-nav--prev {
  left: 8px;
}
.zh-shop-gallery-nav--next {
  right: 8px;
}
.zh-shop-gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.66);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.zh-shop-detail-thumb-media--video {
  background: #1f1840;
}
.zh-shop-detail-thumb button:focus-visible {
  outline: 2px solid var(--zh-shop-primary);
  outline-offset: 2px;
}

/* ── Variantes : légende « Taille : M », groupe manquant signalé ── */
.zh-shop-variant-legend-value {
  text-transform: none;
  letter-spacing: 0;
  color: var(--zh-shop-text);
}
.zh-shop-variant-chip:focus-visible {
  outline: 2px solid var(--zh-shop-primary);
  outline-offset: 2px;
}
.zh-shop-variant-group.is-missing .zh-shop-variant-chip {
  border-color: var(--zh-shop-error);
}
.zh-shop-variant-missing {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--zh-shop-error);
}

/* ── Actions collantes sur mobile (feuille du bas : bas du corps défilant) ── */
@media (max-width: 719px) {
  .zh-shop-detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 6px -20px 0;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--zh-shop-bg);
    box-shadow: 0 -8px 18px rgba(15, 8, 38, 0.08);
  }
  .zh-shop-gallery-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
  /* La bulle de chat recouvrirait les boutons collants (classe posée sur
     <body> par openDetail, retirée par closeDetail). */
  body.zh-shop-detail-open .zic-chat-fab-wrap {
    display: none;
  }
}

/* ── Panier : ligne signalée + action en un clic ── */
.zh-shop-cart-row.is-flagged {
  /* Teinte rouge translucide sur le fond de ligne : le nom et l'option
     restent lisibles en thème clair ET sombre (un rose clair opaque rendait
     le texte blanc du thème sombre illisible). */
  background-color: var(--zh-shop-bg-soft);
  background-image: linear-gradient(rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.14));
  box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, 0.45);
}
/* Prix lisible sur la teinte rouge : violet du thème (#6D28D9 clair,
   #A78BFA sombre) au lieu d'un violet fixe (< 4.5:1 ici). */
.zh-shop-cart-row.is-flagged .zh-shop-cart-row-price {
  color: var(--pp-link, var(--zh-shop-primary));
}
.zh-shop-cart-row-error {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--zh-shop-error, #ef4444);
}
.zh-shop-cart-row-fix {
  align-self: flex-start;
  min-height: 36px;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1.5px solid var(--zh-shop-primary);
  border-radius: 999px;
  background: var(--zh-shop-bg);
  /* Texte d'accent du thème : le violet de marque tombe à 3:1 en sombre. */
  color: var(--zh-shop-accent-text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
  .zh-shop-cart-row-fix:hover {
    background: var(--zh-shop-primary);
    color: var(--zh-shop-on-primary);
  }
}
.zh-shop-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── « Voir mes achats » (overlay, pièces, numérique, billets, RDV) ── */
.zh-shop-orders-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--zh-shop-primary, #7b3ff2);
  border-radius: 10px;
  background: transparent;
  color: var(--zh-shop-accent-text, #6d28d9);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) {
  .zh-shop-orders-link:hover {
    background: var(--zh-shop-primary, #7b3ff2);
    color: #fff;
  }
}
.zh-shop-success-orders {
  background: var(--pp-card, #fff);
  color: var(--pp-text, #1f1840);
  border-color: var(--pp-border, #e9e7f3);
}
@media (hover: hover) {
  .zh-shop-success-orders:hover {
    border-color: var(--zh-shop-text);
    color: var(--zh-shop-text);
  }
}
@media (max-width: 420px) {
  .zh-shop-success-actions {
    flex-direction: column;
  }
}

/* ============================================================
   Couches : fiche produit en fenêtre (≥ 720 px) ou feuille du bas
   (< 720 px) — composant .zh-shop-dlg*, état piloté par ZicShopSheet
   (landing-shop-sheet.js). z-index : fiche 1500 (modale d'avis 1600),
   tiroir 2000, succès 2200, toasts 2300, visionneuse 12050.
   ============================================================ */

.zh-shop-dlg {
  --zh-shop-dlg-z: 1500;
  position: fixed;
  inset: 0;
  z-index: var(--zh-shop-dlg-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--zh-shop-text);
}
/* Couches <body> : même modèle de boîte que la section, quel que soit le
   reset global de la page (champs à 100 % qui ne débordent pas). */
.zh-shop-dlg *,
.zh-shop-dlg *::before,
.zh-shop-dlg *::after,
.zh-shop-drawer-overlay *,
.zh-shop-drawer-overlay *::before,
.zh-shop-drawer-overlay *::after,
.zh-shop-success-overlay *,
.zh-shop-success-overlay *::before,
.zh-shop-success-overlay *::after {
  box-sizing: border-box;
}
.zh-shop-dlg-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--pp-scrim, rgba(20, 10, 51, 0.6));
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease;
}
.zh-shop-dlg.is-open .zh-shop-dlg-backdrop {
  opacity: 1;
}
.zh-shop-dlg-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(860px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: var(--zh-shop-bg);
  border-radius: 22px;
  box-shadow: var(--zh-shop-shadow-elev);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.zh-shop-dlg.is-open .zh-shop-dlg-panel {
  opacity: 1;
  transform: none;
}
.zh-shop-dlg-panel:focus {
  outline: none;
}
/* Sans média : 500 px, illustration 16:9 compacte ; abonnement ZIC : 460 px. */
.zh-shop-dlg-panel.is-narrow {
  width: min(500px, calc(100vw - 48px));
}
.zh-shop-dlg-panel.is-sub {
  width: min(460px, calc(100vw - 48px));
}
.zh-shop-dlg-panel.is-narrow:not(.is-sub) .zh-shop-detail-image {
  aspect-ratio: 16 / 9;
}

/* En-tête : poignée (feuille) + fermer. */
.zh-shop-dlg-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: 52px;
  padding: 8px 10px 4px 20px;
}
.zh-shop-dlg-grip {
  display: none;
}
.zh-shop-dlg-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--zh-shop-border);
  border-radius: 10px;
  background: var(--zh-shop-bg);
  color: var(--zh-shop-text);
  cursor: pointer;
}
.zh-shop-dlg-close svg {
  width: 18px;
  height: 18px;
}
.zh-shop-dlg-close:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: 2px;
}
@media (hover: hover) {
  .zh-shop-dlg-close:hover {
    background: var(--zh-shop-bg-soft);
  }
}

/* Corps défilant : la barre d'actions y colle en bas, à toutes les largeurs. */
.zh-shop-dlg-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.zh-shop-dlg .zh-shop-detail {
  border: 0;
  box-shadow: none;
  padding: 0 20px 8px;
}
.zh-shop-dlg .zh-shop-detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 6px -20px 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--zh-shop-bg);
  box-shadow: 0 -8px 18px -10px rgba(15, 8, 38, 0.18);
}
/* Deux colonnes dès 700 px de LARGEUR DU PANNEAU (ResizeObserver) : galerie
   collante à gauche, infos à droite. */
.zh-shop-dlg-panel.is-2col .zh-shop-detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.zh-shop-dlg-panel.is-2col .zh-shop-detail-gallery {
  position: sticky;
  top: 0;
  align-self: start;
}
.zh-shop-dlg-panel.is-2col .zh-shop-detail-name {
  padding-right: 4px;
}

/* ── Quantité (physique) ── */
.zh-shop-detail-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.zh-shop-detail-qty-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zh-shop-text-soft);
}
.zh-shop-detail-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--zh-shop-border);
  border-radius: 10px;
  overflow: hidden;
}
.zh-shop-detail-qty-stepper .zh-shop-qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
}
.zh-shop-detail-qty-stepper .zh-shop-qty-btn:focus-visible {
  outline: 2px solid var(--zh-shop-accent-text);
  outline-offset: -2px;
}
.zh-shop-detail-qty-stepper .zh-shop-qty-value {
  min-width: 36px;
  font-family: var(--zh-shop-font-head);
  font-size: 15px;
  font-weight: 700;
}

/* ── Numérique : contenu réel à plat (leçons, fichiers + tailles) ── */
.zh-shop-detail-contents {
  border: 1px solid var(--zh-shop-border);
  border-radius: 13px;
  overflow: hidden;
}
.zh-shop-detail-contents-title {
  margin: 0;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zh-shop-text-soft);
  background: var(--zh-shop-bg-soft);
}
.zh-shop-detail-contents-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: zh-shop-content;
}
.zh-shop-detail-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-top: 1px solid var(--zh-shop-border);
  font-size: 13px;
  line-height: 1.35;
  counter-increment: zh-shop-content;
}
.zh-shop-detail-content::before {
  content: counter(zh-shop-content);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--zh-shop-bg-soft);
  color: var(--zh-shop-text-soft);
  font-family: var(--zh-shop-font-head);
  font-size: 12px;
  font-weight: 700;
}
.zh-shop-detail-content-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--zh-shop-text);
}
.zh-shop-detail-content-sub {
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--zh-shop-text-soft);
  white-space: nowrap;
}
.zh-shop-detail-content.is-locked .zh-shop-detail-content-sub::before {
  content: "🔒 ";
}

/* Format numérique (« 6 leçons ») : violet lisible sur la carte claire ET
   sombre (le #8d22ff de landing-public-digital.css tombe à 3:1 en sombre). */
.zh-shop-dlg .zh-shop-detail-digital-fmt {
  color: var(--zh-shop-accent-text);
}

/* « Réserver un créneau » : fond de marque (le cyan #0EA5E9 de
   shop-service-booking.css, texte blanc, tombe à 2,8:1). */
.zh-shop-dlg .zh-shop-btn--service {
  background: var(--zh-shop-primary) !important;
  color: var(--zh-shop-on-primary) !important;
}

/* ── Tiroir : poignée (feuille) ── */
.zh-shop-drawer-head {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .zh-shop-dlg-backdrop,
  .zh-shop-dlg-panel,
  .zh-shop-drawer,
  .zh-shop-drawer-backdrop {
    transition: none;
  }
  .zh-shop-dlg-panel {
    transform: none;
  }
}

/* Cibles tactiles ≥ 44 px. */
@media (pointer: coarse) {
  .zh-shop-card-cta,
  .zh-shop-tkt-cta,
  .zh-shop-tab,
  .zh-shop-tkt-cat,
  .zh-shop-dlg-close,
  .zh-shop-drawer-close,
  .zh-shop-search-clear {
    min-height: 44px;
  }
  .zh-shop-dlg-close,
  .zh-shop-drawer-close,
  .zh-shop-search-clear {
    min-width: 44px;
  }
  .zh-shop-search-clear {
    right: 0;
    margin-top: -22px;
    border-radius: 11px;
    background: transparent;
  }
  .zh-shop-detail-qty-stepper .zh-shop-qty-btn {
    width: 44px;
    height: 44px;
  }
  /* Panier : − / + des lignes (26 px) et corbeille (28 px) ; flèches de la
     galerie de la fiche (40 px, 36 px sous 720 px) ; × de la visionneuse. */
  .zh-shop-cart-row-qty .zh-shop-qty-btn,
  .zh-shop-cart-row-remove,
  .zh-shop-gallery-nav,
  .zh-shop-gallery-lightbox-close {
    width: 44px;
    height: 44px;
  }
  .zh-shop-gallery-nav {
    margin-top: -22px;
  }
}

/* ── Feuille du bas (< 720 px) : fiche ET tiroir. Placé APRÈS le premier
   bloc max-width: 719px (barre d'actions collante, bulle de chat), lu tel
   quel par les tests. ── */
@media (max-width: 719px) {
  .zh-shop-dlg {
    align-items: flex-end;
    padding: 0;
  }
  .zh-shop-dlg-panel,
  .zh-shop-dlg-panel.is-narrow,
  .zh-shop-dlg-panel.is-sub {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    opacity: 1;
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .zh-shop-dlg.is-open .zh-shop-dlg-panel {
    transform: translateY(0);
  }
  .zh-shop-dlg-head,
  .zh-shop-drawer-head {
    touch-action: none;
  }
  .zh-shop-dlg-head {
    min-height: 48px;
    padding-top: 14px;
  }
  .zh-shop-dlg-grip {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 999px;
    background: var(--zh-shop-border-strong);
  }
  .zh-shop-dlg .zh-shop-detail {
    padding: 0 16px 0;
  }
  .zh-shop-dlg .zh-shop-detail-actions {
    margin: 6px -16px 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .zh-shop-dlg-panel .zh-shop-detail-image img {
    max-height: none;
  }

  /* Tiroir panier : feuille du bas, même poignée. */
  .zh-shop-drawer-overlay {
    align-items: flex-end;
    justify-content: stretch;
  }
  .zh-shop-drawer {
    max-width: none;
    height: auto;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 40px var(--pp-shadow, rgba(15, 8, 38, 0.22));
    transform: translateY(100%);
  }
  .zh-shop-drawer-overlay.is-open .zh-shop-drawer {
    transform: translateY(0);
  }
  .zh-shop-drawer-head {
    padding-top: 20px;
  }
  .zh-shop-drawer-head .zh-shop-dlg-grip {
    top: 8px;
  }
  .zh-shop-drawer-foot {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
  /* 16 px contre le zoom iOS au focus ; recherche en cible de 44 px. */
  .zh-shop-input {
    font-size: 16px;
  }
  .zh-shop-search-input {
    height: 44px;
    font-size: 16px;
  }
}

/* Mouvement réduit sous 720 px : la feuille apparaît sans glisser. Le bloc
   « feuille du bas » ci-dessus, plus tardif à spécificité égale, réécrivait
   la transition que le bloc prefers-reduced-motion avait coupée. */
@media (max-width: 719px) and (prefers-reduced-motion: reduce) {
  .zh-shop-dlg-panel,
  .zh-shop-dlg-panel.is-narrow,
  .zh-shop-dlg-panel.is-sub {
    transition: none;
  }
}
