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

/* ══════════════════════════════════════════════════════════════
   EV-SHOP CSS v5.0 — Source unique, zéro override
   Toutes les classes extraites de shop-render.php actuel
══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   1. RACINE — variables + reset + container
───────────────────────────────────────── */
.ev-shop {
  /* — Tokens couleurs dark (défaut) — */
  --acc:       #ff8c00;
  --blue:      #4da3ff;
  --green:     #31d48d;
  --red:       #ff5d5d;

  /* — Surfaces (dérivées du preset via --sh-dark-* injectées par PHP) — */
  --bg:        var(--sh-dark-bg,    #0b1018);
  --card:      var(--sh-dark-card,  #0f1522);
  --card2:     var(--sh-dark-card-2,#0c1220);
  /* surf = card légèrement plus clair / surf2 = card légèrement plus sombre */
  --surf:      color-mix(in srgb, var(--card) 96%, white 4%);
  --surf2:     color-mix(in srgb, var(--card) 90%, black 10%);
  --txt:       var(--sh-dark-text,  #ebf0ff);
  --mut:       var(--sh-dark-muted, rgba(235,240,255,.52));
  --bdr:       rgba(255,255,255,.08);

  /* — Tokens fonctionnels — */
  --price-col: var(--sh-dark-price,     #ff9f43);
  --btn-bg:    var(--sh-dark-btn-bg,    #ff8c00);
  --btn-txt:   var(--sh-dark-btn-text,  #fff);
  --promo-bg:  var(--sh-dark-promo-bg,  rgba(255,118,68,.16));
  --promo-txt: var(--sh-dark-promo-text,#ffd2bd);
  --stock-bg:  var(--sh-dark-stock-bg,  rgba(49,212,141,.14));
  --stock-txt: var(--sh-dark-stock-text,#b8ffd8);

  /* — Dimensionnels — */
  --radius:    24px;
  --img-h:     280px;
  --cols:      3;

  /* — Reset complet — */
  all: initial;
  display: block;
  box-sizing: border-box;

  /* — Container centré avec fond full width — */
  position: relative;
  isolation: isolate;
  overflow: visible;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(16px, 2vw, 28px);
  padding-inline: max(16px, calc((100vw - var(--container-max, 1680px)) / 2 + 16px));
  padding-bottom: 48px;
  color: var(--txt);
  font: 500 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Laisse le fond déborder hors des wrappers boxed (Elementor / thème) */
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-container,
.e-con,
.e-con-inner,
.site-main,
.entry-content,
.wp-site-blocks {
  overflow: visible !important;
}

/* Fond pleine largeur */
.ev-shop::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 460px at 0% 0%, color-mix(in srgb, var(--acc) 7%, transparent), transparent 54%),
    radial-gradient(1100px 500px at 100% 0%, color-mix(in srgb, var(--blue,#4da3ff) 8%, transparent), transparent 52%),
    var(--bg);
  z-index: -1;
  pointer-events: none;
}
/* En mode light : fond clair */
.ev-shop.is-theme-light::before {
  background:
    radial-gradient(1200px 440px at 0% 0%, color-mix(in srgb, var(--acc) 6%, transparent), transparent 56%),
    radial-gradient(1100px 460px at 100% 0%, color-mix(in srgb, var(--blue,#4da3ff) 6%, transparent), transparent 54%),
    var(--bg, #f4f7fb);
}


@media (max-width: 760px) {
  .ev-shop {
    padding-inline: 16px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* Reset des éléments enfants */
.ev-shop *, .ev-shop *::before, .ev-shop *::after { box-sizing: border-box; }
.ev-shop a,
.ev-shop a:any-link,
.ev-shop a:hover,
.ev-shop a:focus,
.ev-shop a:active,
.ev-shop a:visited    { color: inherit; text-decoration: none !important; }
.ev-shop button       { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
.ev-shop img          { display: block; max-width: 100%; }
.ev-shop input,
.ev-shop select,
.ev-shop textarea     { font: inherit; }
.ev-shop ul, .ev-shop ol { list-style: none; margin: 0; padding: 0; }
.ev-shop p,
.ev-shop h1, .ev-shop h2, .ev-shop h3, .ev-shop h4 { margin: 0; }

/* — État chargement — */
.ev-shop.is-loading { opacity: .7; pointer-events: none; cursor: wait; }

/* ─────────────────────────────────────────
   2. LIGHT MODE
───────────────────────────────────────── */
.ev-shop.is-theme-light {
  --bg:        var(--sh-light-bg,    #f4f7fb);
  --card:      var(--sh-light-card,  #ffffff);
  --card2:     var(--sh-light-card-2,#f0f5fc);
  --surf:      color-mix(in srgb, var(--card) 97%, var(--bg) 3%);
  --surf2:     color-mix(in srgb, var(--card2) 95%, var(--bg) 5%);
  --txt:       var(--sh-light-text,  #0f1a2e);
  --mut:       var(--sh-light-muted, rgba(15,26,46,.52));
  --bdr:       rgba(15,26,46,.09);
  --price-col: var(--sh-light-price,    #d4700e);
  --btn-bg:    var(--sh-light-btn-bg,   #e07d10);
  --btn-txt:   var(--sh-light-btn-text, #fff);
  --promo-bg:  var(--sh-light-promo-bg,  rgba(224,125,16,.10));
  --promo-txt: var(--sh-light-promo-text,#a94c22);
  --stock-bg:  var(--sh-light-stock-bg,  rgba(22,163,74,.10));
  --stock-txt: var(--sh-light-stock-text,#0f7a46);
  /* Pas de background sur le container */
}

/* ── Anti-flash mode auto ─────────────────────────────────────────────────────
   Le script <head> (injecté par PHP) pose data-ev-pretheme="light" sur <html>
   dès qu'il lit "light" dans localStorage (wp-dark-mode, theme, etc.).
   Ce sélecteur haute-spécificité applique les CSS vars light AVANT le premier
   rendu, sans attendre shop.js — zéro flash même en mode auto sur rechargement.
   JS fait ensuite applyTheme() normalement et retire l'attribut.
─────────────────────────────────────────────────────────────────────────── */
html[data-ev-pretheme="light"] .ev-shop[data-theme-mode="auto"] {
  --bg:        var(--sh-light-bg,    #f4f7fb);
  --card:      var(--sh-light-card,  #ffffff);
  --card2:     var(--sh-light-card-2,#f0f5fc);
  --surf:      color-mix(in srgb, var(--card) 97%, var(--bg) 3%);
  --surf2:     color-mix(in srgb, var(--card2) 95%, var(--bg) 5%);
  --txt:       var(--sh-light-text,  #0f1a2e);
  --mut:       var(--sh-light-muted, rgba(15,26,46,.52));
  --bdr:       rgba(15,26,46,.09);
  --price-col: var(--sh-light-price,    #d4700e);
  --btn-bg:    var(--sh-light-btn-bg,   #e07d10);
  --btn-txt:   var(--sh-light-btn-text, #fff);
  --promo-bg:  var(--sh-light-promo-bg,  rgba(224,125,16,.10));
  --promo-txt: var(--sh-light-promo-text,#a94c22);
  --stock-bg:  var(--sh-light-stock-bg,  rgba(22,163,74,.10));
  --stock-txt: var(--sh-light-stock-text,#0f7a46);
  /* Écrase le fond anti-flash sombre injecté par PHP pour les presets sombres en mode auto */
  background: var(--sh-light-bg, #f4f7fb) !important;
  color: var(--sh-light-text, #0f1a2e) !important;
}

/* ─────────────────────────────────────────
   3. HERO
───────────────────────────────────────── */
.ev-shop .sh-hero {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  min-height: var(--hero-height, 320px);
  background:
    radial-gradient(800px 320px at 0% 0%,   rgba(255,140,0,.22),    transparent 50%),
    radial-gradient(700px 320px at 100% 0%,  rgba(47,120,255,.24),   transparent 50%),
    radial-gradient(500px 400px at 50% 110%, rgba(255,140,0,.08),    transparent 60%),
    linear-gradient(165deg, rgba(8,12,24,.82) 0%, rgba(6,9,20,.96) 100%),
    var(--hero-media, none) center / cover no-repeat,
    var(--hero-bg-color, #070b1a);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 28px 72px rgba(0,0,0,.42),
    0 8px 32px rgba(0,0,0,.28);
}
.ev-shop.is-theme-light .sh-hero {
  background:
    radial-gradient(900px 380px at 0% 0%, color-mix(in srgb, var(--acc) 18%, transparent), transparent 52%),
    radial-gradient(800px 360px at 100% 0%, color-mix(in srgb, var(--blue, #4da3ff) 14%, transparent), transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,.92), rgba(244,249,255,.98)),
    var(--hero-media, none) center / cover no-repeat,
    var(--hero-bg-color-light, #ffffff);
  border-color: rgba(15,26,46,.07);
  box-shadow: 0 16px 48px rgba(22,35,55,.10), inset 0 1px 0 rgba(255,255,255,.9);
}

/* Overlay */
.ev-shop .sh-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(6,9,20,.38) 0%,
      rgba(6,9,20,.62) 45%,
      rgba(6,9,20,.72) 100%);
  opacity: var(--hero-overlay-strength, .72);
}
.ev-shop.is-theme-light .sh-hero::before {
  background: linear-gradient(180deg,
    rgba(255,255,255,.78) 0%,
    rgba(244,248,255,.92) 100%);
}

/* Variantes hero */
.ev-shop .sh-hero.is-no-media {
  background:
    radial-gradient(1100px 400px at 0% 0%, rgba(255,140,0,.16), transparent 55%),
    radial-gradient(980px 420px at 100% 0%, rgba(77,163,255,.16), transparent 54%),
    linear-gradient(175deg, color-mix(in srgb, var(--card2) 92%, #09111e 8%), color-mix(in srgb, var(--card) 94%, #07101b 6%));
}
.ev-shop.is-theme-light .sh-hero.is-no-media {
  background:
    radial-gradient(1100px 400px at 0% 0%, rgba(224,125,16,.12), transparent 55%),
    radial-gradient(980px 420px at 100% 0%, rgba(72,145,255,.12), transparent 54%),
    linear-gradient(175deg, #eef4fb, #f8fbff);
}
.ev-shop .sh-hero.is-style-soft { border-color: color-mix(in srgb, var(--acc) 22%, var(--bdr)); }
.ev-shop .sh-hero.is-style-soft::before { background: linear-gradient(120deg, rgba(7,11,20,.72), rgba(7,11,20,.22)), linear-gradient(180deg, rgba(7,11,20,.05), rgba(7,11,20,.38)); }
.ev-shop.is-theme-light .sh-hero.is-style-soft::before { background: linear-gradient(120deg, rgba(255,255,255,.88), rgba(255,255,255,.36)), linear-gradient(180deg, rgba(255,255,255,.10), rgba(241,245,252,.46)); }
.ev-shop .sh-hero.is-style-split .sh-hero-inner { grid-template-columns: minmax(0,1fr) minmax(220px,.62fr); }
.ev-shop .sh-hero.is-align-center .sh-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
/* hero-inner est désormais flex centré par défaut */
.ev-shop .sh-hero.is-style-split .sh-hero-inner {
  flex-direction: row; align-items: center; justify-content: space-between; text-align: left;
}
.ev-shop .sh-hero.is-style-split .sh-hero-copy { align-items: flex-start; }
/* Glow */
.ev-shop .sh-hero.has-glow::after {
  content: ''; position: absolute; inset: auto -10% -36% auto;
  width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 24%, transparent) 0%, transparent 70%);
  filter: blur(20px);
}

/* Parallaxe : l'image de fond scroll plus lentement que le contenu.
   Sur desktop : CSS background-attachment:fixed sur la couche image.
   Sur mobile  : désactivé (comportement fixé = iOS bug), JS prend le relai. */
.ev-shop .sh-hero.has-parallax {
  background-attachment: scroll, scroll, scroll, scroll, fixed, scroll;
}
@media (max-width: 760px) {
  /* iOS ne supporte pas background-attachment:fixed dans un container transformé */
  .ev-shop .sh-hero.has-parallax {
    background-attachment: scroll;
  }
}
/* Le JS injecte --parallax-offset pour les mobiles via translateY sur .sh-hero-parallax-layer */
.ev-shop .sh-hero-parallax-layer {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: inherit;
  background-attachment: scroll !important;
  transform: translateY(var(--parallax-offset, 0px));
  transition: transform .1s linear;
  will-change: transform;
}

/* Layout intérieur hero */
.ev-shop .sh-hero-inner {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: calc(var(--hero-height, 320px) - 2 * clamp(28px, 4vw, 42px));
  text-align: center;
}
.ev-shop .sh-hero-copy {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  max-width: 900px; width: 100%;
}

/* Badge hero */
.ev-shop .sh-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  color: var(--acc); font-size: 11px; font-weight: 800;
  letter-spacing: .20em; text-transform: uppercase; width: fit-content;
}
.ev-shop.is-theme-light .sh-badge { color: #c96a12; background: rgba(224,125,16,.10); border-color: rgba(224,125,16,.24); }
.ev-shop .sh-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* Textes hero */
/* ── Textes hero — style header site (uppercase géant centré) ── */
.ev-shop .sh-overtitle {
  color: var(--acc);
  font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  text-align: center;
}
.ev-shop.is-theme-light .sh-overtitle { color: var(--acc); }

/* Titre principal : uppercase massif comme les headers du site */
.ev-shop .sh-title {
  font: 900 clamp(52px, 8.5vw, 112px)/.88 'Rajdhani', sans-serif;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0,0,0,.40);
}
.ev-shop.is-theme-light .sh-title { color: var(--txt); text-shadow: none; }

/* Mot accent coloré dans le titre — via <span class="sh-title-accent"> en PHP */
.ev-shop .sh-title-accent { color: var(--acc); }

.ev-shop .sh-subtitle {
  max-width: 580px;
  margin-inline: auto;
  color: rgba(235,240,255,.82);
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1.55;
  text-align: center;
  font-weight: 500;
}
.ev-shop.is-theme-light .sh-subtitle { color: rgba(22,34,56,.70); }

.ev-shop .sh-hero-note {
  color: rgba(235,240,255,.52);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; text-align: center;
}
.ev-shop.is-theme-light .sh-hero-note { color: rgba(22,34,56,.46); }

/* Boutons hero */
.ev-shop .sh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ev-shop .sh-hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 16px; border: 1px solid transparent;
  font-weight: 800; font-size: 14px; transition: transform .18s ease;
}
.ev-shop .sh-hero-btn:hover { transform: translateY(-1px); }
.ev-shop .sh-hero-btn--primary { background: linear-gradient(135deg, var(--btn-bg), #ffb15d); color: #111826; box-shadow: 0 10px 28px rgba(255,140,0,.24); }
.ev-shop .sh-hero-btn--ghost { background: rgba(255,255,255,.07); color: var(--txt); border-color: rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.ev-shop.is-theme-light .sh-hero-btn--ghost { background: rgba(255,255,255,.72); border-color: rgba(22,34,56,.12); color: var(--txt) !important; }
.ev-shop.is-theme-light .sh-hero-btn--ghost * { color: inherit !important; }

/* Stats hero */
.ev-shop .sh-stats {
  display: flex; gap: 0;
  width: min(100%, 380px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  background: rgba(0,0,0,.28);
}
.ev-shop .sh-stat {
  flex: 1;
  padding: 16px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.10);
}
.ev-shop .sh-stat:last-child { border-right: 0; }
.ev-shop.is-theme-light .sh-stats {
  background: rgba(255,255,255,.65);
  border-color: rgba(15,26,46,.10);
}
.ev-shop.is-theme-light .sh-stat { border-right-color: rgba(15,26,46,.08); }
.ev-shop .sh-stat-n { display: block; font: 700 32px/1 'Rajdhani', sans-serif; }
.ev-shop .sh-stat-l { display: block; margin-top: 4px; color: rgba(235,240,255,.56); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.ev-shop.is-theme-light .sh-stat-l { color: rgba(22,34,56,.50); }
.ev-shop .c-acc  { color: var(--acc); }
.ev-shop .c-blue { color: var(--blue); }
.ev-shop .c-green{ color: var(--green); }

/* Hero responsive */
@media (max-width: 980px) {
  .ev-shop .sh-hero-inner { min-height: auto; }
  .ev-shop .sh-stats { width: 100%; }
}
@media (max-width: 680px) {
  .ev-shop .sh-hero { padding: 28px 18px; border-radius: 22px; }
  .ev-shop .sh-title { font-size: clamp(40px, 12vw, 64px); }
  .ev-shop .sh-hero-btn { width: 100%; }
}

/* ─────────────────────────────────────────
   3b. HERO FULLWIDTH & HERO EXTERNE (slider/shortcode)
   Technique : margin négatif 50% + 50vw pour sortir
   de n'importe quel container parent (Elementor, etc.)
───────────────────────────────────────── */

.ev-shop.has-fullwidth-hero {
  padding-top: 0;
}

/* Technique universelle pleine largeur :
   indépendante du container Elementor/WP parent */
.ev-shop.has-fullwidth-hero .sh-hero,
.ev-shop.has-fullwidth-hero .sh-hero-external {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: calc(-1 * clamp(16px, 2vw, 28px));
  width: 100vw;
  max-width: 100vw;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
  margin-bottom: 24px;
}

/* Hero externe (sans fullwidth) */
.ev-shop .sh-hero-external {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 28px;
}

/* Assurer que le contenu interne prend bien 100% */
.ev-shop.has-fullwidth-hero .sh-hero-external > * {
  width: 100%;
  max-width: 100%;
}

/* ─────────────────────────────────────────
   4. LAYOUT PRINCIPAL
───────────────────────────────────────── */
.ev-shop .sh-main {
  display: grid;
  grid-template-columns: minmax(250px, 285px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  width: 100%;
}
@media (max-width: 1240px) { .ev-shop .sh-main { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────
   5. SIDEBAR
───────────────────────────────────────── */
.ev-shop .sh-sidebar {
  position: sticky; top: 22px;
  padding: 22px; border-radius: 26px;
  border: 1px solid var(--bdr);
  background: color-mix(in srgb, var(--card) 88%, black 12%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 56px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  align-self: start;
}
.ev-shop.is-theme-light .sh-sidebar {
  background: color-mix(in srgb, var(--card) 96%, white 4%);
  backdrop-filter: blur(12px);
  border-color: rgba(15,26,46,.08);
  box-shadow: 0 8px 28px rgba(15,26,46,.08);
}
@media (max-width: 1240px) { .ev-shop .sh-sidebar { position: static; } }

.ev-shop .sh-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--bdr);
}
.ev-shop .sh-panel-kicker { color: var(--mut); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.ev-shop .sh-panel-title { font: 700 22px/1 'Rajdhani', sans-serif; margin-top: 3px; }
.ev-shop.is-theme-light .sh-panel-title { color: var(--txt); }

.ev-shop .sh-sec { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.05); }
.ev-shop.is-theme-light .sh-sec { border-bottom-color: rgba(22,34,56,.06); }
.ev-shop .sh-sec:last-of-type { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.ev-shop .sh-sec-title { margin-bottom: 10px; color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }

/* Recherche sidebar */
.ev-shop .sh-sb-search {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 14px;
  border: 1px solid var(--bdr); border-radius: 16px;
  background: var(--surf2); transition: border-color .18s;
}
.ev-shop .sh-sb-search:focus-within { border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.ev-shop .sh-sb-search svg { width: 18px; height: 18px; opacity: .4; flex: 0 0 auto; }
.ev-shop .sh-q-sb { width: 100%; border: 0; outline: 0; background: transparent; color: var(--txt); font-size: 13.5px; font-weight: 600; }
.ev-shop .sh-q-sb::placeholder { color: var(--mut); }
.ev-shop.is-theme-light .sh-sb-search { background: rgba(248,250,253,.98); border-color: rgba(17,27,45,.09); }
.ev-shop.is-theme-light .sh-q-sb { color: var(--txt); }

/* Catégories & toggles */
.ev-shop .sh-cats,
.ev-shop .sh-toggles { display: grid; gap: 6px; }
.ev-shop .sh-cat,
.ev-shop .sh-tgl {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: var(--txt); font-size: 13px;
  transition: border-color .16s, background .16s, transform .16s;
}
.ev-shop .sh-cat:hover,
.ev-shop .sh-tgl:hover { border-color: color-mix(in srgb, var(--acc) 30%, transparent); background: color-mix(in srgb, var(--acc) 8%, transparent); transform: translateX(3px); }
.ev-shop .sh-cat.is-on,
.ev-shop .sh-tgl.is-on { border-color: color-mix(in srgb, var(--acc) 36%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 14%, transparent), rgba(255,255,255,.02)); color: var(--acc); }
.ev-shop.is-theme-light .sh-cat,
.ev-shop.is-theme-light .sh-tgl { background: rgba(248,250,253,.95); border-color: rgba(17,27,45,.08); color: var(--txt); }
.ev-shop.is-theme-light .sh-cat.is-on,
.ev-shop.is-theme-light .sh-tgl.is-on { background: color-mix(in srgb, var(--acc) 12%, transparent); border-color: color-mix(in srgb, var(--acc) 30%, transparent); color: var(--acc); }
.ev-shop .sh-cat-main { display: inline-flex; align-items: center; gap: 9px; }
.ev-shop .sh-cat-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; color: var(--acc); }
.ev-shop .sh-cat-n { color: var(--mut); font-weight: 800; font-size: 11px; }
/* Dot pulsant aligné dans les toggles rapides */
.ev-shop .sh-tgl .sh-bdot { margin-right: 2px; flex-shrink: 0; }

/* ── Toggle promo : Option A — stripes diagonales + mini tag ── */
.ev-shop .sh-tgl--promo {
  background: color-mix(in srgb, var(--promo-bg, rgba(255,118,68,.10)) 80%, transparent);
  border-color: color-mix(in srgb, var(--acc) 30%, transparent);
  color: var(--promo-txt, var(--acc));
  position: relative; overflow: hidden;
  justify-content: space-between;
}
/* Stripes diagonales animées */
.ev-shop .sh-tgl--promo::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    rgba(255,140,0,.06) 0px, rgba(255,140,0,.06) 6px,
    transparent 6px, transparent 12px
  );
  background-size: 28px 28px;
  animation: shStripeScroll 3s linear infinite;
  pointer-events: none;
}
@keyframes shStripeScroll { 0% { background-position: 0 0; } 100% { background-position: 28px 0; } }
/* Éclair réutilisé (même clip-path que .sh-promo-ico) */
.ev-shop .sh-tgl--promo .sh-promo-ico {
  flex-shrink: 0;
  color: var(--acc);
}
/* Mini tag PROMO à droite */
.ev-shop .sh-tgl-promo-tag {
  font-size: 9px; font-weight: 900; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  flex-shrink: 0; text-transform: uppercase;
  position: relative; z-index: 1;
}
/* Actif : fond plus fort, stripes arrêtées */
.ev-shop .sh-tgl--promo.is-on {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--acc) 20%, transparent),
    color-mix(in srgb, var(--acc) 08%, transparent)
  );
  border-color: color-mix(in srgb, var(--acc) 48%, transparent);
  color: var(--acc);
}
.ev-shop .sh-tgl--promo.is-on::before { animation-play-state: paused; opacity: .4; }
.ev-shop .sh-tgl--promo.is-on .sh-tgl-promo-tag {
  background: color-mix(in srgb, var(--acc) 22%, transparent);
  border-color: color-mix(in srgb, var(--acc) 42%, transparent);
}
/* Light mode */
.ev-shop.is-theme-light .sh-tgl--promo {
  background: rgba(224,125,16,.08);
  border-color: rgba(224,125,16,.32);
  color: #a84210;
}
.ev-shop.is-theme-light .sh-tgl--promo::before {
  background: repeating-linear-gradient(
    -55deg,
    rgba(224,125,16,.07) 0px, rgba(224,125,16,.07) 6px,
    transparent 6px, transparent 12px
  );
  background-size: 28px 28px;
  animation: shStripeScroll 3s linear infinite;
}
.ev-shop.is-theme-light .sh-tgl--promo .sh-tgl-promo-tag {
  background: rgba(224,125,16,.12);
  color: #a84210;
  border-color: rgba(224,125,16,.28);
}
.ev-shop.is-theme-light .sh-tgl--promo.is-on { background: rgba(224,125,16,.14); border-color: rgba(224,125,16,.48); }

/* Pills RAM */
.ev-shop .sh-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-shop .sh-pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--bdr); background: rgba(255,255,255,.03);
  color: var(--txt); font-size: 12.5px; font-weight: 700;
  transition: border-color .16s, background .16s, transform .16s;
}
.ev-shop .sh-pill:hover { border-color: rgba(255,255,255,.14); transform: translateY(-1px); }
.ev-shop .sh-pill.is-on { border-color: color-mix(in srgb, var(--acc) 36%, transparent); background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.ev-shop.is-theme-light .sh-pill { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--txt); }
.ev-shop.is-theme-light .sh-pill.is-on { background: rgba(224,125,16,.12); border-color: rgba(224,125,16,.28); color: var(--acc); }

/* Range slider budget */
.ev-shop .sh-range { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--bdr); border-radius: 20px; background: rgba(255,255,255,.025); }
.ev-shop.is-theme-light .sh-range { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); }
.ev-shop .sh-range-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-shop .sh-range-box { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bdr); background: var(--surf2); }
.ev-shop.is-theme-light .sh-range-box { background: rgba(255,255,255,.92); border-color: rgba(17,27,45,.09); }
.ev-shop .sh-range-box span { display: block; color: var(--mut); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.ev-shop .sh-range-box strong { display: block; margin-top: 3px; font: 700 20px/1 'Rajdhani', sans-serif; color: var(--txt); }
.ev-shop .sh-range-track { position: relative; height: 32px; }
.ev-shop .sh-range-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 999px; background: rgba(255,255,255,.08); }
.ev-shop.is-theme-light .sh-range-track::before { background: rgba(17,27,45,.08); }
.ev-shop .sh-range-progress { position: absolute; top: 50%; height: 6px; transform: translateY(-50%); border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 80%, transparent), color-mix(in srgb, var(--blue) 80%, transparent)); }
.ev-shop .sh-range-track input[type="range"] { position: absolute; left: 0; top: 0; width: 100%; height: 32px; pointer-events: none; appearance: none; background: transparent; }
.ev-shop .sh-range-track input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 28%, transparent), 0 4px 14px rgba(0,0,0,.28); pointer-events: auto; }
.ev-shop .sh-range-track input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 28%, transparent), 0 4px 14px rgba(0,0,0,.28); pointer-events: auto; }
.ev-shop .sh-range-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-shop .sh-range-footer small { color: var(--mut); font-size: 12px; flex: 1; }
.ev-shop .sh-range-footer .sh-btn-lite { display: none; }

/* Reset */
.ev-shop .sh-reset {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px; margin-top: 8px;
  border: 1px solid var(--bdr); border-radius: 16px;
  background: rgba(255,255,255,.025); color: var(--mut); font-weight: 700;
  transition: border-color .16s, color .16s;
}
.ev-shop .sh-reset:hover { border-color: rgba(255,255,255,.16); color: var(--txt); }
.ev-shop.is-theme-light .sh-reset { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--mut); }

/* ─────────────────────────────────────────
   6. TOPBAR
───────────────────────────────────────── */
.ev-shop .sh-content { min-width: 0; width: 100%; }

.ev-shop .sh-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--bdr); border-radius: 20px;
  background: color-mix(in srgb, var(--card) 90%, black 10%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.05);
}
.ev-shop.is-theme-light .sh-topbar {
  background: var(--card);
  border-color: rgba(15,26,46,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15,26,46,.06);
}

/* Gauche : meta + tags */
.ev-shop .sh-topbar-l { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.ev-shop .sh-meta { color: var(--mut); font-size: 14px; font-weight: 600; }
.ev-shop .sh-meta strong { color: var(--txt); }
.ev-shop.is-theme-light .sh-meta { color: var(--mut) !important; }
.ev-shop.is-theme-light .sh-meta strong { color: var(--txt) !important; }
.ev-shop .sh-tag {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent); background: color-mix(in srgb, var(--acc) 10%, transparent);
  color: var(--acc); font-size: 12px; font-weight: 700;
}
.ev-shop.is-theme-light .sh-tag { color: var(--acc) !important; }
.ev-shop .sh-tag a { opacity: .72; }

/* Droite : actions + tri + vues */
.ev-shop .sh-topbar-r {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; flex: 0 0 auto;
}

/* Bouton filtres (visible sous 1240px) */
.ev-shop .sh-filter-btn {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt);
  font-size: 13px; font-weight: 700;
  transition: border-color .16s, background .16s;
  white-space: nowrap; flex-shrink: 0;
}
.ev-shop .sh-filter-btn svg { width: 16px; height: 16px; }
.ev-shop .sh-filter-btn:hover,
.ev-shop .sh-filter-btn.has-filters {
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  color: var(--acc);
}
/* Visible dès que la sidebar disparaît */
@media (max-width: 1240px) {
  .ev-shop .sh-filter-btn { display: inline-flex; }
}
.ev-shop.is-theme-light .sh-filter-btn { background: rgba(248,250,253,.98); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }

/* Actions favoris + comparateur */
.ev-shop .sh-top-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ev-shop .sh-top-pill,
.ev-shop .sh-top-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; border: 1px solid var(--bdr);
  background: var(--surf2); color: var(--txt);
  font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: border-color .16s, background .16s, transform .16s;
}
.ev-shop .sh-top-pill { gap: 8px; padding: 0 14px; border-radius: 14px; }
.ev-shop .sh-top-icon { width: 44px; flex: 0 0 44px; border-radius: 14px; font-size: 17px; }
.ev-shop .sh-top-pill:hover,
.ev-shop .sh-top-icon:hover,
.ev-shop .sh-top-pill.is-on,
.ev-shop .sh-top-icon.is-on,
.ev-shop .sh-topbar .sh-only-favs-toggle.is-on {
  border-color: color-mix(in srgb, var(--acc) 36%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent);
  color: var(--acc); transform: translateY(-1px);
}
.ev-shop.is-theme-light .sh-top-pill,
.ev-shop.is-theme-light .sh-top-icon { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }
.ev-shop.is-theme-light .sh-top-pill *,
.ev-shop.is-theme-light .sh-top-icon * { color: inherit !important; }

/* Compteur favoris */
.ev-shop .sh-favs-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: rgba(255,255,255,.12);
  font-size: 11px; font-weight: 800;
}
.ev-shop.is-theme-light .sh-favs-count { background: rgba(17,27,45,.10); color: var(--txt) !important; }

/* Tri */
.ev-shop .sh-sort-form { display: contents; }
.ev-shop .sh-sort {
  min-height: 44px; width: 190px; min-width: 190px; padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--acc) 42%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--acc) 13%, var(--surf2));
  color: var(--acc); font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 14px color-mix(in srgb, var(--acc) 14%, transparent);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.ev-shop .sh-sort:hover {
  background: color-mix(in srgb, var(--acc) 20%, var(--surf2));
  box-shadow: 0 4px 20px color-mix(in srgb, var(--acc) 22%, transparent);
}
.ev-shop.is-theme-light .sh-sort {
  background: color-mix(in srgb, var(--acc) 10%, rgba(248,250,253,.98));
  border-color: color-mix(in srgb, var(--acc) 36%, transparent);
  color: var(--acc);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--acc) 12%, transparent);
}
.ev-shop.is-theme-light .sh-sort:hover {
  background: color-mix(in srgb, var(--acc) 16%, rgba(248,250,253,.98));
}

/* Vues grille/liste */
.ev-shop .sh-views { display: inline-flex; align-items: center; gap: 6px; }
.ev-shop .sh-vbtn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt);
  transition: border-color .16s, background .16s;
}
.ev-shop .sh-vbtn svg {
  width: 16px; height: 16px; display: block; flex-shrink: 0;
}
.ev-shop .sh-vbtn.is-on,
.ev-shop .sh-vbtn:hover { border-color: color-mix(in srgb, var(--acc) 36%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); }
.ev-shop.is-theme-light .sh-vbtn { background: rgba(248,250,253,.98); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }

/* Topbar responsive */
@media (max-width: 1360px) {
  .ev-shop .sh-topbar-r { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .ev-shop .sh-sort { min-width: 0; flex: 1 1 auto; width: auto; }
}
@media (max-width: 760px) {
  .ev-shop .sh-topbar { padding: 12px 14px; }
  .ev-shop .sh-top-actions { width: 100%; order: 3; }
  .ev-shop .sh-top-pill { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

/* Masquer les rows de recherche dans le content (dupliquées) */
.ev-shop .sh-search-row,
.ev-shop .sh-search-top,
.ev-shop .sh-q-top { display: none !important; }

/* ─────────────────────────────────────────
   7. GRILLE PRODUITS
───────────────────────────────────────── */
.ev-shop .sh-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 24px; width: 100%; align-items: stretch;
}
.ev-shop .sh-empty {
  grid-column: 1 / -1; padding: 56px 26px;
  border: 1px dashed var(--bdr); border-radius: 22px;
  background: rgba(255,255,255,.025); text-align: center;
  color: var(--mut); font-weight: 700;
}

@media (max-width: 1380px) and (min-width: 981px) { .ev-shop .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px)  { .ev-shop .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .ev-shop .sh-grid { grid-template-columns: 1fr; } }

/* Vue liste */
.ev-shop .sh-grid.is-list { grid-template-columns: 1fr !important; }
.ev-shop .sh-grid.is-list .sh-card { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); grid-template-rows: none; min-height: 0; }
.ev-shop .sh-grid.is-list .sh-card-img { height: 100%; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--bdr); }
.ev-shop .sh-grid.is-list .sh-card-body { justify-content: center; padding: 22px; }
.ev-shop .sh-grid.is-list .sh-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-shop .sh-grid.is-list .sh-card-foot { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); align-items: end; }
.ev-shop .sh-grid.is-list .sh-btn { width: auto; }
@media (max-width: 860px) {
  .ev-shop .sh-grid.is-list .sh-card { grid-template-columns: 1fr; }
  .ev-shop .sh-grid.is-list .sh-card-img { border-right: 0; border-bottom: 1px solid var(--bdr); min-height: 240px; height: 240px; }
  .ev-shop .sh-grid.is-list .sh-card-foot { grid-template-columns: 1fr; }
  .ev-shop .sh-grid.is-list .sh-btn { width: 100%; }
}

/* ─────────────────────────────────────────
   8. CARDS — Design premium, 100% piloté par le preset
───────────────────────────────────────── */

/*
  --card-glow-color : couleur du glow hover (injectée par PHP via le preset)
  --card-accent : teinte du radial fond (injectée par PHP via le preset)
  Par défaut ces vars reprennent --acc
*/

.ev-shop .sh-card {
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(520px 260px at 92% 0%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 14%, transparent),
      transparent 55%),
    radial-gradient(380px 300px at 4% 100%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 8%, transparent),
      transparent 60%),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 8px 24px rgba(0,0,0,.18),
    0 20px 48px rgba(0,0,0,.14);
  transition:
    transform .28s cubic-bezier(.34,1.38,.64,1),
    box-shadow .28s ease,
    border-color .22s ease;
}

/* Glow accent au hover — couleur du preset */
.ev-shop .sh-card::after {
  content: '';
  position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(ellipse 90% 55% at 50% 0%,
    color-mix(in srgb, var(--card-glow-color, var(--acc)) 26%, transparent),
    transparent 68%);
  opacity: 0;
  transition: opacity .30s ease;
  pointer-events: none; z-index: 0;
}
.ev-shop .sh-card:hover::after { opacity: 1; }

/* Hover : lift élastique + glow contour accent */
.ev-shop .sh-card:hover {
  transform: translateY(-6px) scale(1.013);
  border-color: color-mix(in srgb, var(--acc) 36%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 2px 0 color-mix(in srgb, var(--acc) 10%, transparent),
    0 14px 36px rgba(0,0,0,.26),
    0 32px 72px rgba(0,0,0,.20),
    0 0 0 1px color-mix(in srgb, var(--card-glow-color, var(--acc)) 12%, transparent);
}

/* Light mode : fond blanc teinté du preset, ombre douce */
.ev-shop.is-theme-light .sh-card {
  background:
    radial-gradient(520px 260px at 92% 0%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 10%, transparent),
      transparent 55%),
    radial-gradient(300px 200px at 0% 100%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 6%, transparent),
      transparent 60%),
    #ffffff;
  border: 1px solid color-mix(in srgb, var(--acc) 12%, rgba(15,26,46,.08));
  box-shadow: 0 2px 4px rgba(15,26,46,.04), 0 10px 28px rgba(15,26,46,.07);
}
.ev-shop.is-theme-light .sh-card::after {
  background: radial-gradient(ellipse 90% 55% at 50% 0%,
    color-mix(in srgb, var(--card-glow-color, var(--acc)) 12%, transparent),
    transparent 68%);
}
.ev-shop.is-theme-light .sh-card:hover {
  transform: translateY(-5px) scale(1.011);
  border-color: color-mix(in srgb, var(--acc) 22%, transparent);
  box-shadow: 0 4px 8px rgba(15,26,46,.05), 0 16px 40px rgba(15,26,46,.10);
}

/* Image */
.ev-shop .sh-card-img {
  position: relative; display: block;
  height: clamp(220px, var(--img-h), 340px);
  overflow: hidden;
  background:
    radial-gradient(400px 280px at 50% -5%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 14%, transparent),
      transparent 58%),
    radial-gradient(300px 220px at 10% 95%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 10%, transparent),
      transparent 65%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--card2) 70%, var(--card) 30%) 0%,
      var(--card2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
/* Images : fond accent du preset, identique pour toutes les cards */
.ev-shop.is-theme-light .sh-card-img {
  background:
    radial-gradient(360px 240px at 50% -5%,
      color-mix(in srgb, var(--card-accent, var(--acc)) 8%, transparent),
      transparent 55%),
    linear-gradient(180deg, var(--card2, #f5f9ff) 0%, color-mix(in srgb, var(--card2, #eaf2fb) 80%, white 20%) 100%);
  border-bottom-color: rgba(15,26,46,.06);
}
/* Light: images neutres */
.ev-shop .sh-card-img img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  padding: 18px 18px 10px;
  transition: transform .32s cubic-bezier(.34,1.38,.64,1), filter .28s ease;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.28));
}
.ev-shop .sh-card:hover .sh-card-img img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 22px 42px rgba(0,0,0,.36));
}
.ev-shop.is-theme-light .sh-card-img img { filter: drop-shadow(0 10px 20px rgba(15,26,46,.16)); }
.ev-shop.is-theme-light .sh-card:hover .sh-card-img img {
  filter: drop-shadow(0 16px 30px rgba(15,26,46,.22));
}

/* Skeleton loader */
.ev-shop .sh-skel {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.055) 50%, rgba(255,255,255,0) 90%);
  background-size: 200% 100%; animation: shSkel 1.2s linear infinite;
}
.ev-shop .sh-card-img.is-loaded .sh-skel { display: none; }
@keyframes shSkel { to { background-position: -200% 0; } }

/* Badges */
.ev-shop .sh-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 7px; flex-wrap: wrap; }
.ev-shop .sh-bdg { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid transparent; font-size: 11.5px; font-weight: 800; backdrop-filter: blur(8px); }
.ev-shop .sh-bdg-promo {
  background: var(--promo-bg); color: var(--promo-txt);
  border-color: rgba(255,118,68,.22);
  position: relative; overflow: hidden;
}
.ev-shop.is-theme-light .sh-bdg-promo { background: rgba(224,125,16,.12); color: #a84210; border-color: rgba(224,125,16,.28); }
/* Shimmer sweep */
.ev-shop .sh-bdg-promo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.26) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shPromoShimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shPromoShimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
/* Éclair CSS (clip-path, zéro emoji) */
.ev-shop .sh-promo-ico {
  flex: 0 0 auto;
  width: 7px; height: 10px;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 38%, 80% 38%, 100% 100%, 0% 50%, 35% 50%, 0% 0%);
}
.ev-shop .sh-bdg-new   { background: rgba(77,163,255,.14); color: #b8dbff; border-color: rgba(77,163,255,.18); }
.ev-shop .sh-bdg-stock { background: var(--stock-bg); color: var(--stock-txt); border-color: rgba(49,212,141,.22); }
.ev-shop.is-theme-light .sh-bdg-stock { background: rgba(22,163,74,.10); color: #0f7a46; border-color: rgba(22,163,74,.24); }
.ev-shop .sh-bdg-out   { background: rgba(255,93,93,.14); color: #ffc4c4; border-color: rgba(255,93,93,.18); }
.ev-shop.is-theme-light .sh-bdg-out { background: rgba(255,93,93,.10); color: #b91c1c; border-color: rgba(255,93,93,.22); }

/* ── Dot pulsant (stock vert / rupture rouge / promo accent) ──────────────
   Utilisé dans les badges cards ET les filtres rapides de la sidebar.
   .sh-bdot--green  = En stock
   .sh-bdot--red    = Rupture de stock
   .sh-bdot--fire   = En promotion (couleur accent)
─────────────────────────────────────────────────────────────────────── */
.ev-shop .sh-bdot {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  position: relative;
}
.ev-shop .sh-bdot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0;
  animation: shDotRing 2s ease-out infinite;
}
.ev-shop .sh-bdot--green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.6);
  color: #22c55e;
  animation: shDotPulse 2s ease-in-out infinite;
}
.ev-shop .sh-bdot--red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,.6);
  color: #ef4444;
  animation: shDotPulse 2s ease-in-out infinite;
}
.ev-shop .sh-bdot--fire {
  background: var(--acc);
  box-shadow: 0 0 6px color-mix(in srgb, var(--acc) 60%, transparent);
  color: var(--acc);
  animation: shDotPulse 1.6s ease-in-out infinite;
}
@keyframes shDotPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.25); opacity: .8; }
}
@keyframes shDotRing {
  0%   { transform: scale(.5); opacity: .7; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Actions hover sur image */
.ev-shop .sh-img-actions {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.ev-shop .sh-card:hover .sh-img-actions,
.ev-shop .sh-card:focus-within .sh-img-actions { opacity: 1; transform: translateY(0); }
@media (hover: none) { .ev-shop .sh-img-actions { opacity: 1; transform: none; } }
.ev-shop .sh-img-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  background: rgba(7,11,20,.72); color: #fff;
  backdrop-filter: blur(12px); box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.ev-shop .sh-img-btn svg { width: 17px; height: 17px; }
.ev-shop .sh-fav-btn.is-on { background: rgba(255,140,0,.18); border-color: rgba(255,140,0,.3); }
.ev-shop .sh-cmp-btn.is-on { background: rgba(77,163,255,.18); border-color: rgba(77,163,255,.3); }
.ev-shop .sh-fav-btn.burst { animation: shBurst .35s ease; }
@keyframes shBurst { 50% { transform: scale(1.16); } }
.ev-shop.is-theme-light .sh-img-btn { background: rgba(255,255,255,.90); color: #162238; border-color: rgba(17,27,45,.12); }

/* Corps de la card */
.ev-shop .sh-card-body {
  display: grid; grid-template-rows: auto auto 1fr auto;
  gap: 14px; padding: 18px;
  position: relative; z-index: 1;
}
.ev-shop.is-theme-light .sh-card-body {
  background: rgba(255,255,255,.70);
  border-top: 1px solid rgba(15,26,46,.04);
}
.ev-shop .sh-card-headline { display: flex; flex-direction: column; gap: 6px; min-height: 70px; }
.ev-shop .sh-card-cat {
  display: inline-flex; align-items: center; width: fit-content;
  min-height: 24px; padding: 0 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  color: var(--mut); font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.ev-shop.is-theme-light .sh-card-cat { border-color: rgba(17,27,45,.08); background: rgba(255,255,255,.75); }
.ev-shop .sh-card-name { font: 700 clamp(18px, 2vw, 24px)/.95 'Rajdhani', sans-serif; letter-spacing: -.02em; color: var(--txt); }
.ev-shop .sh-card-name a { color: inherit; }
.ev-shop .sh-card-name a:hover { color: var(--acc); }
.ev-shop.is-theme-light .sh-card-name,
.ev-shop.is-theme-light .sh-card-name a { color: var(--txt); }

/* Specs */
.ev-shop .sh-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-shop .sh-spec {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 7px; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.038);
  min-height: 72px;
  transition: background .16s, border-color .16s;
}
.ev-shop .sh-card:hover .sh-spec {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.12);
}
.ev-shop.is-theme-light .sh-spec {
  background: linear-gradient(135deg, #f8fbff, #eef4fb);
  border-color: rgba(15,26,46,.08);
}
.ev-shop .sh-spec-meta { display: inline-flex; align-items: center; gap: 7px; }
.ev-shop .sh-spec-ico { width: 15px; height: 15px; color: var(--mut); flex: 0 0 auto; }
.ev-shop .sh-spec-ico svg { width: 100%; height: 100%; }
.ev-shop .sh-spec-key { color: var(--mut); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ev-shop .sh-spec-val { color: var(--txt); font-weight: 700; font-size: 13.5px; line-height: 1.3; word-break: break-word; }
.ev-shop.is-theme-light .sh-spec-val { color: var(--txt); }

/* Pied de card (prix + bouton) */
.ev-shop .sh-card-foot { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: auto; align-items: stretch; }
.ev-shop .sh-price { display: flex; flex-direction: column; gap: 3px; }
.ev-shop .sh-price-old { color: var(--mut); font-size: 13px; text-decoration: line-through !important; }
.ev-shop .sh-price-cur {
  font: 700 clamp(26px, 2.6vw, 36px)/.94 'Rajdhani', sans-serif;
  color: var(--price-col); letter-spacing: -.02em;
  text-shadow: 0 2px 16px color-mix(in srgb, var(--price-col) 30%, transparent);
}
.ev-shop.is-theme-light .sh-price-cur { text-shadow: none; color: var(--price-col); }
.ev-shop.is-theme-light .sh-price-old { color: rgba(22,34,56,.44); }

/* Prix WooCommerce (override interne) */
.ev-shop .sh-price ins,
.ev-shop .sh-price .amount,
.ev-shop .woocommerce-Price-amount,
.ev-shop .woocommerce-Price-currencySymbol { color: var(--price-col) !important; text-decoration: none !important; }

/* Boutons */
.ev-shop .sh-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 0 18px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--btn-bg) 40%, transparent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--btn-bg) 92%, #fff 8%) 0%,
    color-mix(in srgb, var(--btn-bg) 72%, #000 28%) 100%);
  color: var(--btn-txt) !important; font-weight: 800; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--btn-bg) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ev-shop .sh-btn::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  opacity: 0; transform: translateX(-100%);
  transition: opacity .1s ease, transform .4s ease;
  pointer-events: none;
}
.ev-shop .sh-btn:hover::before { opacity: 1; transform: translateX(100%); }
.ev-shop .sh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--btn-bg) 36%, transparent), inset 0 1px 0 rgba(255,255,255,.20);
  filter: brightness(1.06);
}
.ev-shop.is-theme-light .sh-btn {
  box-shadow: 0 4px 14px color-mix(in srgb, var(--btn-bg) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.24);
}
.ev-shop.is-theme-light .sh-btn:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--btn-bg) 32%, transparent);
}
.ev-shop .sh-btn-out { background: rgba(255,255,255,.04); border-color: var(--bdr); color: var(--mut) !important; box-shadow: none; }
.ev-shop .sh-btn-lite { min-height: 40px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt) !important; box-shadow: none; }

