/* ==========================================================
   Equidistri : page produit épurée
   ========================================================== */
body#product {
  --eq-ink: #1d1d1f;
  --eq-muted: #6e6e73;
  --eq-line: #e3e3e0;
  --eq-soft: #f6f6f3;
  --eq-gold: #c9a96e;
}

/* ---------- Étoiles des avis ---------- */
body#product #eq-rating { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
body#product .eq-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; }
body#product .eq-stars-bg { color: #d6d6d2; }
body#product .eq-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--eq-ink); }
body#product .eq-rating-txt { font-size: 13px; color: var(--eq-muted); text-decoration: underline; text-underline-offset: 3px; }
body#product #eq-rating:hover .eq-rating-txt { color: var(--eq-ink); }

/* ---------- Points forts (description courte) ---------- */
body#product .eq-points { margin: 4px 0 8px; padding: 0; list-style: none; }
body#product .eq-points li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--eq-ink); }
body#product .eq-points svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--eq-gold); }

/* ---------- Couleur : nom dans le titre, pas sous les pastilles ---------- */
body#product .product-variants-item .control-label { font-size: 14px; font-weight: 600; color: var(--eq-ink); }
body#product .product-variants-item .control-label .eq-sel { font-weight: 400; color: var(--eq-muted); }
body#product .eq-color-item ul.type-color li .color .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
body#product .eq-color-item ul.type-color { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
body#product .eq-color-item ul.type-color li { margin: 0 !important; width: auto !important; }
body#product .eq-color-item ul.type-color li .color { width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 50%; border: 1px solid var(--eq-line); box-shadow: none !important; transition: box-shadow .15s; }
body#product .eq-color-item ul.type-color li input:checked + .color { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--eq-ink) !important; }
body#product .eq-color-item ul.type-color li:hover .color { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #9a9a96 !important; }
body#product .eq-color-item ul.type-color li input:checked:hover + .color { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--eq-ink) !important; }

/* ---------- Taille : guide des tailles en lien ---------- */
body#product.eq-has-guide #pksizeguide-show { display: none !important; }
body#product .eq-var-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body#product .eq-var-head .control-label { margin-bottom: 8px; }
body#product .eq-guide { white-space: nowrap; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--eq-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body#product .eq-guide:hover { color: var(--eq-muted); }

/* ---------- Note calottes : une ligne discrète, encadré seulement si taille épuisée ---------- */
body#product .equi-calotte-note:not(.eq-out) { margin: 10px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 13px !important; color: var(--eq-muted) !important; }
body#product .equi-calotte-note:not(.eq-out) strong { font-weight: 600; color: var(--eq-muted) !important; }
body#product .equi-calotte-note:not(.eq-out) p:not(:first-child) { display: none !important; }

/* ---------- Alma compact sous le bouton panier ---------- */
body#product .product-prices .alma-pp-container { display: none; }
body#product #eq-alma { width: 100%; margin: 10px 0 0; }
body#product #eq-alma .alma-pp-container { display: block; margin: 0 !important; }
body#product #eq-alma .alma-payment-plans-container { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0 !important; }
body#product #eq-alma .alma-payment-plans-eligibility-line { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; }
body#product #eq-alma .alma-payment-plans-eligibility-options { display: none !important; }
body#product #eq-alma .alma-payment-plans-eligibility-line > button { order: 2; transform: scale(.75); transform-origin: left center; margin: 0 !important; padding: 0 !important; }
body#product #eq-alma [class*="_infoContainer"] { display: inline !important; margin: 0 !important; padding: 0 !important; }
body#product #eq-alma .alma-payment-plans-container { display: flex !important; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; }
body#product #eq-alma .alma-payment-plans-payment-info { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 0 !important; font-size: 13px !important; color: var(--eq-muted) !important; cursor: pointer; }
body#product #eq-alma .alma-payment-plans-payment-info p { margin: 0 !important; font-size: 13px !important; }
body#product #eq-alma .alma-payment-plans-payment-info p:first-child { color: var(--eq-ink) !important; }
body#product #eq-alma .alma-payment-plans-payment-info p:first-child::before { content: "ou "; color: var(--eq-muted); }
body#product #eq-alma .alma-payment-plans-payment-info p:not(:first-child) { display: none !important; }

/* ---------- Bouton panier pleine largeur (ordinateur) ---------- */
@media (min-width: 768px) {
  body#product .product-add-to-cart .product-quantity { display: flex; align-items: stretch; gap: 10px; flex-wrap: nowrap; }
  body#product .product-add-to-cart .product-quantity .add { flex: 1 1 auto; }
  body#product .product-add-to-cart .product-quantity .add .add-to-cart { width: 100%; height: 52px; }
}

/* ---------- Réassurance ---------- */
body#product #eq-reass { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--eq-line); list-style: none; }
body#product #eq-reass li { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 14px; color: var(--eq-muted); }
body#product #eq-reass li strong { font-weight: 600; color: var(--eq-ink); }
body#product #eq-reass svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--eq-ink); }

/* ---------- Configurateur ---------- */
body#product #eq-config { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; padding: 14px 16px; border: 1px solid var(--eq-line); border-radius: 8px; background: var(--eq-soft); color: var(--eq-ink); text-decoration: none; transition: border-color .15s; }
body#product #eq-config:hover { border-color: var(--eq-ink); }
body#product #eq-config span { display: flex; flex-direction: column; gap: 2px; }
body#product #eq-config strong { font-size: 14px; font-weight: 600; }
body#product #eq-config small { font-size: 12px; color: var(--eq-muted); }
body#product #eq-config svg { flex: 0 0 18px; width: 18px; height: 18px; }

/* Ajustements */
body#product .product-variants-item { margin-bottom: 18px !important; }
body#product .eq-color-item ul.type-color { margin-bottom: 0 !important; }
body#product #eq-alma .alma-payment-plans-container > * { flex: 0 0 auto !important; width: auto !important; }
body#product #eq-alma .alma-payment-plans-eligibility-line > button { transform: scale(.7); margin-left: -4px !important; }
body#product .eq-color-item ul.type-color li { height: auto !important; min-height: 0 !important; }
body#product .eq-color-item ul.type-color li input.input-color { height: 100% !important; top: 0 !important; }
body#product #eq-alma .alma-payment-plans-container { gap: 8px !important; }
body#product #eq-reass { margin-top: 8px; }

/* Réassurance (module PrestaShop « Réassurance », restylé) */
body#product .blockreassurance_product.eq-reass-native { display: block !important; margin: 8px 0 0 !important; padding: 16px 0 0 !important; border: 0 !important; border-top: 1px solid var(--eq-line) !important; background: none !important; }
body#product .eq-reass-native > div:not(.clearfix) { display: flex !important; align-items: center; gap: 12px; float: none !important; width: auto !important; margin: 0 0 10px !important; padding: 0 !important; text-align: left !important; }
body#product .eq-reass-native .item-product { display: inline-flex !important; flex: 0 0 22px; width: 22px !important; height: 22px !important; margin: 0 !important; float: none !important; }
body#product .eq-reass-native .item-product img,
body#product .eq-reass-native .item-product svg { width: 22px !important; height: 22px !important; }
body#product .eq-reass-native .block-title { margin: 0 !important; font-size: 14px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--eq-muted) !important; }
body#product .eq-reass-native p:not(.block-title) { display: none; }
