/* NC Home Market — compact promotion marking. */
body.ncsm-theme .ncsm-catalog-image { position:relative; }
body.ncsm-theme .ncsm-catalog-image .nchm-promo-badge {
  position:absolute; top:10px; left:10px; z-index:3;
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; border-radius:50%;
  background:var(--ncsm-primary,#c1121f); color:#fff; -webkit-text-fill-color:#fff;
  font-family:inherit; font-weight:600; font-size:10px; line-height:1; letter-spacing:0;
  box-shadow:0 2px 8px rgba(0,0,0,.09); pointer-events:none;
}
body.ncsm-theme.single-product .ncsm-single-product-shell > div.product {position:relative;}
body.ncsm-theme.single-product .ncsm-single-product-shell > div.product > span.onsale.nchm-promo-badge {
  position:absolute !important; top:12px !important; left:12px !important;
  right:auto !important; margin:0 !important; z-index:12;
  display:flex !important; align-items:center; justify-content:center;
  width:44px !important; min-width:44px !important; height:44px !important;
  min-height:44px !important; padding:0 !important;
  border:0 !important; border-radius:50% !important;
  background:var(--ncsm-primary,#c1121f) !important; color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:10px !important; font-weight:600 !important;
  line-height:1 !important; box-shadow:0 2px 8px rgba(0,0,0,.09);
}
body.ncsm-theme.single-product .nchm-sale-countdown {
  display:flex; align-items:center; flex-wrap:wrap; gap:6px;
  width:max-content; max-width:100%; margin:8px 0 10px;
  padding:7px 10px; border-radius:8px;
  border:1px solid #f0e1e3; background:#fffafa;
  color:#6b4f55; font-family:inherit; font-weight:400; font-size:11px; line-height:1.45;
}
body.ncsm-theme .nchm-sale-countdown__dot {
  width:6px; height:6px; border-radius:50%; background:var(--ncsm-primary,#c1121f); flex:none;
}
body.ncsm-theme .nchm-sale-countdown__time {font-size:11px; font-weight:600;color:#b9101d;}
@media(max-width:767px){
  body.ncsm-theme .ncsm-catalog-image .nchm-promo-badge {top:7px;left:7px;width:38px;height:38px;font-size:9px;}
  body.ncsm-theme.single-product .ncsm-single-product-shell > div.product > span.onsale.nchm-promo-badge {
    top:9px !important;left:9px !important;width:38px !important;min-width:38px !important;height:38px !important;min-height:38px !important;font-size:9px !important;
  }
}

body.ncsm-theme .nchm-sale-countdown[hidden] {display:none !important;}

/* v2.6.27: badge over the main photo, not over vertical thumbnails. */
@media(min-width:992px){
 body.ncsm-theme.single-product .ncsm-single-product-shell > div.product > span.onsale.nchm-promo-badge {
   top:25px !important;left:112px !important;
 }
}
@media(min-width:768px) and (max-width:991px){
 body.ncsm-theme.single-product .ncsm-single-product-shell > div.product > span.onsale.nchm-promo-badge {left:22px !important;top:22px !important;}
}
@media(max-width:767px){
 body.ncsm-theme.single-product .ncsm-single-product-shell > div.product > span.onsale.nchm-promo-badge {left:19px !important;top:19px !important;}
}
/* Countdown is relocated into purchase card immediately before sale price. */
body.ncsm-theme.single-product .ncas-purchase-box > .nchm-sale-countdown,
body.ncsm-theme.single-product .ncss-purchase-box > .nchm-sale-countdown {
 margin:5px 0 10px !important;
}

/* v2.6.28 — Countdown beneath the discounted price, clearly separated from the short description. */
body.ncsm-theme.single-product .ncsm-single-product-shell .ncas-purchase-box > .nchm-sale-price-anchor,
body.ncsm-theme.single-product .ncsm-single-product-shell .ncss-purchase-box > .nchm-sale-price-anchor {
  margin-bottom: 0 !important;
}
body.ncsm-theme.single-product .ncsm-single-product-shell .ncas-purchase-box > .nchm-sale-countdown,
body.ncsm-theme.single-product .ncsm-single-product-shell .ncss-purchase-box > .nchm-sale-countdown {
  margin: 13px 0 17px !important;
}
body.ncsm-theme.single-product .ncsm-single-product-shell .nchm-sale-countdown + .ncas-short-description,
body.ncsm-theme.single-product .ncsm-single-product-shell .nchm-sale-countdown + .woocommerce-product-details__short-description,
body.ncsm-theme.single-product .ncsm-single-product-shell .nchm-sale-countdown + .ncss-short-description {
  margin-top: 0 !important;
}

/* Fashion 2.6.59 — badge interno alle card Woo e agli shortcode NC Home Store.
 * Gli shortcode non usano .ncsm-catalog-image: il badge deve avere il proprio
 * riferimento di posizionamento anche in .ncss-home-product-image. */
body.ncsm-theme a.ncss-home-product-image,
body.ncsm-theme a.ncss-el-product-image,
body.ncsm-theme a.ncsm-catalog-image { position:relative!important; }
body.ncsm-theme a.ncss-home-product-image > .nchm-promo-badge,
body.ncsm-theme a.ncss-el-product-image > .nchm-promo-badge,
body.ncsm-theme a.ncsm-catalog-image > .nchm-promo-badge {
 position:absolute!important; top:10px!important; left:10px!important;
 right:auto!important;bottom:auto!important;transform:none!important;
 z-index:12!important;display:inline-flex!important;align-items:center!important;
 justify-content:center!important;flex:none!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 max-width:44px!important;max-height:44px!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;
 background:var(--ncsm-primary,#c1121f)!important;color:#fff!important;
 -webkit-text-fill-color:#fff!important;font-size:10px!important;
 font-weight:600!important;line-height:1!important;text-align:center!important;
 text-decoration:none!important;white-space:nowrap!important;pointer-events:none!important;
}
@media(max-width:767px){
 body.ncsm-theme a.ncss-home-product-image > .nchm-promo-badge,
 body.ncsm-theme a.ncss-el-product-image > .nchm-promo-badge,
 body.ncsm-theme a.ncsm-catalog-image > .nchm-promo-badge {
 top:7px!important;left:7px!important;width:38px!important;height:38px!important;
 min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;font-size:9px!important;
 }
}
