/* Popup Drag (Mobile) */
@media (max-width: 1024px) {
    .mfp-content .wd-popup.mongo-draggable-popup { border-radius: 20px 20px 0 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; touch-action: pan-y; display: block !important; }
    .wd-drag-handle { height: 45px; position: sticky; top: 0; background-color: #ffffff; z-index: 99999; display: flex; justify-content: center; align-items: center; border-radius: 20px 20px 0 0; touch-action: none; box-sizing: border-box; }
    .wd-drag-handle::after { content: ""; width: 45px; height: 5px; background: rgba(0,0,0,0.15); border-radius: 5px; transition: background-color 0.2s ease, width 0.2s ease; }
    .wd-drag-handle:active::after, .wd-drag-handle.is-dragging::after { background-color: var(--wd-primary-color, #be0d57); width: 55px; }
    .mfp-content .wd-popup.mongo-draggable-popup > .mfp-close { top: 45px !important; }
}


/* ============================================================
   SINGLE PRODUCT
   ============================================================ */


/* ============================================================
   POPUP VALORACIONES EN HOVER Y ENLACE VALORACIONES
   ============================================================ */

.woocommerce-review-link {
    font-size: 0.8rem;
    font-weight: bold;
}

/* ── Tooltip desglose de valoraciones ─────────────────────── */

.woocommerce-product-rating {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mrt-wrap {
    position: static;
    display: inline-flex;
    align-items: var(--wd-center);
}

.mrt-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 999;
    min-width: 260px;
    background: var(--color-white);
    border: 1px solid var(--brdcolor-gray-300);
    border-radius: var(--wd-brd-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 20px 25px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.mrt-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 10px;
    height: 10px;
    background: var(--color-white);
    border-top: 1px solid var(--brdcolor-gray-300);
    border-left: 1px solid var(--brdcolor-gray-300);
    transform: rotate(45deg);
}

.woocommerce-product-rating:hover .mrt-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mrt-heading {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    white-space: normal;
    line-height: 1.4;
}

.mrt-row {
    display: grid;
    grid-template-columns: 72px 1fr 36px;
    align-items: var(--wd-center);
    gap: 8px;
    margin-bottom: 5px;
}
.mrt-row:last-child { margin-bottom: 0; }

.mrt-label {
    font-size: 12px;
    color: #555;
    text-align: right;
}

.mrt-track {
    height: 7px;
    background: #f0f0f2;
    border-radius: 4px;
    overflow: hidden;
}

.mrt-bar {
    display: block;
    height: 100%;
    border-radius: 4px;
}

.mrt-count {
    font-size: 12px;
    color: #888;
    text-align: right;
}

/* Solo en desktop — en móvil no hay hover */
@media (max-width: 768px) {
    .mrt-tooltip {
        display: none;
    }
}




/*Tamaño del producto sobre precio*/
.mongo-tamano-wrapper {
    line-height:1.3;
}
div.simple-product-tamano .tamano-label, 
div.variable-product-tamano .tamano-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--color-gray-500);
}


.contenedor-info-producto {
    display: flex;
    align-items: var(--wd-center);
    flex-wrap: wrap;
    margin-top: 10px;
    column-gap: 15px;
    line-height: 1.15;
}

.categoria-paso,
.coleccion-paso,
.spf-badge {
    display: inline-flex;
    align-items: var(--wd-center);
    font-size: 0.8rem;
}

.categoria-paso a,
.coleccion-paso a, 
.spf-badge span {
    padding-bottom: 3px;
    font-weight: 300;
    font-size: var(--wd-text-font-size);
    color: var(--color-gray-900);
    transition: color .2s ease;
}

.categoria-paso a:hover,
.coleccion-paso a:hover {
    color: var(--wd-primary-color);
}

/*STOCK BAR INFO*/
.single-product .wd-progress-bar .stock-info {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ============================================================
   TABLA DE ATRIBUTOS
   ============================================================ */
body.single-product .shop_attributes tr {
    align-items: flex-start;
}

body.single-product .product-image-summary .shop_attributes {
    margin-bottom: 35px !important;
}

body.single-product .wd-reset-var {
    display: none !important;
}




/* ==========================================================================
   SHORTCODE: Lista de Atributos Vertical (Estilo WoodMart - Consolidado)
   ========================================================================== */

/* 1. Reset de la lista (Mobile First) */
.mongo-vertical-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Diseño base de las filas (1 columna en móvil) */
.mongo-vertical-list li {
    display: flex;
    justify-content: space-between;
    align-items: var(--wd-center);
    padding: 12px 15px; /* Ampliado a 12px para mejorar el touch-target en móviles */
    border-bottom: 1px solid var(--brdcolor-gray-200);
    margin: 0 !important;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Efecto hover sutil para la fila completa */
.mongo-vertical-list li:hover {
    background-color: #fafafa;
}

/* Limpieza visual en móvil: sin borde inferior en el último elemento */
.mongo-vertical-list li:last-child {
    border-bottom: none;
}

/* 3. Tipografía y enlaces (Atributo a la izquierda) */
.mongo-vertical-list .mongo-term-link {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mongo-vertical-list .mongo-term-link:hover {
    color: var(--wd-primary-color); 
}



/* Ajustes tipográficos para pantallas pequeñas */
@media (max-width: 1024px) {
    .mongo-vertical-list .mongo-term-link {
        font-size: 0.95rem;
    }     
}

/* 4. Icono Tooltip (.wd-hint a la derecha) */
.mongo-vertical-list .wd-hint {
    cursor: help;
    color: var(--wd-primary-color); 
    opacity: 0.7; /* Opacidad reducida en reposo para no competir con el texto */
    font-size: 16px;
    margin-left: 15px;
    display: inline-flex;
    align-items: var(--wd-center);
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
}

/* Pseudo-elemento nativo de WoodMart para el contenedor del icono */
.mongo-vertical-list .wd-hint:before {
    width: 2.45em;
    height: 2.45em;
    font-size: var(--wd-hint-size, 0.9em);
}

/* Interacción: Foco de atención al pasar el ratón */
.mongo-vertical-list .wd-hint:hover,
.mongo-vertical-list .wd-hint:focus {
    opacity: 1;
    transform: scale(1.15);
}

/* Accesibilidad estricta para navegación por teclado (a11y) */
.mongo-vertical-list .wd-hint:focus-visible {
    outline: 2px solid #be0d57;
    outline-offset: 2px;
    border-radius: 50%;
}

/* 5. Adaptación para Tablet y Desktop (>= 768px): 2 Columnas */
/*@media (min-width: 768px) {
    .mongo-vertical-list ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
    }
    .mongo-vertical-list li:last-child {
        border-bottom: 1px solid var(--brdcolor-gray-200);
    }
}*/





/* ==========================================================================
   Contenedor de Botones de Popups - Scroll Reactivo en Extremos
   ========================================================================== */

.mongo-scroll-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 10px;
    --mongo-fade-width: 70px;
    
    /* Variables dinámicas inyectadas por JS para interpolación suave */
    --arrow-left-opacity: 0;
    --arrow-right-opacity: 0;
    --fade-left-opacity: 0;
    --fade-right-opacity: 0;
}

.mongo-scroll-wrapper::before,
.mongo-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--mongo-fade-width);
    z-index: 2;
    pointer-events: none;
    /* La transición de opacidad ahora es gestionada matemáticamente por JS (WPO) */
}

.mongo-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 35%, rgba(255,255,255,0) 100%);
    opacity: var(--fade-left-opacity);
}