/* ─────────────────────────────────────────
   9. PAGINATION
───────────────────────────────────────── */
.ev-shop .sh-pag { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ev-shop .sh-pag-nav,
.ev-shop .sh-pag-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px;
  border: 1px solid var(--bdr); border-radius: 14px;
  background: var(--surf); color: var(--txt); font-weight: 700;
  transition: border-color .16s, background .16s, color .16s;
}
.ev-shop .sh-pag-num { min-width: 46px; }
.ev-shop .sh-pag-num.on,
.ev-shop .sh-pag-nav:hover,
.ev-shop .sh-pag-num:hover { border-color: color-mix(in srgb, var(--acc) 32%, transparent); background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); }
.ev-shop .sh-pag-nav.off { opacity: .35; pointer-events: none; }
.ev-shop .sh-pag-sep { color: var(--mut); }
.ev-shop.is-theme-light .sh-pag-nav,
.ev-shop.is-theme-light .sh-pag-num { background: rgba(255,255,255,.92); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }

/* ─────────────────────────────────────────
   10. OFFCANVAS — Bottom Sheet (Option A)
───────────────────────────────────────── */

/* Overlay */
.ev-shop .sh-oc-overlay {
  position: fixed; inset: 0; display: none;
  background: rgba(6,10,18,.58);
  backdrop-filter: blur(8px);
  z-index: 100018;
}

