/* ==========================================================================
   Eyefind Store — direction « Noir » (page d'accueil, eyefind-store.php).

   Chargée APRÈS store.css, uniquement sous body.eyefind-store.store-noir :
   les autres pages du Store gardent leur style tant qu'elles ne portent pas
   cette classe.

   Thème : suit le réglage du site (includes/theme-init.php pose
   data-theme="light|dark" sur <html> ; sans choix = thème du système).
   Clair : blanc et gris très clair, texte presque noir, boutons noirs.
   Sombre : noir mat, texte blanc cassé, boutons or. Toutes les règles
   consomment les variables --sx-* ; les --store-* partagées (widget de
   compte, listes déroulantes, notifications) sont réalignées dessus.

   Animations au défilement : store-noir.js (apparitions, zoom de la
   bannière, texte qui s'allume mot à mot, léger parallaxe des affiches).
   Désactivées si le système demande moins d'animations.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

html body.eyefind-store.store-noir {
  color-scheme: light;
  --sx-bg: #ffffff;
  --sx-bg-alt: #f5f5f7;
  --sx-surface: #f5f5f7;
  --sx-surface-2: #ffffff;
  --sx-line: #e3e3e8;
  --sx-line-strong: #c7c7cc;
  --sx-text: #1d1d1f;
  --sx-muted: #6e6e73;
  --sx-dim: #b9b9be;
  --sx-accent: #8f6400;
  --sx-solid-bg: #1d1d1f;
  --sx-solid-fg: #ffffff;
  --sx-solid-hover: #3a3a3c;
  --sx-cta-bg: #1d1d1f;
  --sx-cta-fg: #ffffff;
  --sx-cta-hover: #3a3a3c;
  --sx-glass: rgba(255, 255, 255, 0.78);
  --sx-halo-opacity: 0.35;
  --sx-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.28);
  --sx-font: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Variables partagées du Store (composants communs). */
  --store-bg: var(--sx-bg);
  --store-surface: var(--sx-surface-2);
  --store-surface-soft: var(--sx-surface);
  --store-surface-hover: var(--sx-surface);
  --store-border: var(--sx-line);
  --store-border-strong: var(--sx-line-strong);
  --store-text: var(--sx-text);
  --store-muted: var(--sx-muted);
  --store-accent-strong: var(--sx-text);
  --store-yellow: var(--sx-cta-bg);
  --store-yellow-ink: var(--sx-cta-fg);
  --store-font: var(--sx-font);
  --store-display: var(--sx-font);

  background: var(--sx-bg);
  color: var(--sx-text);
  font-family: var(--sx-font);
}

html[data-theme="dark"] body.eyefind-store.store-noir {
  color-scheme: dark;
  --sx-bg: #000000;
  --sx-bg-alt: #0b0b0d;
  --sx-surface: #141416;
  --sx-surface-2: #1c1c1f;
  --sx-line: #2a2a2e;
  --sx-line-strong: #3d3d42;
  --sx-text: #f5f5f7;
  --sx-muted: #a1a1a6;
  --sx-dim: #48484c;
  --sx-accent: #e9c46a;
  --sx-solid-bg: #f5f5f7;
  --sx-solid-fg: #0a0a0c;
  --sx-solid-hover: #ffffff;
  --sx-cta-bg: #e9c46a;
  --sx-cta-fg: #111114;
  --sx-cta-hover: #f3d27e;
  --sx-glass: rgba(10, 10, 12, 0.72);
  --sx-halo-opacity: 0.55;
  --sx-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.eyefind-store.store-noir {
    color-scheme: dark;
    --sx-bg: #000000;
    --sx-bg-alt: #0b0b0d;
    --sx-surface: #141416;
    --sx-surface-2: #1c1c1f;
    --sx-line: #2a2a2e;
    --sx-line-strong: #3d3d42;
    --sx-text: #f5f5f7;
    --sx-muted: #a1a1a6;
    --sx-dim: #48484c;
    --sx-accent: #e9c46a;
    --sx-solid-bg: #f5f5f7;
    --sx-solid-fg: #0a0a0c;
    --sx-solid-hover: #ffffff;
    --sx-cta-bg: #e9c46a;
    --sx-cta-fg: #111114;
    --sx-cta-hover: #f3d27e;
    --sx-glass: rgba(10, 10, 12, 0.72);
    --sx-halo-opacity: 0.55;
    --sx-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  }
}

