/* Product card discount badges — templates + positions */
.bn-disc-badge,
.lp-discount-badge.bn-disc-badge {
  --bn-disc-bg: #1554C0;
  --bn-disc-fg: #fff;
  --bn-disc-accent: #F59E0B;
  --bn-disc-ox: 10px;
  --bn-disc-oy: 10px;
  --bn-disc-scale: 1;
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: scale(var(--bn-disc-scale));
  transform-origin: top left;
  line-height: 1.1;
  font-family: inherit;
  max-width: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.bn-disc-badge--top-left { top: var(--bn-disc-oy); left: var(--bn-disc-ox); transform-origin: top left; }
.bn-disc-badge--top-right { top: var(--bn-disc-oy); right: var(--bn-disc-ox); left: auto; transform-origin: top right; }
.bn-disc-badge--bottom-left { bottom: var(--bn-disc-oy); top: auto; left: var(--bn-disc-ox); transform-origin: bottom left; }
.bn-disc-badge--bottom-right { bottom: var(--bn-disc-oy); top: auto; right: var(--bn-disc-ox); left: auto; transform-origin: bottom right; }

.bn-disc-badge__text {
  color: var(--bn-disc-fg);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Pill (current look) */
.bn-disc-badge--pill .bn-disc-badge__pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--bn-disc-bg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}

/* Vertical ribbon */
.bn-disc-badge--ribbon .bn-disc-badge__ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 54px;
  padding: 8px 6px 14px;
  background: var(--bn-disc-bg);
  color: var(--bn-disc-fg);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .2);
}
.bn-disc-badge--ribbon .bn-disc-badge__ribbon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background: linear-gradient(135deg, var(--bn-disc-bg) 50%, transparent 50%),
              linear-gradient(-135deg, var(--bn-disc-bg) 50%, transparent 50%);
  background-size: 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}
.bn-disc-badge--ribbon .bn-disc-badge__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
}

/* Circle */
.bn-disc-badge--circle .bn-disc-badge__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bn-disc-bg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .22);
  text-align: center;
  padding: 4px;
}
.bn-disc-badge--circle .bn-disc-badge__text {
  font-size: 10px;
  white-space: normal;
  line-height: 1.15;
}