/* Panneau — monte depuis le bas */
.ev-shop .sh-oc {
  position: fixed;
  bottom: -100%; left: 0; right: 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 97%, black 3%);
  box-shadow: 0 -20px 60px rgba(0,0,0,.32);
  z-index: 100019;
  overflow: hidden;
  transition: bottom .30s cubic-bezier(.32,1,.42,1);
}
.ev-shop .sh-oc.is-open { bottom: 0; }

/* Light mode */
.ev-shop.is-theme-light .sh-oc {
  background: var(--card, #fff);
  border-top-color: color-mix(in srgb, var(--acc) 28%, transparent);
  box-shadow: 0 -8px 40px rgba(15,26,46,.12);
}

/* 1. Liseré accent dégradé */
.ev-shop .sh-oc-accent-bar {
  height: 3px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 55%, var(--blue,#4da3ff)), var(--acc));
  background-size: 200%;
  animation: shOcBar 2.8s linear infinite;
}
@keyframes shOcBar { 0% { background-position: 0; } 100% { background-position: 200%; } }

/* 2. Handle */
.ev-shop .sh-oc-handle-wrap {
  flex-shrink: 0;
  display: flex; justify-content: center;
  padding: 10px 0 4px;
}
.ev-shop .sh-oc-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: color-mix(in srgb, var(--txt) 20%, transparent);
}

/* 3. Header */
.ev-shop .sh-oc-head {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px 12px;
  border-bottom: 1px solid var(--bdr);
}
.ev-shop .sh-oc-title {
  font: 800 18px/1 'Rajdhani', sans-serif;
  color: var(--txt);
}
.ev-shop .sh-oc-head-right {
  display: flex; align-items: center; gap: 8px;
}
.ev-shop .sh-oc-active-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 18%, transparent);
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
}
.ev-shop .sh-oc-close,
.ev-shop .sh-modal-close {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: 10px; border: 0;
  background: color-mix(in srgb, var(--txt) 8%, transparent);
  color: color-mix(in srgb, var(--txt) 55%, transparent);
  font-size: 13px; cursor: pointer;
  transition: background .14s, color .14s;
}
.ev-shop .sh-oc-close:hover,
.ev-shop .sh-modal-close:hover {
  background: color-mix(in srgb, var(--txt) 14%, transparent);
  color: var(--txt);
}

