/* BAVOVNA sale presentation s04 — equal catalog prices; savings on PDP only. */
html body #content .product-thumb .price-new,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-new,
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-new {
  color: #c8102e !important;
  font-family: Rubik, sans-serif !important;
  font-weight: 300 !important;
  text-shadow: none !important;
}

html body #content .product-thumb .price-old,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-old,
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-old {
  color: #737373 !important;
  font-family: Rubik, sans-serif !important;
  font-weight: 300 !important;
  text-decoration: line-through !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px !important;
  text-shadow: none !important;
}

/* Keep complete amounts together; a long pair may wrap, never clip. */
html body #content .product-thumb .price-new,
html body #content .product-thumb .price-old,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-new,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-old {
  display: inline-block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  line-height: 18px !important;
}
html body #content .product-thumb .price-new,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-new,
html body #content .product-thumb .price-old,
html body #product-product #related.product-owl .product-thumb .product-price-box .price-old {
  font-size: 15px !important;
}
html body #content .product-thumb.bav-sale-card .product-price-box,
html body #content .product-thumb.bav-sale-card p.price {
  min-width: 0 !important;
  flex-wrap: wrap !important;
  align-content: center !important;
  align-items: baseline !important;
  gap: 0 6px !important;
  white-space: normal !important;
}

/* Savings sit outside the price / purchase-button row. */
html body .bav-sale-saving {
  display: block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 18px !important;
  margin: 5px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #666666 !important;
  font: 300 12px/18px Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: normal !important;
  text-align: left !important;
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  flex-basis: 100% !important;
  pointer-events: none;
}
html body .bav-sale-saving .bav-sale-saving-amount { white-space: nowrap !important; }

/* Compatibility guard for cached / cloned cards: savings belong to PDP only. */
html body .product-thumb .bav-sale-saving { display: none !important; }

/* Existing badge only: replace the circular ribbon, opposite the heart. */
html body .product-thumb .percentage,
html body #product-product #related.product-owl .product-thumb .percentage {
  display: inline-flex !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 10 !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #c8102e !important;
  color: #ffffff !important;
  font: 300 13px/18px Rubik, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}
html body .product-thumb .percentage::before,
html body .product-thumb .percentage::after {
  content: none !important;
  display: none !important;
}
html body .product-thumb .percentage i {
  font: inherit !important;
  color: inherit !important;
  vertical-align: baseline !important;
}

/* Product detail: maintain the existing model / price columns. */
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price.bav-sale-pdp {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  min-width: 0 !important;
  height: auto !important;
}
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price.bav-sale-pdp #price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 3px 10px !important;
  width: auto !important;
  height: auto !important;
}
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-new {
  order: 0 !important;
  font-size: 24px !important;
  line-height: 28px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-old {
  order: 1 !important;
  font-size: 15px !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
html body #product-product .bav-sale-pdp > .bav-sale-saving { text-align: right !important; }
@media (min-width: 768px) {
  /* Match the existing intentional 15px left shift of the desktop price. */
  html body #product-product .bav-sale-pdp > .bav-sale-saving { transform: translateX(-15px); }
}
@media (max-width: 767px) {
  html body .product-thumb .percentage,
  html body #product-product #related.product-owl .product-thumb .percentage {
    top: 8px !important;
    right: 8px !important;
    min-height: 24px !important;
    padding: 4px 7px !important;
    font-size: 12px !important;
    line-height: 16px !important;
  }
  html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price.bav-sale-pdp #price {
    flex-direction: column !important;
    align-items: flex-end !important;
  }
  html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-new {
    font-size: 19px !important;
    line-height: 23px !important;
  }
  html body #product-product .product-details .bav-product-meta .bav-mobile-meta-price #price:has(.price-old):has(.price-new) .price-old {
    font-size: 13px !important;
    line-height: 17px !important;
  }
  html body #product-product .bav-sale-pdp > .bav-sale-saving { white-space: nowrap !important; }
}
