/* v1.7.5 - locked safe-zone rendering + toolbar placement support
   Single rule: product minicards are structured zones, not free-stacked text/image layers.
   This file is intentionally loaded last in both live and editor. */

html body .magazine-shell .product-card.is-v175-canonical,
html body .magazine-shell .product-card.is-safe-child-layout{
  position:relative !important;
  display:block !important;
  overflow:hidden !important;
  isolation:isolate !important;
  contain:layout paint style !important;
  box-sizing:border-box !important;
  min-width:120px !important;
  min-height:92px !important;
}

html body .magazine-shell .product-card.is-v175-canonical .product-copy,
html body .magazine-shell .product-card.is-v175-canonical .price-row,
html body .magazine-shell .product-card.is-safe-child-layout .product-copy,
html body .magazine-shell .product-card.is-safe-child-layout .price-row{
  display:contents !important;
  position:static !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
  transform:none !important;
}

html body .magazine-shell .product-card.is-v175-canonical [data-nc-child],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child]{
  position:absolute !important;
  box-sizing:border-box !important;
  display:block !important;
  margin:0 !important;
  transform:none !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
  line-height:1.08 !important;
  color:var(--text-color,inherit) !important;
  background:var(--card-bg,transparent) !important;
  font-family:var(--font-family,inherit) !important;
  font-size:var(--font-size,inherit) !important;
  font-weight:var(--font-weight,inherit) !important;
  text-align:var(--text-align,left) !important;
  border-color:var(--border-color,transparent) !important;
  border-width:var(--border-width,0) !important;
  border-style:var(--border-style,solid) !important;
  border-radius:var(--radius,0) !important;
  padding:var(--pad,0) !important;
  opacity:var(--opacity,1) !important;
}

/* Hard non-overlap safe zones. These are identical in live and editor. */
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="image"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="image"]{
  left:4% !important; top:8% !important; width:39% !important; height:62% !important; z-index:10 !important;
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(70,44,16,.22) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="badge"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="badge"]{
  left:49% !important; top:8% !important; width:22% !important; height:12% !important; z-index:30 !important;
  background:var(--card-bg,#cf332a) !important;
  color:var(--text-color,#fff) !important;
  padding:var(--pad,3px 8px) !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  font-size:var(--font-size,12px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="discount"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="discount"]{
  left:76% !important; top:7% !important; width:18% !important; height:14% !important; z-index:35 !important;
  background:var(--card-bg,#f6d044) !important;
  color:var(--text-color,#9e2019) !important;
  border:var(--border-width,1px) var(--border-style,solid) var(--border-color,#9e2019) !important;
  font-family:Impact,'Arial Black','Arial Narrow',sans-serif !important;
  text-align:center !important;
  font-size:var(--font-size,14px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="title"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="title"]{
  left:49% !important; top:23% !important; width:47% !important; height:19% !important; z-index:20 !important;
  font-family:var(--font-family,Impact,'Arial Black','Arial Narrow',sans-serif) !important;
  text-transform:uppercase !important;
  font-weight:900 !important;
  font-size:var(--font-size,18px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="description"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="description"]{
  left:49% !important; top:44% !important; width:47% !important; height:21% !important; z-index:20 !important;
  font-size:var(--font-size,13px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="merchant"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="merchant"]{
  left:49% !important; top:66% !important; width:47% !important; height:10% !important; z-index:20 !important;
  font-size:var(--font-size,11px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="old_price"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="old_price"]{
  left:49% !important; top:78% !important; width:24% !important; height:8% !important; z-index:25 !important;
  color:#8b201a !important;
  text-decoration:line-through !important;
  text-decoration-thickness:2px !important;
  font-weight:900 !important;
  font-size:var(--font-size,12px) !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="price"],
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="price"]{
  left:49% !important; top:86% !important; width:36% !important; height:13% !important; z-index:25 !important;
  font-family:Impact,'Arial Black','Arial Narrow',sans-serif !important;
  font-size:var(--font-size,22px) !important;
  font-weight:900 !important;
}
html body .magazine-shell .product-card.is-v175-canonical [data-nc-child="image"] img,
html body .magazine-shell .product-card.is-safe-child-layout [data-nc-child="image"] img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* Editorial grids should not clip card content except inside each card. */
html body .magazine-shell .editorial-grid{
  overflow:hidden !important;
}
html body .magazine-shell .product-card [style*="display:none"],
html body .magazine-shell .product-card [style*="display: none"]{
  display:none !important;
}

/* Toolbar must float above selected element, not on top of it. */
body.nc-editor-page .nc-element-toolbar{
  max-width:min(420px, calc(100vw - 24px)) !important;
  z-index:2147483000 !important;
}
body.nc-editor-page .nc-element-toolbar.is-position-above::after{
  content:"";
  position:absolute;
  left:22px;
  bottom:-7px;
  width:12px;
  height:12px;
  background:rgba(15,13,8,.96);
  border-right:1px solid rgba(246,208,68,.26);
  border-bottom:1px solid rgba(246,208,68,.26);
  transform:rotate(45deg);
}
body.nc-editor-page .nc-element-toolbar.is-position-below::after{
  content:"";
  position:absolute;
  left:22px;
  top:-7px;
  width:12px;
  height:12px;
  background:rgba(15,13,8,.96);
  border-left:1px solid rgba(246,208,68,.26);
  border-top:1px solid rgba(246,208,68,.26);
  transform:rotate(45deg);
}