/* 4. Corps scrollable */
.ev-shop .sh-oc-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 10px 12px;
  display: grid; gap: 7px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ev-shop .sh-oc-body::-webkit-scrollbar { display: none; }

/* 5. Section accordéon — carte arrondie */
.ev-shop .sh-oc-sec {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--txt) 7%, transparent);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  overflow: hidden;
}
.ev-shop.is-theme-light .sh-oc-sec {
  background: rgba(248,250,253,.98);
  border-color: rgba(15,26,46,.08);
}
.ev-shop .sh-oc-sec.is-open {
  border-color: color-mix(in srgb, var(--acc) 30%, transparent);
}

/* En-tête de section */
.ev-shop .sh-oc-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 11px 13px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 12.5px; font-weight: 700;
  color: color-mix(in srgb, var(--txt) 85%, transparent);
  transition: color .14s;
}
.ev-shop .sh-oc-sec.is-open .sh-oc-sec-head {
  color: var(--txt);
}

/* Flèche ▾ en texte pur */
.ev-shop .sh-oc-sec-arr {
  font-size: 11px; line-height: 1;
  color: color-mix(in srgb, var(--txt) 35%, transparent);
  transition: transform .2s ease;
  display: inline-block;
}
.ev-shop .sh-oc-sec.is-open .sh-oc-sec-arr {
  transform: rotate(180deg);
}

