/* Header sticky en capa superior (Ordenador y Móvil, 0 ms JS) */
    header.elementor-location-header,
    .elementor-8712 {
        position: sticky !important;
        top: 0 !important;
        z-index: 10001 !important;
    }
    body.admin-bar header.elementor-location-header,
    body.admin-bar .elementor-8712 {
        top: var(--wp-admin--admin-bar--height, 32px) !important;
    }
    @media (max-width: 782px) {
        body.admin-bar header.elementor-location-header,
        body.admin-bar .elementor-8712 {
            top: 46px !important;
        }
    }
    @media (max-width: 600px) {
        body.admin-bar header.elementor-location-header,
        body.admin-bar .elementor-8712 {
            top: 0 !important;
        }
    }
    .elementor-element-e120301,
    .elementor-element-da0c213,
    .elementor-element-180ca9a {
        position: relative !important;
        z-index: 10001 !important;
    }

    /* Menú hamburguesa móvil y drawer deslizante (prioridad sobre icono de búsqueda) */
    .elementor-element-2bba6fd {
        position: relative !important;
        z-index: 10005 !important;
    }
    .elementor-element-2bba6fd.etheme-elementor-off-canvas--opened,
    .elementor-element-2bba6fd.etheme-elementor-off-canvas--active,
    .elementor-element-2bba6fd .etheme-elementor-off-canvas__container,
    .elementor-element-2bba6fd .etheme-elementor-off-canvas__main,
    .etheme-elementor-off-canvas__container,
    .etheme-elementor-off-canvas__main {
        z-index: 999999 !important;
    }

    /* Ocultar el icono de búsqueda cuando el menú móvil desplegable esté abierto */
    body.etheme-offcanvas-open .elementor-element-3490f59,
    body.etheme-elementor-off-canvas--shown .elementor-element-3490f59,
    body:has(.etheme-elementor-off-canvas--opened) .elementor-element-3490f59,
    body:has(.etheme-elementor-off-canvas__container--opened) .elementor-element-3490f59,
    .elementor-element-2bba6fd.etheme-elementor-off-canvas--opened ~ .elementor-element-3490f59,
    .elementor-element-2bba6fd.etheme-elementor-off-canvas--active ~ .elementor-element-3490f59 {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }

    /* Botón de búsqueda interactivo y prioritario */
    .elementor-element-3490f59 .etheme-modal-popup-button,
    .elementor-element-f7dcd93 .etheme-modal-popup-button {
        position: relative !important;
        z-index: 10002 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    /* 1. Modal contenedor: Posición fija exacta a pantalla completa */
    .etheme-modal-popup-content-wrapper {
        position: fixed !important;
        top: var(--keepfit-header-bottom, 175px) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh - var(--keepfit-header-bottom, 175px)) !important;
        align-items: flex-start !important;
        justify-content: center !important;
        z-index: 99999 !important;
    }
    
    .etheme-modal-popup-content-wrapper.keepfit-popup-open {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 2. Tarjeta blanca: Sube hasta el menú, ancho 100% de la pantalla */
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-content {
        height: auto !important;
        min-height: auto !important;
        max-height: calc(100vh - var(--keepfit-header-bottom, 175px) - 10px) !important;
        background-color: #ffffff !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16) !important;
        padding: 40px 30px 30px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        overflow-y: auto !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        position: relative !important;
    }
    
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-inner {
        width: 100% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
    }

    /* 3. Ocultar botón BUSCAR viejo y elementos no deseados */
    .etheme-modal-popup-content-wrapper .etheme-search-form-button-wrapper,
    .etheme-modal-popup-content-wrapper .etheme-search-form-submit,
    .etheme-modal-popup-content-wrapper .etheme-search-form-heading,
    .etheme-modal-popup-content-wrapper .etheme-search-trending-searches-wrapper {
        display: none !important;
    }

    /* 4. Estructura vertical centrada para input y subtítulo (FLEX-SHRINK: 0 para evitar saltos) */
    .etheme-modal-popup-content-wrapper .etheme-search-form {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .etheme-modal-popup-content-wrapper .etheme-search-input-form-wrapper-before {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        margin-top: 0 !important;
        padding-top: 5px !important;
    }

    .etheme-modal-popup-content-wrapper .etheme-search-input-form-wrapper {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 820px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .etheme-modal-popup-content-wrapper .etheme-search-input-wrapper {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }

    /* 5. Campo de búsqueda (Input) */
    .etheme-modal-popup-content-wrapper .etheme-search-form-input {
        border: none !important;
        outline: none !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 38px !important;
        font-weight: 700 !important;
        color: #06191E !important;
        caret-color: #0A5567 !important;
        height: auto !important;
        line-height: 1.25 !important;
        padding: 8px 45px !important;
        width: 100% !important;
    }

    .etheme-modal-popup-content-wrapper .etheme-search-form-input::placeholder {
        color: #B2BEC5 !important;
        font-weight: 700 !important;
        font-style: normal !important;
        text-align: center !important;
        opacity: 0.8 !important;
    }

    /* 6. Subtítulo centrado debajo del input */
    .etheme-modal-popup-content-wrapper .etheme-search-input-form-wrapper::after {
        content: "Comienza a escribir para ver los productos que estás buscando." !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        color: #6C7A82 !important;
        margin-top: 14px !important;
        border-top: 1px solid #ECEFF1 !important;
        padding-top: 14px !important;
        letter-spacing: 0.2px !important;
        flex-shrink: 0 !important;
    }

    /* 7. Botón cerrar "X" prominente, táctil y 100% interactivo */
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-close {
        position: absolute !important;
        top: 18px !important;
        right: 22px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.05) !important;
        color: #222222 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 100005 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-close svg {
        width: 20px !important;
        height: 20px !important;
        pointer-events: none !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-close:hover,
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-close:active {
        background: rgba(10, 85, 103, 0.12) !important;
        color: #0A5567 !important;
        transform: rotate(90deg) !important;
    }

    /* 8. Botón limpiar texto */
    .etheme-modal-popup-content-wrapper .etheme-search-form-clear {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        cursor: pointer !important;
        color: #A0AAB0 !important;
        font-size: 18px !important;
        transition: color 0.2s ease !important;
        z-index: 10 !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-form-clear:hover {
        color: #06191E !important;
    }

    /* 9. Resultados de búsqueda nativos KeepFit */
    .keepfit-search-results {
        width: 100% !important;
        max-width: 820px !important;
        margin: 18px auto 0 !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid #ECEFF1 !important;
        max-height: 420px !important;
        overflow-y: auto !important;
        display: none;
        flex-direction: column !important;
        z-index: 100000 !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .keepfit-search-results.has-results {
        display: flex !important;
    }

    .keepfit-search-item {
        display: flex !important;
        align-items: center !important;
        padding: 12px 18px !important;
        border-bottom: 1px solid #F3F5F7 !important;
        text-decoration: none !important;
        transition: background-color 0.18s ease !important;
        gap: 15px !important;
        color: inherit !important;
    }

    .keepfit-search-item:last-child {
        border-bottom: none !important;
    }

    .keepfit-search-item:hover {
        background-color: #F8FAFC !important;
    }

    .keepfit-search-item-img {
        width: 52px !important;
        height: 52px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        background: #FAFBFB !important;
        flex-shrink: 0 !important;
    }

    .keepfit-search-item-placeholder {
        background: #ECEFF1 !important;
    }

    .keepfit-search-item-info {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .keepfit-search-item-title {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #06191E !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .keepfit-search-item-title strong {
        color: #0A5567 !important;
        font-weight: 700 !important;
    }

    .keepfit-search-item-price {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 13px !important;
        color: #0A5567 !important;
        font-weight: 700 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .keepfit-search-item-price del {
        color: #90A4AE !important;
        font-weight: 400 !important;
        font-size: 12px !important;
    }

    .keepfit-search-item-price ins {
        text-decoration: none !important;
        color: #0A5567 !important;
    }

    .keepfit-search-item-price .pro-ahorro-wrap {
        display: none !important;
    }

    .keepfit-search-view-all {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 13px 20px !important;
        background: #F8FAFB !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0A5567 !important;
        text-decoration: none !important;
        border-top: 1px solid #ECEFF1 !important;
        transition: background 0.2s ease, color 0.2s ease !important;
    }

    .keepfit-search-view-all:hover {
        background: #0A5567 !important;
        color: #FFFFFF !important;
    }

    .keepfit-search-loading {
        padding: 22px !important;
        text-align: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 13px !important;
        color: #78909C !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    @keyframes keepfit-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    .keepfit-spinner {
        animation: keepfit-spin 0.75s linear infinite !important;
        color: #0A5567 !important;
    }

    .keepfit-search-no-results {
        padding: 25px 20px !important;
        text-align: center !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 14px !important;
        color: #546E7A !important;
    }

    /* 10. Adaptación y bloqueo dimensional estricto del icono de búsqueda móvil (3490f59 al lado del menú) */
    /* Este bloqueo rígido (24px x 24px) previene cualquier flash o salto brusco de tamaño (FOUC) al cargar en incógnito */
    .elementor-element-3490f59 {
        margin: 0 0 0 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        padding: 0 !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 10002 !important;
    }
    .elementor-element-3490f59 .elementor-widget-container,
    .elementor-element-3490f59 .elementor-button-wrapper {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }
    .elementor-element-3490f59 .etheme-modal-popup-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        font-size: 21px !important;
        color: #FFFFFF !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        border: none !important;
        background: transparent !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 10002 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    .elementor-element-3490f59 .etheme-modal-popup-button:hover {
        color: #48BDCD !important;
    }
    .elementor-element-3490f59 .etheme-modal-popup-button i,
    .elementor-element-3490f59 .etheme-modal-popup-button .et-icon,
    .elementor-element-3490f59 .etheme-modal-popup-button svg {
        font-size: 21px !important;
        width: 21px !important;
        min-width: 21px !important;
        max-width: 21px !important;
        height: 21px !important;
        min-height: 21px !important;
        max-height: 21px !important;
        line-height: 21px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }
    .elementor-element-3490f59 .etheme-modal-popup-button i:before,
    .elementor-element-3490f59 .etheme-modal-popup-button .et-icon:before {
        font-size: 21px !important;
        line-height: 1 !important;
        display: inline-block !important;
    }

    /* 11. Ocultar WhatsApp flotante mientras el buscador esté abierto */
    body.etheme-elementor-modal-popup--shown .whatsapp-floating,
    body.etheme-elementor-modal-popup--shown [class*="whatsapp-button"],
    body.etheme-elementor-modal-popup--shown [class*="whatsapp-floating"],
    body:has(.keepfit-popup-open) .whatsapp-floating,
    body:has(.keepfit-popup-open) [class*="whatsapp-button"],
    body:has(.keepfit-popup-open) [class*="whatsapp-floating"],
    html.keepfit-search-active .whatsapp-floating,
    html.keepfit-search-active [class*="whatsapp-button"],
    html.keepfit-search-active [class*="whatsapp-floating"] {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 12. Responsivo para Móviles */
    @media (max-width: 767px) {
        .elementor-element-180ca9a {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            flex-wrap: nowrap !important;
            width: auto !important;
        }
        .etheme-modal-popup-content-wrapper {
            top: var(--keepfit-header-bottom, 107px) !important;
            height: calc(100vh - var(--keepfit-header-bottom, 107px)) !important;
        }
        .etheme-modal-popup-content-wrapper .etheme-modal-popup-content {
            padding: 32px 16px 20px !important;
            width: 100% !important;
            border-radius: 0 0 16px 16px !important;
            max-height: calc(100vh - var(--keepfit-header-bottom, 107px) - 10px) !important;
        }
        .etheme-modal-popup-content-wrapper .etheme-search-form-input {
            font-size: 22px !important;
            padding: 6px 30px !important;
        }
        .etheme-modal-popup-content-wrapper .etheme-search-input-form-wrapper::after {
            font-size: 12px !important;
            margin-top: 12px !important;
            padding-top: 12px !important;
        }
        .etheme-modal-popup-content-wrapper .etheme-modal-popup-close {
            top: 12px !important;
            right: 12px !important;
            width: 38px !important;
            height: 38px !important;
        }
        .etheme-modal-popup-content-wrapper .etheme-modal-popup-close svg {
            width: 17px !important;
            height: 17px !important;
        }
        .keepfit-search-item-title {
            font-size: 13px !important;
        }
        .keepfit-search-item-img {
            width: 44px !important;
            height: 44px !important;
        }
    }

/* keepfit-hide-dup-results */
.keepfit-search-results{display:none!important;}


/* keepfit-search-ux-v2 */
/* 1. Icono lupa móvil y escritorio siempre blanco sobre header negro */
.elementor-element-3490f59 .etheme-modal-popup-button,
.elementor-element-3490f59 .etheme-modal-popup-button i,
.elementor-element-3490f59 .etheme-modal-popup-button .et-icon,
.elementor-element-3490f59 .etheme-modal-popup-button svg,
.elementor-element-f7dcd93 .etheme-modal-popup-button,
.elementor-element-f7dcd93 .etheme-modal-popup-button svg {
    color: #FFFFFF !important;
    fill: currentColor !important;
}
.elementor-element-3490f59 .etheme-modal-popup-button:hover,
.elementor-element-3490f59 .etheme-modal-popup-button:hover i,
.elementor-element-3490f59 .etheme-modal-popup-button:hover svg,
.elementor-element-f7dcd93 .etheme-modal-popup-button:hover,
.elementor-element-f7dcd93 .etheme-modal-popup-button:hover svg {
    color: #48BDCD !important;
    fill: currentColor !important;
}

/* 2. Contenedor único de scroll (sin scrolls anidados bloqueados) */
.etheme-modal-popup-content-wrapper {
    overflow: hidden !important;
}
.etheme-modal-popup-content-wrapper .etheme-modal-popup-content {
    max-height: calc(100dvh - var(--keepfit-header-bottom, 175px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 28px 28px 26px !important;
}
.etheme-modal-popup-content-wrapper .etheme-modal-popup-inner {
    max-width: 1280px !important;
    overflow: visible !important;
}

/* Ocultar subtítulo cuando ya hay resultados para ganar espacio vertical */
.etheme-modal-popup-content-wrapper .etheme-search-form.searching .etheme-search-input-form-wrapper::after {
    display: none !important;
}

/* 3. Eliminar cualquier hover oscuro/botón "SELECCIONA OPCIONES" sobre las imágenes */
.etheme-modal-popup-content-wrapper .footer-product,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results footer,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .add_to_cart_button,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-type-variable {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 4. Resultados en Ordenador: 1 sola fila horizontal (máx 5 productos, tamaño mayor, sin hover) */
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results {
    width: 100% !important;
    max-width: 1240px !important;
    position: relative !important;
    margin: 18px auto 0 !important;
    overflow: visible !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestions {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    padding: 6px 4px 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestions[style*="display: none"] {
    display: none !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 14px 12px !important;
    border-radius: 14px !important;
    background: #FFFFFF !important;
    border: 1px solid #ECEFF1 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion:hover,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion.autocomplete-selected {
    background: #FFFFFF !important;
    border-color: #DCE5E9 !important;
    box-shadow: none !important;
    transform: none !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-item,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-item-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    background: transparent !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-image-wrapper {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Imagen más grande en Ordenador sin efectos hover */
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion img {
    width: 100% !important;
    max-width: 175px !important;
    height: 165px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-details,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-item-info {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-item-title,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    color: #06191E !important;
    font-weight: 600 !important;
    margin: 0 !important;
    min-height: 36px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-title a {
    color: #06191E !important;
    text-decoration: none !important;
}

/* 5. Bloque de precios idéntico a la referencia (P. regular tachado + pill oferta + precio + badge Ahorras) */
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 2px 0 0 !important;
    line-height: 1.2 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-form-item-price .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-form-item-price del {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price del::before {
    content: "P. regular: " !important;
    font-size: 11.5px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: #90A4AE !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price del .amount,
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price del bdi {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #0A5567 !important;
    text-decoration: line-through !important;
    text-decoration-color: #0A5567 !important;
}

.etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    background: transparent !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins::before {
    content: "Precio oferta:" !important;
    display: inline-block !important;
    background: #06191E !important;
    color: #FFFFFF !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins .amount,
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins bdi {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #06191E !important;
    text-decoration: none !important;
}

/* Producto sin oferta (solo precio normal) */
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price > .amount {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0A5567 !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price > .amount::before {
    content: "Precio:" !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    color: #90A4AE !important;
}

/* Badge verde de ahorro (Ahorras S/ XX (XX%)) */
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price .pro-ahorro-wrap {
    display: block !important;
    margin-top: 2px !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form-item-price .pro-ahorro-badge {
    display: inline-block !important;
    background: #E8F5E9 !important;
    color: #1B7A3E !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    line-height: 1.25 !important;
}

/* 6. Botón inferior "Ver Todos los resultados" */
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-no-suggestion,
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-more,
.etheme-modal-popup-content-wrapper .keepfit-search-more-bar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 0 6px !important;
}

.keepfit-search-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 28px !important;
    background: #06191E !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.keepfit-search-more-btn:hover {
    background: #0A5567 !important;
    color: #FFFFFF !important;
}

/* 7. Versión Móvil: 2 filas horizontales deslizables o 2 columnas con scroll vertical fluido (máx 6 productos) */
@media (max-width: 767px) {
    .etheme-modal-popup-content-wrapper {
        top: var(--keepfit-header-bottom, 107px) !important;
        height: calc(100dvh - var(--keepfit-header-bottom, 107px)) !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-content {
        padding: 44px 12px 24px !important;
        height: 100% !important;
        max-height: calc(100dvh - var(--keepfit-header-bottom, 107px)) !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-modal-popup-close {
        top: 8px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-form-input {
        font-size: 22px !important;
        padding: 4px 36px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-form-clear {
        right: 8px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results {
        margin-top: 12px !important;
    }
    /* Móvil: 2 columnas x hasta 3 filas (máx 6 productos) con scroll vertical limpio + botón abajo */
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 4px 0 12px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion {
        padding: 10px 8px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results .autocomplete-suggestion img {
        max-width: 110px !important;
        height: 105px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results .etheme-search-form-item-title,
    .etheme-modal-popup-content-wrapper .etheme-search-ajax-results .product-title {
        font-size: 12px !important;
        min-height: 32px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins .amount,
    .etheme-modal-popup-content-wrapper .etheme-search-form-item-price ins bdi,
    .etheme-modal-popup-content-wrapper .etheme-search-form-item-price > .amount {
        font-size: 16px !important;
    }
    .etheme-modal-popup-content-wrapper .etheme-search-form-item-price .pro-ahorro-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .etheme-modal-popup-content-wrapper .keepfit-search-more-bar {
        padding: 14px 0 28px !important;
    }
}
/* keepfit-fix-mobile-gap */
.etheme-modal-popup-content-wrapper .etheme-modal-popup-inner,
.etheme-modal-popup-content-wrapper .etheme-modal-popup-inner:has(.etheme-search-form[type=popup]) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-form,
.etheme-modal-popup-content-wrapper .etheme-search-form[type=popup] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 0 !important;
    grid-gap: 0 !important;
}
.etheme-modal-popup-content-wrapper .etheme-search-ajax-results {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 12px auto 0 !important;
    padding: 0 !important;
}