:root{
  --brand-primary: var(--ps-brand-primary, #ff6600);
  --brand-primary-2: var(--ps-brand-primary-2, #ff7a18);
  --brand-secondary: var(--ps-brand-secondary, #0b3a6a);
  --brand-success: var(--ps-brand-success, #28a745);
  --text-strong:#1a1a1a;
  --text-soft:#5f6b7a;
  --line:#eceff4;
  --bg-soft:#f6f7f9;
  --radius: var(--ps-radius, 10px);
  --shadow:0 10px 24px rgba(15,28,46,.10);
}

/* Boutons et accents */
.btn, .btn-primary, .btn-outline-primary, .btn-secondary{ border-radius: 8px; }
.btn-primary{
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2));
  border-color: transparent;
  color:#fff;
  box-shadow: 0 6px 14px rgba(245,130,32,.35);
}
.btn-primary:hover{ filter: brightness(.98); transform: translateY(-1px); }
.btn-outline-primary{
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-outline-primary:hover{
  background: var(--brand-primary); color:#fff;
}
.btn-secondary{ background:#0f1c2e; border-color:#0f1c2e; color:#fff; }
.btn-secondary:hover{ filter:brightness(.95); }

/* Typo & liens */
body{ color:#222; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
a{ color:var(--brand-secondary); }
a:hover{ color:var(--brand-primary); text-decoration:none; }
h1,h2,h3,h4{ color:var(--text-strong); }
small, .text-muted{ color:var(--text-soft)!important; }

/* Badges promo */
.badge, .onsale, .badge-sale{ background: var(--brand-primary); color:#fff; font-weight:600; }
.discount, .discount-percentage, .discount-amount{ background:var(--brand-primary); color:#fff; border-radius:999px; padding:2px 8px; font-size:12px; }
.new{ background:#00b894 !important; color:#fff; border-radius:999px; padding:2px 8px; }

/* Topbar contact */
.fuxp-topbar{ background:#0f1c2e; color:#fff; font-size:13px; padding:8px 0; }
.fuxp-topbar .container{ display:flex; gap:18px; align-items:center; justify-content:center; flex-wrap:wrap; }
.fuxp-topbar a{ color:#fff; text-decoration:none; font-weight:600; }
.fuxp-topbar .sep{ opacity:.3; }

/* Benefits strip (home) */
.benefits-strip{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:14px; background:var(--bg-soft); border-radius:12px; padding:14px; margin:12px 0 24px; }
.benefit{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; gap:12px; align-items:center; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.benefit .icon{ width:40px; height:40px; background:linear-gradient(135deg, var(--brand-primary), var(--brand-primary-2)); color:#fff; display:flex; align-items:center; justify-content:center; border-radius:50%; font-weight:700; font-size:14px; }
.benefit .text{ font-size:14px; color:#2a2f36; }
.benefit .text strong{ color:#111; }

/* Trust box on PDP */
.fuxp-trust{ border:1px solid var(--line); border-radius:12px; padding:14px; margin-top:12px; background:#fff; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.fuxp-trust ul{ margin:0; padding-left:18px; }
.fuxp-trust li{ margin:4px 0; }

/* Catégorie gauche (sidebar) */
.fuxp-cat-list .list-group-item{ border:none; border-bottom:1px solid var(--line); }
.fuxp-cat-list .list-group-item:last-child{ border-bottom:none; }
.fuxp-cat-list .fuxp-sub{ margin-top:6px; padding-left:8px; }
.fuxp-cat-list .fuxp-sub.collapsed{ display:none; }

/* Sticky mobile CTA */
@media(max-width:768px){
  .fuxp-sticky-bar{ position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line); display:flex; gap:10px; padding:10px; z-index:999; box-shadow: 0 -6px 16px rgba(0,0,0,.06); }
  .fuxp-sticky-bar .btn{ flex:1; }
}

/* Cartes produits (PLP & cross-sell) */
.product-miniature, .featured-products .products .product{ border:1px solid var(--line); border-radius: var(--radius); background:#fff; transition: transform .15s ease, box-shadow .15s ease; overflow:hidden; }
.product-miniature:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.product-miniature .thumbnail-container{ position:relative; background:#fff; }
.product-miniature .thumbnail-container img{ width:100%; aspect-ratio:1/1; object-fit:contain; background:#fff; }
.product-miniature .product-title{ font-size:14px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:38px; }
.product-miniature .price{ color:var(--brand-primary); font-weight:700; font-size:16px; letter-spacing:.1px; }
.product-miniature .regular-price{ color:#999; font-size:12px; text-decoration:line-through; }
.product-miniature .highlighted-informations, .product-miniature .product-description{ padding:8px 10px 12px; }

/* Breadcrumb */
.breadcrumb{ background:var(--bg-soft); border-radius: var(--radius); padding:10px 12px; }
.breadcrumb a{ color:var(--brand-secondary); }
.breadcrumb a:hover{ color:var(--brand-primary); }

/* Pagination */
.pagination .page-list li.current a{ background:var(--brand-primary); border-color:var(--brand-primary); }
.pagination .page-list a:hover{ border-color:var(--brand-primary); }

/* Inputs & focus */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea{
  border-radius:8px; border-color:#dee2e6;
}
input:focus, select:focus, textarea:focus{ outline:none; border-color: var(--brand-secondary); box-shadow:0 0 0 .2rem rgba(26,75,132,.15); }

/* Checkout steps */
.checkout-step{-webkit-box-shadow:none; box-shadow:none; border:1px solid var(--line); border-radius: var(--radius); }
.step-title{ color:var(--text-strong); }
.custom-checkbox input:checked+span{ background:var(--brand-primary); border-color:var(--brand-primary); }

/* Header nav subtle */
.header-nav a:hover{ color:var(--brand-primary); }
.dropdown:hover>.dropdown-menu{ display:block; }

/* Mega menu */
.fuxp-mega-bar{ width:100vw; position:relative; left:50%; right:50%; margin-left:-50vw; margin-right:-50vw; }
.fuxp-mega{ background:#fff; border:1px solid var(--line); border-radius:12px; position:relative; overflow:visible; width:100%; box-sizing:border-box; }
.fuxp-mega .fuxp-level1{ list-style:none; display:flex; flex-wrap:wrap; column-gap:18px; row-gap:6px; margin:0; padding:10px 14px; align-items:center; }
.fuxp-mega .fuxp-item{ position:relative; }
.fuxp-mega .fuxp-item>a{ padding:10px 12px; display:flex; align-items:center; color:#202733; font-weight:600; border-radius:8px; white-space:nowrap; }
.fuxp-mega .fuxp-item>a:hover{ background:var(--bg-soft); color:var(--brand-primary); }
.fuxp-mega .fuxp-panel{
  position:absolute; left:0; top:100%; transform: none;
  background:linear-gradient(180deg,#ffffff, #fbfcfe); border:1px solid var(--line);
  border-radius:14px; box-shadow: var(--shadow); margin-top:0; z-index:500;
  width:clamp(600px, 52vw, 920px);
  box-sizing:border-box;
  opacity:0; pointer-events:none; transition:opacity .16s ease, transform .16s ease;
  transform-origin: 20px top;
}
.fuxp-mega .fuxp-item.open > .fuxp-panel{ opacity:1; pointer-events:auto; }
.fuxp-mega .fuxp-panel-head{ padding:12px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:10px; }
.fuxp-mega .fuxp-panel-head .fuxp-head-title{ font-weight:700; color:#101828; }
.fuxp-mega .fuxp-panel-head .fuxp-viewall{ color:var(--brand-secondary); font-weight:600; border:1px solid var(--line); padding:6px 10px; border-radius:8px; }
.fuxp-mega .fuxp-panel-head .fuxp-viewall:hover{ color:#fff; background:var(--brand-primary); border-color:var(--brand-primary); }
.fuxp-mega .fuxp-panel-body{ display:grid; grid-template-columns: 1fr auto; gap:10px; }
.fuxp-mega .fuxp-columns{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap:6px 18px; padding:14px 18px; max-height:56vh; overflow:auto; }
.fuxp-mega .fuxp-col a{ color:#1f2937; font-weight:500; display:flex; align-items:flex-start; gap:8px; padding:6px 8px; border-radius:8px; }
.fuxp-mega .fuxp-col a:hover{ background:#f3f5f9; color:var(--brand-primary); }

/* Preview à droite du panneau */
.fuxp-mega .fuxp-preview{ padding:14px 14px 14px 0; display:flex; align-items:stretch; }
.fuxp-mega .fuxp-preview-card{ width:240px; border:1px solid var(--line); background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,.06); align-self:flex-start; }
.fuxp-mega .fuxp-preview-card img{ display:block; width:100%; height:140px; object-fit:cover; background:#f6f7f9; }
.fuxp-mega .fuxp-preview-cta{ padding:10px; display:flex; justify-content:flex-end; }

/* L1 links */
.fuxp-mega .fuxp-l1{ padding:10px 12px; display:flex; align-items:center; gap:8px; border-radius:8px; }
.fuxp-mega .fuxp-l1:hover{ background:var(--bg-soft); color:var(--brand-primary); }
.fuxp-mega .fuxp-l1-text{ font-weight:650; letter-spacing:.1px; color:#202733; }
.fuxp-mega .fuxp-panel-foot{ padding:10px 16px; border-top:1px solid var(--line); text-align:right; }
.fuxp-mega .fuxp-panel-foot a{ color:var(--brand-secondary); font-weight:600; }
.fuxp-mega .fuxp-panel-foot a:hover{ color:var(--brand-primary); }

/* Adaptation responsive des colonnes du méga-menu */
/* Responsive: le méga‑menu reste tout l’écran mais ajuste le nombre de colonnes automatiquement */
.fuxp-mega .fuxp-item{ padding:0 2px; }
.fuxp-mega .fuxp-col a{ color:#2b313b; font-weight:500; display:block; padding:6px 0; }
.fuxp-mega .fuxp-col a:hover{ color:var(--brand-primary); }

@media (max-width: 991px){
  .fuxp-mega{ display:none; }
}

/* Footer darkening option (si thème clair) */
.footer-container{ background:#0f1c2e; color:#dfe6ee; }
.footer-container a{ color:#dfe6ee; }
.footer-container a:hover{ color:#fff; }

/* Footer optimisé */
.footer-container .container{ padding-top:24px; padding-bottom:24px; }
.footer-container .h3, .footer-container h3{ font-size:16px; font-weight:700; color:#fff; margin-bottom:12px; }
.footer-container .links li a{ display:block; color:#cfd8e3; padding:4px 0; }
.footer-container .links li a:hover{ color:#fff; }
.footer-container .payment-logos img{ max-height:26px; margin:4px 6px; filter: grayscale(100%) brightness(1.2); opacity:.85; }
.footer-container .payment-logos img:hover{ filter:none; opacity:1; }
.footer-container .social-links a{ display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; background:#132239; color:#cfd8e3; border-radius:8px; margin-right:8px; }
.footer-container .social-links a:hover{ background:#1b2f4f; color:#fff; }

/* Motion safe */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ transition:none!important; animation:none!important; }
}