/* Corps de section */
.ev-shop .sh-oc-sec-body { padding: 0 12px 11px; }
.ev-shop .sh-oc-sec-body[hidden] { display: none; }

/* 6. Chips */
.ev-shop .sh-oc-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-shop .sh-oc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--txt) 10%, transparent);
  background: color-mix(in srgb, var(--txt) 5%, transparent);
  color: color-mix(in srgb, var(--txt) 70%, transparent);
  transition: all .14s;
  cursor: pointer;
}
.ev-shop .sh-oc-chip:hover,
.ev-shop .sh-oc-chip.is-on {
  border-color: color-mix(in srgb, var(--acc) 50%, transparent);
  background: color-mix(in srgb, var(--acc) 15%, transparent);
  color: var(--acc);
}

/* Chip promo shimmer */
.ev-shop .sh-oc-chip--promo { position: relative; overflow: hidden; }
.ev-shop .sh-oc-chip--promo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shPromoShimmer 2.2s ease-in-out infinite;
  pointer-events: none;
}

/* Select tri */
.ev-shop .sh-oc-sel {
  width: 100%; min-height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--bdr);
  background: color-mix(in srgb, var(--txt) 5%, transparent);
  color: var(--txt); font-weight: 700; font-size: 12.5px;
}
.ev-shop.is-theme-light .sh-oc-sel {
  background: rgba(255,255,255,.96);
  border-color: rgba(17,27,45,.10);
}