body.store-noir h1,
body.store-noir h2,
body.store-noir h3 {
  font-family: var(--sx-font);
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------------- Bandeau */

body.eyefind-store.store-noir .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  background: var(--sx-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  --store-text: var(--sx-text);
  --store-muted: var(--sx-muted);
  --store-border: var(--sx-line);
  --store-accent-strong: var(--sx-text);
}
body.eyefind-store.store-noir.sx-scrolled .topbar {
  border-bottom-color: var(--sx-line);
}
body.store-noir .store-navbar-logo {
  width: 128px;
}
body.store-noir .store-navbar-link {
  padding: 22px 0;
  font-size: 14px;
  font-weight: 600;
}
body.store-noir .store-navbar-link::after {
  bottom: 16px;
  height: 2px;
  background: var(--sx-text);
}
body.store-noir .store-cart-count {
  background: var(--sx-cta-bg);
  color: var(--sx-cta-fg);
}

/* Téléphone : les 6 onglets (Eyefind.info … Cadeaux) tenaient dans 6 colonnes
   égales et leurs libellés se tassaient sur 2 lignes. Barre d'onglets sur une
   ligne, défilable au doigt, libellés jamais coupés ; fondu au bord droit
   pour montrer qu'il y a une suite. (La règle ci-dessus, plus précise que
   celle de store.css, écrasait la version téléphone.) */
@media (max-width: 640px) {
  body.store-noir .store-navbar-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 4px -16px 0;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  body.store-noir .store-navbar-links::-webkit-scrollbar {
    display: none;
  }
  body.store-noir .store-navbar-link {
    flex: 0 0 auto;
    gap: 5px;
    min-width: 64px;
    padding: 8px 10px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  body.store-noir .store-navbar-link::after {
    bottom: 3px;
    left: 26%;
    right: 26%;
  }
  body.store-noir .store-navbar-link .store-cart-count {
    position: absolute;
    top: 2px;
    left: calc(50% + 6px);
    margin: 0;
  }
}

/* ------------------------------------------------------------- Gabarit */

.sx {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px 120px;
  box-sizing: border-box;
}
body.store-noir a {
  color: inherit;
}
body.store-noir a:hover {
  text-decoration: none;
}

.sx-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sx-accent);
}
.sx-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--sx-line-strong);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sx-muted);
}
.sx-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--sx-muted);
}
.sx-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.sx-group .sx-section-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  gap: 16px;
}
.sx-section-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--sx-text);
}

/* ------------------------------------------------------------- Boutons */

.sx-btn,
body.store-noir .sx-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: auto;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: none;
  font-family: var(--sx-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sx-btn-solid {
  background: var(--sx-solid-bg);
  color: var(--sx-solid-fg) !important;
}
.sx-btn-solid:hover {
  background: var(--sx-solid-hover);
}
.sx-btn-ghost {
  background: transparent;
  border-color: var(--sx-line-strong);
  color: var(--sx-text) !important;
}
.sx-btn-ghost:hover {
  border-color: var(--sx-text);
}
body.store-noir .sx-cta.btn-primary,
body.store-noir .sx-cta.btn {
  background: var(--sx-cta-bg);
  border-color: var(--sx-cta-bg);
  color: var(--sx-cta-fg);
  height: auto;
}
body.store-noir .sx-cta.btn-primary:hover,
body.store-noir .sx-cta.btn:hover {
  background: var(--sx-cta-hover);
  border-color: var(--sx-cta-hover);
  color: var(--sx-cta-fg);
  box-shadow: none;
  transform: none;
}
body.store-noir .sx-cta.btn-primary:active {
  transform: scale(0.98);
  box-shadow: none;
}
/* Réservé Prime / Pack actif : bouton secondaire, pas d'achat direct. */
body.store-noir .sx-cta.product-card-cta-prime,
body.store-noir .sx-cta.btn:not(.btn-primary) {
  background: transparent;
  border-color: var(--sx-line-strong);
  color: var(--sx-text);
}
body.store-noir .sx-cta.product-card-cta-prime:hover,
body.store-noir .sx-cta.btn:not(.btn-primary):hover {
  background: transparent;
  border-color: var(--sx-text);
  color: var(--sx-text);
}
body.store-noir .js-add-to-cart-form {
  display: inline-flex;
  margin: 0;
}
.sx-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sx-accent) !important;
}
.sx-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.sx-btn:focus-visible,
body.store-noir .sx-cta:focus-visible,
.sx-link:focus-visible,
.sx-pill:focus-visible,
.sx-chip:focus-visible,
.sx-amount:focus-visible {
  outline: 3px solid var(--sx-accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Accueil */

.sx-hero {
  padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.sx-hero-eyebrow {
  justify-content: center;
  font-size: 15px;
}
.sx-hero-title {
  margin: 0 auto;
  max-width: 13ch;
  font-size: clamp(48px, 8.2vw, 104px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--sx-text);
}
.sx-hero-sub {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--sx-muted);
}
.sx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Bannières : grandissent en arrivant à l'écran (CSS natif, voir plus bas
   « Effets au défilement »). */
.sx-showcase {
  margin: 0 0 clamp(96px, 12vw, 160px);
  transform-origin: 50% 0;
}
body.store-noir .store-carousel {
  margin: 0;
  border-radius: 24px;
  box-shadow: var(--sx-shadow);
  background: var(--sx-surface);
}
body.store-noir .store-carousel-arrow {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
}
body.store-noir .store-carousel:hover .store-carousel-arrow,
body.store-noir .store-carousel-arrow:focus-visible {
  opacity: 1;
}
body.store-noir .store-carousel-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.store-noir .store-carousel-dot {
  width: 7px;
  height: 7px;
}
body.store-noir .store-carousel-dot.active {
  width: 22px;
  border-radius: 999px;
  transform: none;
}

/* Phrase qui s'allume mot à mot pendant le défilement. */
.sx-statement {
  padding: 0 0 clamp(96px, 12vw, 160px);
}
.sx-statement-text {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--sx-text);
}
/* Chaque mot s'allume à son tour pendant que la phrase monte à l'écran
   (CSS natif : la phrase sert de repère, --i = rang du mot). Sans cette
   fonction, la phrase s'affiche simplement en entier. */
