add_shortcode('jaynes_share', function() {
    if (!is_singular('product')) return '';
    
    $url = urlencode(get_permalink());
    $title = urlencode(get_the_title());
    $image = urlencode(get_the_post_thumbnail_url(null, 'full'));
    
    return '
    <div class="jaynes-share">
      <a href="https://www.facebook.com/sharer/sharer.php?u=' . $url . '" target="_blank" rel="noopener" aria-label="Share on Facebook">
        <i class="fab fa-facebook-f"></i>
      </a>
      <a href="https://pinterest.com/pin/create/button/?url=' . $url . '&media=' . $image . '&description=' . $title . '" target="_blank" rel="noopener" aria-label="Share on Pinterest">
        <i class="fab fa-pinterest-p"></i>
      </a>
      <a href="https://wa.me/?text=' . $title . '%20' . $url . '" target="_blank" rel="noopener" aria-label="Share on WhatsApp">
        <i class="fab fa-whatsapp"></i>
      </a>
    </div>';
});