/* NUJ Card UI: hide loop "Select options" / card Add to cart, style the on-image wishlist heart. */
/* Do not hide the product-page Add to cart (.nujp-buy, .single_add_to_cart_button, .nujp-sticky). */

body.nuj-card-ui .nujh-atc,
body.nuj-card-ui .nujp-ocard__atc,
body.nuj-card-ui .e-loop-item .elementor-widget-woocommerce-product-add-to-cart,
body.nuj-card-ui .e-loop-item .e-loop-add-to-cart-form-container,
body.nuj-card-ui .e-loop-item .elementor-element-36730231,
body.nuj-card-ui ul.products li.product a.add_to_cart_button,
body.nuj-card-ui ul.products li.product a.product_type_variable,
body.nuj-card-ui ul.products li.product a.product_type_grouped,
body.nuj-card-ui ul.products li.product a.product_type_external,
body.nuj-card-ui ul.products li.product a.added_to_cart,
body.nuj-card-ui .elementor-widget-woocommerce-products a.add_to_cart_button,
body.nuj-card-ui .elementor-widget-woocommerce-products a.product_type_variable,
body.nuj-card-ui .elementor-widget-woocommerce-products a.product_type_grouped,
body.nuj-card-ui .elementor-widget-loop-carousel .elementor-widget-woocommerce-product-add-to-cart{display:none!important}

/* Badges stay top-right so they do not sit on the heart. */
body.nuj-card-ui .nujp-gallery__badges,
body.nuj-card-ui .nujp-gallery[data-count="0"] .nujp-gallery__badges,
body.nuj-card-ui .nujp-gallery[data-count="1"] .nujp-gallery__badges{left:auto!important;right:14px!important}
body.nuj-card-ui .nujp-card__badges{left:auto!important;right:8px}
body.nuj-card-ui .nujp-ocard__badges{align-items:flex-end}