/* Blob sale */
.bn-disc-badge--blob .bn-disc-badge__blob {
  position: relative;
  width: 64px;
  height: 58px;
  display: block;
}
.bn-disc-badge__blob-layer {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
}
.bn-disc-badge__blob-layer--y { background: var(--bn-disc-accent); transform: translate(4px, 5px) scale(.92); }
.bn-disc-badge__blob-layer--o { background: #FB923C; transform: translate(2px, 2px) scale(.96); opacity: .95; }
.bn-disc-badge__blob-layer--r {
  background: var(--bn-disc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--bn-disc-fg);
}
.bn-disc-badge__blob-num { font-size: 18px; font-weight: 900; line-height: 1; }
.bn-disc-badge__blob-off { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.bn-disc-badge__blob-off em { font-style: normal; font-size: 10px; font-weight: 800; }
.bn-disc-badge__blob-off small { font-size: 8px; font-weight: 800; letter-spacing: .04em; }

/* Seal */
.bn-disc-badge--seal .bn-disc-badge__seal {
  position: relative;
  width: 56px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bn-disc-badge__seal-medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bn-disc-bg);
  border: 3px solid var(--bn-disc-accent);
  box-shadow: 0 0 0 3px var(--bn-disc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bn-disc-fg);
  font-weight: 900;
  z-index: 1;
}
.bn-disc-badge__seal-tails {
  width: 28px;
  height: 22px;
  margin-top: -6px;
  background:
    linear-gradient(135deg, var(--bn-disc-bg) 50%, transparent 50%) left,
    linear-gradient(-135deg, color-mix(in srgb, var(--bn-disc-bg) 80%, #000) 50%, transparent 50%) right;
  background-size: 50% 100%;
  background-repeat: no-repeat;
}
.bn-disc-badge--seal .bn-disc-badge__text {
  position: absolute;
  bottom: 0;
  font-size: 9px;
  background: rgba(0,0,0,.55);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Shield */
.bn-disc-badge--shield .bn-disc-badge__shield {
  width: 72px;
  padding: 8px 6px 10px;
  text-align: center;
  background: var(--bn-disc-bg);
  clip-path: polygon(50% 0%, 95% 12%, 95% 62%, 50% 100%, 5% 62%, 5% 12%);
  border: 2px solid var(--bn-disc-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .18);
}
.bn-disc-badge__shield-pct {
  display: block;
  color: var(--bn-disc-fg);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}
.bn-disc-badge__shield-ribbon {
  display: inline-block;
  background: color-mix(in srgb, var(--bn-disc-accent) 70%, #0f766e);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  font-style: italic;
  padding: 2px 8px;
  border-radius: 2px;
}

/* Price tag */
.bn-disc-badge--price_tag .bn-disc-badge__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px 6px 10px;
  background: var(--bn-disc-bg);
  color: var(--bn-disc-fg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  transform: rotate(-18deg);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18);
}
.bn-disc-badge--price_tag .bn-disc-badge__tag::after {
  content: '';
  position: absolute;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Promo banner */
.bn-disc-badge--promo_banner {
  transform-origin: top left;
}
.bn-disc-badge--promo_banner .bn-disc-badge__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .2));
}
.bn-disc-badge__promo-star {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bn-disc-bg);
  color: var(--bn-disc-fg);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -6px;
  z-index: 1;
  box-shadow: 0 0 0 2px #fff;
}
.bn-disc-badge__promo-body {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  background: var(--bn-disc-bg);
  color: var(--bn-disc-fg);
  padding: 6px 8px;
  position: relative;
}
.bn-disc-badge__promo-body::before,
.bn-disc-badge__promo-body::after {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 10px;
  background: #111;
  z-index: -1;
}
.bn-disc-badge__promo-body::before { left: -6px; clip-path: polygon(100% 0, 100% 100%, 0 85%, 0 15%); }
.bn-disc-badge__promo-body::after { right: -6px; clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%); }
.bn-disc-badge__promo-body em {
  font-style: normal;
  font-size: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  letter-spacing: .06em;
}
.bn-disc-badge__promo-body strong { font-size: 11px; font-weight: 900; }
.bn-disc-badge__promo-cta {
  margin-top: 2px;
  background: #111;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  font-style: italic;
  padding: 3px 8px;
  letter-spacing: .04em;
}

/* Fallbacks where color-mix unsupported */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .bn-disc-badge__seal-tails {
    background: var(--bn-disc-bg);
    clip-path: polygon(0 0, 50% 0, 35% 100%, 0 70%, 50% 0, 100% 0, 100% 70%, 65% 100%, 50% 0);
  }
  .bn-disc-badge__shield-ribbon { background: #0f766e; }
}

.popular-pick-card .image-box,
.lp-product-media,
.shop-block-two .image-box {
  position: relative;
}

/* Optional discount badge animations (inner wrapper keeps position/scale stable) */
.bn-disc-anim-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform, filter, opacity;
}

.bn-disc-anim--bounce .bn-disc-anim-inner {
  animation: bn-disc-bounce 1.1s ease infinite;
}
.bn-disc-anim--pulse .bn-disc-anim-inner {
  animation: bn-disc-pulse 1.4s ease-in-out infinite;
}
.bn-disc-anim--shake .bn-disc-anim-inner {
  animation: bn-disc-shake .7s ease-in-out infinite;
}
.bn-disc-anim--float .bn-disc-anim-inner {
  animation: bn-disc-float 2.2s ease-in-out infinite;
}
.bn-disc-anim--glow .bn-disc-anim-inner {
  animation: bn-disc-glow 1.8s ease-in-out infinite;
}
.bn-disc-anim--wiggle .bn-disc-anim-inner {
  animation: bn-disc-wiggle .9s ease-in-out infinite;
}
.bn-disc-anim--heartbeat .bn-disc-anim-inner {
  animation: bn-disc-heartbeat 1.2s ease-in-out infinite;
}

@keyframes bn-disc-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}
@keyframes bn-disc-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .92; }
}
@keyframes bn-disc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
@keyframes bn-disc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes bn-disc-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 255, 255, .75)); }
}
@keyframes bn-disc-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
@keyframes bn-disc-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  70% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bn-disc-anim .bn-disc-anim-inner {
    animation: none !important;
  }
}
