
              /* ⚡ PREVENIR SCROLL AUTOMÁTICO */
              html {
                overflow-anchor: none !important;
                scroll-behavior: auto !important;
              }
              body {
                overflow-anchor: none !important;
              }
              
              .ps-grid,.ps-small{font-family:"Open Sans",helvetica,sans-serif}
              .celdaNombre{position:relative!important; overflow:visible}
              .input-container{position:relative}
              .ps-input{width:100%;padding:8px 8px 8px 40px;box-sizing:border-box}
              .ps-spinner{border:2px solid #f3f3f3;border-top:2px solid #3498db;border-radius:50%;width:20px;height:20px;animation:spin 1s linear infinite;position:absolute;left:10px;top:50%;transform:translateY(-50%);display:none}
              @keyframes spin{0%{transform:translateY(-50%) rotate(0)}100%{transform:translateY(-50%) rotate(360deg)}}

              /* Dropdown dentro de la celda, debajo del input */
              .ps-results{position:absolute; top:calc(100% + 4px); left:0;
                          background:#fff; border:1px solid #ddd; box-shadow:0 8px 24px rgba(0,0,0,.12);
                          min-width:420px; max-width:80vw; max-height:70vh; overflow-y:auto;
                          display:none; z-index:5000; padding:12px 14px;}
              .ps-results .cotps-products-row{margin:0!important; width:100%;}
              .ps-results .cotps-products-row article{cursor:pointer;}
              .ps-results .cotps-products-row--list{display:block;}
              .ps-results .cotps-products-row--list article{width:100%;}

              .cotps-search-page{width:100%;}
              .cotps-search-page .cotps-search-header{padding:25px 0 10px;}
              .cotps-search-page .cotps-search-form-wrapper{position:relative;max-width:480px;margin:0 auto;}
              .cotps-search-page .cotps-search-form-wrapper .ps-input{padding:12px 12px 12px 42px;border:1px solid #d0d0d0;border-radius:3px;font-size:16px;}
              .cotps-search-page .cotps-search-form-wrapper .ps-spinner{left:12px;height:24px;width:24px;}
              .cotps-search-page .cotps-search-body{padding:10px 0 40px;}
              .cotps-results-grid h1,
              .cotps-results-grid #js-product-list-top,
              .cotps-results-grid #js-product-list{width:100%;}
              .cotps-results-grid .products.row{margin-left:-15px;margin-right:-15px;}
              .cotps-results-grid .product-miniature{transition:transform .2s ease, box-shadow .2s ease;}
              .cotps-results-grid .product-miniature:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.08);}
              
              /* Asegurar altura uniforme para las tarjetas */
              .cotps-results-grid .products.row{display:flex;flex-wrap:wrap;}
              .cotps-results-grid .product-miniature{display:flex;flex-direction:column;height:100%;margin-bottom:20px;}
              .cotps-results-grid .product-miniature article{display:flex;flex-direction:column;height:100%;}
              .cotps-results-grid .product-description{flex-grow:1;display:flex;flex-direction:column;}
              .cotps-results-grid .thumbnail-container{flex-shrink:0;}
              .cotps-results-grid .product-title{min-height:2.4em;overflow:hidden;}
              .cotps-results-grid .product-price-and-shipping{margin-top:auto;}
              
              /* Asegurar que las imagenes mantengan proporción */
              .cotps-results-grid .thumbnail-container img{width:100%;height:auto;object-fit:contain;}
              .cotps-results-grid .img-fluid{max-width:100%;height:auto;}
              
              /* Estilo para SKU en las tarjetas */
              .cotps-results-grid .product-sku{font-size:12px;color:#666;margin-top:5px;font-weight:normal;}
              
              /* Estrellas de calificación */
              .product-rating{padding:8px 15px;background:#f8f9fa;border-radius:4px;}
              .product-rating .star-content i{text-shadow:0 1px 2px rgba(0,0,0,0.1);}

              .ps-grid .producto{float:left;width:23%;margin:1%;padding:15px;box-sizing:border-box;text-align:center;border:1px solid #ddd;border-radius:4px;background:#fff;transition:box-shadow .3s;cursor:pointer}
              .ps-grid .producto:hover{box-shadow:0 0 10px rgba(0,0,0,.1)}
              .ps-grid .producto img{max-width:100%;height:auto;margin-bottom:10px}
              .ps-grid .product-name{font-size:16px;font-weight:bold;margin-bottom:5px;color:#333;min-height:40px}
              .ps-grid .product-price{font-size:18px;color:#000;font-weight:bold;margin-bottom:5px}
              @media (max-width:1199px){.ps-grid .producto{width:31%}}
              @media (max-width:991px){.ps-grid .producto{width:48%}}
              @media (max-width:767px){.ps-grid .producto{width:98%}}

              /* Mostrar botón de añadir al carrito al hacer hover */
              .product-miniature .product-list-actions,
              .js-product-miniature .product-list-actions,
              article.product-miniature .product-list-actions{
                display:none !important;
                opacity:0;
                visibility:hidden;
                transition:opacity 0.3s ease, visibility 0.3s ease;
              }
              .product-miniature:hover .product-list-actions,
              .js-product-miniature:hover .product-list-actions,
              article.product-miniature:hover .product-list-actions{
                display:block !important;
                opacity:1 !important;
                visibility:visible !important;
              }
              
              /* Estilo para productos sin stock (cuando no se permite pedido fuera de stock) */
              .product-list-actions.product-unavailable button.add-to-cart.disabled,
              .product-list-actions.product-unavailable button.add-to-cart:disabled{
                background-color:#f27a21 !important;
                border-color:#fff !important;
                color:#fff !important;
                cursor:not-allowed !important;
                opacity:0.6;
              }
              .product-list-actions.product-unavailable input[type="number"]:disabled{
                background-color:#f5f5f5;
                cursor:not-allowed;
                opacity:0.6;
              }
              
              .ps-small .producto{display:flex;align-items:center;border-bottom:1px solid #ddd;padding:6px 8px;cursor:pointer;background:#fff}
              .ps-small .producto:hover{background:#f9f9f9}
              .ps-small .producto img{width:50px;height:auto;margin-right:10px}
              .ps-small .product-name{font-size:14px;font-weight:bold;color:#333;margin-bottom:3px}
              .ps-small .product-price,.ps-small .other-info{font-size:12px;font-style:italic;color:#888;margin-bottom:2px}
              .highlight{background:#ffeb3b;font-weight:bold;padding:2px 4px;border-radius:2px;color:#000}
              
              /* ⚡ Animaciones estilo Algolia para búsqueda instantánea */
              @keyframes psSpinnerFade {
                0% { opacity: 0; transform: scale(0.8); }
                100% { opacity: 1; transform: scale(1); }
              }
              @keyframes psResultsFade {
                0% { opacity: 0; transform: translateY(-5px); }
                100% { opacity: 1; transform: translateY(0); }
              }
              .ps-spinner-active {
                animation: psSpinnerFade 0.15s ease-out;
              }
              .ps-results-fade-in {
                animation: psResultsFade 0.2s ease-out;
              }
              .ps-input-searching {
                border-color: #5C9FFF !important;
                box-shadow: 0 0 0 2px rgba(92, 159, 255, 0.2) !important;
              }
              .cotps-search-page.cotps-embedded{
                background:#fff;
                border-radius:12px;
                border:1px solid rgba(0,0,0,0.08);
                box-shadow:0 12px 28px rgba(0,0,0,0.18);
                margin:12px auto;
                max-width:1200px;
                width:100%;
                padding-bottom:10px;
                position:relative;
                z-index:20;
              }
              .cotps-search-page.cotps-embedded .cotps-search-header,
              .cotps-search-page.cotps-embedded .cotps-search-body{
                padding-left:24px;
                padding-right:24px;
              }
              .cotps-search-page.cotps-embedded .cotps-search-header{padding-top:20px;padding-bottom:10px;}
              .cotps-search-page.cotps-embedded .cotps-search-body{padding-top:5px;padding-bottom:20px;max-height:70vh;overflow-y:auto;}
              .cotps-search-page.cotps-embedded .container{width:100%;max-width:100%;padding:0;}
              .cotps-search-page.cotps-embedded h1.page-title{font-size:22px;margin-bottom:6px;}
              .cotps-search-page.cotps-embedded .search-criteria{font-size:14px;margin-bottom:6px;}
              .cotps-search-page.cotps-embedded .products.row{margin:0;}
              .cotps-search-page.cotps-embedded .product-miniature{margin-bottom:18px;}
              @media(max-width:1199px){
                .cotps-search-page.cotps-embedded{max-width:95%;}
              }
              .cotps-search-page.cotps-trigger-only{
                background:transparent;
                border:none;
                box-shadow:none;
                margin:0;
                padding:0;
              }
              .cotps-search-page.cotps-trigger-only .cotps-search-header{
                padding:0;
              }
              .cotps-search-page.cotps-trigger-only .cotps-search-form-wrapper{
                max-width:none;
                margin:0;
                position:static;
                width:100%;
              }
              .cotps-search-page.cotps-trigger-only .cotps-search-body{
                display:none;
              }
              .cotps-fullpage-wrapper{
                width:100%;
                background:transparent; /* dejar que inherit del tema gobierne */
                padding:40px 0 40px; /* se ajustará dinámicamente para no traslapar */
                display:none;
                border-top:1px solid rgba(0,0,0,0.05);
                overflow-anchor:none; /* Prevenir scroll automático */
                position:relative; /* No absoluto para evitar desplazamientos */
              }
              /* Relleno visual bajo el header con el color del tema */
              .cotps-fullpage-wrapper::before{
                content:""; position:absolute; left:0; right:0; top:0; height:var(--cotps-header-gap,0px); background:#132C3A; z-index:0;
              }
              .cotps-fullpage-inner{
                width:100%;
                max-width:1200px;
                margin:0 auto;
                padding:0 15px;
                overflow-anchor:none; /* Prevenir scroll automático */
              }
              /* Evitar que forcemos colores o fondo sobre el header original */
              .cotps-search-page.cotps-embedded-header{background:transparent !important;}
              /* Asegurar que el input incrustado no sobresalga visualmente */
              .cotps-search-page.cotps-embedded-header .ps-input{border:1px solid #ccc !important; box-shadow:none !important;}
                            .cotps-fullpage-wrapper.cotps-visible{display:block;}
                            .cotps-fullpage-wrapper.cotps-header-fullpage-overlay{
                              position:fixed;
                              left:0;
                              right:0;
                              bottom:0;
                              top:var(--cotps-overlay-top,64px);
                              z-index:8;
                              overflow-y:auto;
                              -webkit-overflow-scrolling:touch;
                              padding:0 0 40px;
                              border-top:none;
                            }
                            .cotps-fullpage-wrapper.cotps-header-fullpage-overlay::before{display:none;}
                            .cotps-fullpage-wrapper.cotps-header-fullpage-overlay .cotps-fullpage-inner{
                              background:#fff;
                              border-top:1px solid rgba(0,0,0,0.08);
                              box-shadow:0 8px 24px rgba(0,0,0,0.15);
                              padding:20px 15px 60px;
                            }
                            /* Overlay para resultados cuando el buscador está incrustado en el header (no tapa el header ni la barra) */
                            .cotps-header-overlay{position:fixed;left:0;right:0;top:64px;bottom:0;display:none;background:transparent;z-index:8;border-top:none;overflow-y:auto;-webkit-overflow-scrolling:touch;}
                            .cotps-header-overlay-inner{background:#fff;border-top:1px solid rgba(0,0,0,0.08);box-shadow:0 8px 24px rgba(0,0,0,0.15);}
                            .cotps-header-overlay.cotps-visible{display:block;}
                            .cotps-header-overlay-inner{width:100%;max-width:1200px;margin:0 auto;padding:20px 15px 60px;}
              
              /* ⚡ En modo fullPage NO usar sticky para no tapar el header */
              .cotps-search-page.cotps-trigger-only {
                position:static;
                top:auto;
                z-index:auto;
                background:#fff;
                box-shadow:none;
                margin:0;
                border-bottom:none;
              }
              .cotps-search-page.cotps-trigger-only .cotps-search-header {
                padding:20px 0;
                background:#f8f9fa;
              }
              /* MODO EMBEBIDO EN HEADER */
              .cotps-search-page.cotps-embedded-header{background:transparent;box-shadow:none;border:none;margin:0;padding:0;}
              /* Corregir fondo del header: no sobreescribir color #132C3A del tema */
              #header, header.site-header, header.header{background-color:#132C3A;}
              /* El input no debe introducir fondo blanco ancho que parezca barra flotante */
              .cotps-search-page.cotps-embedded-header .cotps-search-form-wrapper{background:transparent;}
              .cotps-search-page.cotps-embedded-header .ps-input{background:#ffffff;border:1px solid rgba(255,255,255,0.35)!important;color:#132C3A;}
              .cotps-search-page.cotps-embedded-header .ps-input:focus{border-color:#2fb5d2!important;}
              .cotps-search-page.cotps-embedded-header .cotps-search-header{padding:0;background:transparent;}
              .cotps-search-page.cotps-embedded-header .cotps-search-form-wrapper{max-width:100%;margin:0;}
              .cotps-search-page.cotps-embedded-header .ps-input{height:36px;padding:6px 10px 6px 36px;font-size:14px;border:1px solid #ccc !important;box-shadow:none;border-radius:4px;}
              .cotps-search-page.cotps-embedded-header .ps-spinner{left:8px;width:18px;height:18px;}
              .cotps-search-page.cotps-embedded-header .cotps-fullpage-wrapper{padding-top:15px;}
              /* Cuando está en header, no reubicar ni insertar wrapper fuera */
              .cotps-search-page.cotps-embedded-header.cotps-trigger-only{position:static;}
              
              /* Mejorar visibilidad del input */
              .cotps-search-page .ps-input {
                position:relative;
                z-index:100;
                border:2px solid #2fb5d2 !important;
                box-shadow:0 2px 8px rgba(47,181,210,0.15);
              }
              .cotps-search-page .ps-input:focus {
                outline:none;
                border-color:#1a95b5 !important;
                box-shadow:0 4px 12px rgba(47,181,210,0.25);
              }
              
              /* Indicador de resultados */
              .cotps-results-header {
                animation: fadeIn 0.3s ease-in;
              }
              @keyframes fadeIn {
                from { opacity: 0; transform: translateY(-10px); }
                to { opacity: 1; transform: translateY(0); }
              }
              @media(max-width:768px){
                .cotps-fullpage-inner{
                  padding:0 10px;
                }
              }
              
              /* ⚡ SOPORTE PARA VIDEOS EN PRODUCTOS */
              .product-video {
                width: 100%;
                height: auto;
                object-fit: contain;
                background: transparent;
              }
              .thumbnail-container video.product-video {
                max-width: 100%;
                display: block;
                transition: opacity 0.3s ease;
              }
              /* Poster visible mientras carga el video */
              .thumbnail-container .thumbnail {
                position: relative;
              }
              .thumbnail-container video[poster] {
                object-fit: contain;
              }
              .ps-small .producto video {
                max-width: 50px;
                height: auto;
                object-fit: cover;
              }
              .reseller-pricing{
                display:flex;
                align-items:center;
                gap:8px;
                flex-wrap:wrap;
              }
              .reseller-pricing .original-price{
                color:#777;
                text-decoration:line-through;
                font-size:14px;
              }
              .reseller-pricing .reseller-price{
                color:#e74c3c;
                font-weight:700;
                font-size:20px;
              }
              .reseller-pricing .discount-badge{
                background:#e74c3c;
                color:#fff;
                padding:2px 6px;
                border-radius:4px;
                font-size:11px;
              }
              .ps-small .reseller-pricing .reseller-price{font-size:16px;}
              .ps-small .reseller-pricing .original-price{font-size:12px;}
            