.mongo-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 35%, rgba(255,255,255,0) 100%);
    opacity: var(--fade-right-opacity);
}

.contenedor-botones-popups {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 5px 0 !important;
    margin: 0 !important;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contenedor-botones-popups::-webkit-scrollbar {
    display: none;
}

.contenedor-botones-popups .wp-block-wd-button {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}

.contenedor-botones-popups .wp-block-wd-button a {
    padding: 8px 16px !important;
    font-size: 12px !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mongo-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: #333333;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 100%;
    display: flex; /* Siempre en DOM, JS controla la opacidad y puntero */
    align-items: var(--wd-center);
    justify-content: var(--wd-center);
    outline: none;
    transition: color 0.3s ease; /* Solo el hover retiene transición CSS */
}

.mongo-scroll-arrow svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    stroke: currentColor;
}

.mongo-scroll-arrow:hover {
    color: var(--wd-primary-color);
}

/* Opacidad vinculada directamente a las variables de JS */
.mongo-scroll-arrow.left-arrow { 
    left: 0; 
    opacity: var(--arrow-left-opacity);
}

.mongo-scroll-arrow.right-arrow { 
    right: 0; 
    opacity: var(--arrow-right-opacity);
}

/*Popup: Es para ti (Shortcode Content)*/
.mongo-es-para-ti-wrap {
    text-align: var(--wd-center);
    padding: 10px 0;
}

