/* =========================================================================
   LaFactory Shop -- Storefront design system + composants (v0.47.0)
   Sections couvertes :
     1. Tokens dark + light override (dual theme)
     2. Base reset scope .ldp-shop
     3. Header / nav / cart pill / banner
     4. Hero + filterbar + section heading
     5. Grille produits + product card
     6. PDP (cover + thumbs + detail panel + license tiers + tabs + trust)
     7. Cart drawer (overlay + aside + rows + foot)
     8. Checkout (banner + back + 2-col grid form + summary)
     9. Confirmation / thanks
    10. Account (sidebar + content cards + downloads list + orders table + licenses + profile)
    11. Common UI (buttons, badges, inputs, tabs, modal, table, toggle, avatar)
    12. Footer
    13. Responsive (max-width: 900px collapse 2-col grids)

   Reference : maquette Claude Design generee pour Francis (handoff
   ~/workspace/_refs/storefront-handoff/edd/, telechargee 2026-05-09).
   Tous les sélecteurs sont prefixes .ldp-* (LaFactory Digital Products).
   Le wrapper racine .ldp-shop pose le scope CSS et reçoit data-theme.
   ========================================================================= */

@import url('https://fonts.bunny.net/css?family=geist:400,500,600,700|geist-mono:400,500');

/* =========================================================================
   0. CANVAS .ldp-shop (refonte v0.62.1, pattern WooCommerce)

   Le storefront ne masque PAS le chrome du theme actif (header, nav, footer,
   sidebar). Il se contente d'isoler son propre canvas via .ldp-shop pour
   que les couleurs/typo plugin n'heritent rien du theme.

   v0.62.8 Francis 2026-05-23 "tu as bloque la largeur" : le storefront
   est wrappe par Divi dans `.container` (max-width:1080px). On force
   `.ldp-shop` a deborder son parent via marges negatives compensatoires
   pour atteindre 100vw, SANS toucher au chrome theme (header + footer
   Divi restent intacts au-dessus / en-dessous).

   Historique v0.42.0 -> v0.62.0 : body.has-lfdp-fullscreen +
   ~90 lignes de `display: none !important` ciblant 30+ selecteurs WP
   etaient un anti-pattern (couplage du plugin au DOM du theme).
   ========================================================================= */
/* Fullbleed actif par defaut (Renderer::wrap pose data-ldp-fullbleed="1").
   La regle effective vit ligne ~190 (.ldp-shop[data-ldp-fullbleed="1"]). */
body.ldp-no-scroll { overflow: hidden !important; }

/* v0.71.1 Francis 2026-05-25 : fix bordure blanche entre fin du wrap
   `.ldp-shop` et footer Divi sur les pages WP managed (cart/checkout/
   thanks/account/store). `.ldp-shop` a min-height:100vh + BG dark, mais
   sur une page courte (checkout vide, ou viewport tall) le BG `body` du
   theme reste visible en dessous. On force le body sur les pages managed
   a porter le meme BG dark (light en cas de mode light force). */
body.lfdp-storefront-page,
body.lfdp-storefront-page #page-container,
body.lfdp-storefront-page #et-main-area,
body.lfdp-storefront-page #et-boc {
  background: #07080C !important;
}
body.lfdp-storefront-page.ldp-shop-mode-light,
body.lfdp-storefront-page.ldp-shop-mode-light #page-container,
body.lfdp-storefront-page.ldp-shop-mode-light #et-main-area,
body.lfdp-storefront-page.ldp-shop-mode-light #et-boc {
  background: #F5F2EB !important;
}

/* =========================================================================
   1. TOKENS (dark default + light override scope sur .ldp-shop)
   ========================================================================= */
.ldp-shop,
.ldp-shop[data-theme="dark"] {
  --ldp-bg-deepest: #07080C;
  --ldp-bg: #0E0F14;
  --ldp-surface: #161821;
  --ldp-surface-2: #1D2030;
  --ldp-surface-3: #262A3C;
  --ldp-border: #262A38;
  --ldp-border-strong: #353A4C;
  --ldp-overlay: rgba(7, 8, 12, 0.7);

  --ldp-text: #ECEDF2;
  --ldp-text-dim: #A0A4B2;
  --ldp-text-muted: #6A6F80;
  --ldp-text-faint: #4A4E5C;

  --ldp-primary: #E8B341;
  --ldp-primary-hover: #F2C25C;
  --ldp-primary-pressed: #D9A431;
  --ldp-primary-soft: rgba(232, 179, 65, 0.12);
  --ldp-primary-fg: #1A1408;

  --ldp-accent: #8775FF;
  --ldp-accent-soft: rgba(135, 117, 255, 0.14);
  --ldp-accent-on: #ffffff;

  --ldp-success: #3FCC8E;
  --ldp-success-soft: rgba(63, 204, 142, 0.14);
  --ldp-warn: #F2A33A;
  --ldp-warn-soft: rgba(242, 163, 58, 0.14);
  --ldp-danger: #F26A6A;
  --ldp-danger-soft: rgba(242, 106, 106, 0.14);
  --ldp-info: #5BB7FF;
  --ldp-info-soft: rgba(91, 183, 255, 0.14);

  --ldp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ldp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.4);
  --ldp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --ldp-ring: 0 0 0 3px rgba(232, 179, 65, 0.25);

  --ldp-r-xs: 4px;
  --ldp-r-sm: 6px;
  --ldp-r-md: 10px;
  --ldp-r-lg: 14px;
  --ldp-r-xl: 20px;
  --ldp-r-pill: 999px;

  --ldp-surface-alt: var(--ldp-surface-2);
  --ldp-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ldp-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --ldp-font-serif: 'Instrument Serif', Georgia, serif;
}