/* Profile hint */
.ev-shop .sh-profile-hint {
  display: none; margin-top: 8px;
  padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--bdr);
  background: color-mix(in srgb, var(--txt) 3%, transparent);
  color: var(--mut); font-size: 12px;
}

/* 7. Pied fixe — bouton gradient pleine largeur */
.ev-shop .sh-oc-footer {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  background: color-mix(in srgb, var(--bg) 98%, black 2%);
  border-top: 1px solid color-mix(in srgb, var(--txt) 6%, transparent);
  display: flex; gap: 8px;
}
.ev-shop.is-theme-light .sh-oc-footer {
  background: var(--card, #fff);
  border-top-color: rgba(15,26,46,.07);
}
.ev-shop .sh-oc-reset {
  flex-shrink: 0; min-height: 40px; padding: 0 14px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--txt) 10%, transparent);
  background: color-mix(in srgb, var(--txt) 4%, transparent);
  color: color-mix(in srgb, var(--txt) 55%, transparent);
  font-size: 12px; font-weight: 700;
  white-space: nowrap;
  transition: color .14s;
}
.ev-shop .sh-oc-reset:hover { color: var(--txt); }
.ev-shop .sh-oc-apply {
  flex: 1; min-height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--btn-bg) 92%, white 8%),
    color-mix(in srgb, var(--btn-bg) 70%, black 30%)
  );
  color: var(--btn-txt) !important;
  font-size: 13px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--btn-bg) 38%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--btn-bg) 26%, transparent);
  transition: filter .16s, transform .16s;
}
.ev-shop .sh-oc-apply:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Scroll lock */
body.ev-shop-oc-open { overflow: hidden; }

/* ─────────────────────────────────────────
   11. MODALS (favoris, quickview, comparateur)
───────────────────────────────────────── */
.ev-shop .sh-modal-overlay { position: fixed; inset: 0; display: none; background: rgba(6,10,18,.62); backdrop-filter: blur(6px); z-index: 100020; }
.ev-shop .sh-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1040px, 94vw); max-height: 88vh; overflow: auto;
  display: none; z-index: 100021; padding: 22px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 92%, #000 8%);
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
}
.ev-shop.is-theme-light .sh-modal { background: #f4f7fb; border-color: rgba(17,27,45,.09); }
.ev-shop .sh-modal-head,
.ev-shop .sh-cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ev-shop .sh-modal-title { font: 700 26px/1 'Rajdhani', sans-serif; }
.ev-shop.is-theme-light .sh-modal-title { color: var(--txt) !important; }

/* Favoris */
.ev-shop .sh-favs-body { display: grid; gap: 12px; margin-top: 16px; }
.ev-shop .sh-fav-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--bdr); border-radius: 20px; background: var(--surf); }
.ev-shop.is-theme-light .sh-fav-row { background: rgba(255,255,255,.92); border-color: rgba(17,27,45,.09); }
.ev-shop .sh-fav-thumb { width: 70px; height: 70px; flex: 0 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--bdr); background: var(--card2); }
.ev-shop .sh-fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-shop .sh-fav-info { flex: 1 1 auto; min-width: 0; }
.ev-shop .sh-fav-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-shop .sh-fav-meta { margin-top: 4px; color: var(--mut); }
.ev-shop .sh-fav-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-shop .sh-fav-btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt) !important; font-weight: 700;
}
.ev-shop.is-theme-light .sh-fav-btn-mini { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }
.ev-shop .sh-fav-btn-acc { border-color: rgba(255,140,0,.28); background: rgba(255,140,0,.12); color: var(--acc) !important; }

/* QuickView */
.ev-shop .sh-qv-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
@media (max-width: 820px) { .ev-shop .sh-qv-grid { grid-template-columns: 1fr; } }
.ev-shop .sh-qv-left { display: flex; flex-direction: column; }
.ev-shop .sh-qv-hero {
  min-height: 360px; flex: 1;
  display: flex; flex-direction: column;
  gap: 12px;
}
/* Wrapper image principale */
.ev-shop .sh-qv-main-wrap {
  position: relative; flex: 1;
  border: 1px solid var(--bdr); border-radius: 16px;
  background: var(--card2); overflow: hidden;
  min-height: 260px;
}
.ev-shop .sh-qv-main-img {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 260px;
}
/* Transition image */
.ev-shop .sh-qv-main-img img { transition: opacity .18s ease; }
/* Mode simple */
.ev-shop .sh-qv-hero > img { max-width: 100%; max-height: 320px; object-fit: contain; padding: 22px; margin: auto; }
/* Miniatures scrollbar cachée */
.ev-shop .sh-qv-hero > div > div:last-child::-webkit-scrollbar { display: none; }
/* Miniatures hover */
.ev-shop .sh-qv-thumb:hover { border-color: color-mix(in srgb, var(--acc) 60%, transparent) !important; }
.ev-shop .sh-qv-thumb.is-on { border-color: var(--acc) !important; }
/* Flèches prev/next */
.ev-shop .sh-qv-prev,
.ev-shop .sh-qv-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bdr);
  background: rgba(10,14,24,.78); color: #fff;
  cursor: pointer; z-index: 2; display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  backdrop-filter: blur(8px);
  transition: background .16s, border-color .16s, transform .16s;
}
.ev-shop .sh-qv-prev { left: 10px; }
.ev-shop .sh-qv-next { right: 10px; }
.ev-shop .sh-qv-prev:hover,
.ev-shop .sh-qv-next:hover {
  background: color-mix(in srgb, var(--acc) 22%, rgba(10,14,24,.90));
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
  transform: translateY(-50%) scale(1.08);
}
.ev-shop.is-theme-light .sh-qv-prev,
.ev-shop.is-theme-light .sh-qv-next {
  background: rgba(255,255,255,.88); color: var(--txt);
  border-color: rgba(15,26,46,.12);
}
/* Compteur */
.ev-shop .sh-qv-counter {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); pointer-events: none;
  white-space: nowrap;
}
.ev-shop .sh-qv-acts { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.ev-shop .sh-qv-a { flex: 1; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt) !important; font-weight: 800; }
.ev-shop.is-theme-light .sh-qv-a { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }
.ev-shop .sh-qv-a-acc { border-color: rgba(255,140,0,.28); background: rgba(255,140,0,.12); color: var(--acc) !important; }

/* Dock comparateur */
.ev-shop .sh-dock {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(1080px, 94vw); display: none; z-index: 100050;
  padding: 12px; border-radius: 22px;
  border: 1px solid var(--bdr);
  background: rgba(10,14,22,.90); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.ev-shop.is-theme-light .sh-dock {
  background: rgba(255,255,255,.96);
  border-color: rgba(15,26,46,.10);
  box-shadow: 0 12px 40px rgba(15,26,46,.14);
}
.ev-shop .sh-dock-row { display: flex; align-items: center; gap: 12px; }
.ev-shop .sh-dock-list { display: flex; gap: 12px; flex: 1; overflow: auto; }
.ev-shop .sh-dock-item { display: flex; align-items: center; gap: 10px; min-width: 250px; padding: 8px 10px; border-radius: 16px; border: 1px solid var(--bdr); background: var(--surf2); }
.ev-shop.is-theme-light .sh-dock-item { background: rgba(248,250,253,.98); border-color: rgba(15,26,46,.09); }
.ev-shop .sh-dock-thumb { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: var(--card2); }
.ev-shop .sh-dock-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-shop .sh-dock-name { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-shop .sh-dock-rm { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.08); }
.ev-shop.is-theme-light .sh-dock-rm { background: rgba(15,26,46,.07); color: var(--txt); }
.ev-shop .sh-dock-acts { display: flex; gap: 10px; }
.ev-shop .sh-dock-btn { min-height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--bdr); background: var(--surf2); color: var(--txt); font-weight: 800; }
.ev-shop.is-theme-light .sh-dock-btn { background: rgba(248,250,253,.96); border-color: rgba(17,27,45,.09); color: var(--txt) !important; }
.ev-shop .sh-dock-btn-acc { border-color: rgba(255,140,0,.28); background: rgba(255,140,0,.12); color: var(--acc); }

