/* Rangée commune aux grilles, carrousels et produits apparentés. */
.product-wrapper h3.wd-entities-title,
.product-wrapper h3.wd-entities-title > a {
  font-size: 17px !important;
  line-height: 23px !important;
}

.product-wrapper .bobosse-card-actions {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.wd-product .wd-add-btn .bobosse-card-actions > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Rose Bobosse approfondi pour un contraste texte blanc supérieur à 4,5:1. */
  background: #c83277 !important;
  color: #fff !important;
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.wd-product .wd-add-btn .bobosse-card-actions > .bobosse-card-details {
  flex: 1 1 auto;
}

.wd-product .wd-add-btn .bobosse-card-actions > .bobosse-card-cart {
  flex: 0 0 48px;
  width: 48px;
  padding: 8px 10px;
  border-inline-start: 1px solid rgb(255 255 255 / 55%);
}

.wd-product .wd-add-btn .bobosse-card-actions > a:hover,
.wd-product .wd-add-btn .bobosse-card-actions > a:focus-visible {
  background: #a82460 !important;
}

.wd-product .wd-add-btn .bobosse-card-actions > a:focus-visible {
  z-index: 1;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Neutralise uniquement l'ancienne animation texte/icône sur cette rangée. */
.wd-product .wd-add-btn .bobosse-card-actions > a::before {
  display: none !important;
  content: none !important;
}

.wd-product .wd-add-btn .bobosse-card-actions .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wd-product .bobosse-card-cart-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.wd-product .bobosse-card-cart:is(.loading, .btn-loading) .bobosse-card-cart-icon {
  opacity: 0;
}

.bobosse-card-actions > .added_to_cart {
  display: none !important;
}

.wd-product .bobosse-card-feedback {
  margin: 0;
  padding: 10px 12px;
  color: #231f20;
  background: #fbeaf2;
  font-size: 13px;
  line-height: 1.4;
  text-align: start;
}

/* Le formulaire natif reste sur la photo, indépendant des deux actions. */
.wd-product:has(.bobosse-card-actions) .quick-shop-wrapper select:focus-visible {
  outline: 2px solid #a82460;
  outline-offset: 2px;
}

/* Garder les onglets d'ingrédients visibles au-dessus du texte à l'arrivée. */
.single-product #tab-description {
  scroll-margin-top: 140px;
}

@media (prefers-reduced-motion: reduce) {
  .wd-product .bobosse-card-actions > a,
  .wd-product:has(.bobosse-card-actions) .quick-shop-wrapper {
    transition: none;
  }
}