@keyframes sx-word {
  from { color: var(--sx-dim); }
  to { color: var(--sx-text); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sx-statement-text {
      view-timeline-name: --sx-words;
    }
    .sx-statement-text span {
      animation: sx-word linear both;
      animation-timeline: --sx-words;
      animation-range: cover calc(12% + var(--i) * 2.4%) cover calc(16% + var(--i) * 2.4%);
    }
  }
}

/* ----------------------------------------------------- Barre catalogue */

.sx-toolbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 -24px 72px;
  padding: 12px 24px;
  background: var(--sx-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  scroll-margin-top: 64px;
}
/* Catégories : une rangée qui défile sur le côté. Un fondu et une flèche
   (PC) signalent qu'il y en a d'autres de ce côté (classes can-prev /
   can-next posées par store-noir.js). */
.sx-chips-wrap {
  position: relative;
  display: flex;
  flex: 1 1 420px;
  min-width: 0;
}
.sx-chips {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.sx-chips-wrap.can-next .sx-chips {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
}
.sx-chips-wrap.can-prev .sx-chips {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px);
  mask-image: linear-gradient(90deg, transparent, #000 64px);
}
.sx-chips-wrap.can-prev.can-next .sx-chips {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.sx-chips-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sx-surface);
  color: var(--sx-text);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.sx-chips-arrow.is-prev { left: 0; }
.sx-chips-arrow.is-next { right: 0; }
.sx-chips-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
  .sx-chips-wrap.can-prev .sx-chips-arrow.is-prev,
  .sx-chips-wrap.can-next .sx-chips-arrow.is-next { display: grid; }
}
.sx-chips::-webkit-scrollbar {
  display: none;
}
.sx-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sx-muted) !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.sx-chip span {
  font-size: 12px;
  color: var(--sx-muted);
}
.sx-chip:hover {
  color: var(--sx-text) !important;
}
.sx-chip.is-active {
  background: var(--sx-solid-bg);
  color: var(--sx-solid-fg) !important;
}
.sx-chip.is-active span {
  color: var(--sx-solid-fg);
  opacity: 0.7;
}
.sx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--sx-surface);
  flex: 0 1 220px;
  /* Sans ça, le champ garde sa largeur naturelle et pousse le tri hors de l'écran. */
  min-width: 0;
}
.sx-sort {
  flex: 0 0 auto;
}
.sx-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--sx-muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.sx-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--sx-text);
  font: 500 14px var(--sx-font);
}
.sx-search input::placeholder {
  color: var(--sx-muted);
}
body.store-noir .sx-sort select {
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  background-color: var(--sx-surface);
  color: var(--sx-text);
  font: 600 14px var(--sx-font);
}

/* --------------------------------------------------------- Affiches */

