/* Homeproducts: styles pour la bannière invités sous la liste des produits
   La bannière est éditable en BO (HOMEPRODUCTS_BANNER_HTML) et ne s&#39;affiche pas pour clients connectés non invités.
*/

.featured-products.homeproducts .homeproducts-banner {
  /* S&#39;adapter au contenu: shrink-to-fit + centré */
  display: table;            /* shrink-to-fit width, centré avec margin auto */
  margin: 16px auto 0;       /* centre horizontalement */
  width: auto;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;


  /* Style visuel inchangé */
  padding: 12px 16px;
  background: #c1a57b;
  border-radius: 4px;
  color: #ffffff;
  text-align: center;
  /* Adapter le z-index si nécessaire selon votre thème */
  z-index: 1;

  /* Empêcher les débordements sur contenu long */
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.featured-products.homeproducts .homeproducts-banner a {
  color: inherit;
  text-decoration: underline;
}

.featured-products.homeproducts .homeproducts-banner p {
  margin: 0;
}

/* Interaction et centrage vertical/horizontal pour la bannière cliquable */
.featured-products.homeproducts .homeproducts-banner-link {
  display: inline-block;   /* permet le shrink-to-fit et l&#39;enveloppe cliquable */
  text-decoration: none;   /* pas de soulignement global */
  color: inherit;          /* hérite la couleur du texte */
}

/* Centrage vertical et horizontal du contenu + hauteur min pour confort visuel */
.featured-products.homeproducts .homeproducts-banner {
  display: inline-flex;      /* override du display précédent pour activer Flexbox */
  align-items: center;       /* centrage vertical du texte */
  justify-content: center;   /* centrage horizontal */
  min-height: 42px;          /* s&#39;adapte si texte plus grand */
}

/* Aucun autre style intrusif pour éviter d&#39;impacter les miniatures produits du thème */
