/* Base positioning for common WooCommerce containers */
.woocommerce ul.products li.product { position: relative; }
.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery { position: relative; }

/* Badge */
.bp-pb-badge{
  position:absolute;
  top:var(--bp-pb-offset-y);
  left:var(--bp-pb-offset-x);
  display:flex;
  align-items:center;
  justify-content:center;
  width:var(--bp-pb-size);
  height:var(--bp-pb-size);
  line-height:1;
  font-size:var(--bp-pb-font-size);
  font-weight:var(--bp-pb-weight);
  border-radius:var(--bp-pb-radius);
  box-shadow:0 6px 16px rgba(0,0,0,.15);
  z-index:var(--bp-pb-z);
  transform-origin:center center;
  animation:bp-pb-pulse var(--bp-pb-pulse-speed) ease-in-out infinite;
  pointer-events:none; /* make it non-clickable */
  padding:8px;
  text-align:center;
}

/* Pulse animation */
@keyframes bp-pb-pulse{
  0% { transform: scale(1.0); }
  50% { transform: scale(var(--bp-pb-pulse-scale)); }
  100% { transform: scale(1.0); }
}

/* Type-specific colors are injected inline via wp_add_inline_style */
/* .bp-pb-type-sale { background:#E53935; color:#fff; } */
/* .bp-pb-type-cod  { background:#1E88E5; color:#fff; } */
/* .bp-pb-type-hot  { background:#FB8C00; color:#fff; } */
/* .bp-pb-type-new  { background:#43A047; color:#fff; } */

/* Improve legibility on very small sizes */
@media (max-width:480px){
  .bp-pb-badge{ padding:6px; }
}
