.haptelle-product-card .card-product_wrapper,.haptelle-activity-gallery,.hc-campaign .hc-product-image{position:relative}
.haptelle-activity-badge{position:absolute;left:10px;top:10px;z-index:4;display:block;width:88px;max-width:29%;aspect-ratio:4/5;max-height:32%;pointer-events:none;filter:drop-shadow(0 2px 3px #0004);color:#f7d59d;font-family:inherit}
.haptelle-activity-badge-copy{position:absolute;inset:22% 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:9px 3px;background:linear-gradient(135deg,#302012,#0c0905 55%,#281609);border:1px solid #dfaf63;border-radius:7px 7px 22px 22px;text-align:center;font-size:9px;line-height:1.1;letter-spacing:.07em}
.haptelle-activity-badge-copy strong{font-size:30px;font-weight:750;letter-spacing:-.06em;color:#ffe4ac}
.haptelle-activity-bow{position:absolute;top:0;left:0;width:100%;height:32%;fill:#cb9654;stroke:#ffe2a0;stroke-width:1.5;z-index:1}
.haptelle-activity-badge>.haptelle-activity-badge-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;transform:none;transition:none;border-radius:0;background:transparent}
.haptelle-activity-badge:has(>.haptelle-activity-badge-image) .haptelle-activity-badge-copy{background:transparent;border:0}
.haptelle-activity-gallery>.haptelle-activity-badge{left:auto;right:12px;top:12px;width:116px;max-width:23%;max-height:28%}
.haptelle-activity-gallery>.haptelle-activity-badge .haptelle-activity-badge-copy strong{font-size:40px}
.haptelle-offer-chip{display:inline-block;vertical-align:middle;padding:5px 10px;border:1px solid #d6a45b;border-radius:5px;background:#17100a;color:#ffe0a2;font-family:inherit;font-size:13px;line-height:1.4;font-weight:600;white-space:normal}
.haptelle-offer-price{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:baseline}.haptelle-offer-price del{opacity:.65}.haptelle-offer-price ins{text-decoration:none;font-weight:700}
.product-infor-price:has(.haptelle-offer-chip){flex-wrap:wrap;gap:12px}
.section-product-single:has(.haptelle-activity-gallery>.haptelle-activity-badge) .badge-sale{display:none}
@media(max-width:767px){.haptelle-activity-badge{left:7px;top:7px;width:56px;max-height:30%}.haptelle-activity-badge-copy{font-size:6px;padding:5px 2px;gap:2px}.haptelle-activity-badge-copy strong{font-size:21px}.haptelle-activity-gallery>.haptelle-activity-badge{right:10px;width:80px}.haptelle-activity-gallery>.haptelle-activity-badge .haptelle-activity-badge-copy{font-size:8px}.haptelle-activity-gallery>.haptelle-activity-badge .haptelle-activity-badge-copy strong{font-size:29px}}
.haptelle-activity-badge[hidden],.haptelle-offer-chip[hidden]{display:none}

.haptelle-upgrade-badge-text{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:54px;padding:8px;border:1px solid #d6a45b;border-radius:7px;background:#17100a;color:#ffe0a2;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;text-align:center;overflow-wrap:anywhere;box-sizing:border-box}
.haptelle-upgrade-details{font-size:14px;line-height:1.5}.haptelle-upgrade-details summary{cursor:pointer}.haptelle-upgrade-details ul{padding:10px 10px 10px 24px}

/* Campaign product cards: larger badge straddling the image's top-left corner. */
.hc-campaign .hc-product-image > .haptelle-activity-badge{left:-18px;top:-18px;width:128px;max-width:36%;max-height:36%}
@media(max-width:767px){.hc-campaign .hc-product-image > .haptelle-activity-badge{left:-10px;top:-10px;width:84px;max-width:40%;max-height:40%}}
/* Upgrade badges are drawn with a wider shield than the in-stock discount badge, so on phones
   give them a slightly smaller box to keep both badges visually the same size side by side. */
@media(max-width:767px){.hc-campaign .hc-product-image > .haptelle-activity-badge.haptelle-upgrade-badge{width:76px;max-width:36%;max-height:36%}}

/* Slider tracks clip their own scrollport: reserve internal room for the badge's negative offsets
   and compensate with negative margins so card geometry stays unchanged. */
.hc-campaign .hc-product-mode-slider .hc-product-slider-track{padding-top:18px;padding-left:18px;margin-top:-18px;margin-left:-18px;scroll-padding-inline:18px}

/* Mobile shop listing: keep the campaign badge inside the product card's top-left corner so it
   never sticks out of the card frame, and size it a little larger than the generic mobile badge.
   The card becomes the badge's containing block while the image wrapper keeps its overflow clip
   and aspect ratio; only cards that render a campaign badge are affected, on the shop archive
   at mobile widths. */
@media(max-width:767px){
  body.woocommerce-shop .haptelle-product-card:has(> .card-product_wrapper > .haptelle-activity-badge){position:relative}
  body.woocommerce-shop .haptelle-product-card .card-product_wrapper:has(> .haptelle-activity-badge){position:static}
  body.woocommerce-shop .haptelle-product-card .card-product_wrapper > .haptelle-activity-badge{left:0;top:0;width:56px;max-width:34%;z-index:21}
}

/* The custom-doll collection app appends the activity badge inside this image link.
   Make the link its containing block so the badge anchors to each product image,
   not the page's initial containing block (the old fallback when every ancestor
   was position:static). */
body.post-type-archive-haptelle_custom_doll .haptelle-customizer__collection-image-link:has(> .haptelle-activity-badge){position:relative}
