/* =========================================================================
   EVOLYAcare — Panier (bloc Cart WooCommerce / React)
   Bloc injecté #evolya-cart-extras : récap quantité serviettes + cadeaux
   dynamiques (selon le pack) + réassurance + trust paiement.
   Tout est scopé sous .evolya-cart-extras → n'affecte pas le reste du panier.
   ========================================================================= */

.evolya-cart-extras{
  --sauge:#5C6E4F;--creme:#FAF6EE;--beige:#F2EDE2;--or:#B8995A;
  --anthracite:#3A3A3A;--ligne:#E8E2D5;--gris:#6b665e;
  max-width:640px;margin:22px auto 0;font-family:'Roboto',sans-serif;color:var(--anthracite);
}
.evolya-cart-extras *{box-sizing:border-box;}

/* Récap quantité serviettes (mise en avant du nombre) */
.evolya-cart-extras .ece-recap{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--ligne);border-radius:12px;padding:14px 16px;margin-bottom:14px;}
.evolya-cart-extras .ece-vign{display:flex;flex:none;}
.evolya-cart-extras .ece-vign img{width:46px;height:46px;border-radius:8px;object-fit:cover;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.12);margin-left:-14px;background:var(--beige);}
.evolya-cart-extras .ece-vign img:first-child{margin-left:0;}
.evolya-cart-extras .ece-count{font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:700;color:var(--sauge);line-height:1.1;display:block;}
.evolya-cart-extras .ece-sub{font-size:13px;color:var(--or);font-weight:600;}