.ldp-shop[data-theme="light"] {
  /* v0.47.11 : 2e theme "Editorial Cream" (Francis 2026-05-10 'tu codes
     un second theme'). Signature distincte du dark : fond crème chaud,
     encre chaude, accent navy editorial (au lieu de purple violet),
     primary gold conserve pour la coherence cross-theme. Pensé pour
     boutiques editoriales/typographie/print, pas une simple inversion
     du dark. */
  --ldp-bg-deepest: #EFEAE0;        /* cream chaude profonde */
  --ldp-bg:         #F8F4EC;        /* cream chaude */
  --ldp-surface:    #FFFFFF;        /* card papier */
  --ldp-surface-2:  #F2EDE3;        /* cream secondaire */
  --ldp-surface-3:  #E5DECF;        /* cream profonde */
  --ldp-border:     #DBD3C2;        /* trait sec */
  --ldp-border-strong: #BFB59E;     /* trait fort */
  --ldp-overlay:    rgba(28, 22, 14, 0.45);

  --ldp-text:       #1B1814;        /* encre noire chaude */
  --ldp-text-dim:   #4A4337;        /* encre dim */
  --ldp-text-muted: #7A7060;        /* encre mute */
  --ldp-text-faint: #B0A795;        /* encre faint */

  --ldp-primary:    #A8740F;        /* gold edito (plus profond que dark) */
  --ldp-primary-hover:   #8E6209;
  --ldp-primary-pressed: #75510A;
  --ldp-primary-soft:    rgba(168, 116, 15, 0.10);
  --ldp-primary-fg: #FFFFFF;

  --ldp-accent:     #2C4A82;        /* navy editorial (pas purple) */
  --ldp-accent-soft: rgba(44, 74, 130, 0.10);
  --ldp-accent-on:  #FFFFFF;

  --ldp-success:    #1A8458;
  --ldp-success-soft: rgba(26, 132, 88, 0.10);
  --ldp-warn:       #B0640F;
  --ldp-warn-soft:  rgba(176, 100, 15, 0.10);
  --ldp-danger:     #B0291F;
  --ldp-danger-soft: rgba(176, 41, 31, 0.10);
  --ldp-info:       #2E5BA0;
  --ldp-info-soft:  rgba(46, 91, 160, 0.10);

  --ldp-shadow-sm: 0 1px 2px rgba(28, 22, 14, 0.06);
  --ldp-shadow-md: 0 4px 14px rgba(28, 22, 14, 0.07), 0 1px 2px rgba(28, 22, 14, 0.04);
  --ldp-shadow-lg: 0 14px 36px rgba(28, 22, 14, 0.10), 0 2px 6px rgba(28, 22, 14, 0.05);
  --ldp-ring: 0 0 0 3px rgba(168, 116, 15, 0.22);
}

/* Auto = follow theme WP : si admin a choisi mode=auto, le PHP detecte la
   palette du theme WP installe (dark vs light) et pose data-theme=dark|light
   server-side. Le @media prefers-color-scheme reste comme fallback ultime
   si le PHP n'a pas pu poser data-theme (page rendue en cache statique). */
@media (prefers-color-scheme: light) {
  .ldp-shop:not([data-theme="dark"]):not([data-theme="light"]) {
    --ldp-bg-deepest: #EFEAE0; --ldp-bg: #F8F4EC;
    --ldp-surface: #FFFFFF; --ldp-surface-2: #F2EDE3; --ldp-surface-3: #E5DECF;
    --ldp-border: #DBD3C2; --ldp-border-strong: #BFB59E;
    --ldp-overlay: rgba(28, 22, 14, 0.45);
    --ldp-text: #1B1814; --ldp-text-dim: #4A4337;
    --ldp-text-muted: #7A7060; --ldp-text-faint: #B0A795;
    --ldp-primary: #A8740F; --ldp-primary-fg: #FFFFFF;
    --ldp-primary-soft: rgba(168, 116, 15, 0.10);
    --ldp-accent: #2C4A82; --ldp-accent-soft: rgba(44, 74, 130, 0.10);
  }
}

/* =========================================================================
   2. BASE (scope .ldp-shop, on ne touche pas le body du theme WP)
   ========================================================================= */
