.woocommerce ul.products li.product,.woocommerce .product .ct-media-container,.woocommerce .product .woocommerce-product-gallery__image,.woocommerce div.product .woocommerce-product-gallery{position:relative}.bdc-promo-badge{position:absolute;z-index:30;display:block;width:clamp(82px,31%,118px);line-height:0;pointer-events:none}.bdc-promo-badge img{display:block;width:100%;height:auto;object-fit:contain}.bdc-promo-badge--top-left{top:9px;left:9px}.bdc-promo-badge--top-right{top:9px;right:9px}.bdc-promo-badge--bottom-left{bottom:9px;left:9px}.bdc-promo-badge--bottom-right{bottom:9px;right:9px}.bdc-promo-badge--small{width:clamp(64px,24%,92px)}.bdc-promo-badge--medium{width:clamp(82px,31%,118px)}.bdc-promo-badge--large{width:clamp(100px,38%,145px)}.bdc-promo-badge--single{max-width:30%}.bdc-promo-badge--single-media{max-width:30%}@media(max-width:767px){.bdc-promo-badge{width:clamp(68px,29%,94px)}.bdc-promo-badge--small{width:clamp(54px,22%,76px)}.bdc-promo-badge--medium{width:clamp(68px,29%,94px)}.bdc-promo-badge--large{width:clamp(82px,35%,112px)}.bdc-promo-badge--top-left{top:7px;left:7px}.bdc-promo-badge--top-right{top:7px;right:7px}.bdc-promo-badge--bottom-left{bottom:7px;left:7px}.bdc-promo-badge--bottom-right{bottom:7px;right:7px}}

/* Hemera 1.6.2: custom card integration and unclipped responsive badges. */
.hemera-product-image{position:relative;overflow:visible!important}
.hemera-product-image>img{border-radius:inherit}
.hemera-product-image .bdc-promo-badge{z-index:8}
.hemera-product-image .bdc-promo-badge img{border-radius:0!important}
.hemera-promotions-layout .hemera-promotion-badge{display:none!important}
.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce .product .woocommerce-product-gallery__image,
.woocommerce .product .ct-media-container{position:relative}
.woocommerce ul.products li.product .ct-media-container{overflow:visible!important}
.woocommerce ul.products li.product .ct-media-container>img,
.woocommerce ul.products li.product .ct-media-container .wp-post-image{border-radius:inherit}
.woocommerce .product .ct-media-container .bdc-promo-badge,
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge{z-index:40}
.single-product .bdc-promo-badge--single,
.single-product .bdc-promo-badge--single-media{width:clamp(58px,19%,108px);max-width:24%}
@media(max-width:767px){
  .single-product .bdc-promo-badge--single,
  .single-product .bdc-promo-badge--single-media{width:clamp(52px,21%,82px);max-width:26%}
}

/* Hide Blocksy's built-in text sale marker in catalog cards; the configured image badge is rendered separately. */
.woocommerce ul.products li.product .onsale,
.woocommerce .ct-woo-card-extra .onsale{display:none!important}
.hemera-product-image>img{border-radius:9px 9px 0 0}