.mongo-es-para-ti-desc {
    font-size: 14px;
    color: #555555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.mongo-btn-primary {
    display: inline-flex;
    align-items: var(--wd-center);
    justify-content: var(--wd-center);
    background-color: var(--wd-primary-color);
    color: var(--color-white) !important;
    padding: 12px 24px;
    border-radius: var(--wd-brd-radius);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

.mongo-btn-primary:hover {
    background-color: #a00b49;
    color: var(--color-white) !important;
}

.mongo-btn-primary:active {
    transform: scale(0.98);
}

/* ==========================================================
   SISTEMA DE DISEÑO: TARJETAS DE ATRIBUTOS (Mongo.es)
   Gobierna: [rutina_info], [mongo_tipo_piel], [mongo_preocupaciones]
   ========================================================== */

.mongo-atributo-card {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    background-color: #f6f6f6;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 15px;
    margin-block: 0 15px !important;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.mongo-atributo-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mongo-atributo-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #9aa0a6;
}

.mongo-atributo-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    font-family: var(--wd-text-font), sans-serif;
    line-height: 1.3;
    margin-right: 20px;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

@media (max-width: 1024px) {
    .mongo-atributo-value {
        font-size: 0.8rem;
    }
}

/* 
 * Wrapper para uno o múltiples iconos (gap vital para rutina doble)
 */
.mongo-atributo-icon-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* 
 * Estructura circular aplicada directamente al <svg> para optimizar el DOM
 */
.mongo-atributo-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #888888;
    padding: 8px; /* Reduce el viewBox interno sin deformar */
    box-sizing: border-box;
    flex-shrink: 0;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* 
 * Microinteracción: Hover sobre toda la tarjeta
 * Activa tu color primario en el/los iconos y ensombrece el fondo
 */
.mongo-atributo-card:hover {
    background-color: #efefef;
}

.mongo-atributo-card:hover .mongo-atributo-icon {
    border-color: var(--wd-primary-color, #be0d57);
    color: var(--wd-primary-color, #be0d57);
    transform: scale(1.05);
}

/* Mantengo esta clase externa que tenías adjunta a la media query tipográfica */
.mongo-box-recomendado {
    font-size: var(--wd-text-font-size);
    padding: 22px 22px 22px;
    border: 1px solid var(--brdcolor-gray-300, #e8e8e8);
    border-radius: 20px;
}
.mongo-box-recomendado p,
.mongo-box-recomendado ul {
    font-size: 0.95rem;
    color: #444548;
    line-height: 1.6;
    margin: 0 0 14px;
    /* font-weight: 400; */
    font-style: normal;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;  
}

/* 
 * Especificidad alta: Apuntamos EXCLUSIVAMENTE a la etiqueta que está 
 * dentro de .mongo-box-recomendado. Esto aisla el estilo del resto del DOM.
 */
.mongo-box-recomendado .mongo-label-titular {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #9aa0a6;
    margin-bottom: 15px; /* Margen exacto solicitado, aplicado de forma aislada */
    font-family: var(--wd-title-font), sans-serif;
}





/*POPUPS DE BOTONERA*/
/*ANIMACIÓN DE DERECHA A IZQUIERDA*/
@media (min-width: 1025px) {
    /* Aplicar solo si el contenedor tiene dentro el ID específico */
    .wd-popup-wrap.wd-animation-slide-from-bottom:has(#popup-13218, #popup-14566, #popup-14542, #popup-13220, #popup-10474) {
        
        /* 1. Estado inicial (fuera de pantalla a la derecha) */
        &.wd-animation-ready:not(.wd-in) {
            --wd-transform-translateY: 0 !important;
            --wd-transform-translateX: 500px !important;
            opacity: 0;
        }

        /* 2. Estado entrante (posicion final) */
        &.wd-in {
            --wd-transform-translateX: 0 !important;
            --wd-transform-translateY: 0 !important;
            opacity: 1;
        }

        /* 3. Estado saliente (hacia la derecha) */
        &.wd-out {
            --wd-transform-translateX: 500px !important;
            --wd-transform-translateY: 0 !important;
            opacity: 0;
        }
    }
}

/*BARRA DE SCROLL MÁS ANCHA*/
/* Ancho de 10px para los popups */
#popup-13218::-webkit-scrollbar, #popup-13218 .wd-popup-inner::-webkit-scrollbar, #popup-13218 .wd-scroll-content::-webkit-scrollbar,
#popup-14566::-webkit-scrollbar, #popup-14566 .wd-popup-inner::-webkit-scrollbar, #popup-14566 .wd-scroll-content::-webkit-scrollbar,
#popup-14542::-webkit-scrollbar, #popup-14542 .wd-popup-inner::-webkit-scrollbar, #popup-14542 .wd-scroll-content::-webkit-scrollbar,
#popup-13220::-webkit-scrollbar, #popup-13220 .wd-popup-inner::-webkit-scrollbar, #popup-13220 .wd-scroll-content::-webkit-scrollbar,
#popup-10474::-webkit-scrollbar, #popup-10474 .wd-popup-inner::-webkit-scrollbar, #popup-10474 .wd-scroll-content::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

/* Deslizador con bordes totalmente redondeados */
#popup-13218::-webkit-scrollbar-thumb, #popup-13218 .wd-popup-inner::-webkit-scrollbar-thumb, #popup-13218 .wd-scroll-content::-webkit-scrollbar-thumb,
#popup-14566::-webkit-scrollbar-thumb, #popup-14566 .wd-popup-inner::-webkit-scrollbar-thumb, #popup-14566 .wd-scroll-content::-webkit-scrollbar-thumb,
#popup-14542::-webkit-scrollbar-thumb, #popup-14542 .wd-popup-inner::-webkit-scrollbar-thumb, #popup-14542 .wd-scroll-content::-webkit-scrollbar-thumb,
#popup-13220::-webkit-scrollbar-thumb, #popup-13220 .wd-popup-inner::-webkit-scrollbar-thumb, #popup-13220 .wd-scroll-content::-webkit-scrollbar-thumb,
#popup-10474::-webkit-scrollbar-thumb, #popup-10474 .wd-popup-inner::-webkit-scrollbar-thumb, #popup-10474 .wd-scroll-content::-webkit-scrollbar-thumb {
    border-radius: 100px !important;
}



/* ============================================================
   ADD TO CART BUTTON
   ============================================================ */
/*Quantity buttons*/
div.quantity .btn {
    --btn-padding: 0 15px;
}


button.single_add_to_cart_button.button.disabled.wc-variation-is-unavailable,
button.single_add_to_cart_button.button.disabled.wc-variation-is-unavailable:before {
    background: #f8e7e7;
    color: #bb2708;
    transition: none;
}


/* ============================================================
   STICKY ADD TO CART
   ============================================================ */

/* Desktop */
@media (min-width: 1024px) {
    .wd-sticky-btn.wd-sticky-btn-shown {
        position: fixed;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        max-width: 1180px;
        height: 70px;
        bottom: 20px;
        background-color: rgba(255, 255, 255, 0.96);
        border-radius: 50px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(0, 0, 0, 0.04);
        backdrop-filter: saturate(180%) blur(10px);
        z-index: 340;
    }

    .wd-sticky-btn-container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .wd-sticky-btn-thumbnail img {
        width: 42px;
        height: auto;
        opacity: 0.85;
    }

    .wd-sticky-btn-info .wd-entities-title {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
        margin: 0;
        opacity: 0.85;
    }

    .wd-sticky-btn-cart .price {
        font-size: 1.2rem !important;
        font-weight: 600;
    }

    .wd-sticky-btn-cart .price del {
        font-size: 1rem;
        opacity: 0.4;
        margin-right: 6px;
    }

    .wd-sticky-btn-cart .price ins {
        text-decoration: none;
    }

    .wd-sticky-btn-cart .stock {
        font-size: 0.8rem !important;
        opacity: 0.65;
    }

    .wd-sticky-btn-cart .single_add_to_cart_button {
        font-size: 0.75rem !important;
    }

    .wd-sticky-btn .wd-wishlist-btn {
        opacity: 0.7;
        transform: scale(0.9);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .wd-sticky-btn .wd-wishlist-btn:hover {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .wd-sticky-btn .wd-sticky-btn-cart form.cart .single_add_to_cart_button, 
    .wd-sticky-btn .wd-sticky-btn-cart a {
        height: 50px;
    }
}


/* ============================================================
   ESTIMATED DELIVERY
   ============================================================ */
.outofstock .estimacion-envio {
    display: none;
}


/* ============================================================
   ADVERTENCIAS
   ============================================================ */
.advertencias {
    margin: 0;
}

.advertencias ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advertencias li.advertencia-ingrediente {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--brdcolor-gray-300);
    font-size: 0.95rem;
    line-height: 1.5;
}

.advertencias li.advertencia-ingrediente:last-child {
    border-bottom: 0;
}

.advertencias li.advertencia-ingrediente::before {
    content: "\f107";
    font-family: "woodmart-font";
    font-size: 90%;
    color: var(--wd-primary-color);
    line-height: 1;
    margin-top: 4px;
    flex-shrink: 0;
    width: 14px;
    text-align: var(--wd-center);
}

.advertencias .advertencia-texto {
    display: block;
}

.advertencias .advertencia-texto strong {
    font-weight: 600;
}

/* ============================================================
   REVIEWS
   ============================================================ */
/*.wd-review-style-2 .review {
    box-shadow: 0px 0px 10px #efefef;
}*/
.wd-review-style-2 .meta time.woocommerce-review__published-date,
.wd-review-style-2 .woocommerce-review__verified{
    font-size: 0.8rem;
}

span#reply-title, h2.woocommerce-Reviews-title {
    font-family: 'Goodly Light';
    font-size: 1.3rem !important;
    text-transform: lowercase;
}

/* Solo aplicamos tu diseño especial en pantallas menores a 1024px */
@media (max-width: 1023px) {
    p.meta {
        display: grid !important;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "author date"
            "verified .";
    }

    .woocommerce-review__author { 
        grid-area: author; 
    }

    .woocommerce-review__published-date { 
        grid-area: date; 
        text-align: right; 
    }

    .woocommerce-review__verified { 
        grid-area: verified;
        display: block; 
        width: 100%;
        flex-basis: 100%;
    }
}



.wd-review-style-2>li {
    padding: 60px !important;
}
@media (max-width:1024px) {
    .wd-review-style-2>li {
        padding: 25px !important;
    }
}