/* Affiche montrée en ENTIER (jamais recadrée), sur un halo flouté
   d'elle-même : la couleur du produit déborde doucement autour. */
.sx-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sx-surface);
  isolation: isolate;
}
.sx-media::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: var(--sx-img) center / cover no-repeat;
  filter: blur(48px) saturate(1.4);
  opacity: var(--sx-halo-opacity);
}
.sx-media img {
  display: block;
  max-width: 82%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.45);
}
.sx-media-empty svg {
  width: 30%;
  height: auto;
  color: var(--sx-muted);
}
.sx-media-tall {
  aspect-ratio: 4 / 5;
}

/* ---------------------------------------------- Panneau produit seul */

.sx-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(110px, 13vw, 180px);
}
.sx-feature.is-reverse .sx-feature-media {
  order: 2;
}
.sx-feature-media {
  display: block;
}
.sx-feature-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}
/* Liens dans les titres : le style global des liens du site imposait sa
   taille (14 px) et son espacement ; ici ils prennent ceux du titre. */
.sx-feature-title a,
.sx-tile-title a {
  font: inherit;
  letter-spacing: inherit;
  word-spacing: normal;
  color: inherit;
}
.sx-feature-title a:hover,
.sx-tile-title a:hover {
  color: var(--sx-accent);
}
.sx-checks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}
.sx-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sx-checks svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--sx-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sx-buy {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--sx-line);
}
.sx-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.sx-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sx-text);
}
.sx-price-xl {
  font-size: clamp(44px, 5vw, 60px);
  letter-spacing: -0.04em;
}
.sx-price-old {
  font-size: 18px;
  color: var(--sx-muted);
  text-decoration: line-through;
}
.sx-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--sx-accent);
}
.sx-note {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--sx-muted);
}
.sx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

/* ------------------------------------------------------ Configurateur */

.sx-config {
  margin-bottom: clamp(110px, 13vw, 180px);
  scroll-margin-top: 140px;
}
.sx-config-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.sx-config-stage {
  position: sticky;
  top: 140px;
  display: grid;
}
.sx-config-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.sx-config-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.sx-config-step {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}
.sx-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sx-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 76px;
  padding: 16px 18px;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1.5px solid var(--sx-line-strong);
  color: var(--sx-text) !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.sx-pill:hover {
  border-color: var(--sx-muted);
}
.sx-pill.is-active {
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 1px var(--sx-accent);
}
.sx-pill-name {
  font-size: 17px;
  font-weight: 700;
}
.sx-pill-weeks {
  font-size: 14px;
  color: var(--sx-muted);
}
.sx-pill-save {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sx-accent);
}
.sx-config-detail {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--sx-line);
}
.sx-config-detail[hidden] {
  display: none;
}
.sx-anim .sx-config-detail.is-active {
  animation: sx-fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sx-config-summary {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sx-muted);
}
.sx-config-week {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--sx-muted);
}
.sx-config-week strong {
  color: var(--sx-accent);
}
.sx-config-desc {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sx-muted);
}
.sx-config-all {
  margin-top: 30px;
}

/* ------------------------------------------------- Cartes verticales */

.sx-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: clamp(110px, 13vw, 180px);
}
.sx-group {
  margin-bottom: clamp(110px, 13vw, 180px);
}
.sx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.sx-tile {
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background: var(--sx-surface);
  overflow: hidden;
  transition: translate 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
/* "translate" et non "transform" : l'animation d'apparition occupe déjà
   transform sur ces cartes. */
.sx-tile:hover {
  translate: 0 -4px;
  box-shadow: var(--sx-shadow);
}
.sx-tile-media .sx-media {
  border-radius: 0;
  background: transparent;
  aspect-ratio: 5 / 4;
}
.sx-tile-media .sx-media img {
  max-height: 84%;
}
.sx-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 32px 32px;
}
.sx-tile-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sx-tile-desc {
  margin: 0;
  font-size: 16px;
  color: var(--sx-muted);
}
.sx-tile-foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sx-tile-foot .sx-price {
  font-size: 26px;
}

/* ----------------------------------------------------------- Cadeaux */