/* Hemera 1.6.3: proportionate catalog badges and safe insets on product galleries. */
/* Smaller defaults for compact WooCommerce and Hemera product cards. */
.woocommerce ul.products li.product .bdc-promo-badge,
.hemera-product-image .bdc-promo-badge {
  width: clamp(46px, 19%, 68px) !important;
}
.woocommerce ul.products li.product .bdc-promo-badge--small,
.hemera-product-image .bdc-promo-badge--small {
  width: clamp(42px, 16%, 58px) !important;
}
.woocommerce ul.products li.product .bdc-promo-badge--medium,
.hemera-product-image .bdc-promo-badge--medium {
  width: clamp(46px, 19%, 68px) !important;
}
.woocommerce ul.products li.product .bdc-promo-badge--large,
.hemera-product-image .bdc-promo-badge--large {
  width: clamp(54px, 22%, 78px) !important;
}
/* Keep single-product badges away from the gallery's clipped rounded edges. */
.single-product .woocommerce-product-gallery .bdc-promo-badge,
.single-product div.product .ct-media-container .bdc-promo-badge {
  width: clamp(46px, 16%, 70px) !important;
  max-width: 22% !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--small,
.single-product div.product .ct-media-container .bdc-promo-badge--small {
  width: clamp(42px, 14%, 58px) !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--large,
.single-product div.product .ct-media-container .bdc-promo-badge--large {
  width: clamp(52px, 19%, 78px) !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--top-left { top: 16px !important; left: 16px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--top-right { top: 16px !important; right: 16px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-left { bottom: 16px !important; left: 16px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-right { bottom: 16px !important; right: 16px !important; }
@media(max-width:767px) {
  .woocommerce ul.products li.product .bdc-promo-badge,
  .hemera-product-image .bdc-promo-badge { width: clamp(42px, 20%, 60px) !important; }
  .woocommerce ul.products li.product .bdc-promo-badge--small,
  .hemera-product-image .bdc-promo-badge--small { width: clamp(38px, 17%, 52px) !important; }
  .woocommerce ul.products li.product .bdc-promo-badge--large,
  .hemera-product-image .bdc-promo-badge--large { width: clamp(48px, 23%, 68px) !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge,
  .single-product div.product .ct-media-container .bdc-promo-badge { width: clamp(42px, 18%, 58px) !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--top-left { top: 12px !important; left: 12px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--top-right { top: 12px !important; right: 12px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-left { bottom: 12px !important; left: 12px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-right { bottom: 12px !important; right: 12px !important; }
}

/* Hemera 1.6.4: independent sizing per display context. */
/* Homepage and custom "Nos promotions" cards: badges larger again. */
.hemera-product-image .bdc-promo-badge {
  width: clamp(60px, 25%, 82px) !important;
}
.hemera-product-image .bdc-promo-badge--small {
  width: clamp(54px, 22%, 72px) !important;
}
.hemera-product-image .bdc-promo-badge--medium {
  width: clamp(60px, 25%, 82px) !important;
}
.hemera-product-image .bdc-promo-badge--large {
  width: clamp(66px, 28%, 90px) !important;
}
/* Standard category/archive cards: sized to the thumbnail, not the whole card. */
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge {
  width: clamp(48px, 34%, 68px) !important;
  max-width: 40% !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--small {
  width: clamp(44px, 30%, 60px) !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--medium {
  width: clamp(48px, 34%, 68px) !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--large {
  width: clamp(54px, 38%, 74px) !important;
}
/* Keep category badges inside the thumbnail and prevent card clipping. */
.woocommerce ul.products li.product .ct-media-container {
  position: relative !important;
  overflow: visible !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--top-left { top: 8px !important; left: 8px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--top-right { top: 8px !important; right: 8px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--bottom-left { bottom: 8px !important; left: 8px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--bottom-right { bottom: 8px !important; right: 8px !important; }
/* Product gallery: badges remain inset from rounded edges and retain useful size. */
.single-product .woocommerce-product-gallery .bdc-promo-badge,
.single-product div.product .ct-media-container .bdc-promo-badge {
  width: clamp(58px, 20%, 82px) !important;
  max-width: 25% !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--small,
.single-product div.product .ct-media-container .bdc-promo-badge--small {
  width: clamp(52px, 17%, 70px) !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--large,
.single-product div.product .ct-media-container .bdc-promo-badge--large {
  width: clamp(64px, 23%, 90px) !important;
}
.single-product .woocommerce-product-gallery .bdc-promo-badge--top-left { top: 20px !important; left: 20px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--top-right { top: 20px !important; right: 20px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-left { bottom: 20px !important; left: 20px !important; }
.single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-right { bottom: 20px !important; right: 20px !important; }
@media(max-width:767px) {
  .hemera-product-image .bdc-promo-badge { width: clamp(52px, 25%, 70px) !important; }
  .hemera-product-image .bdc-promo-badge--large { width: clamp(58px, 28%, 78px) !important; }
  .woocommerce ul.products li.product .ct-media-container .bdc-promo-badge { width: clamp(42px, 34%, 58px) !important; }
  .woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--large { width: clamp(48px, 38%, 64px) !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge,
  .single-product div.product .ct-media-container .bdc-promo-badge { width: clamp(48px, 20%, 66px) !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--top-left { top: 14px !important; left: 14px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--top-right { top: 14px !important; right: 14px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-left { bottom: 14px !important; left: 14px !important; }
  .single-product .woocommerce-product-gallery .bdc-promo-badge--bottom-right { bottom: 14px !important; right: 14px !important; }
}

/* Hemera 1.6.5 — category and single-product corrections only.
   Intentionally do not override .hemera-product-image rules:
   homepage and custom "Nos promotions" cards keep their approved size. */

/* Category/archive thumbnails: smaller badges, fully inside the image bounds. */
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge {
  width: clamp(34px, 27%, 46px) !important;
  max-width: 32% !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--small {
  width: clamp(31px, 23%, 40px) !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--medium {
  width: clamp(34px, 27%, 46px) !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--large {
  width: clamp(38px, 30%, 50px) !important;
}
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--top-left { top: 6px !important; left: 6px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--top-right { top: 6px !important; right: 6px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--bottom-left { bottom: 6px !important; left: 6px !important; }
.woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--bottom-right { bottom: 6px !important; right: 6px !important; }

/* Product detail: bind badges to the first image frame and keep them clear of rounded edges. */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .ct-media-container {
  overflow: visible !important;
}
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery .ct-media-container {
  position: relative !important;
}
.single-product .woocommerce-product-gallery__image > img,
.single-product .woocommerce-product-gallery .ct-media-container > img {
  border-radius: inherit;
}
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge {
  width: clamp(54px, 18%, 70px) !important;
  max-width: 24% !important;
}
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--small,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--small {
  width: clamp(48px, 16%, 62px) !important;
}
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--large,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--large {
  width: clamp(60px, 21%, 78px) !important;
}
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--top-left,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--top-left { top: 14px !important; left: 14px !important; }
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--top-right,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--top-right { top: 14px !important; right: 14px !important; }
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--bottom-left,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--bottom-left { bottom: 14px !important; left: 14px !important; }
.single-product .woocommerce-product-gallery__image > .bdc-promo-badge--bottom-right,
.single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--bottom-right { bottom: 14px !important; right: 14px !important; }

@media(max-width:767px) {
  .woocommerce ul.products li.product .ct-media-container .bdc-promo-badge {
    width: clamp(30px, 27%, 40px) !important;
  }
  .woocommerce ul.products li.product .ct-media-container .bdc-promo-badge--large {
    width: clamp(34px, 30%, 44px) !important;
  }
  .single-product .woocommerce-product-gallery__image > .bdc-promo-badge,
  .single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge {
    width: clamp(46px, 19%, 60px) !important;
  }
  .single-product .woocommerce-product-gallery__image > .bdc-promo-badge--top-left,
  .single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--top-left { top: 10px !important; left: 10px !important; }
  .single-product .woocommerce-product-gallery__image > .bdc-promo-badge--top-right,
  .single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--top-right { top: 10px !important; right: 10px !important; }
  .single-product .woocommerce-product-gallery__image > .bdc-promo-badge--bottom-left,
  .single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--bottom-left { bottom: 10px !important; left: 10px !important; }
  .single-product .woocommerce-product-gallery__image > .bdc-promo-badge--bottom-right,
  .single-product .woocommerce-product-gallery .ct-media-container > .bdc-promo-badge--bottom-right { bottom: 10px !important; right: 10px !important; }
}
