/* SiteForge Prices — 全场折扣价展示 */
.sf-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45em .7em;
  line-height: 1.3;
  white-space: normal;
}
.sf-price__was {
  color: #8b919a !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  opacity: .9;
  margin: 0 !important;
  font-size: .92em;
}
.sf-price__was .sf-price__was-num,
.sf-price__was .amount {
  text-decoration: inherit;
}
.sf-price__sep {
  display: inline-block;
  width: .15em;
  flex: 0 0 auto;
}
.sf-price__now {
  color: #b42318 !important;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  background: transparent !important;
  margin: 0 !important;
}
.sf-price__now .amount {
  color: inherit;
  font-weight: inherit;
}

/* 角标：商品图 / 卡片右上角 */
.sf-price-host {
  position: relative !important;
}
.sf-price-badge-float {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  padding: .28em .55em;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9a86a, #a8863f);
  color: #121418 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  pointer-events: none;
  white-space: nowrap;
}
.woocommerce ul.products li.product,
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .images,
.product .woocommerce-product-gallery,
.product-gallery,
[data-product-gallery],
.sf-pdp-gallery,
.product-media,
.product__media {
  position: relative;
}

/* 加购按钮内若注入了划价 HTML：理顺间距，隐藏角标 */
button .sf-price,
.button .sf-price,
.single_add_to_cart_button .sf-price,
[name="add-to-cart"] .sf-price {
  gap: .55em;
  color: inherit;
}
button .sf-price__was,
.button .sf-price__was,
.single_add_to_cart_button .sf-price__was {
  color: rgba(255,255,255,.55) !important;
  opacity: 1;
}
button .sf-price__now,
.button .sf-price__now,
.single_add_to_cart_button .sf-price__now {
  color: inherit !important;
  font-weight: 700;
}
button .sf-price-badge-float,
.button .sf-price-badge-float,
.sf-price .sf-price-badge-float {
  display: none !important;
}

.woocommerce .sf-price del,
.woocommerce div.product p.price .sf-price__was,
.woocommerce ul.products li.product .price .sf-price__was {
  opacity: 1;
}
.woocommerce .sf-price ins,
.woocommerce div.product p.price .sf-price__now,
.woocommerce ul.products li.product .price .sf-price__now {
  text-decoration: none;
  background: transparent;
}