.ldp-shop {
  font-family: var(--ldp-font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--ldp-bg-deepest);
  color: var(--ldp-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: 100vh;
  padding-top: 32px;
}
/* v0.71.29 (flow_724 a detecte ~500px vide entre cart card et footer
   Divi @ 1280x800) : sur les surfaces ou le contenu est tres court
   (cart 1 item, thanks page minimale), le min-height:100vh produit un
   gros bandeau dark entre le bas du contenu et le footer du theme.
   Override min-height:0 + padding-bottom modere pour aerer. body est
   deja dark via .lfdp-storefront-page (incident v0.71.2 evite). */
.ldp-shop.ldp-shop-is-cart,
.ldp-shop.ldp-shop-is-thanks {
  min-height: 0;
  padding-bottom: 60px;
}
/* v0.63.0 : retrait des hacks margin-top:-200px + padding-top:220px.
   Avec le pattern WC (Frontend\TemplateLoader sert page-storefront.php
   qui appelle get_header()/render/get_footer() directement), .ldp-shop
   n'est plus wrappe par .entry-content/.container du theme. Plus de gap
   blanc a absorber, plus de contrainte de largeur a contourner. La regle
   fullbleed reste optionnelle pour les pages OU le user pose [lfdp_products]
   en shortcode dans un page-builder qui re-wrappe (Elementor / Divi Builder). */
.ldp-shop[data-ldp-fullbleed="1"] {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.ldp-shop * { box-sizing: border-box; }
.ldp-shop button { font-family: inherit; cursor: pointer; }
.ldp-shop input,
.ldp-shop select,
.ldp-shop textarea { font-family: inherit; }
.ldp-shop a { color: inherit; text-decoration: none; }

.ldp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ldp-mono { font-family: var(--ldp-font-mono); }
.ldp-tabular { font-variant-numeric: tabular-nums; }
.ldp-muted { color: var(--ldp-text-muted); }
.ldp-dim { color: var(--ldp-text-dim); }

/* Theme toggle (top right of wrapper) */
.ldp-theme-toggle {
  position: absolute; top: 16px; right: 24px; z-index: 5;
  width: 36px; height: 36px;
  border-radius: var(--ldp-r-pill);
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  color: var(--ldp-text-dim);
  display: grid; place-items: center;
  transition: all 0.15s;
  font-size: 16px;
}
.ldp-theme-toggle:hover { color: var(--ldp-text); border-color: var(--ldp-border-strong); }

/* =========================================================================
   3. HEADER
   ========================================================================= */
.ldp-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--ldp-border);
  background: var(--ldp-bg-deepest);
}
.ldp-header-inner { display: contents; }
.ldp-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  color: var(--ldp-text);
  cursor: pointer;
}
.ldp-brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ldp-primary), #C9881E);
  color: var(--ldp-primary-fg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.ldp-header nav,
.ldp-nav {
  display: flex; gap: 24px;
  font-size: 13.5px;
}
.ldp-header nav a,
.ldp-nav a {
  color: var(--ldp-text-dim);
  cursor: pointer;
  transition: color 0.12s;
}
.ldp-header nav a:hover,
.ldp-nav a:hover,
.ldp-header nav a.active,
.ldp-nav a.active,
.ldp-header nav a.is-active,
.ldp-nav a.is-active { color: var(--ldp-text); }

.ldp-actions { display: flex; align-items: center; gap: 8px; }
.ldp-icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--ldp-r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ldp-text-dim);
  display: grid; place-items: center;
  transition: all 0.12s;
}
.ldp-icon-btn:hover { background: var(--ldp-surface); color: var(--ldp-text); border-color: var(--ldp-border); }

.ldp-cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--ldp-r-sm);
  background: var(--ldp-primary);
  color: var(--ldp-primary-fg);
  font-weight: 600; font-size: 13px;
  border: 1px solid var(--ldp-primary);
  transition: background 0.12s;
}
.ldp-cart-btn:hover { background: var(--ldp-primary-hover); }
.ldp-cart-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--ldp-r-pill);
  background: var(--ldp-primary-fg);
  color: var(--ldp-primary);
  font-size: 11px; font-weight: 700;
}

/* Admin demo banner */
.ldp-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: var(--ldp-surface-2);
  border-bottom: 1px solid var(--ldp-border);
  font-size: 12.5px;
  color: var(--ldp-text-dim);
}
.ldp-banner-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ldp-success);
  box-shadow: 0 0 0 3px var(--ldp-success-soft);
}
.ldp-banner a {
  margin-left: auto;
  color: var(--ldp-primary);
  font-weight: 500;
}

.ldp-powered-by {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--ldp-text-muted);
}

/* =========================================================================
   4. HERO + FILTERBAR + SECTION HEADING
   ========================================================================= */
.ldp-hero {
  padding: 96px 0 56px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ldp-hero-eyebrow {
  /* v0.62.9 : pill ambree arrondie pour matcher le composant du mockup
     (pill arrondie pleine sur fond ambre semi-transparent, texte ambre
     clair, sans uppercase). Avant : texte gris uppercase plat. */
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #d8a85a;
  font-weight: 500;
  background: rgba(216, 168, 90, 0.14);
  border: 1px solid rgba(216, 168, 90, 0.28);
  border-radius: 9999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.ldp-hero h1 {
  font-family: var(--ldp-font-serif);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 18px;
  color: var(--ldp-text);
}
.ldp-hero h1 em {
  font-style: italic;
  color: var(--ldp-primary);
}
.ldp-hero-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ldp-text-dim);
  max-width: 520px;
  margin: 0 auto 26px;
}
.ldp-hero-meta {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px;
  color: var(--ldp-text-muted);
  flex-wrap: wrap;
  justify-content: center;
}
.ldp-hero-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.ldp-hero-meta-item strong {
  color: var(--ldp-text);
  font-weight: 600;
}

.ldp-filterbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ldp-border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ldp-chip {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px;
  border-radius: var(--ldp-r-pill);
  background: transparent;
  border: 1px solid var(--ldp-border);
  color: var(--ldp-text-dim);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.ldp-chip:hover { color: var(--ldp-text); border-color: var(--ldp-border-strong); }
.ldp-chip.active,
.ldp-chip.is-active {
  background: var(--ldp-text);
  color: var(--ldp-bg);
  border-color: var(--ldp-text);
}

.ldp-section-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.ldp-section-h h2 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ldp-text);
}
.ldp-section-h p {
  margin: 0;
  font-size: 13px;
  color: var(--ldp-text-muted);
}

/* =========================================================================
   5. GRILLE PRODUITS + CARD
   ========================================================================= */
