/* =========================================================================
   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. CHROME WP MASQUE (Francis 2026-05-10 : 'toutes les pages sont fausses')
   StorefrontAssets pose body.has-lfshop-fullscreen sur les pages portant
   un shortcode/block lfshop. On masque le chrome du theme WP (header,
   nav, h1 page, footer, breadcrumbs, sidebars) pour que la maquette LDP
   prenne le scope visuel complet.
   ========================================================================= */
body.has-lfshop-fullscreen {
  background: var(--ldp-bg-deepest, #07080C) !important;
  margin: 0 !important;
}
body.has-lfshop-fullscreen .site-header,
body.has-lfshop-fullscreen .site-branding,
body.has-lfshop-fullscreen .main-navigation,
body.has-lfshop-fullscreen .wp-block-template-part[data-type="header"],
body.has-lfshop-fullscreen header.site-header,
body.has-lfshop-fullscreen header[role="banner"],
body.has-lfshop-fullscreen header.wp-block-template-part,
body.has-lfshop-fullscreen #masthead,
body.has-lfshop-fullscreen .header-image,
body.has-lfshop-fullscreen .global-header,
body.has-lfshop-fullscreen .breadcrumb,
body.has-lfshop-fullscreen .breadcrumbs,
body.has-lfshop-fullscreen nav.breadcrumb,
body.has-lfshop-fullscreen .wp-block-navigation,
body.has-lfshop-fullscreen .wp-site-blocks > header,
body.has-lfshop-fullscreen > .site > .site-header { display: none !important; }
body.has-lfshop-fullscreen .entry-title,
body.has-lfshop-fullscreen .page-title,
body.has-lfshop-fullscreen .post-title,
body.has-lfshop-fullscreen .wp-block-post-title,
body.has-lfshop-fullscreen header.entry-header,
body.has-lfshop-fullscreen .entry-header { display: none !important; }
body.has-lfshop-fullscreen .site-footer,
body.has-lfshop-fullscreen footer.site-footer,
body.has-lfshop-fullscreen footer[role="contentinfo"],
body.has-lfshop-fullscreen .wp-block-template-part[data-type="footer"],
body.has-lfshop-fullscreen #colophon,
body.has-lfshop-fullscreen .global-footer,
body.has-lfshop-fullscreen #secondary,
body.has-lfshop-fullscreen .sidebar,
body.has-lfshop-fullscreen aside.widget-area,
body.has-lfshop-fullscreen #comments,
body.has-lfshop-fullscreen .comments-area,
body.has-lfshop-fullscreen .post-navigation,
body.has-lfshop-fullscreen .nav-links { display: none !important; }
body.has-lfshop-fullscreen #page,
body.has-lfshop-fullscreen #content,
body.has-lfshop-fullscreen .site,
body.has-lfshop-fullscreen .site-main,
body.has-lfshop-fullscreen main,
body.has-lfshop-fullscreen main#main,
body.has-lfshop-fullscreen main.site-main,
body.has-lfshop-fullscreen .wp-site-blocks,
body.has-lfshop-fullscreen .wp-block-group.is-layout-constrained,
body.has-lfshop-fullscreen .entry-content,
body.has-lfshop-fullscreen .entry-content.is-layout-constrained,
body.has-lfshop-fullscreen article.page,
body.has-lfshop-fullscreen article {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.has-lfshop-fullscreen.admin-bar { padding-top: 0 !important; }
body.has-lfshop-fullscreen #wpadminbar { z-index: 9999; }
body.ldp-no-scroll { overflow: hidden !important; }

/* v0.47.2 Francis 2026-05-10 'le footer theme Twenty Twenty-Five reste visible'.
   Couverture supplementaire Twenty Twenty-Five / theme block (wp-block-template-part)
   qui utilise des selecteurs differents de Twenty Twenty-Four. */
body.has-lfshop-fullscreen .wp-block-template-part,
body.has-lfshop-fullscreen [class*="wp-block-template-part"],
body.has-lfshop-fullscreen .wp-block-site-title,
body.has-lfshop-fullscreen .wp-block-post-title,
body.has-lfshop-fullscreen .wp-block-post-author,
body.has-lfshop-fullscreen .wp-block-post-date,
body.has-lfshop-fullscreen .wp-block-post-comments-form,
body.has-lfshop-fullscreen .wp-block-post-navigation-link,
body.has-lfshop-fullscreen .wp-block-comments,
body.has-lfshop-fullscreen .wp-block-pattern,
body.has-lfshop-fullscreen .wp-block-cover[class*="header"],
body.has-lfshop-fullscreen [data-type*="header"],
body.has-lfshop-fullscreen [data-type*="footer"] { display: none !important; }

/* v0.47.3 : nuclear option v0.47.2 enleve - elle masquait <main> qui contient
   .ldp-shop. A la place, on masque ciblement les elements theme parasites
   ET on neutralise les wrappers parents (background/padding/margin) sans
   les hide. */
body.has-lfshop-fullscreen :not(.ldp-shop):has(> .ldp-shop),
body.has-lfshop-fullscreen :not(.ldp-shop):has(.ldp-shop) {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
/* v0.47.5 : hide tous les h1 sous body.has-lfshop-fullscreen, puis revert
   ceux dans .ldp-shop. Couvre les themes WP qui rendent l'h1 page via un
   selecteur que nos overrides n'ont pas anticipe (Twenty Twenty-Five
   .has-large-font-size, custom theme blocks, etc.). Syntaxe CSS3 standard
   compatible navigateurs anciens. */
body.has-lfshop-fullscreen h1 { display: none !important; }
body.has-lfshop-fullscreen .ldp-shop h1 { display: revert !important; }
body.has-lfshop-fullscreen .ldp-shop .ldp-pdp-title,
body.has-lfshop-fullscreen .ldp-shop .ldp-co-h1,
body.has-lfshop-fullscreen .ldp-shop .ldp-hero h1,
body.has-lfshop-fullscreen .ldp-shop .ldp-thanks h1,
body.has-lfshop-fullscreen .ldp-shop .ldp-empty h1,
body.has-lfshop-fullscreen .ldp-shop .ldp-acct-intro h1 { display: block !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;
}
.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 {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ldp-text-muted);
  font-weight: 600;
  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: 14px;
}
.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;
}
.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;
}

/* =========================================================================
   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;
}
@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;
}
.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
   `lfshop-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.lfshop-fullwidth #sidebar,
body.lfshop-fullwidth aside.sidebar,
body.lfshop-fullwidth aside#secondary,
body.lfshop-fullwidth #secondary,
body.lfshop-fullwidth .sidebar.widget-area,
body.lfshop-fullwidth .et_pb_widget_area,
body.lfshop-fullwidth .et_right_sidebar #sidebar,
body.lfshop-fullwidth .et_left_sidebar #sidebar,
body.lfshop-fullwidth .ast-secondary,
body.lfshop-fullwidth .gp-sidebar,
body.lfshop-fullwidth .widget-area { display: none !important; }
body.lfshop-fullwidth #main-content .container,
body.lfshop-fullwidth #left-area,
body.lfshop-fullwidth .et_pb_post,
body.lfshop-fullwidth .site-main,
body.lfshop-fullwidth .ast-container,
body.lfshop-fullwidth .entry-content { width: 100% !important; max-width: 100% !important; float: none !important; }
