/*

 Theme Name:  JBTheme

 Theme URI:    https://jbouvier.com

 Description:  Le thème enfant pour palier à tout ce qui n'est pas possible, par défaut, avec Divi. Jérôme Bouvier : Création de site web, vitrine ou e-commerce ; formation des administrateurs ; Newsleters ; Mesures et optimisations. 

 Author:       Jérôme Bouvier

 Author URI:   https://jbouvier.com

 Template:     Divi

 Version:      1.0.0

*/



/*****Add any custom CSS below this line*****/


/*  styles pour le cart icon   */

/* Contexte global */
#cart {
  position: relative;
  display: inline-block;
}

/* Reset du wrapper Divi (important) */
#cart .et_pb_code_inner {
  display: inline-block;
  position: relative;
}

/* Lien */
#cart .cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Icône */
#cart .cart-icon {
  display: inline-flex;
  line-height: 0; /* évite les décalages verticaux */
}

/* Badge */
#cart .cart-count {
  position: absolute;

  top: 0;
  right: 0;

  transform: translate(40%, -40%); /* ajuste visuellement sur le coin */

  background: #e00000;
  color: #fff;

  font-size: 10px;
  font-weight: 600;

  border-radius: 50%;
  min-width: 16px;
  height: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

/* Masqué si panier vide */
#cart .cart-count[data-count="0"],
#cart .cart-count:empty {
  display: none;
}

/*  /  */