.ldp-grid {
  display: grid;
  grid-template-columns: repeat(var(--ldp-cols, 3), minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 80px;
}
.ldp-card {
  display: flex; flex-direction: column;
  background: transparent;
  border-radius: var(--ldp-r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s;
  text-decoration: none;
}
.ldp-card:hover { transform: translateY(-3px); }
.ldp-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--ldp-r-md);
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
  text-decoration: none;
}
.ldp-card-glyph {
  font-family: var(--ldp-font-serif);
  font-size: 96px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ldp-card-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: var(--ldp-r-pill);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px; font-weight: 700;
  /* v0.59.14 Francis 2026-05-22 verdict critique : badges rendaient
   * "Bestseller" / "New" en title case, eyebrow card en CAPS via CSS
   * uppercase, incoherence typographique vs mockup B "BESTSELLER" /
   * "NEW" / "25% OFF". Aligner sur le eyebrow CSS pattern. */
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ldp-card-meta {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 4px;
}
.ldp-card-cat {
  font-size: 11.5px;
  color: var(--ldp-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.ldp-card-name {
  font-size: 15px;
  color: var(--ldp-text);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.ldp-card-name:hover { color: var(--ldp-accent); }
.ldp-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
}
.ldp-card-price {
  color: var(--ldp-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ldp-card-stars {
  color: var(--ldp-text-muted);
  font-size: 12.5px;
}

/* v0.64.0 : add-to-cart button under the cover, before .ldp-card-meta */
.ldp-card-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  border: 1px solid var(--ldp-border);
  border-radius: 10px;
  background: var(--ldp-surface-alt);
  color: var(--ldp-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ldp-card-add:hover {
  background: var(--ldp-accent);
  color: var(--ldp-accent-on);
  border-color: var(--ldp-accent);
}
.ldp-card-add:focus-visible {
  outline: 2px solid var(--ldp-accent);
  outline-offset: 2px;
}
.ldp-card-add:active { transform: translateY(1px); }
.ldp-card-add[disabled],
.ldp-card-add.is-loading { cursor: wait; opacity: .85; }
.ldp-card-add.is-added {
  background: var(--ldp-accent);
  color: var(--ldp-accent-on);
  border-color: var(--ldp-accent);
}
.ldp-card-add.is-error {
  background: transparent;
  color: #c0392b;
  border-color: #c0392b;
}
.ldp-card-add-spinner {
  display: none;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ldp-spin .6s linear infinite;
}
.ldp-card-add.is-loading .ldp-card-add-spinner { display: inline-block; }
.ldp-card-add--options { /* link fallback for variable pricing */ }
@keyframes ldp-spin { to { transform: rotate(360deg); } }

/* v0.64.0 : compact cart link for WP menus / standalone shortcode */
.ldp-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}
.ldp-cart-link[data-empty="1"] .ldp-cart-link-count { display: none; }
.ldp-cart-link .ldp-cart-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ldp-accent, #111);
  color: var(--ldp-accent-on, #fff);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.ldp-cart-link svg { width: 16px; height: 16px; }

/* =========================================================================
   6. PDP -- product detail page
   ========================================================================= */
.ldp-pdp-breadcrumb {
  padding: 24px 0 0;
  font-size: 12.5px;
  color: var(--ldp-text-muted);
}
.ldp-pdp-breadcrumb a { color: var(--ldp-text-muted); }
.ldp-pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 32px 0 56px;
}
.ldp-pdp-cover {
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid; place-items: center;
  overflow: hidden;
}
.ldp-pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.ldp-pdp-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.ldp-pdp-thumb:hover { transform: translateY(-1px); }
.ldp-pdp-thumb.active,
.ldp-pdp-thumb.is-active { box-shadow: 0 0 0 2px var(--ldp-primary); }

.ldp-pdp-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ldp-text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.ldp-pdp-title {
  font-family: var(--ldp-font-serif);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ldp-text);
}
.ldp-pdp-stars {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ldp-text-muted);
  margin-bottom: 18px;
}
.ldp-pdp-price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 22px;
}
.ldp-pdp-price {
  font-size: 30px;
  font-weight: 600;
  color: var(--ldp-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.ldp-pdp-price-was {
  font-size: 18px;
  color: var(--ldp-text-muted);
  text-decoration: line-through;
}
.ldp-pdp-licenses {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.ldp-pdp-license-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ldp-r-md);
  border: 1px solid var(--ldp-border);
  cursor: pointer;
  transition: all 0.12s;
  background: var(--ldp-surface);
}
.ldp-pdp-license-opt:hover { border-color: var(--ldp-border-strong); }
.ldp-pdp-license-opt.active,
.ldp-pdp-license-opt.is-active {
  border-color: var(--ldp-primary);
  background: var(--ldp-primary-soft);
}
.ldp-pdp-license-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ldp-border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.12s;
}
.ldp-pdp-license-opt.active .ldp-pdp-license-radio,
.ldp-pdp-license-opt.is-active .ldp-pdp-license-radio { border-color: var(--ldp-primary); }
.ldp-pdp-license-opt.active .ldp-pdp-license-radio::after,
.ldp-pdp-license-opt.is-active .ldp-pdp-license-radio::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ldp-primary);
  transform: translate(-50%, -50%);
}
.ldp-pdp-license-text {
  flex: 1;
  display: flex; flex-direction: column;
  font-size: 13px;
}
.ldp-pdp-license-text strong { color: var(--ldp-text); font-size: 14px; font-weight: 600; }
.ldp-pdp-license-text span { color: var(--ldp-text-muted); font-size: 12.5px; margin-top: 2px; }
.ldp-pdp-license-price {
  color: var(--ldp-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ldp-pdp-buy {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--ldp-r-md);
  background: var(--ldp-primary);
  color: var(--ldp-primary-fg);
  border: 1px solid var(--ldp-primary);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.ldp-pdp-buy:hover { background: var(--ldp-primary-hover); }

.ldp-pdp-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ldp-text-muted);
}
.ldp-pdp-trust-item {
  display: inline-flex; align-items: center; gap: 6px;
}