.sx-gift {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(40px, 6vw, 72px);
  border-radius: 36px;
  background: var(--sx-surface);
  perspective: 1200px;
}
.sx-gift-card {
  aspect-ratio: 1.6;
  border-radius: 24px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(140deg, #2b2b31 0%, #0d0d10 100%);
  color: #f5f5f7;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7);
  transform: rotateX(var(--sx-rx, 6deg)) rotateY(var(--sx-ry, -10deg));
  transition: transform 0.3s ease;
}
.sx-gift-card img {
  width: 120px;
  height: auto;
}
.sx-gift-card-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a1a1a6;
}
.sx-gift-card strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e9c46a;
}
.sx-gift-text .sx-section-title {
  margin-bottom: 16px;
}
.sx-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.sx-amount {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sx-line-strong);
  font-size: 15px;
  font-weight: 700;
  color: var(--sx-text) !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.sx-amount:hover {
  background: var(--sx-solid-bg);
  border-color: var(--sx-solid-bg);
  color: var(--sx-solid-fg) !important;
}

.sx-empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--sx-muted);
}
.sx-empty h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--sx-text);
}
.sx-empty[hidden] {
  display: none;
}

/* ----------------------------------------------------- Pied de page */

body.eyefind-store.store-noir .footer {
  background: var(--sx-bg-alt);
  border-top: 1px solid var(--sx-line);
  color: var(--sx-muted);
}
body.eyefind-store.store-noir .footer a,
body.eyefind-store.store-noir .gtaw-badge-text {
  color: var(--sx-muted);
}
body.eyefind-store.store-noir .footer-links a:hover {
  color: var(--sx-text);
}
body.eyefind-store.store-noir .footer-top {
  border-bottom-color: var(--sx-line);
}

/* --------------------------------------------- Apparitions (JS actif) */

/* Animées par le navigateur selon leur position à l'écran (CSS « scroll-
   driven animations ») : aucun script nécessaire, rien ne peut rester caché.
   Navigateur qui ne connaît pas cette fonction : contenu affiché tel quel. */
@keyframes sx-reveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes sx-grow {
  from { transform: scale(0.88); }
  to { transform: scale(1); }
}
@keyframes sx-float {
  from { transform: translateY(28px) scale(0.97); }
  50% { transform: translateY(0) scale(1); }
  to { transform: translateY(-28px) scale(0.97); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: sx-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    /* Bannière de l'accueil : passe de 88 % à 100 % en montant. */
    .sx-showcase {
      animation: sx-grow linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    /* Affiches : flottent doucement en traversant l'écran. */
    [data-sx-parallax] img {
      animation: sx-float linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes sx-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-showcase {
    transform: none;
  }
  .sx-media img,
  .sx-config-slide,
  .sx-tile,
  .sx-gift-card {
    transition: none;
    transform: none;
  }
  .sx-anim .sx-statement-text span {
    color: var(--sx-text);
  }
  /* "body" : ces deux règles sont définies plus bas dans le fichier. */
  body .sx-pdp-media-inner {
    transform: none;
  }
  body .sx-buybar {
    transition: none;
  }
}

/* ==========================================================================
   Fiche produit (store/produit.php) : affiche collée à gauche pendant la
   lecture, choix de la durée, boîte d'achat, avantages en grand, avis, et
   barre d'achat qui apparaît en bas quand le bouton sort de l'écran.
   ========================================================================== */

.sx-btn-cta {
  background: var(--sx-cta-bg);
  color: var(--sx-cta-fg) !important;
}
.sx-btn-cta:hover {
  background: var(--sx-cta-hover);
}
.sx-btn-wide {
  flex: 1 1 auto;
  min-height: 52px;
  font-size: 17px;
}

.sx-product {
  padding-top: 24px;
}
.sx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--sx-muted);
}
.sx-breadcrumb a {
  color: var(--sx-muted) !important;
}
.sx-breadcrumb a:hover {
  color: var(--sx-text) !important;
}
.sx-breadcrumb [aria-current] {
  color: var(--sx-text);
  font-weight: 600;
}

.sx-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(100px, 12vw, 160px);
}
.sx-pdp-media-inner {
  position: sticky;
  top: 88px;
}
.sx-media-hero {
  aspect-ratio: 4 / 5;
  border-radius: 32px;
}
.sx-media-hero img {
  max-width: 78%;
  max-height: 84%;
}
.sx-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.sx-thumb {
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 14px;
  border: 1.5px solid var(--sx-line);
  background: var(--sx-surface);
  cursor: pointer;
}
.sx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.sx-thumb.is-active {
  border-color: var(--sx-accent);
}
.sx-pdp-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.sx-pdp-subtitle {
  margin: 10px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--sx-muted);
}
.sx-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--sx-muted) !important;
}
.sx-pdp-info .sx-lead {
  margin-top: 20px;
}
.sx-pdp-step {
  margin-top: 36px;
}
.sx-pill[aria-current="page"] {
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 1px var(--sx-accent);
}

