.cv.css.bind($.cv.css.eventnames.documentReady,function(){var debugEnabled = false;if(window.location.pathname.indexOf('/categories/') === -1) return;var pageTitle = document.title || '';var categoryId = '';var titleMatch = pageTitle.match(/^(SX\d+)\s*-/);if(titleMatch){categoryId = titleMatch[1];}var h1 = document.querySelector('h1.page-title');var categoryName = h1 ? h1.textContent.trim() :'';if(!categoryId || !categoryName){if(debugEnabled) console.warn('[Klaviyo Viewed Category] Missing data - ID:',categoryId,'Name:',categoryName);return;}var payload ={'CategoryName':categoryName,'CategoryID':categoryId,'URL':window.location.href};if(debugEnabled){console.log('[Klaviyo Viewed Category] Payload:',JSON.stringify(payload,null,2));}if(typeof klaviyo !== 'undefined'){klaviyo.track('Viewed Category',payload).then(function(){if(debugEnabled) console.log('[Klaviyo Viewed Category] Success');}).catch(function(err){if(debugEnabled) console.error('[Klaviyo Viewed Category] Error:',err);});}else{if(debugEnabled) console.warn('[Klaviyo Viewed Category] klaviyo object not found');}}