.ldp-pdp-tabs {
  border-top: 1px solid var(--ldp-border);
  padding: 32px 0 80px;
}
.ldp-pdp-tabnav {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--ldp-border);
  margin-bottom: 28px;
}
.ldp-pdp-tabnav button {
  background: none; border: none;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ldp-text-dim);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.12s;
}
.ldp-pdp-tabnav button:hover { color: var(--ldp-text); }
.ldp-pdp-tabnav button.active,
.ldp-pdp-tabnav button.is-active {
  color: var(--ldp-text);
  border-bottom-color: var(--ldp-primary);
}
.ldp-pdp-tabpane { display: none; }
.ldp-pdp-tabpane.active,
.ldp-pdp-tabpane.is-active { display: block; }

.ldp-pdp-prose {
  max-width: 680px;
  font-size: 14.5px; line-height: 1.65;
  color: var(--ldp-text-dim);
}
.ldp-pdp-prose p { margin: 0 0 16px; }
.ldp-pdp-prose h3 {
  font-size: 16px;
  color: var(--ldp-text);
  margin: 28px 0 12px;
  font-weight: 600;
}
.ldp-pdp-prose ul {
  margin: 0; padding: 0 0 0 20px;
}
.ldp-pdp-prose li { margin: 0 0 8px; }
.ldp-pdp-prose strong { color: var(--ldp-text); }

/* =========================================================================
   7. CART DRAWER
   ========================================================================= */
.ldp-cart-portal { display: none; }
.ldp-cart-portal.is-open { display: block; }

.ldp-cart-overlay {
  position: fixed; inset: 0;
  background: var(--ldp-overlay);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: ldp-fade-in 0.2s;
}
@keyframes ldp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ldp-cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 460px;
  height: 100vh;
  background: var(--ldp-bg);
  border-left: 1px solid var(--ldp-border);
  z-index: 1001;
  display: flex; flex-direction: column;
  animation: ldp-slide-in 0.25s ease-out;
  box-shadow: var(--ldp-shadow-lg);
}
.ldp-cart-drawer.ldp-cart-drawer-static {
  position: relative;
  height: auto;
  margin: 32px auto;
  border-radius: var(--ldp-r-lg);
  border: 1px solid var(--ldp-border);
  box-shadow: var(--ldp-shadow-md);
  animation: none;
}
/* v0.89.43 (flow_724 mockup parity) : variante "right-aligned" pour
   approcher visuellement le pattern drawer-overlay du mockup tout en
   restant sur une route dediee /panier/. Le card glisse a droite du
   viewport au lieu d'etre centre, conservant l'inertia d'un drawer. */
.ldp-cart-drawer.ldp-cart-drawer-static.ldp-cart-drawer-aligned-right {
  margin: 32px 32px 32px auto;
}
@media (max-width: 900px) {
  .ldp-cart-drawer.ldp-cart-drawer-static.ldp-cart-drawer-aligned-right {
    margin: 32px auto;
  }
}
@keyframes ldp-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

.ldp-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ldp-border);
}
.ldp-cart-head h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ldp-text);
}

.ldp-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
  display: flex; flex-direction: column; gap: 16px;
}

.ldp-cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: flex-start;
}
.ldp-cart-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--ldp-font-serif);
  font-size: 22px;
  color: rgba(255,255,255,0.9);
}
.ldp-cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ldp-cart-name {
  font-size: 14px; font-weight: 600;
  color: var(--ldp-text);
  letter-spacing: -0.005em;
}
.ldp-cart-license {
  font-size: 12px;
  color: var(--ldp-text-muted);
}
.ldp-cart-qty {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.ldp-cart-qty button {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  color: var(--ldp-text-dim);
  font-size: 14px;
  display: grid; place-items: center;
}
.ldp-cart-qty button:hover { color: var(--ldp-text); border-color: var(--ldp-border-strong); }
.ldp-cart-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--ldp-text);
}
.ldp-cart-row-end { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ldp-cart-row-price {
  font-size: 13px; font-weight: 600;
  color: var(--ldp-text);
  font-variant-numeric: tabular-nums;
}
.ldp-cart-row-remove {
  background: none; border: none;
  color: var(--ldp-text-muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
}
.ldp-cart-row-remove:hover { color: var(--ldp-danger); }

.ldp-cart-foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--ldp-border);
  background: var(--ldp-bg-deepest);
}
.ldp-cart-row-total {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--ldp-text-dim);
  margin-bottom: 6px;
}
.ldp-cart-row-total span:last-child { color: var(--ldp-text); font-variant-numeric: tabular-nums; }
.ldp-cart-grand {
  display: flex; justify-content: space-between;
  font-size: 17px; font-weight: 600;
  color: var(--ldp-text);
  padding-top: 14px;
  border-top: 1px solid var(--ldp-border);
  margin-top: 8px;
}
.ldp-cart-grand span:last-child { font-variant-numeric: tabular-nums; }
.ldp-cart-checkout {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: var(--ldp-r-md);
  background: var(--ldp-primary);
  color: var(--ldp-primary-fg);
  font-size: 14px; font-weight: 600;
  margin-top: 14px;
  transition: background 0.12s;
}
.ldp-cart-checkout:hover { background: var(--ldp-primary-hover); }

/* =========================================================================
   8. CHECKOUT
   ========================================================================= */
.ldp-co-demo-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: var(--ldp-surface-2);
  border-bottom: 1px solid var(--ldp-border);
  font-size: 12.5px;
  color: var(--ldp-text-dim);
}
.ldp-co-demo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ldp-success);
  box-shadow: 0 0 0 3px var(--ldp-success-soft);
}
.ldp-co-demo-link { margin-left: auto; color: var(--ldp-primary); font-weight: 500; }

.ldp-co-back-row { padding: 24px 0 0; }
.ldp-co-back {
  font-size: 13px;
  color: var(--ldp-text-muted);
  cursor: pointer;
}
.ldp-co-back:hover { color: var(--ldp-text); }