.sx-buybox {
  margin-top: 36px;
  padding: 30px;
  border-radius: 28px;
  background: var(--sx-surface);
  scroll-margin-top: 100px;
}
.sx-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.sx-buy-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sx-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sx-buy-info {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--sx-muted);
}
.sx-buy-info strong {
  color: var(--sx-text);
}
.sx-buy-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.sx-buy-secondary .sx-link {
  font-size: 15px;
}
.sx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.sx-field select,
.sx-field textarea {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--sx-line-strong);
  background: var(--sx-surface-2);
  color: var(--sx-text);
  font: 500 15px var(--sx-font);
}
.sx-field textarea {
  min-height: 96px;
  resize: vertical;
}
.sx-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--sx-muted);
}
.sx-check input {
  margin-top: 3px;
}
body.store-noir .sx-qty {
  display: inline-flex;
  align-items: center;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--sx-line-strong);
  background: var(--sx-surface-2);
  overflow: hidden;
}
body.store-noir .sx-qty button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--sx-text);
  font-size: 20px;
  cursor: pointer;
}
body.store-noir .sx-qty input {
  width: 40px;
  border: 0;
  background: transparent;
  color: var(--sx-text);
  font: 700 16px var(--sx-font);
  text-align: center;
  -moz-appearance: textfield;
}
body.store-noir .sx-qty input::-webkit-inner-spin-button,
body.store-noir .sx-qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.sx-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--sx-line);
  font-size: 13px;
  color: var(--sx-muted);
}
.sx-secure svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sx-secure a {
  color: var(--sx-text) !important;
  font-weight: 600;
}

/* Avantages en grand. */
.sx-perks {
  margin-bottom: clamp(100px, 12vw, 160px);
  text-align: center;
}
.sx-perks .sx-section-title {
  margin-bottom: 48px;
}
.sx-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}
/* Un seul avantage : carte centrée plutôt qu'étirée sur toute la largeur. */
.sx-perks-grid:has(> .sx-perk:only-child) {
  max-width: 560px;
  margin: 0 auto;
}
.sx-perk {
  padding: 36px 32px;
  border-radius: 28px;
  background: var(--sx-surface);
}
.sx-perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 18px;
  background: var(--sx-surface-2);
}
.sx-perk-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--sx-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sx-perk h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.sx-perk-weeks {
  margin: 4px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sx-accent);
}
.sx-perk p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sx-muted);
}
.sx-perk.is-skipped {
  opacity: 0.55;
}

.sx-story {
  max-width: 820px;
  margin: 0 auto clamp(100px, 12vw, 160px);
  text-align: center;
}
.sx-story p {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sx-text);
}

.sx-section-title-sm {
  font-size: clamp(30px, 3.6vw, 44px);
}
.sx-specs {
  margin-bottom: clamp(90px, 10vw, 140px);
}
.sx-specs dl {
  margin: 28px 0 0;
  border-top: 1px solid var(--sx-line);
}
.sx-specs dl > div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sx-line);
}
.sx-specs dt {
  font-weight: 700;
  color: var(--sx-text);
}
.sx-specs dd {
  margin: 0;
  color: var(--sx-muted);
}

.sx-reviews {
  margin-bottom: clamp(90px, 10vw, 140px);
}
.sx-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.sx-reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.sx-reviews-score strong {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.sx-reviews-score span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--sx-muted);
}
body.store-noir .sx-review-form {
  max-width: 640px;
  padding: 26px;
  border-radius: 24px;
  background: var(--sx-surface);
  border: 0;
  box-shadow: none;
}
.sx-review-rating {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}
.sx-review-rating legend {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}
.sx-review-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.sx-review-delete {
  margin-top: 10px;
}
.sx-link-button {
  padding: 0;
  border: 0;
  background: none;
  font: 600 14px var(--sx-font);
  color: var(--sx-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sx-reviews-empty {
  margin: 28px 0 0;
  font-size: 16px;
  color: var(--sx-muted);
}
.sx-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.sx-review {
  display: flex;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: var(--sx-surface);
}
.sx-review-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sx-surface-2);
  font-weight: 800;
}
.sx-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sx-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 4px;
  font-size: 15px;
}
.sx-review-head time {
  color: var(--sx-muted);
  font-size: 13px;
}
.sx-review-text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sx-muted);
}

