
/* Place Share button next to Woo zoom trigger (top-right on product image) */
.single-product .woocommerce-product-gallery{ position: relative; }
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{
  top: 8px !important;
  right: 56px !important; /* make room for share */
}

.single-product .wwv-share-inline{
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 6;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: transform .15s ease;
}
.single-product .wwv-share-inline:hover{ transform: translateY(-1px); }
.single-product .wwv-share-inline:active{ transform: translateY(0); }

/* Auto-contrast icon: flips vs background */
.single-product .wwv-share-inline svg{
  width: 22px;
  height: 22px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}

@media (max-width:480px){
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{
    right: 52px !important;
  }
  .single-product .wwv-share-inline{
    width: 36px; height: 36px; top: 8px; right: 10px;
  }
  .single-product .wwv-share-inline svg{ width: 20px; height: 20px; }
}

/* toast */
.wwv-toast{
  position:fixed; left:50%; bottom:20px; transform:translateX(-50%);
  background:#111; color:#fff; padding:10px 14px; border-radius:999px;
  font-size:14px; line-height:1; z-index: 99999; opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.wwv-toast.show{ opacity:1; }


/* Hide Woo zoom trigger (magnifier) and keep only Share */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger{ display:none !important; }

/* Put Share in the very top-right corner now */
.single-product .wwv-share-inline{ right:12px !important; top:8px !important; }