.ldp-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  padding: 12px 0 96px;
}
.ldp-co-col-left { min-width: 0; }
.ldp-co-h1 {
  font-family: var(--ldp-font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 32px;
  color: var(--ldp-text);
}

.ldp-co-section {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ldp-border);
}
.ldp-co-section:last-child { border-bottom: none; }
.ldp-co-section-h {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ldp-text-muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.ldp-co-input {
  display: block;
  width: 100%;
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  border-radius: var(--ldp-r-sm);
  color: var(--ldp-text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ldp-co-input:focus { border-color: var(--ldp-primary); box-shadow: var(--ldp-ring); }
.ldp-co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ldp-co-mt { margin-top: 10px; }
.ldp-co-checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ldp-text-dim);
  margin-top: 10px;
}

.ldp-co-pay-options {
  display: flex; flex-direction: column; gap: 8px;
}
.ldp-co-pay-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ldp-r-md);
  border: 1px solid var(--ldp-border);
  background: var(--ldp-surface);
  cursor: pointer;
  transition: all 0.12s;
}
.ldp-co-pay-opt:hover { border-color: var(--ldp-border-strong); }
.ldp-co-pay-opt.active,
.ldp-co-pay-opt.is-active {
  border-color: var(--ldp-primary);
  background: var(--ldp-primary-soft);
}
.ldp-co-pay-opt.active .ldp-pdp-license-radio,
.ldp-co-pay-opt.is-active .ldp-pdp-license-radio { border-color: var(--ldp-primary); }
.ldp-co-pay-opt.active .ldp-pdp-license-radio::after,
.ldp-co-pay-opt.is-active .ldp-pdp-license-radio::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ldp-primary);
  transform: translate(-50%, -50%);
}
.ldp-co-pay-opt-text {
  flex: 1;
  display: flex; flex-direction: column;
  font-size: 13px;
}
.ldp-co-pay-opt-text strong {
  font-size: 14px; font-weight: 600;
  color: var(--ldp-text);
}
.ldp-co-pay-opt-text span {
  color: var(--ldp-text-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
/* v0.89.44 (flow_724 mockup parity) : badges marque a droite de chaque
   gateway option (VISA / MC / Apple Pay / PayPal / Pay). Filtre
   `lfdp_gateway_badges` consomme par Renderer. */
.ldp-co-pay-opt-badges {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; justify-content: flex-end;
  margin-left: 12px;
}
.ldp-co-pay-badge {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--ldp-surface-2);
  color: var(--ldp-text);
  border: 1px solid var(--ldp-border);
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
/* v0.89.46 (flow_724 mockup parity) : info card sous la liste gateways
   qui explique ce qui se passe a la prochaine etape (collect card sur
   Stripe / debit Wallet / wire transfer / etc.). Sync JS sur radio change. */
.ldp-co-payment-info {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--ldp-r-md);
  border: 1px dashed var(--ldp-border);
  background: var(--ldp-surface);
  font-size: 13px;
  color: var(--ldp-text-dim);
  line-height: 1.5;
}
.ldp-co-payment-info-icon {
  color: var(--ldp-primary);
  font-size: 14px;
  line-height: 1.5;
  flex-shrink: 0;
}
.ldp-co-payment-info-text { flex: 1; }
.ldp-co-pay-icons {
  display: flex; gap: 4px;
}
.ldp-co-pay-icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; min-width: 36px;
  padding: 0 6px;
  border-radius: 4px;
  color: #fff;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.04em;
}
.ldp-co-pay-card-fields {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px;
}

.ldp-co-summary {
  position: sticky; top: 24px;
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  border-radius: var(--ldp-r-lg);
  padding: 24px;
  align-self: start;
}
.ldp-co-section-h-first { margin-top: 0; }
.ldp-co-lines {
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ldp-border);
  margin-bottom: 14px;
}
.ldp-co-line {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.ldp-co-line-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--ldp-font-serif);
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}
.ldp-co-line-info { min-width: 0; display: flex; flex-direction: column; }
.ldp-co-line-name {
  font-size: 13.5px; font-weight: 600;
  color: var(--ldp-text);
}
.ldp-co-line-meta {
  font-size: 12px;
  color: var(--ldp-text-muted);
  margin-top: 2px;
}
.ldp-co-line-price {
  font-size: 13.5px; font-weight: 600;
  color: var(--ldp-text);
  font-variant-numeric: tabular-nums;
}
.ldp-co-discount-row {
  display: flex; gap: 6px;
  margin: 14px 0;
}
.ldp-co-discount { flex: 1; }
.ldp-co-apply {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--ldp-r-sm);
  background: var(--ldp-surface-2);
  border: 1px solid var(--ldp-border);
  color: var(--ldp-text);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.ldp-co-apply:hover { background: var(--ldp-surface-3); }
.ldp-co-summary-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--ldp-text-dim);
  margin-bottom: 6px;
}
.ldp-co-summary-row span:last-child { color: var(--ldp-text); font-variant-numeric: tabular-nums; }
.ldp-co-summary-grand {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 600;
  color: var(--ldp-text);
  padding-top: 14px;
  border-top: 1px solid var(--ldp-border);
  margin-top: 8px;
}
.ldp-co-summary-grand span:last-child { font-variant-numeric: tabular-nums; }
.ldp-co-place-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  padding: 0 20px;
  border-radius: var(--ldp-r-md);
  background: var(--ldp-primary);
  color: var(--ldp-primary-fg);
  border: 1px solid var(--ldp-primary);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.ldp-co-place-btn:hover { background: var(--ldp-primary-hover); }
.ldp-co-secured {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ldp-text-muted);
  justify-content: center;
}

/* =========================================================================
   9. THANKS / CONFIRMATION + EMPTY STATES
   ========================================================================= */