/* ─────────────────────────────────────────
   12. TOASTS
───────────────────────────────────────── */
.ev-shop .sh-toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 100060; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.ev-shop .sh-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--bdr); background: rgba(10,14,22,.92); color: var(--txt); box-shadow: 0 18px 40px rgba(0,0,0,.26); animation: shToastIn .18s ease; }
.ev-shop.is-theme-light .sh-toast { background: rgba(255,255,255,.98); border-color: rgba(15,26,46,.10); box-shadow: 0 8px 28px rgba(15,26,46,.16); color: var(--txt); }
.ev-shop .sh-toast.is-hide { opacity: 0; transform: translateY(8px); transition: .2s ease; }
.ev-shop .sh-toast-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,140,0,.12); color: var(--acc); font-size: 15px; font-weight: 900; flex: 0 0 auto; }
.ev-shop.is-theme-light .sh-toast-icon { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.ev-shop .sh-toast-text { display: grid; gap: 2px; }
.ev-shop .sh-toast-text strong { font-size: 14px; }
.ev-shop .sh-toast-text span { color: var(--mut); font-size: 13px; }
@keyframes shToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* ─────────────────────────────────────────
   14. RESPONSIVE MOBILE COMPLET
───────────────────────────────────────── */
@media (max-width: 760px) {
  /* Container : plein viewport sans marges latérales */
  .ev-shop {
    max-width: 100vw;
    width: 100%;
    margin: 0 auto 24px;
    padding: 12px;
    border-radius: 0;
  }

  /* Hero fullwidth mobile : forcer le flush total */
  .ev-shop.has-fullwidth-hero {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .ev-shop.has-fullwidth-hero .sh-hero,
  .ev-shop.has-fullwidth-hero .sh-hero-external {
    left: 0; margin-left: 0; margin-right: 0; margin-top: 0;
    width: 100%; max-width: 100%;
    border-radius: 0;
  }

  /* Hero : moins de padding, titre plus petit */
  .ev-shop .sh-hero { border-radius: 0; padding: 32px 18px; }
  .ev-shop .sh-title { font-size: clamp(36px, 10vw, 56px); }
  .ev-shop .sh-subtitle { font-size: 14px; }

  /* Layout : sidebar masquée, filtre via offcanvas */
  .ev-shop .sh-sidebar { display: none; }
  .ev-shop .sh-main { grid-template-columns: 1fr; gap: 0; }

  /* Topbar mobile : compacte */
  .ev-shop .sh-topbar { padding: 10px 12px; gap: 8px; border-radius: 16px; }
  .ev-shop .sh-topbar-r { width: 100%; justify-content: space-between; gap: 8px; }
  .ev-shop .sh-filter-btn { display: inline-flex !important; }
  .ev-shop .sh-sort { min-width: 0; flex: 1 1 auto; }
  .ev-shop .sh-views { flex-shrink: 0; }

  /* Boutons grille/liste : masqués sur mobile */
  .ev-shop .sh-views { display: none !important; }

  /* Actions : sur une ligne scrollable */
  .ev-shop .sh-top-actions {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; width: 100%; order: 3;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ev-shop .sh-top-actions::-webkit-scrollbar { display: none; }
  .ev-shop .sh-top-pill { white-space: nowrap; flex-shrink: 0; }

  /* ─── CARD MOBILE OPTIMISÉE : tout visible d'un coup ─── */
  /* Annule la vue liste horizontale sur mobile → toujours vertical */
  .ev-shop .sh-grid,
  .ev-shop .sh-grid.is-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Card : layout vertical compact */
  .ev-shop .sh-card,
  .ev-shop .sh-grid.is-list .sh-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  /* Image : hauteur réduite pour laisser place au contenu */
  .ev-shop .sh-card-img,
  .ev-shop .sh-grid.is-list .sh-card-img {
    height: 180px;
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--bdr);
  }

  /* Corps : padding réduit, gap serré */
  .ev-shop .sh-card-body,
  .ev-shop .sh-grid.is-list .sh-card-body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 12px;
    gap: 10px;
    justify-content: stretch;
  }

  /* Nom du produit compact */
  .ev-shop .sh-card-name { font-size: clamp(18px, 5vw, 24px); }
  .ev-shop .sh-card-headline { min-height: auto; gap: 4px; }

  /* Specs : 2 colonnes, cases compactes — 4 specs en 2×2 */
  .ev-shop .sh-specs,
  .ev-shop .sh-grid.is-list .sh-specs {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .ev-shop .sh-spec,
  .ev-shop .sh-grid.is-list .sh-spec {
    min-height: 56px;
    padding: 8px 10px;
    gap: 5px;
  }
  .ev-shop .sh-spec-key { font-size: 9px; }
  .ev-shop .sh-spec-val { font-size: 12.5px; }

  /* Pied : prix + bouton empilés */
  .ev-shop .sh-card-foot,
  .ev-shop .sh-grid.is-list .sh-card-foot {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
  }

  /* Prix compact */
  .ev-shop .sh-price-cur,
  .ev-shop .sh-grid.is-list .sh-price-cur {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* Bouton pleine largeur */
  .ev-shop .sh-btn,
  .ev-shop .sh-grid.is-list .sh-btn {
    width: 100%;
    min-height: 44px;
  }

  /* Sidebar offcanvas : prend toute la hauteur */
  .ev-shop .sh-oc { width: min(88vw, 360px); }
}

@media (max-width: 480px) {
  .ev-shop .sh-stats { flex-direction: column; width: 100%; border-radius: 14px; }
  .ev-shop .sh-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .ev-shop .sh-stat:last-child { border-bottom: 0; }
  .ev-shop .sh-topbar-r { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .ev-shop .sh-title { font-size: clamp(30px, 9vw, 44px); }
  .ev-shop .sh-hero { padding: 24px 14px; }
}


/* ─────────────────────────────────────────
   16. FILTER UX POLISH — desktop + mobile
───────────────────────────────────────── */
.ev-shop .sh-sidebar {
  display: grid;
  gap: 14px;
}
.ev-shop .sh-panel-head {
  margin-bottom: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--acc) 18%, var(--bdr));
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, transparent), color-mix(in srgb, var(--surf2) 100%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.ev-shop.is-theme-light .sh-panel-head {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.96));
}
.ev-shop .sh-panel-head::after {
  content: 'Résultats instantanés';
  margin-left: auto;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--acc);
}
.ev-shop .sh-sec {
  margin-bottom: 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--txt) 7%, transparent);
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.ev-shop.is-theme-light .sh-sec {
  background: rgba(255,255,255,.94);
  border-color: rgba(15,26,46,.08);
}
.ev-shop .sh-sec:last-of-type {
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--txt) 7%, transparent);
}
.ev-shop .sh-sec-title {
  margin-bottom: 0;
  display: block;
  color: var(--txt);
  font-size: 12px;
  letter-spacing: .12em;
}
.ev-shop .sh-sec-search .sh-sec-title { margin-bottom: 12px; }
.ev-shop .sh-side-sec-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.ev-shop .sh-side-sec-head > span:first-child {
  display: grid;
  gap: 6px;
}
.ev-shop .sh-side-sec-sub {
  color: var(--mut);
  font-size: 12px;
  font-weight: 600;
}
.ev-shop .sh-side-sec-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ev-shop .sh-side-sec-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.ev-shop .sh-side-sec-arr {
  font-size: 12px;
  color: var(--mut);
  transition: transform .2s ease;
}
.ev-shop .sh-sec-card .sh-side-sec-body {
  margin-top: 14px;
}
.ev-shop .sh-sec-card:not(.is-open) .sh-side-sec-body {
  display: none;
}
.ev-shop .sh-sec-card:not(.is-open) .sh-side-sec-arr {
  transform: rotate(-90deg);
}
.ev-shop .sh-meta-wrap {
  display: grid;
  gap: 4px;
}
.ev-shop .sh-meta-eyebrow {
  color: var(--acc);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ev-shop .sh-activebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -4px 0 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--txt) 7%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 84%, transparent);
}
.ev-shop.is-theme-light .sh-activebar {
  background: rgba(255,255,255,.96);
  border-color: rgba(15,26,46,.08);
}
.ev-shop .sh-activebar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.ev-shop .sh-activebar-title {
  color: var(--mut);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ev-shop .sh-activebar-list {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.ev-shop .sh-active-chip,
.ev-shop .sh-oc-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--acc) 24%, transparent);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  color: var(--txt);
  font-size: 12px;
  font-weight: 700;
}
.ev-shop .sh-active-chip strong,
.ev-shop .sh-oc-active-chip strong {
  color: var(--acc);
  font-size: 14px;
}
.ev-shop .sh-activebar-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--txt) 9%, transparent);
  background: color-mix(in srgb, var(--txt) 4%, transparent);
  color: var(--txt);
  font-weight: 700;
  white-space: nowrap;
}
.ev-shop .sh-filter-btn {
  min-height: 46px;
  border-radius: 15px;
  padding: 0 18px;
}
.ev-shop .sh-oc-title-wrap {
  display: grid;
  gap: 4px;
}
.ev-shop .sh-oc-subtitle {
  color: var(--mut);
  font-size: 11px;
  font-weight: 600;
}
.ev-shop .sh-oc-subtitle strong { color: var(--txt); }
.ev-shop .sh-oc-active-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ev-shop .sh-oc-active-row::-webkit-scrollbar { display: none; }
.ev-shop .sh-oc-footer {
  position: sticky;
  bottom: 0;
}
.ev-shop .sh-oc-apply {
  font-size: 14px;
  letter-spacing: .02em;
}
@media (max-width: 980px) {
  .ev-shop .sh-activebar {
    flex-direction: column;
    align-items: stretch;
  }
  .ev-shop .sh-activebar-main {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .ev-shop .sh-topbar {
    gap: 10px;
  }
  .ev-shop .sh-topbar-l,
  .ev-shop .sh-topbar-r {
    width: 100%;
  }
  .ev-shop .sh-topbar-r {
    justify-content: space-between;
  }
  .ev-shop .sh-filter-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .ev-shop .sh-sort-form {
    display: block;
    flex: 1 1 100%;
  }
  .ev-shop .sh-sort {
    width: 100%;
  }
  .ev-shop .sh-activebar {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
  }
  .ev-shop .sh-activebar-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .ev-shop .sh-activebar-list::-webkit-scrollbar { display: none; }
  .ev-shop .sh-active-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .ev-shop .sh-oc {
    max-height: 92vh;
    min-height: 78vh;
  }
}


/* ─────────────────────────────────────────
   17. MOBILE HOTFIX — sidebar cachée + offcanvas pleine largeur
───────────────────────────────────────── */
@media (max-width: 760px) {
  /* On garde uniquement le système mobile */
  .ev-shop .sh-sidebar { display: none !important; }
  .ev-shop .sh-main { grid-template-columns: 1fr !important; }
  .ev-shop .sh-filter-btn { display: inline-flex !important; }

  /* Bottom sheet vraiment pleine largeur */
  .ev-shop .sh-oc {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  /* Sécurité : si un wrapper essaie de boxer le panneau */
  .ev-shop .sh-oc-overlay {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
  }
}

/* Compare bar sticky */
.ev-cmp-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9,15,31,.95); backdrop-filter: blur(20px);
  border-top: 1px solid color-mix(in srgb, var(--acc, #ff8c00) 30%, transparent);
  padding: 12px 24px; display: flex; align-items: center; gap: 12px;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.34,1.2,.64,1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.4);
}
.ev-cmp-bar.is-open { transform: translateY(0); }
.ev-cmp-bar-label {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5);
  font-family: 'Courier New', monospace; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.ev-cmp-bar-pills { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; align-items: center; }
.ev-cmp-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px;
  background: color-mix(in srgb, var(--acc, #ff8c00) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc, #ff8c00) 25%, transparent);
  border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  max-width: 220px;
}
.ev-cmp-pill-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.05); }
.ev-cmp-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-cmp-pill-x {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 10px; transition: .15s; border: none; color: #fff; line-height: 1;
}
.ev-cmp-pill-x:hover { background: rgba(239,68,68,.4); }
.ev-cmp-pill-empty { padding: 6px 14px; border: 1px dashed rgba(255,255,255,.15); border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.4); }
.ev-cmp-btn {
  padding: 9px 22px; border-radius: 12px; background: var(--acc, #ff8c00); color: #000;
  font-size: 13px; font-weight: 800; cursor: pointer; border: none;
  transition: .15s; letter-spacing: .03em; white-space: nowrap;
}
.ev-cmp-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ev-cmp-btn:disabled { background: rgba(255,140,0,.2); color: rgba(255,255,255,.3); cursor: not-allowed; transform: none; }
.ev-cmp-bar-close {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.06); border: none;
  color: rgba(255,255,255,.5); font-size: 16px; cursor: pointer; transition: .15s;
  display: flex; align-items: center; justify-content: center;
}
.ev-cmp-bar-close:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