/* Barre d'achat en bas d'écran (quand la boîte d'achat n'est plus visible). */
.sx-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  background: var(--sx-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--sx-line);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sx-buybar.is-visible {
  transform: none;
}
.sx-buybar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}
.sx-buybar-name {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sx-buybar-price {
  font-weight: 800;
  font-size: 18px;
}

@media (max-width: 900px) {
  .sx-pdp {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-pdp-media-inner {
    position: relative;
    top: 0;
    max-width: 480px;
    margin: 0 auto;
  }
  .sx-specs dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
@media (max-width: 640px) {
  .sx-buybox {
    padding: 22px;
  }
  .sx-buybar-name {
    font-size: 14px;
  }
}

/* ==========================================================================
   Autres pages du Store (produit, panier, commandes, packs, cadeaux) :
   leurs composants viennent de store.css ; on les aligne ici sur le style
   Noir (couleurs via les variables, quelques réglages de forme).
   ========================================================================== */

html body.eyefind-store.store-noir {
  --store-accent: var(--sx-text);
  --store-accent-ink: var(--sx-bg);
  --store-accent-soft: var(--sx-surface);
  --store-cyan: var(--sx-accent);
  --store-cyan-soft: var(--sx-surface);
  --store-link: var(--sx-accent);
  --store-navy: #1c1c1f;
  --store-navy-soft: #2c2c30;
  --store-orange: var(--sx-accent);
  --store-yellow-shade: transparent;
  --store-yellow-soft: var(--sx-surface);
  --store-shadow: var(--sx-shadow);
  --store-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 30px -18px rgba(0, 0, 0, 0.25);
  --store-radius-lg: 28px;
  --store-radius-md: 20px;
  --store-radius-sm: 14px;
  --store-danger: #c4342b;
  --store-danger-soft: rgba(196, 52, 43, 0.08);
  --store-success: #1d7a46;
  --store-success-soft: rgba(29, 122, 70, 0.09);
}
html[data-theme="dark"] body.eyefind-store.store-noir {
  --store-danger: #ff8a7a;
  --store-danger-soft: rgba(255, 138, 122, 0.12);
  --store-success: #5bcb94;
  --store-success-soft: rgba(91, 203, 148, 0.12);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.eyefind-store.store-noir {
    --store-danger: #ff8a7a;
    --store-danger-soft: rgba(255, 138, 122, 0.12);
    --store-success: #5bcb94;
    --store-success-soft: rgba(91, 203, 148, 0.12);
  }
}

/* Gabarit et titres des pages internes. */
body.store-noir .store-page,
body.store-noir .store-page-narrow {
  padding-top: 40px;
}
body.store-noir .store-page {
  width: min(1180px, 100%);
  box-sizing: border-box;
}
body.store-noir .store-page h1,
body.store-noir .store-page-narrow h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}
body.store-noir .store-page h2,
body.store-noir .store-page-narrow h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Boutons : plus de relief jaune, des pilules nettes. */
body.eyefind-store.store-noir .btn {
  font-family: var(--sx-font);
  font-weight: 700;
  box-shadow: none;
}
body.eyefind-store.store-noir .btn-primary {
  background: var(--sx-cta-bg);
  border-color: var(--sx-cta-bg);
  color: var(--sx-cta-fg);
  box-shadow: none;
}
body.eyefind-store.store-noir .btn-primary:hover {
  background: var(--sx-cta-hover);
  border-color: var(--sx-cta-hover);
  color: var(--sx-cta-fg);
  box-shadow: none;
  transform: none;
}
body.eyefind-store.store-noir .btn-primary:active {
  transform: scale(0.98);
  box-shadow: none;
}
body.eyefind-store.store-noir .store-btn-outline {
  border-width: 1.5px;
  border-color: var(--sx-line-strong);
}

/* Cartes produit : plus d'autocollant blanc fixe, elles suivent le thème. */
body.store-noir .product-card {
  --store-surface: var(--sx-surface);
  --store-surface-soft: var(--sx-surface);
  --store-surface-hover: var(--sx-surface-2);
  --store-border: transparent;
  --store-border-strong: var(--sx-line-strong);
  --store-text: var(--sx-text);
  --store-muted: var(--sx-muted);
  --store-accent: var(--sx-text);
  --store-link: var(--sx-accent);
  --store-success: var(--sx-muted);
  --store-success-soft: transparent;
  --store-danger: var(--sx-accent);
  --store-danger-soft: transparent;
  border-radius: 26px;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease;
}
body.store-noir .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sx-shadow);
}
body.store-noir .product-card-media {
  background: transparent;
}
body.store-noir .product-card-media img {
  object-fit: contain;
}
body.store-noir .product-card-price,
body.store-noir .product-card-name {
  font-family: var(--sx-font);
  letter-spacing: -0.02em;
}