.ldp-thanks { padding: 80px 0 60px; max-width: 680px; margin: 0 auto; text-align: center; }
.ldp-thanks-check {
  width: 72px; height: 72px;
  border-radius: 36px;
  background: var(--ldp-success-soft);
  color: var(--ldp-success);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.ldp-thanks-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ldp-accent); font-weight: 600;
  margin-bottom: 12px;
}
.ldp-thanks h1 {
  font-family: var(--ldp-font-serif);
  font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ldp-text);
  margin: 0 0 14px;
}
.ldp-thanks-ref {
  font-size: 14px; color: var(--ldp-text-muted);
}
.ldp-thanks-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; justify-content: center; }
.ldp-thanks-btn,
.ldp-thanks-btn-alt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--ldp-r-md);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
}
.ldp-thanks-btn { background: var(--ldp-primary); color: var(--ldp-primary-fg); border: 1px solid var(--ldp-primary); }
.ldp-thanks-btn:hover { background: var(--ldp-primary-hover); }
.ldp-thanks-btn-alt { background: var(--ldp-surface); color: var(--ldp-text); border: 1px solid var(--ldp-border); }
.ldp-thanks-btn-alt:hover { border-color: var(--ldp-border-strong); }
.ldp-thanks-list {
  margin: 24px auto 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--ldp-text-muted);
  max-width: 360px; text-align: left;
}

.ldp-empty { padding: 42px 0 24px; max-width: 680px; margin: 0 auto; }
.ldp-empty-glyph {
  font-size: 48px; color: var(--ldp-text-faint);
  margin-bottom: 18px;
}
.ldp-empty-msg { color: var(--ldp-text-muted); }
.ldp-empty-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ldp-accent); font-weight: 600;
  margin-bottom: 12px;
}
.ldp-empty h1 {
  font-family: var(--ldp-font-serif);
  font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ldp-text);
  margin: 0 0 14px;
}
.ldp-empty-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ldp-empty-btn,
.ldp-empty-btn-alt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--ldp-r-md);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
}
.ldp-empty-btn { background: var(--ldp-primary); color: var(--ldp-primary-fg); border: 1px solid var(--ldp-primary); }
.ldp-empty-btn-alt { background: var(--ldp-surface); color: var(--ldp-text); border: 1px solid var(--ldp-border); }
.ldp-empty-list {
  margin: 22px 0 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--ldp-text-muted);
}

.ldp-acct-intro { padding: 32px 0 20px; max-width: 720px; }
.ldp-acct-intro-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ldp-accent); font-weight: 600;
  margin-bottom: 10px;
}
.ldp-acct-intro h1 {
  font-family: var(--ldp-font-serif);
  font-size: 36px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ldp-text);
  margin: 0 0 12px;
}

/* =========================================================================
  10. ACCOUNT (sidebar + content cards)
  ========================================================================= */
.ldp-acct-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 32px 0 80px;
}
.ldp-acct-side {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 24px;
  align-self: start;
}
.ldp-acct-side-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--ldp-r-sm);
  background: transparent; border: none;
  color: var(--ldp-text-dim);
  font-size: 13.5px; font-weight: 500;
  text-align: left;
  transition: all 0.12s;
  cursor: pointer;
}
.ldp-acct-side-item:hover { background: var(--ldp-surface); color: var(--ldp-text); }
.ldp-acct-side-item.active,
.ldp-acct-side-item.is-active {
  background: var(--ldp-surface-2);
  color: var(--ldp-text);
}
.ldp-acct-card {
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  border-radius: var(--ldp-r-md);
  padding: 24px;
}
.ldp-acct-card-h {
  font-size: 16px; font-weight: 600;
  margin: 0 0 18px;
  color: var(--ldp-text);
  letter-spacing: -0.005em;
}

.ldp-dl-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ldp-border);
}
.ldp-dl-row:last-child { border-bottom: none; }
.ldp-dl-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--ldp-font-serif);
  font-size: 18px;
  color: rgba(255,255,255,0.9);
}
.ldp-dl-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ldp-dl-name { font-size: 14px; font-weight: 600; color: var(--ldp-text); }
.ldp-dl-meta { font-size: 12.5px; color: var(--ldp-text-muted); }
.ldp-dl-key {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ldp-surface-2);
  border: 1px solid var(--ldp-border);
  font-family: var(--ldp-font-mono);
  font-size: 12px;
  color: var(--ldp-text);
  letter-spacing: 0.02em;
}
.ldp-dl-actions { display: inline-flex; gap: 6px; }

.ldp-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ldp-accent), #5040A8);
  color: white;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}

/* =========================================================================
  11. COMMON UI (buttons, badges, inputs, tabs, modal, table, toggle)
  ========================================================================= */
.ldp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--ldp-r-sm);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--ldp-border);
  background: var(--ldp-surface);
  color: var(--ldp-text);
  transition: all 0.12s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.ldp-btn:hover { background: var(--ldp-surface-2); border-color: var(--ldp-border-strong); }
.ldp-btn.is-primary { background: var(--ldp-primary); color: var(--ldp-primary-fg); border-color: var(--ldp-primary); font-weight: 600; }
.ldp-btn.is-primary:hover { background: var(--ldp-primary-hover); border-color: var(--ldp-primary-hover); }
.ldp-btn.is-ghost { background: transparent; border-color: transparent; color: var(--ldp-text-dim); }
.ldp-btn.is-ghost:hover { background: var(--ldp-surface); color: var(--ldp-text); }
.ldp-btn.is-danger { color: var(--ldp-danger); }
.ldp-btn.is-danger:hover { background: var(--ldp-danger-soft); border-color: var(--ldp-danger); }
.ldp-btn.is-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.ldp-btn.is-lg { height: 40px; padding: 0 18px; font-size: 14px; }

