;(function(){function applyBlack(){document.querySelectorAll('.product-card__new-price,.product-card__prices,[class*="precio_"]').forEach(function(el){el.style.setProperty('color','#000000','important');});}document.addEventListener('DOMContentLoaded',applyBlack);setTimeout(applyBlack,500);setTimeout(applyBlack,1500);var obs=new MutationObserver(function(){applyBlack();});obs.observe(document.body||document.documentElement,{childList:true,subtree:true});})();;(function(){var st=document.getElementById('cp-btn-fix');if(!st){st=document.createElement('style');st.id='cp-btn-fix';st.textContent='@media(max-width:991px){.botonesAgregar,.botonesAgregarMobileList,.product-card__addtocart{height:auto!important;min-height:44px!important;line-height:1.2!important;padding-top:10px!important;padding-bottom:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}}';document.head.appendChild(st);}})();;(function(){// Remove old btn fix if existsvar old=document.getElementById('cp-btn-fix');if(old)old.parentNode.removeChild(old);// 1. CSS fix for button centering + secondary button stylevar st=document.createElement('style');st.id='cp-btn-fix';st.textContent='@media(max-width:991px){'+'.botonesAgregar,.botonesAgregarMobileList,.product-card__addtocart{'+'height:auto!important;min-height:46px!important;line-height:1.2!important;'+'padding:12px 8px!important;display:flex!important;align-items:center!important;'+'justify-content:center!important;box-sizing:border-box!important;font-size:13px!important;}'+'.cp-btn-cart-add{display:flex!important;align-items:center!important;justify-content:center!important;'+'width:100%!important;margin-top:6px!important;padding:10px 8px!important;'+'border-radius:6px!important;border:2px solid #1a4fff!important;'+'background:transparent!important;color:#1a4fff!important;font-weight:700!important;'+'font-size:12px!important;cursor:pointer!important;box-sizing:border-box!important;'+'transition:all .2s!important;}'+'.cp-btn-cart-add:hover{background:#1a4fff!important;color:#fff!important;}'+'}';document.head.appendChild(st);// 2. Function to transform buttonsfunction transformBtns(){ document.querySelectorAll('.botonesAgregar,.botonesAgregarMobileList,.product-card__addtocart').forEach(function(btn){ // Rename text to COMPRAR if(btn.textContent.trim()==='Agregar'||btn.textContent.trim()==='AGREGAR'){ btn.textContent='COMPRAR'; } // Add secondary cart button if not already added var parent=btn.parentElement; if(parent&&!parent.querySelector('.cp-btn-cart-add')){ var cartBtn=document.createElement('button'); cartBtn.className='cp-btn-cart-add'; cartBtn.textContent='+ Agregar al carrito'; // Clone click behavior from original button cartBtn.addEventListener('click',function(e){ e.stopPropagation(); btn.click(); }); parent.appendChild(cartBtn); } });}// Run immediately and after DOM loadstransformBtns();document.addEventListener('DOMContentLoaded',transformBtns);setTimeout(transformBtns,800);setTimeout(transformBtns,2000);// Also observe for dynamic contentvar obs=new MutationObserver(function(){transformBtns();});obs.observe(document.body||document.documentElement,{childList:true,subtree:true});})();