/* Badges : discrets, sans couleurs criardes. */
body.store-noir .product-badge,
body.store-noir .product-badge-bestseller,
body.store-noir .product-badge-limited,
body.store-noir .product-badge-prime,
body.store-noir .product-badge-new,
body.store-noir .product-badge-promo,
body.store-noir .product-badge-sponsored {
  background: var(--sx-glass);
  color: var(--sx-text);
  border: 1px solid var(--sx-line);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.store-noir .product-card-cta-prime,
body.store-noir .product-card-cta-prime:hover {
  background: transparent;
  border-color: var(--sx-line-strong);
  color: var(--sx-text);
}

/* Paliers (fiche produit, catégorie) et galerie de la fiche produit. */
body.store-noir .store-tiers-visual,
body.store-noir .product-detail-gallery-main,
body.store-noir .product-detail-gallery-thumbs img {
  background: var(--sx-surface);
}
body.store-noir .store-tier.is-best {
  --store-text: var(--sx-text);
  --store-muted: var(--sx-muted);
  --store-success: var(--sx-accent);
  background: var(--sx-surface);
  border-color: var(--sx-accent);
  box-shadow: 0 0 0 1px var(--sx-accent);
}
body.eyefind-store.store-noir .store-tier.is-best .btn-primary {
  background: var(--sx-cta-bg);
  color: var(--sx-cta-fg);
  box-shadow: none;
}

/* Plus d'« ombre autocollant » jaune sous les visuels de l'ancien style. */
body.eyefind-store.store-noir .product-detail-gallery-main,
body.store-noir .store-tiers-visual {
  box-shadow: none;
}

/* Étoiles des avis : couleur d'accent (or en sombre, ambre en clair). */
body.store-noir .store-stars .star-filled {
  fill: var(--sx-accent);
}
body.store-noir .store-star-picker label:hover,
body.store-noir .store-star-picker label:hover ~ label,
body.store-noir .store-star-picker input:checked ~ label {
  color: var(--sx-accent);
}

/* Cartes cadeaux et solde : objet sombre dans les deux thèmes, montant en
   or (sinon, en thème clair, le montant prenait la couleur des boutons
   noirs et disparaissait sur la carte). */
body.store-noir .store-gift-card,
body.store-noir .store-gift-balance {
  --store-yellow: #e9c46a;
  --store-yellow-ink: #111114;
  background: linear-gradient(140deg, #2b2b31 0%, #0d0d10 100%);
  border-color: #3a3a40;
  box-shadow: var(--sx-shadow);
}
body.eyefind-store.store-noir .store-gift-balance .btn-primary,
body.eyefind-store.store-noir .store-gift-balance .btn-primary:hover {
  background: #e9c46a;
  border-color: #e9c46a;
  color: #111114;
}
body.store-noir .store-gift-card-kicker,
body.store-noir .store-gift-card-from,
body.store-noir .store-gift-balance span:last-child {
  color: #a1a1a6;
}

/* ------------------------------------------------------------ Mobile */

@media (max-width: 900px) {
  .sx-feature,
  .sx-config-body,
  .sx-gift {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-feature.is-reverse .sx-feature-media {
    order: 0;
  }
  .sx-config-stage {
    position: relative;
    top: 0;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .sx-duo {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-gift-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  /* Bandeau sur deux lignes au téléphone : il défile avec la page, seule la
     barre du catalogue reste collée en haut. */
  body.eyefind-store.store-noir .topbar {
    position: relative;
  }
  .sx {
    padding: 0 16px 96px;
  }
  .sx-toolbar {
    top: 0;
    margin: 0 -16px 56px;
    padding: 10px 16px;
  }
  /* Téléphone : les catégories ont toute la largeur, recherche et tri dessous. */
  .sx-chips-wrap {
    flex-basis: 100%;
    margin: 0 -16px;
  }
  .sx-chips {
    padding: 0 16px;
    scroll-padding: 0 16px;
  }
  .sx-search {
    flex: 1 1 140px;
  }
  .sx-pills {
    grid-template-columns: minmax(0, 1fr);
  }
  .sx-tile-body {
    padding: 22px 22px 26px;
  }
  .sx-group .sx-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  body.store-noir .store-carousel-arrow {
    display: none;
  }
}
