/* v1.8.6 - hard center text inside badge/discount shapes.
   Shapes keep their manual x/y/w/h. The label is centered inside that exact box. */
html body .magazine-shell .product-card [data-nc-child="badge"],
html body .magazine-shell .product-card [data-nc-child="discount"]{
  box-sizing:border-box!important;
  display:block!important;
  position:absolute!important;
  padding:0!important;
  line-height:1!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-align:center!important;
  align-items:initial!important;
  justify-content:initial!important;
}

html body .magazine-shell .product-card [data-nc-child="badge"] .nc-box-label,
html body .magazine-shell .product-card [data-nc-child="discount"] .nc-box-label{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:var(--pad,4px 6px)!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  pointer-events:auto!important;
}

/* Fallback for older saved labels that do not yet contain .nc-box-label. */
html body .magazine-shell .product-card [data-nc-child="badge"]:not(:has(.nc-box-label)),
html body .magazine-shell .product-card [data-nc-child="discount"]:not(:has(.nc-box-label)){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:var(--pad,4px 6px)!important;
}

html body .magazine-shell .product-card [data-nc-child="badge"]{
  background:var(--card-bg,#cf332a)!important;
  color:var(--text-color,#fff)!important;
  border-color:var(--border-color,transparent)!important;
  border-width:var(--border-width,0px)!important;
  border-style:var(--border-style,solid)!important;
  font-size:var(--font-size,12px)!important;
  font-family:var(--font-family,Arial,Helvetica,sans-serif)!important;
  font-weight:var(--font-weight,900)!important;
  text-transform:uppercase!important;
}

html body .magazine-shell .product-card [data-nc-child="discount"]{
  background:var(--card-bg,#f6d044)!important;
  color:var(--text-color,#9e2019)!important;
  border-color:var(--border-color,#9e2019)!important;
  border-width:var(--border-width,1px)!important;
  border-style:var(--border-style,solid)!important;
  font-family:var(--font-family,Impact,'Arial Black','Arial Narrow',sans-serif)!important;
  font-size:var(--font-size,14px)!important;
  font-weight:var(--font-weight,900)!important;
  transform:none!important;
}

html body .magazine-shell .product-card [data-nc-child="badge"].nc-shape-rect,
html body .magazine-shell .product-card [data-nc-child="discount"].nc-shape-rect{border-radius:0!important;}
html body .magazine-shell .product-card [data-nc-child="badge"].nc-shape-rounded,
html body .magazine-shell .product-card [data-nc-child="discount"].nc-shape-rounded{border-radius:6px!important;}
html body .magazine-shell .product-card [data-nc-child="badge"].nc-shape-pill,
html body .magazine-shell .product-card [data-nc-child="discount"].nc-shape-pill{border-radius:999px!important;}
html body .magazine-shell .product-card [data-nc-child="badge"].nc-shape-circle,
html body .magazine-shell .product-card [data-nc-child="discount"].nc-shape-circle{border-radius:50%!important;}
