/* Start custom CSS for shortcode, class: .elementor-element-5e23331 *//* ==========================================================
   JANELY - PÁGINA DE OFERTAS
   CSS FINAL COMPLETO
   ========================================================== */


/* ==========================================================
   CONTENEDOR GENERAL
   ========================================================== */

.janely-ofertas-wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ==========================================================
   GRID GENERAL
   ========================================================== */

.janely-ofertas-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;

    column-gap: 8px !important;
    row-gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    align-items: stretch !important;
}


/* ==========================================================
   CARD
   ========================================================== */

.janely-ofertas-wrapper ul.products li.product {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding:
        0
        10px
        62px
        10px !important;

    float: none !important;

    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    height: 100% !important;
    min-height: 470px !important;

    align-self: stretch !important;

    text-align: center !important;

    background: #ffffff !important;

    border: 2px solid #f1c5cc !important;
    border-radius: 10px !important;

    overflow: hidden !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   LINK PRINCIPAL
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product
.woocommerce-loop-product__link {

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;

    position: relative !important;

    text-decoration: none !important;

    color: #000000 !important;

    overflow: visible !important;

    flex: 1 1 auto !important;
}


/* ==========================================================
   IMAGEN
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product
.woocommerce-loop-product__link img {

    display: block !important;

    width: 100% !important;
    height: 275px !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 auto 8px auto !important;

    padding: 5px !important;

    box-sizing: border-box !important;

    transition: transform 0.3s ease !important;
}


/* Zoom */

.janely-ofertas-wrapper
ul.products
li.product
.woocommerce-loop-product__link:hover img {
    transform: scale(1.08) !important;
}


/* ==========================================================
   ETIQUETA ¡OFERTA!
   ========================================================== */

.janely-ofertas-wrapper span.onsale {

    position: absolute !important;

    top: 9px !important;
    right: 9px !important;
    left: auto !important;

    min-width: auto !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 8px 5px !important;

    line-height: 1 !important;

    border-radius: 0 !important;

    background: #ff0000 !important;
    background-color: #ff0000 !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;

    z-index: 20 !important;
}


/* ==========================================================
   CATEGORÍA / TIPO
   ========================================================== */

.janely-ofertas-wrapper .product-category,
.janely-ofertas-wrapper .woocommerce-loop-product__category {

    color: #999999 !important;

    text-align: center !important;

    margin: 0 0 5px 0 !important;
}


/* ==========================================================
   TÍTULO
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product
.woocommerce-loop-product__title {

    font-family: Arial, sans-serif !important;

    font-size: 16px !important;
    line-height: 1.25 !important;

    font-weight: 600 !important;

    color: #000000 !important;

    text-align: center !important;

    padding: 0 !important;
    margin: 7px 0 5px 0 !important;
}


/* ==========================================================
   PRECIO
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product
.price {

    display: block !important;

    width: 100% !important;

    margin: 0 0 8px 0 !important;
    padding: 0 !important;

    text-align: center !important;

    color: #000000 !important;

    font-family: Arial, sans-serif !important;

    line-height: 1.2 !important;
}


/* Precio normal */

.janely-ofertas-wrapper
ul.products
li.product
.price > span.woocommerce-Price-amount {

    color: #000000 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
}


/* Precio anterior */

.janely-ofertas-wrapper
ul.products
li.product
.price del {

    display: block !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    opacity: 1 !important;

    color: #ff0000 !important;

    font-size: 13px !important;
    font-weight: 400 !important;

    line-height: 1.15 !important;
}


.janely-ofertas-wrapper
ul.products
li.product
.price del .woocommerce-Price-amount {
    color: #ff0000 !important;
}


/* Precio oferta */

.janely-ofertas-wrapper
ul.products
li.product
.price ins {

    display: block !important;

    width: 100% !important;

    margin: 2px 0 0 0 !important;
    padding: 0 !important;

    text-decoration: none !important;

    color: #000000 !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    line-height: 1.15 !important;
}


.janely-ofertas-wrapper
ul.products
li.product
.price ins .woocommerce-Price-amount {

    color: #000000 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
}


/* ==========================================================
   AGOTADO
   ========================================================== */

.janely-ofertas-wrapper .out-of-stock,
.janely-ofertas-wrapper .stock.out-of-stock {

    color: #e8597b !important;

    text-align: center !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    text-transform: uppercase !important;

    margin: 0 0 7px 0 !important;
}


/* ==========================================================
   BOTÓN COMPRAR - ESCRITORIO
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product
.button {

    position: absolute !important;

    left: 50% !important;
    bottom: 10px !important;

    transform: translateX(-50%) !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 82% !important;
    max-width: 190px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    margin: 0 !important;

    padding: 0 10px !important;

    background: #e55b80 !important;
    background-color: #e55b80 !important;

    border: none !important;

    border-radius: 40px !important;

    color: #ffffff !important;

    text-align: center !important;

    font-family: Arial, sans-serif !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow: none !important;

    box-sizing: border-box !important;

    z-index: 10 !important;
}


.janely-ofertas-wrapper
ul.products
li.product
.button:hover,

.janely-ofertas-wrapper
ul.products
li.product
.button:focus {

    background: #df4d75 !important;
    background-color: #df4d75 !important;

    color: #ffffff !important;
}


/* ==========================================================
   QUITAR EFECTOS EXTRA
   ========================================================== */

.janely-ofertas-wrapper
ul.products
li.product::before,

.janely-ofertas-wrapper
ul.products
li.product::after {
    box-shadow: none !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .janely-ofertas-wrapper ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


/* ==========================================================
   MÓVIL
   2 COLUMNAS - VERSIÓN COMPACTA
   ========================================================== */

@media (max-width: 767px) {


    /* ======================================================
       WRAPPER
       ====================================================== */

    .janely-ofertas-wrapper {
        width: 100% !important;

        padding-left: 5px !important;
        padding-right: 5px !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       GRID
       ====================================================== */

    .janely-ofertas-wrapper ul.products {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        column-gap: 7px !important;
        row-gap: 7px !important;

        margin: 0 !important;
        padding: 0 !important;

        align-items: stretch !important;
    }


    /* ======================================================
       CARD
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product {

        width: 100% !important;

        height: 100% !important;

        /*
         * Más compacta que antes.
         */
        min-height: 292px !important;

        margin: 0 !important;

        /*
         * Solo reservamos el espacio necesario
         * para el botón.
         */
        padding:
            0
            5px
            44px
            5px !important;

        position: relative !important;

        display: flex !important;
        flex-direction: column !important;

        align-self: stretch !important;

        background: #ffffff !important;

        border: 2px solid #f1c5cc !important;

        border-radius: 9px !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       LINK
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__link {

        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        flex: 1 1 auto !important;
    }


    /* ======================================================
       IMAGEN
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__link img {

        display: block !important;

        width: 100% !important;

        height: 112px !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 5px auto 1px auto !important;

        padding: 2px !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       OFERTA
       ====================================================== */

    .janely-ofertas-wrapper span.onsale {

        top: 5px !important;
        right: 5px !important;

        left: auto !important;

        padding: 4px 4px !important;

        font-size: 9px !important;
        line-height: 1 !important;

        background: #ff0000 !important;
        background-color: #ff0000 !important;

        color: #ffffff !important;

        border-radius: 0 !important;
    }


    /* ======================================================
       CATEGORÍA
       MÁS CHICA
       ====================================================== */

    .janely-ofertas-wrapper .product-category,
    .janely-ofertas-wrapper .woocommerce-loop-product__category {

        height: 19px !important;
        min-height: 19px !important;
        max-height: 19px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 0 1px 0 !important;

        padding: 0 1px !important;

        color: #999999 !important;

        font-size: 8px !important;
        line-height: 1 !important;

        text-align: center !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       TÍTULO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__title {

        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;

        margin: 0 !important;

        padding: 0 2px !important;

        color: #000000 !important;

        font-size: 10px !important;
        line-height: 1.12 !important;

        font-weight: 700 !important;

        text-align: center !important;

        overflow: hidden !important;

        display: -webkit-box !important;

        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;

        box-sizing: border-box !important;
    }


    /* ======================================================
       AGOTADO
       MUCHO MÁS CHICO
       ====================================================== */

    .janely-ofertas-wrapper .out-of-stock,
    .janely-ofertas-wrapper .stock.out-of-stock {

        color: #000000 !important;

        font-size: 8px !important;
        font-weight: 700 !important;

        line-height: 1 !important;

        text-align: center !important;

        text-transform: uppercase !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /* ======================================================
       PRECIO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price {

        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        line-height: 1 !important;

        text-align: center !important;

        overflow: hidden !important;

        box-sizing: border-box !important;
    }


    /* Precio anterior */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price del {

        display: block !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;

        opacity: 1 !important;

        color: #ff0000 !important;

        font-size: 8px !important;
        line-height: 1 !important;
    }


    .janely-ofertas-wrapper
    ul.products
    li.product
    .price del * {
        color: #ff0000 !important;
    }


    /* Precio oferta */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price ins,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price ins *,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price > .woocommerce-Price-amount {

        color: #000000 !important;

        font-size: 11px !important;
        line-height: 1 !important;

        font-weight: 700 !important;

        text-decoration: none !important;
    }


    /* ======================================================
       BOTÓN MÓVIL
       MÁS CERCA DEL PRECIO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .button {

        position: absolute !important;

        /*
         * Lo dejamos pegado al fondo,
         * pero achicamos la card y el espacio reservado.
         */
        bottom: 5px !important;

        left: 50% !important;

        transform: translateX(-50%) !important;

        width: calc(100% - 20px) !important;

        max-width: none !important;

        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;

        margin: 0 !important;

        padding: 0 4px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        background: #e55b80 !important;
        background-color: #e55b80 !important;

        color: #ffffff !important;

        border: none !important;

        border-radius: 30px !important;

        font-size: 10px !important;
        line-height: 1 !important;

        font-weight: 600 !important;

        text-align: center !important;

        text-decoration: none !important;

        box-shadow: none !important;

        box-sizing: border-box !important;

        z-index: 15 !important;
    }


    .janely-ofertas-wrapper
    ul.products
    li.product
    .button:hover,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .button:focus {

        background: #df4d75 !important;
        background-color: #df4d75 !important;

        color: #ffffff !important;
    }

}
/* ==========================================================
   JANELY - CORRECCIÓN REAL PARA MÓVIL
   ========================================================== */

@media screen and (max-width: 767px) {

    /* ======================================================
       CARD MÁS COMPACTA
       ====================================================== */

    .janely-ofertas-wrapper ul.products li.product {
        min-height: 275px !important;

        padding-top: 0 !important;
        padding-right: 5px !important;
        padding-bottom: 42px !important;
        padding-left: 5px !important;
    }


    /* ======================================================
       IMAGEN
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__link img {

        height: 105px !important;

        margin-top: 5px !important;
        margin-bottom: 1px !important;
    }


    /* ======================================================
       CATEGORÍAS
       
       IMPORTANTE:
       Ahora también atacamos directamente los enlaces
       de las categorías WooCommerce.
       ====================================================== */

    .janely-ofertas-wrapper .product-category,

    .janely-ofertas-wrapper .woocommerce-loop-product__category,

    .janely-ofertas-wrapper
    ul.products
    li.product
    a[href*="/categoria-producto/"] {

        font-size: 8px !important;
        line-height: 1.05 !important;

        font-weight: 400 !important;

        color: #999999 !important;

        min-height: 18px !important;
        height: auto !important;
        max-height: 22px !important;

        margin-top: 0 !important;
        margin-bottom: 2px !important;

        padding: 0 !important;

        text-align: center !important;
    }


    /* Si Astra mete tamaños heredados en el enlace */
    .janely-ofertas-wrapper
    ul.products
    li.product
    a[href*="/categoria-producto/"] * {

        font-size: 8px !important;
        line-height: 1.05 !important;
    }


    /* ======================================================
       AGOTADO - ASTRA / WOOCOMMERCE
       ====================================================== */

    .janely-ofertas-wrapper
    .ast-shop-product-out-of-stock,

    .janely-ofertas-wrapper
    .out-of-stock,

    .janely-ofertas-wrapper
    .stock.out-of-stock,

    .janely-ofertas-wrapper
    ul.products
    li.product.outofstock
    .ast-shop-product-out-of-stock {

        font-size: 9px !important;
        line-height: 1 !important;

        font-weight: 600 !important;

        padding: 3px 4px !important;

        margin: 0 !important;

        min-height: 0 !important;
        height: auto !important;

        text-transform: uppercase !important;
    }


    /* El texto interno de AGOTADO si Astra usa hijos */
    .janely-ofertas-wrapper
    .ast-shop-product-out-of-stock * {

        font-size: 9px !important;
        line-height: 1 !important;
    }


    /* ======================================================
       TÍTULO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__title {

        font-size: 10px !important;
        line-height: 1.1 !important;

        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;

        margin-top: 1px !important;
        margin-bottom: 1px !important;

        padding: 0 2px !important;

        display: -webkit-box !important;

        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;

        overflow: hidden !important;
    }


    /* ======================================================
       PRECIO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price {

        height: 29px !important;
        min-height: 29px !important;
        max-height: 29px !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;

        padding: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        justify-content: center !important;
        align-items: center !important;
    }


    /* Precio anterior */
    .janely-ofertas-wrapper
    ul.products
    li.product
    .price del,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price del * {

        font-size: 8px !important;
        line-height: 1 !important;

        margin: 0 !important;

        color: #ff0000 !important;
    }


    /* Precio actual */
    .janely-ofertas-wrapper
    ul.products
    li.product
    .price ins,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price ins *,

    .janely-ofertas-wrapper
    ul.products
    li.product
    .price > .woocommerce-Price-amount {

        font-size: 11px !important;
        line-height: 1 !important;

        color: #000000 !important;

        text-decoration: none !important;
    }


    /* ======================================================
       BOTÓN MÁS CERCA DEL PRECIO
       Y SIGUE PERFECTAMENTE ALINEADO
       ====================================================== */

    .janely-ofertas-wrapper
    ul.products
    li.product
    .button {

        position: absolute !important;

        left: 50% !important;
        bottom: 5px !important;

        transform: translateX(-50%) !important;

        width: calc(100% - 20px) !important;

        height: 31px !important;
        min-height: 31px !important;
        max-height: 31px !important;

        padding: 0 4px !important;
        margin: 0 !important;

        font-size: 10px !important;
        line-height: 1 !important;

        border-radius: 30px !important;
    }


    /* ======================================================
       OFERTA
       ====================================================== */

    .janely-ofertas-wrapper span.onsale {

        top: 5px !important;
        right: 5px !important;

        font-size: 9px !important;

        padding: 4px !important;
    }

}

.woocommerce-js ul.products li.product .ast-woo-product-category, .woocommerce-page ul.products li.product .ast-woo-product-category {
    font-size: 10px;
    margin-bottom: .5em;
    display: block;
    line-height: 1.3;
    opacity: .6;
}

/* ==========================================================
   MÓVIL - QUITAR ESPACIO ENTRE PRECIO Y BOTÓN
   ========================================================== */

@media (max-width: 767px) {

    /* CARD */
    .janely-ofertas-wrapper ul.products li.product {
        min-height: 0 !important;
        height: auto !important;

        /* Solo reservamos lo necesario para el botón */
        padding-bottom: 40px !important;
    }

    /* El contenido NO debe estirarse para llenar la card */
    .janely-ofertas-wrapper
    ul.products
    li.product
    .woocommerce-loop-product__link {
        flex: 0 0 auto !important;
    }

    /* BOTÓN */
    .janely-ofertas-wrapper
    ul.products
    li.product
    .button {
        position: absolute !important;

        left: 50% !important;
        bottom: 4px !important;

        transform: translateX(-50%) !important;

        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;

        margin: 0 !important;
    }
}/* End custom CSS */