.ldp-badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: var(--ldp-r-pill);
  font-size: 11.5px; font-weight: 500;
  background: var(--ldp-surface-2);
  color: var(--ldp-text-dim);
  white-space: nowrap;
}
.ldp-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ldp-badge.is-success { background: var(--ldp-success-soft); color: var(--ldp-success); }
.ldp-badge.is-warn { background: var(--ldp-warn-soft); color: var(--ldp-warn); }
.ldp-badge.is-danger { background: var(--ldp-danger-soft); color: var(--ldp-danger); }
.ldp-badge.is-info { background: var(--ldp-info-soft); color: var(--ldp-info); }
.ldp-badge.is-accent { background: var(--ldp-accent-soft); color: var(--ldp-accent); }
.ldp-badge.is-primary { background: var(--ldp-primary-soft); color: var(--ldp-primary); }

.ldp-input,
.ldp-select,
.ldp-textarea {
  background: var(--ldp-surface);
  border: 1px solid var(--ldp-border);
  border-radius: var(--ldp-r-sm);
  color: var(--ldp-text);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
}
.ldp-input:focus,
.ldp-select:focus,
.ldp-textarea:focus { border-color: var(--ldp-primary); box-shadow: var(--ldp-ring); }

.ldp-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ldp-t thead th {
  text-align: left;
  font-size: 11px; font-weight: 600;
  color: var(--ldp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  background: var(--ldp-surface-2);
  border-bottom: 1px solid var(--ldp-border);
  white-space: nowrap;
}
.ldp-t tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ldp-border);
  vertical-align: middle;
}
.ldp-t tbody tr:last-child td { border-bottom: none; }
.ldp-t tbody tr:hover { background: var(--ldp-surface-2); }
.ldp-t .num { text-align: right; font-variant-numeric: tabular-nums; }

/* =========================================================================
  12. FOOTER
  ========================================================================= */
.ldp-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--ldp-border);
  background: var(--ldp-bg-deepest);
}
.ldp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto 32px;
}
.ldp-footer-grid h4 {
  font-size: 13px; font-weight: 600;
  color: var(--ldp-text);
  margin: 0 0 14px;
}
.ldp-footer-grid ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ldp-footer-grid a {
  color: var(--ldp-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.12s;
}
.ldp-footer-grid a:hover { color: var(--ldp-text); }
.ldp-footer-bottom {
  display: flex; justify-content: space-between;
  padding: 16px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--ldp-text-muted);
  border-top: 1px solid var(--ldp-border);
}

/* =========================================================================
  13. RESPONSIVE
  ========================================================================= */
@media (max-width: 900px) {
  .ldp-shop { --ldp-cols: 2; }
  .ldp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ldp-hero { padding: 48px 16px 32px; }
  .ldp-hero h1 { font-size: 36px; }
  .ldp-pdp-grid { grid-template-columns: 1fr; gap: 32px; padding: 24px 16px; }
  .ldp-pdp-cover { aspect-ratio: 1.2; }
  .ldp-checkout-grid { grid-template-columns: 1fr; gap: 32px; padding: 12px 16px 64px; }
  .ldp-co-summary { position: static; }
  .ldp-acct-grid { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
  .ldp-acct-side { flex-direction: row; flex-wrap: wrap; position: static; }
  .ldp-cart-drawer { max-width: 100%; }
  .ldp-footer-grid { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .ldp-footer-bottom { flex-direction: column; gap: 8px; padding: 16px 16px 0; }
  .ldp-pdp-trust { grid-template-columns: 1fr; }
  .ldp-header { padding: 14px 16px; }
  .ldp-header nav, .ldp-nav { display: none; }
  .ldp-pdp-title { font-size: 30px; }
  .ldp-co-h1 { font-size: 28px; }
  .ldp-thanks h1, .ldp-empty h1 { font-size: 30px; }
}
@media (max-width: 540px) {
  .ldp-shop { --ldp-cols: 1; }
  .ldp-grid { grid-template-columns: 1fr; }
  .ldp-co-row { grid-template-columns: 1fr; }
  .ldp-footer-grid { grid-template-columns: 1fr; }
}

/* v0.60.7 Francis 2026-05-23 "ni menu ni footer ca se voit pourtant" :
   sur surfaces storefront (archive lfdp_product / taxos / single PDP),
   le theme du user garde son header + footer + menu primaire, MAIS on
   masque la sidebar de blog typique (Recent Posts / Recent Comments)
   qui squeeze le contenu plugin a 60% de largeur. Body class
   `lfdp-fullwidth` est posee par BlankCanvas::force_fullwidth_body_class
   et sert de hook CSS universel (Divi / Astra / GeneratePress / OceanWP /
   Hello / themes blog generiques) sans dependre des classes specifiques
   de chaque theme. */
body.lfdp-fullwidth #sidebar,
body.lfdp-fullwidth aside.sidebar,
body.lfdp-fullwidth aside#secondary,
body.lfdp-fullwidth #secondary,
body.lfdp-fullwidth .sidebar.widget-area,
body.lfdp-fullwidth .et_pb_widget_area,
body.lfdp-fullwidth .et_right_sidebar #sidebar,
body.lfdp-fullwidth .et_left_sidebar #sidebar,
body.lfdp-fullwidth .ast-secondary,
body.lfdp-fullwidth .gp-sidebar,
body.lfdp-fullwidth .widget-area { display: none !important; }
body.lfdp-fullwidth #main-content .container,
body.lfdp-fullwidth #left-area,
body.lfdp-fullwidth .et_pb_post,
body.lfdp-fullwidth .site-main,
body.lfdp-fullwidth .ast-container,
body.lfdp-fullwidth .entry-content { width: 100% !important; max-width: 100% !important; float: none !important; }