/* Shared white-circle heart (WPC Smart Wishlist button, restyled). */
body.nuj-card-ui .nujcui-heart,
body.nuj-card-ui .nujh-wl.woosw-btn,
body.nuj-card-ui .e-loop-item .woosw-btn{
  position:absolute!important;
  top:10px!important;left:10px!important;right:auto!important;bottom:auto!important;
  z-index:4!important;
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 1px 4px rgba(24,22,22,.16)!important;
  color:#181616!important;
  font-size:0!important;line-height:0!important;
  text-indent:0!important;text-decoration:none!important;text-transform:none!important;
  letter-spacing:0!important;
  cursor:pointer!important;
  opacity:1!important;visibility:visible!important;transform:none!important;
  overflow:hidden!important;
  -webkit-appearance:none;appearance:none;
}
body.nuj-card-ui .nujcui-heart:hover,
body.nuj-card-ui .nujh-wl.woosw-btn:hover,
body.nuj-card-ui .e-loop-item .woosw-btn:hover,
body.nuj-card-ui .nujcui-heart:focus-visible,
body.nuj-card-ui .nujh-wl.woosw-btn:focus-visible,
body.nuj-card-ui .e-loop-item .woosw-btn:focus-visible{
  background:#fff!important;color:#181616!important;opacity:1!important;
  box-shadow:0 2px 8px rgba(24,22,22,.22)!important;
}
body.nuj-card-ui .nujcui-heart:focus-visible,
body.nuj-card-ui .nujh-wl.woosw-btn:focus-visible,
body.nuj-card-ui .e-loop-item .woosw-btn:focus-visible{outline:2px solid #181616;outline-offset:2px}

/* Hide the plugin's icon font and "Add to wishlist" label; the circle itself is the control. */
body.nuj-card-ui .nujcui-heart .woosw-btn-icon,
body.nuj-card-ui .nujcui-heart .woosw-btn-text,
body.nuj-card-ui .nujh-wl.woosw-btn .woosw-btn-icon,
body.nuj-card-ui .nujh-wl.woosw-btn .woosw-btn-text,
body.nuj-card-ui .nujh-wl.woosw-btn > *,
body.nuj-card-ui .e-loop-item .woosw-btn .woosw-btn-icon,
body.nuj-card-ui .e-loop-item .woosw-btn .woosw-btn-text,
body.nuj-card-ui .e-loop-item .woosw-btn > *{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important;
  display:none!important;
}
body.nuj-card-ui .nujcui-heart:before,
body.nuj-card-ui .nujh-wl.woosw-btn:before,
body.nuj-card-ui .e-loop-item .woosw-btn:before{
  content:""!important;
  display:block!important;
  width:18px!important;height:18px!important;
  flex:0 0 18px!important;
  background-color:#181616!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.3-9.2C1.5 7.6 3.6 4.5 7 4.5c2 0 3.5 1.1 5 3 1.5-1.9 3-3 5-3 3.4 0 5.5 3.1 4.3 6.3C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.3-9.2C1.5 7.6 3.6 4.5 7 4.5c2 0 3.5 1.1 5 3 1.5-1.9 3-3 5-3 3.4 0 5.5 3.1 4.3 6.3C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.nuj-card-ui .nujcui-heart.woosw-added:before,
body.nuj-card-ui .nujh-wl.woosw-btn.woosw-added:before,
body.nuj-card-ui .e-loop-item .woosw-btn.woosw-added:before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.3-9.2C1.5 7.6 3.6 4.5 7 4.5c2 0 3.5 1.1 5 3 1.5-1.9 3-3 5-3 3.4 0 5.5 3.1 4.3 6.3C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9.3-9.2C1.5 7.6 3.6 4.5 7 4.5c2 0 3.5 1.1 5 3 1.5-1.9 3-3 5-3 3.4 0 5.5 3.1 4.3 6.3C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.nuj-card-ui .nujcui-heart.woosw-adding,
body.nuj-card-ui .e-loop-item .woosw-btn.woosw-adding{opacity:.55!important}

/* Homepage: the prepared .nujh-wl button sits in .nujh-cm (position:relative). Override leftover plugin CSS. */
body.nuj-card-ui .nujh-cm{position:relative}
body.nuj-card-ui .nujh-wl{background-image:none!important;width:36px!important;height:36px!important;padding:0!important;margin:0!important}

/* Product "Pair with all" / "You May Also Like" cards. */
body.nuj-card-ui .nujp-ocard,
body.nuj-card-ui .nujp-ocard__img,
body.nuj-card-ui .nujp-card__media{position:relative}
body.nuj-card-ui .nujp-ocard .nujcui-heart,
body.nuj-card-ui .nujp-card .nujcui-heart{top:8px!important;left:8px!important}

/* Product-page main image: heart on the photo, not on the thumbnail column. */
body.nuj-card-ui .nujp-gallery{position:relative}
body.nuj-card-ui .nujp-gallery > .nujcui-heart{top:14px!important;left:14px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;z-index:5}
body.nuj-card-ui .nujp-gallery > .nujcui-heart:before{width:20px!important;height:20px!important;flex-basis:20px!important}
/* Desktop: thumbs are a 84px column + 14px gap; offset the heart onto the main image. Single-image galleries have no thumbs. */
@media (min-width:1025px){
  body.nuj-card-ui .nujp-gallery[data-count]:not([data-count="0"]):not([data-count="1"]) > .nujcui-heart{left:calc(84px + 14px + 14px)!important}
}
@media (max-width:1024px){
  body.nuj-card-ui .nujp-gallery__badges{right:12px!important}
  body.nuj-card-ui .nujp-gallery > .nujcui-heart{top:12px!important;left:12px!important}
}

/* Shop / collection Elementor loop item 9231: wishlist shortcode is already top-left, but hover-only and is a text button. */
body.nuj-card-ui .e-loop-item .elementor-element-2b6f9c0e,
body.nuj-card-ui .e-loop-item .elementor-element-2b6f9c0e.vamtam-show-on-hover,
body.nuj-card-ui .e-loop-item .elementor-element-2b6f9c0e.elementor-absolute{
  opacity:1!important;visibility:visible!important;transform:none!important;
  top:0!important;left:0!important;right:auto!important;z-index:4!important;
  width:auto!important;height:auto!important;
  pointer-events:auto!important;
}
body.nuj-card-ui .e-loop-item .elementor-element-2b6f9c0e > .elementor-widget-container{
  margin:10px!important;padding:0!important;background:transparent!important;
}
body.nuj-card-ui .e-loop-item .elementor-element-2b6f9c0e .woosw-btn{position:relative!important;top:auto!important;left:auto!important}

/* Do not restyle the product-page text "Add to wishlist" link in the Size & Fit / Share row. */
body.nuj-card-ui .nujp-wish .woosw-btn{
  position:static!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  border-radius:0!important;background:none!important;box-shadow:none!important;
  font-size:13px!important;line-height:1.5!important;
}
body.nuj-card-ui .nujp-wish .woosw-btn:before{
  /* keep the existing nuj-fast-product 0.1.4 heart-as-text-link treatment */
}
body.nuj-card-ui .nujp-wish .woosw-btn .woosw-btn-text{
  position:static!important;width:auto!important;height:auto!important;margin:0!important;clip:auto!important;
  overflow:visible!important;display:inline!important;
}