/* Cadeaux offerts */
.evolya-cart-extras .ece-gifts{background:linear-gradient(180deg,#FFFDF8 0%,var(--creme) 100%);border:1.5px solid var(--or);border-radius:14px;padding:16px 18px;margin-bottom:14px;box-shadow:0 6px 22px rgba(184,153,90,.18);}
.evolya-cart-extras .ece-ribbon{display:inline-flex;align-items:center;gap:6px;background:var(--or);color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:5px 13px;border-radius:20px;margin-bottom:10px;}
.evolya-cart-extras .ece-gh{font-family:'Cormorant Garamond',serif;font-size:22px;font-weight:600;}
.evolya-cart-extras .ece-gh span{color:var(--or);font-weight:700;}
.evolya-cart-extras .ece-gsub{font-size:12.5px;color:var(--gris);margin:2px 0 10px;}
.evolya-cart-extras .ece-grow{display:flex;gap:12px;align-items:center;padding:11px 12px;border-top:1px solid var(--ligne);}
.evolya-cart-extras .ece-grow.spot{background:#fff;border:1px solid var(--or);border-radius:10px;padding:11px;margin-top:6px;border-top:1px solid var(--or);}
.evolya-cart-extras .ece-ph{width:54px;height:54px;border-radius:9px;background:#fff;border:1px solid var(--ligne);flex:none;overflow:hidden;}
.evolya-cart-extras .ece-ph img{width:100%;height:100%;object-fit:cover;display:block;}
.evolya-cart-extras .ece-gnm{font-size:14.5px;font-weight:600;color:var(--anthracite);}
.evolya-cart-extras .ece-gnm b{color:var(--sauge);}
.evolya-cart-extras .ece-gd{font-size:12.5px;color:var(--gris);line-height:1.45;}
.evolya-cart-extras .ece-tag{display:inline-block;background:var(--or);color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.03em;padding:2px 9px;border-radius:20px;margin-top:5px;}
.evolya-cart-extras .ece-fr{display:inline-block;background:var(--sauge);color:#fff;font-size:10.5px;font-weight:600;padding:2px 9px;border-radius:20px;margin-top:5px;margin-left:6px;}
.evolya-cart-extras .ece-badge{margin-left:auto;align-self:flex-start;background:var(--or);color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:5px 12px;border-radius:20px;flex:none;}

/* Réassurance 4 piliers */
.evolya-cart-extras .ece-reassure{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 20px;padding:16px;background:#fff;border:1px solid var(--ligne);border-radius:12px;margin-bottom:14px;}
.evolya-cart-extras .ece-reassure div{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:120px;line-height:1.3;}
.evolya-cart-extras .ece-reassure i{font-style:normal;font-size:19px;margin-bottom:3px;}
.evolya-cart-extras .ece-reassure b{font-weight:600;font-size:13px;}
.evolya-cart-extras .ece-reassure small{color:var(--gris);font-size:11.5px;}

/* Trust paiement */
.evolya-cart-extras .ece-pay{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;}
.evolya-cart-extras .ece-pay svg{height:26px;width:auto;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.06);}
.evolya-cart-extras .ece-secure{text-align:center;font-size:12px;color:var(--gris);margin-top:8px;}

/* =========================================================================
   Restyle léger du panier natif (bloc Cart React) — chargé uniquement sur /cart/
   ========================================================================= */
.wp-block-woocommerce-cart{--ev-sauge:#5C6E4F;--ev-creme:#FAF6EE;--ev-ligne:#E8E2D5;--ev-anthracite:#3A3A3A;}

/* Fond crème de la page panier (calque mockup) */
body.woocommerce-cart{background:#FAF6EE !important;}

/* Nom produit : retirer le rose du thème, plus lisible */
.wp-block-woocommerce-cart .wc-block-cart-item__product-name,
.wp-block-woocommerce-cart .wc-block-components-product-name{
  color:var(--ev-anthracite) !important;text-decoration:none !important;font-weight:600 !important;
}
.wp-block-woocommerce-cart .wc-block-cart-item__product-name:hover,
.wp-block-woocommerce-cart .wc-block-components-product-name:hover{color:var(--ev-sauge) !important;}

/* Sélecteur de quantité plus doux */
.wp-block-woocommerce-cart .wc-block-components-quantity-selector{border-radius:8px;}

/* Récapitulatif (colonne de droite) = carte esthétique */
.wp-block-woocommerce-cart .wc-block-cart__sidebar{
  background:#fff;border:1px solid var(--ev-ligne);border-radius:14px;
  padding:22px 20px;box-shadow:0 8px 26px rgba(58,58,58,.07);
}
.wp-block-woocommerce-cart .wc-block-components-totals-item__label{color:#6b665e;}
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:'Cormorant Garamond',serif;font-size:25px;color:var(--ev-anthracite);font-weight:700;
}

/* Bouton « Valider la commande » = charte sauge */
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-container a,
.wp-block-woocommerce-cart .wc-block-cart__submit-container button,
.wp-block-woocommerce-cart a.wc-block-components-button.contained,
.wp-block-woocommerce-cart button.wc-block-components-button.contained{
  background:var(--ev-sauge) !important;border-color:var(--ev-sauge) !important;
  color:var(--ev-creme) !important;border-radius:10px !important;font-weight:600 !important;
}
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wp-block-woocommerce-cart a.wc-block-components-button.contained:hover,
.wp-block-woocommerce-cart button.wc-block-components-button.contained:hover{background:#4C5B41 !important;}

/* Lignes d'articles en cartes (calque mockup) */
.wp-block-woocommerce-cart .wc-block-cart-items,
.wp-block-woocommerce-cart .wc-block-cart-items > tbody{display:block;width:100%;}
.wp-block-woocommerce-cart .wc-block-cart-items__header{display:none !important;}
.wp-block-woocommerce-cart .wc-block-cart-items__row{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;
  background:#fff;border:1px solid var(--ev-ligne);border-radius:12px;
  padding:14px 16px;margin-bottom:14px;
}
.wp-block-woocommerce-cart .wc-block-cart-items__row > td{
  border:none !important;padding:0 !important;background:transparent !important;
}
.wp-block-woocommerce-cart td.wc-block-cart-item__image{flex:none;width:76px;}
.wp-block-woocommerce-cart td.wc-block-cart-item__image img{width:76px;height:76px;border-radius:10px;object-fit:cover;}
.wp-block-woocommerce-cart td.wc-block-cart-item__product{flex:1 1 200px;min-width:170px;}
.wp-block-woocommerce-cart td.wc-block-cart-item__total{margin-left:auto;font-weight:700;text-align:right;align-self:flex-start;}

/* =========================================================================
   Fix decalage mobile alignwide (ajoute 2026-06-17)
   La classe .alignwide applique margin-inline:-80px a TOUTES les tailles,
   ce qui pousse le panier hors de l'ecran (decale a gauche, coupe a droite)
   sur mobile/tablette. On neutralise la marge negative sous 1024px.
   Desktop (>1024px) inchange. Reversible : supprimer ce bloc.
   ========================================================================= */
@media (max-width:1024px){
  .wp-block-woocommerce-cart.alignwide{
    margin-left:0 !important;
    margin-right:0 !important;
  }
}