/* Compare Modal */
.ev-cmp-modal-bg {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(7,9,15,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.ev-cmp-modal-bg.is-open { opacity: 1; pointer-events: all; }
.ev-cmp-modal {
  width: min(940px, 100%); max-height: 90vh; overflow-y: auto;
  background: color-mix(in srgb, var(--card, #0d1120) 95%, #000);
  border: 1px solid rgba(255,255,255,.12); border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: scale(.96) translateY(16px); transition: transform .35s cubic-bezier(.23,1,.32,1);
}
.ev-cmp-modal-bg.is-open .ev-cmp-modal { transform: scale(1) translateY(0); }
.ev-cmp-modal-hd {
  padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.ev-cmp-modal-title { font-size: 18px; font-weight: 800; color: var(--txt, #eef1ff); }
.ev-cmp-modal-close {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.06);
  border: none; color: rgba(255,255,255,.6); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.ev-cmp-modal-close:hover { background: rgba(239,68,68,.15); color: #fca5a5; }

.ev-cmp-table { width: 100%; border-collapse: collapse; }
.ev-cmp-table th { padding: 0; font-weight: normal; background: transparent; }
.ev-cmp-col-hd {
  padding: 20px 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.04);
}
.ev-cmp-col-hd:last-child { border-right: none; }
.ev-cmp-col-img {
  width: 80px; height: 80px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,.03);
}
.ev-cmp-col-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ev-cmp-col-name { font-size: 13px; font-weight: 800; color: var(--txt, #eef1ff); margin-bottom: 4px; }
.ev-cmp-col-price { font-size: 18px; font-weight: 800; color: var(--price, #ff9f2f); }

.ev-cmp-row { border-bottom: 1px solid rgba(255,255,255,.04); }
.ev-cmp-row:hover { background: rgba(255,255,255,.018); }
.ev-cmp-row td {
  padding: 11px 16px; font-size: 12px; text-align: center; vertical-align: middle;
  color: rgba(255,255,255,.85); font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.04);
}
.ev-cmp-row td:last-child { border-right: none; }
.ev-cmp-row td:first-child {
  text-align: left; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35);
  letter-spacing: .1em; text-transform: uppercase;
  font-family: 'Courier New', monospace; max-width: 140px;
}
.ev-cmp-val.is-best { color: #22c55e; position: relative; }
.ev-cmp-val.is-best::after { content: ' ★'; font-size: 9px; color: #22c55e; }
.ev-cmp-val.is-worst { color: rgba(255,255,255,.3); }
.ev-cmp-atc {
  display: block; width: 100%; padding: 10px 0; border-radius: 12px;
  background: var(--acc, #ff8c00); color: #000; font-size: 12px; font-weight: 800;
  border: none; cursor: pointer; transition: .15s; text-decoration: none; text-align: center;
}
.ev-cmp-atc:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Light mode adjustments */
.ev-shop.is-theme-light ~ .ev-cmp-bar,
body.is-light .ev-cmp-bar { background: rgba(255,255,255,.97); border-top-color: color-mix(in srgb, var(--acc, #ff8c00) 35%, transparent); }
body.is-light .ev-cmp-bar-label { color: #64748b; }
body.is-light .ev-cmp-pill { color: #1a0e00; background: color-mix(in srgb, var(--acc, #ff8c00) 12%, #fff); }

/* ══════════════════════════════════════════════════════════
   TOAST "AJOUTÉ AU PANIER" (v4.2.0)
══════════════════════════════════════════════════════════ */
.ev-toast-stack {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
}
.ev-toast {
  width: 380px; max-width: calc(100vw - 48px);
  background: rgba(13,17,32,.97); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px;
  padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04);
  position: relative; overflow: hidden; pointer-events: auto;
  transform: translateX(120%); opacity: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.ev-toast.is-visible { transform: translateX(0); opacity: 1; }
.ev-toast.is-leaving { transform: translateX(120%); opacity: 0; }
.ev-toast-img {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc, #ff8c00) 18%, transparent), color-mix(in srgb, var(--acc, #ff8c00) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--acc, #ff8c00) 22%, transparent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.ev-toast-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ev-toast-img-fallback { font-size: 22px; }
.ev-toast-body { flex: 1; min-width: 0; }
.ev-toast-label {
  font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #22c55e; margin-bottom: 3px; font-family: 'Courier New', monospace;
  display: flex; align-items: center; gap: 5px;
}
.ev-toast-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  display: inline-block; animation: ev-toast-pulse 1.5s ease-in-out infinite;
}
.ev-toast.is-error .ev-toast-label { color: #ef4444; }
.ev-toast.is-error .ev-toast-label::before { background: #ef4444; }
.ev-toast.is-undo .ev-toast-label { color: #fbbf24; }
.ev-toast.is-undo .ev-toast-label::before { background: #fbbf24; }
@keyframes ev-toast-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.8); }
}
.ev-toast-name {
  font-size: 13px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-toast-price { font-size: 11px; color: var(--price, #ff9f2f); font-weight: 700; margin-top: 2px; }
.ev-toast-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.ev-toast-btn {
  padding: 6px 12px; border-radius: 9px; font-size: 10px; font-weight: 800;
  border: none; cursor: pointer; white-space: nowrap; letter-spacing: .03em; transition: .15s;
  font-family: inherit;
}
.ev-toast-btn-cart { background: var(--acc, #ff8c00); color: #000; }
.ev-toast-btn-cart:hover { filter: brightness(1.1); }
.ev-toast-btn-undo {
  background: rgba(239,68,68,.12); color: #fca5a5;
  border: 1px solid rgba(239,68,68,.2);
}
.ev-toast-btn-undo:hover { background: rgba(239,68,68,.2); }
.ev-toast-progress {
  position: absolute; bottom: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--acc, #ff8c00), color-mix(in srgb, var(--acc, #ff8c00) 40%, transparent));
  border-radius: 0 0 18px 18px; width: 100%;
}
.ev-toast.is-visible .ev-toast-progress { animation: ev-toast-progress 4s linear forwards; }
@keyframes ev-toast-progress { from { width: 100%; } to { width: 0%; } }

/* Mobile adjustments */
@media (max-width: 640px) {
  .ev-toast-stack { bottom: 12px; right: 12px; left: 12px; }
  .ev-toast { width: 100%; }
  .ev-cmp-bar { padding: 10px 12px; flex-wrap: wrap; }
  .ev-cmp-bar-label { display: none; }
  .ev-cmp-pill { max-width: 140px; font-size: 10px; }
}

/* ══ v4.2.3 — Masquer le lien "Voir le panier" WooCommerce ══ */
.ev-shop .added_to_cart.wc-forward,
.ev-shop a.added_to_cart,
.ev-shop .sh-card a.added_to_cart {
  display: none !important;
}

/* ══ v4.2.3 — Toast panier enrichi (image, undo, progress) ══ */
.ev-shop .sh-toast--cart,
.ev-shop .sh-toast--undo {
  position: relative;
  padding-bottom: 18px;
  pointer-events: auto;
}
.ev-shop .sh-toast-icon--img {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,140,0,.08);
  border: 1px solid rgba(255,140,0,.18);
  padding: 3px; overflow: hidden;
  flex: 0 0 auto;
}
.ev-shop .sh-toast-icon--img img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.ev-shop .sh-toast-price {
  color: var(--acc, #ff8c00);
  font-weight: 700; margin-left: 6px;
}
.ev-shop .sh-toast-actions {
  margin-left: auto; display: flex;
  flex-direction: column; gap: 5px;
  flex-shrink: 0; align-self: center;
}
.ev-shop .sh-toast-btn {
  padding: 6px 12px; border-radius: 10px;
  font-size: 11px; font-weight: 800;
  cursor: pointer; border: none;
  white-space: nowrap; transition: .15s;
  letter-spacing: .02em; font-family: inherit;
}
.ev-shop .sh-toast-btn--undo {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.22);
}
.ev-shop .sh-toast-btn--undo:hover {
  background: rgba(239,68,68,.22); color: #fff;
}
.ev-shop .sh-toast-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--acc, #ff8c00), color-mix(in srgb, var(--acc, #ff8c00) 30%, transparent));
  border-radius: 0 0 18px 18px;
  transform-origin: left;
  animation: shToastProgress 5s linear forwards;
}
.ev-shop .sh-toast--undo .sh-toast-progress {
  background: linear-gradient(90deg, #fbbf24, rgba(251,191,36,.3));
  animation: shToastProgress 2.4s linear forwards;
}
@keyframes shToastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ══ v4.2.3 — Toast mode clair (is-theme-light) ══ */
.ev-shop.is-theme-light .sh-toast--cart,
.ev-shop.is-theme-light .sh-toast--undo {
  background: rgba(255,255,255,.98);
  border-color: rgba(15,26,46,.10);
  box-shadow: 0 8px 28px rgba(15,26,46,.16);
  color: #1a1a2e;
}
.ev-shop.is-theme-light .sh-toast-text strong { color: #0f172a; }
.ev-shop.is-theme-light .sh-toast-text span { color: #475569; }
.ev-shop.is-theme-light .sh-toast-price { color: #c05500; }
.ev-shop.is-theme-light .sh-toast-icon--img {
  background: rgba(255,140,0,.06);
  border-color: rgba(255,140,0,.15);
}
.ev-shop.is-theme-light .sh-toast-btn--undo {
  background: rgba(239,68,68,.08);
  color: #dc2626;
  border-color: rgba(239,68,68,.25);
}
.ev-shop.is-theme-light .sh-toast-btn--undo:hover {
  background: rgba(239,68,68,.15); color: #991b1b;
}
.ev-shop.is-theme-light .sh-toast-progress {
  background: linear-gradient(90deg, #c05500, rgba(192,85,0,.3));
}
.ev-shop.is-theme-light .sh-toast--undo .sh-toast-progress {
  background: linear-gradient(90deg, #d97706, rgba(217,119,6,.3));
}
.ev-shop.is-theme-light .sh-toast--cart .sh-toast-icon,
.ev-shop.is-theme-light .sh-toast--undo .sh-toast-icon {
  background: rgba(34,197,94,.1); color: #15803d;
}
.ev-shop.is-theme-light .sh-toast--undo .sh-toast-icon {
  background: rgba(245,158,11,.1); color: #d97706;
}

/* Masquer aussi les notices WC natives quand notre shop est présent */
body:has(.ev-shop[data-ev-shop]) .woocommerce-message {
  display: none !important;
}

@media (max-width: 640px) {
  .ev-shop .sh-toast--cart,
  .ev-shop .sh-toast--undo {
    padding: 12px 12px 16px;
  }
  .ev-shop .sh-toast-icon--img { width: 38px; height: 38px; }
}
