/* EDIT SPECIAL  !! */
@media screen and (min-width: 981px) {
  .bundled_product .bundled_product_images:after {
    right: -45px;
    height: 26px;
    width: 100px;
  }
}

.bundled_product .bundled_product_images {
  position: relative;
}

.bundled_product.bloop-cat-edition-limitee .bundled_product_images::before {
  content: "";
  position: absolute;
  top: 0;
  left: -22.5px;
  height: 65px;
  width: 65px;
  background: url(/wp-content/uploads/2026/10/pastille-bloop-2.svg);
  background-size: contain !important;
  background-repeat: no-repeat !important;
  transform-origin: center;
  animation: infinite_rotation linear 8s infinite;
}
.bundled_product.bloop-cat-edition-limitee .bundled_product_images::after {
  content: "Édition limitée";
  text-align: center;
  position: absolute;
  top: 17px;
  left: -15px;
  font-size: 14px;
  max-width: 50px;
  line-height: 1.2;
  color: var(--main-dark);
  transform-origin: center;
  transform: rotate(-15deg);
}
/* @media screen and (max-width: 980px) {
  .bundled_product.bloop-cat-edition-limitee .bundled_product_images:after {
    right: -15px;
  }
} */

/* FIN EDIT SPECIAL  !! */

.bloop_module_woo_shop ul.bundled_products.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  /* padding: 0 !important; */
  width: 100% !important;

  /* background: var(--main-lighter);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 16px !important; */
}
@media (max-width: 900px) {
  .bloop_module_woo_shop ul.bundled_products.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  .bloop_module_woo_shop ul.bundled_products.products {
    grid-template-columns: 1fr !important;
  }
}
.bloop_module_woo_shop ul.bundled_products.products li.bundled_product.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  /* padding: 0 !important; */
  text-align: center;
  display: block !important;

  padding: 15px;
  background: var(--main-light-contrast);
  border-radius: 22px;
}
.bloop_module_woo_shop .bundled_product_images,
.bloop_module_woo_shop .details {
  float: none !important;
  width: auto !important;
}
.bloop_module_woo_shop .bundled_product_images img {
  width: 100%;
  max-width: none; /* avant : 220px — ça laissait beaucoup de vide autour de l'image dans la colonne */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px; /* passe à 50% si tu veux des photos parfaitement rondes */
  margin: 0 auto;
  display: block;
}
.bloop_module_woo_shop .bundled_product_title {
  font-size: 22px;
  font-weight: 400;
  margin: 12px 0 2px;
}
.bloop_module_woo_shop .bundled_item_cart_details .price {
  font-size: 14px;
}
.bloop_module_woo_shop .bundled_item_price_quantity,
.bloop_module_woo_shop .bundled_item_cart_details small {
  display: none; /* masque "chacun" / "(before discount)" — retire cette règle si tu veux les garder */
}
.bloop_module_woo_shop .stock.out-of-stock {
  color: var(--main-dark);
  font-size: 12px !important;
  margin: 2px 0 0;
}
.bloop_module_woo_shop ul.products::before {
  display: none !important;
}

/* Carte en rupture de stock : grisée, quantité bloquée à 0 (cf. bloop-panier.js) */
.bloop_module_woo_shop li.bundled_product.bloop-out-of-stock {
  /* opacity: 0.5; */
}

.woocommerce div.product form.cart div.quantity,
.woocommerce-page div.product form.cart div.quantity,
.woocommerce #content div.product form.cart div.quantity,
.woocommerce-page #content div.product form.cart div.quantity {
  margin: 0 !important;
}
.bundled_product_title_link {
  display: none !important;
}
.bloop_module_woo_shop .bundled_item_after_cart_details {
  display: flex;
  justify-content: center;
}
.bloop_module_woo_shop .bundled_item_after_cart_details .quantity {
  display: block !important;
  float: none !important;
  width: fit-content !important;
  margin: 10px auto 0 !important;
}
.bloop_module_woo_shop .bloop-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  gap: 2px;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  margin: 10px auto 0;
  transition:
    padding 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.bloop_module_woo_shop .bloop-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding-top: 6px;
  justify-content: center;
}
.bloop_module_woo_shop .bloop-stepper-btn:hover {
  background: #f2ede7;
}
.bloop_module_woo_shop .bloop-stepper-btn:disabled {
  color: #ccc;
  cursor: not-allowed;
}
.bloop_module_woo_shop input.bundled_qty {
  width: 22px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  -moz-appearance: textfield;
}
.bloop_module_woo_shop input.bundled_qty::-webkit-inner-spin-button,
.bloop_module_woo_shop input.bundled_qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* À 0 : juste un rond blanc avec un "+", sans moins ni nombre visibles.
   Dès que la quantité passe à 1+, la pastille se transforme en pilule "− N +". */
