(function () {
// Only run on /recipes (prevents header/menu side effects sitewide)
if (!/^\/recipes\/?$/.test(location.pathname)) return;
function handler(e) {
// Only intercept taps/clicks inside the WPZOOM Featured Category widget
var widget = e.target.closest('.wpzoom-elementor-addons-featured-category');
if (!widget) return;
// Find the actual category link
var link = e.target.closest('a[href]') || widget.querySelector('a[href]');
if (!link) return;
e.preventDefault();
e.stopImmediatePropagation();
window.location.assign(link.href);
}
// pointerup covers desktop + mobile reliably (better than touchend)
document.addEventListener('pointerup', handler, true);
})();