.bloop_module_woo_shop .bloop-stepper.bloop-stepper-empty {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.bloop_module_woo_shop .bloop-stepper.bloop-stepper-empty .bloop-stepper-minus,
.bloop_module_woo_shop .bloop-stepper.bloop-stepper-empty input.bundled_qty {
  display: none;
}
.bloop_module_woo_shop .bloop-stepper.bloop-stepper-empty .bloop-stepper-plus {
  background: #fff;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); */
}
.et_pb_wc_add_to_cart .quantity input.qty {
  border: none !important;
  background: none !important;
  background-color: none !important;
  padding: 0 !important;
  color: #1e1e1e;
  width: 22px !important;
}
/* ============ Bloc natif (prix live / erreur / bouton) ============
   Masqué visuellement, PAS en display:none, pour que Product Bundles
   continue à le recalculer et à gérer son état "disabled" normalement. */
.bloop_module_woo_shop .bundle_wrap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ============ Panier / récap (partie droite) ============ */
.bloop-panier {
  /* background: var(--main-light);  */
  border-radius: 20px;
}
.bloop-panier-title {
  color: var(--main-dark);
  margin: 0 0 16px;
}
.bloop-panier-name {
  font-size: 16px;
}

/* Boîtes distinctes (produit en cours / panier existant / total) — cf. ton schéma */
.bloop-panier-box {
  /* background: var(--main-lighter); */
  background: var(--main-light-contrast);
  /* border: 1px solid rgba(0, 0, 0, 0.1); */
  border-radius: 22px;
  padding: 15px;
  margin-bottom: 14px;
}
.bloop-panier-box,
.bloop-panier-box > * {
  color: var(--main-dark);
}

.bloop-panier-box:last-child {
  margin-bottom: 0;
}

/* ---- Boîte "produit en cours" ---- */
.bloop-panier-current-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bloop-panier-current-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 4px 8px;
}
.bloop-panier-current-qty #bloop-box-qty-value {
  min-width: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}
/* Le stepper +/- de la quantité de box (dans le header du panier) réutilise la
   classe .bloop-stepper-btn, mais celle-ci n'est stylée plus haut que sous
   .bloop_module_woo_shop (la grille de gauche) — ici on est dans .bloop-panier
   (colonne de droite), donc ces boutons retombaient au style par défaut du
   navigateur. On leur redonne le même look rond/transparent, en un peu plus
   petit vu qu'ils vivent dans une pilule compacte. */
.bloop-panier-current-qty .bloop-stepper-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.bloop-panier-current-qty .bloop-stepper-btn:hover {
  background: #f2ede7;
}
.bloop-panier-current-title {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.bloop-panier-list {
  list-style: none;
  margin: 0;
  padding: 0 !important;

  font-size: 14px;
}
.bloop-panier-list li {
  padding: 2px 0;
  list-style: none;
}
.bloop-panier-children {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 10px 16px !important;
  font-weight: 400;
  font-size: 13px;
  opacity: 0.85;
}
.bloop-panier-parent {
  font-weight: 700;
  list-style-type: none !important;
  padding: 0 !important;
}
.bloop-panier-price {
  font-weight: 400;
  opacity: 0.7;
  font-size: 13px;
}
.bloop-panier-empty-hint,
.bloop-panier-hint {
  font-size: 13px;
  opacity: 0.65;
  margin: 8px 0 0;
}

/* ---- Ligne "Ajouter au panier" + prix du produit en cours ---- */
.bloop-panier-add-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.bloop-add-to-cart-btn {
  flex: 1;
  background: var(--main-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  /* font-weight: 700; */
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  white-space: nowrap;
  max-width: 250px;
}
.bloop-add-to-cart-btn.is-disabled,
.bloop-add-to-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bloop-panier-current-price {
  margin: 0;
  font-size: 16px;
  color: var(--main-dark);
  white-space: nowrap;
}

/* ---- Boîte total combiné ---- */
.bloop-panier-grand-total {
  font-weight: 700;
  font-size: 16px;
  color: var(--main-dark);
}

/* box best seller  */
.bloop_module_woo_shop .bloop-fixed-qty {
  display: inline-block;
  margin: 10px auto 0;
  padding: 4px 12px;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--main-dark);
}

@media screen and (min-width: 981px) {
  .section_produits_woo .bundled_product:hover img {
    -webkit-animation: shake 1s;
    animation: shake 1s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
  }
}

@keyframes shake {
  0% {
    -webkit-transform: translate(1px, 1px) rotate(0deg);
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    -webkit-transform: translate(-1px, -1px) rotate(-1deg);
    transform: translate(-1px, -1px) rotate(-1deg);
  }

  20% {
    -webkit-transform: translate(-2px) rotate(1deg);
    transform: translate(-2px) rotate(1deg);
  }

  30% {
    -webkit-transform: translate(2px, 2px) rotate(0deg);
    transform: translate(2px, 2px) rotate(0deg);
  }

  40% {
    -webkit-transform: translate(1px, -1px) rotate(1deg);
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    -webkit-transform: translate(-1px, 1px) rotate(-1deg);
    transform: translate(-1px, 1px) rotate(-1deg);
  }

  60% {
    -webkit-transform: translate(-2px, -1px) rotate(0deg);
    transform: translate(-2px, -1px) rotate(0deg);
  }

  70% {
    -webkit-transform: translate(2px, -1px) rotate(-1deg);
    transform: translate(2px, -1px) rotate(-1deg);
  }

  80% {
    -webkit-transform: translate(-1px, -1px) rotate(1deg);
    transform: translate(-1px, -1px) rotate(1deg);
  }

  90% {
    -webkit-transform: translate(1px, 1px) rotate(0deg);
    transform: translate(1px, 1px) rotate(0deg);
  }

  to {
    -webkit-transform: translate(1px, -1px) rotate(-1deg);
    transform: translate(1px, -1px) rotate(-1deg);
  }
}

@keyframes infinite_rotation {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(359.9deg);
  }
}
