/* ==========================================================
   PAQSA - PRODUCTOS DESTACADOS INICIO
   ========================================================== */

.paqsa-productos-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* ==========================================================
   TARJETA
   ========================================================== */

.paqsa-producto-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    padding: 20px 0px 0px 0px;

    background: #ffffff;

    border: 1px solid #dfe3e6;
    border-radius: 20px;

    overflow: hidden;
}


/* ==========================================================
   IMAGEN
   ========================================================== */

.paqsa-producto-card-imagen {
    width: 100%;
    height: 221px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 8px;

    text-decoration: none;
}


.paqsa-producto-card-imagen img,
.paqsa-producto-img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 221px;

    object-fit: contain;
}


/* ==========================================================
   INFORMACIÓN
   ========================================================== */

.paqsa-producto-card-info {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    text-align: center;
}


/* ==========================================================
   NOMBRE
   ========================================================== */

.paqsa-producto-nombre {
    margin: 0;

    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;

    color: #292929;
}


.paqsa-producto-nombre a {
    color: inherit;
    text-decoration: none;
}


.paqsa-producto-nombre a:hover {
    color: inherit;
}


/* ==========================================================
   CATEGORÍA
   ========================================================== */

.paqsa-producto-categoria {
    margin-top: 3px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;

    color: #008bd2;
}


/* ==========================================================
   CONTENIDO
   ========================================================== */

.paqsa-producto-contenido {
    margin-top: 12px;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;

    color: #333333;
}


/* ==========================================================
   PRECIOS
   ========================================================== */

.paqsa-producto-precios {
    min-height: 52px;
    margin-top: 0px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    line-height: 1.1;
}


/* Precio normal tachado */

.paqsa-precio-regular {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    line-height: 1;

    font-weight: 600;

    color: #DF8BAF;

    text-decoration: line-through;
}


/* Precio oferta */

.paqsa-precio-oferta {
    display: block;

    font-size: 20px;
    line-height: 1;

    font-weight: 700;

    color: #2D3133;
}


/* Producto sin oferta */

.paqsa-precio-actual {
    display: block;

    font-size: 20px;
    line-height: 1;

    font-weight: 700;

    color: #2D3133;
}


/* Quitar estilos internos de WooCommerce */

.paqsa-producto-precios .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}


/* ==========================================================
   BOTÓN
   ========================================================== */

.paqsa-producto-boton {
    width: 100%;
    max-width: 155px;

    min-height: 40px;

    margin-top: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 20px;

    background: #cc1f64;

    border-radius: 999px;

    color: #ffffff !important;

    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    text-align: center;
    text-decoration: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.paqsa-producto-boton:hover {
    background: #ad1954;

    color: #ffffff !important;

    transform: translateY(-1px);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1024px) {

    .paqsa-productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }


    .paqsa-producto-card {
        padding: 22px 20px 18px;
    }


    .paqsa-producto-card-imagen {
        height: 210px;
    }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

/* ==========================================================
   MÓVIL - CARRUSEL HORIZONTAL
   ========================================================== */

@media (max-width: 600px) {

    /*
     * CONTENEDOR / CARRUSEL
     */
    .paqsa-productos-grid {
        display: flex;
        grid-template-columns: none;

        width: 100%;

        gap: 16px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 5px 20px 15px;

        /*
         * Permite que la primera y última tarjeta
         * se alineen correctamente.
         */
        scroll-padding-left: 20px;
        scroll-padding-right: 20px;

        /*
         * Efecto de "enganche" al deslizar.
         */
        scroll-snap-type: x mandatory;

        /*
         * Scroll suave.
         */
        scroll-behavior: smooth;

        /*
         * Mejor desplazamiento en iPhone.
         */
        -webkit-overflow-scrolling: touch;

        /*
         * Ocultar scrollbar Firefox.
         */
        scrollbar-width: none;
    }


    /*
     * Ocultar scrollbar Chrome / Safari.
     */
    .paqsa-productos-grid::-webkit-scrollbar {
        display: none;
    }


    /*
     * TARJETA
     */
    .paqsa-producto-card {
        /*
         * Evita que las tarjetas se encojan.
         */
        flex: 0 0 78%;

        /*
         * Tamaño máximo para que no crezca
         * demasiado en móviles grandes.
         */
        max-width: 310px;

        min-width: 270px;

        padding: 18px 0 14px;

        border-radius: 18px;

        scroll-snap-align: start;
    }


    /*
     * IMAGEN
     */
    .paqsa-producto-card-imagen {
        height: 210px;

        margin-bottom: 8px;
    }


    .paqsa-producto-card-imagen img,
    .paqsa-producto-img {
        width: 100%;
        height: 100%;

        max-width: 210px;

        object-fit: contain;
    }


    /*
     * NOMBRE
     */
    .paqsa-producto-nombre {
        padding: 0 12px;

        font-size: 18px;
        line-height: 1.15;
    }


    /*
     * CATEGORÍA
     */
    .paqsa-producto-categoria {
        padding: 0 12px;

        font-size: 12px;
    }


    /*
     * CONTENIDO
     */
    .paqsa-producto-contenido {
        margin-top: 14px;

        font-size: 13px;
    }


    /*
     * PRECIOS
     */
/* PRECIO ANTERIOR */
.paqsa-producto-precios del {
    display: block;
    margin-bottom: 5px;

    color: #A6A6A6;

    font-size: 14px;
    line-height: 1;
    font-weight: 400;

    opacity: 1;
    text-decoration: line-through;
}

.paqsa-producto-precios del .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}


/* PRECIO ACTUAL / REBAJADO */
.paqsa-producto-precios ins {
    display: block;

    color: #2D3133;

    font-size: 20px;
    line-height: 1;
    font-weight: 700;

    text-decoration: none;
    background: transparent;
}

.paqsa-producto-precios ins .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}


/* PRECIO CUANDO NO HAY OFERTA */
.paqsa-producto-precios > .woocommerce-Price-amount {
    display: block;

    color: #2D3133;

    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}


    /*
     * BOTÓN
     */
    .paqsa-producto-boton {
        width: calc(100% - 60px);
        max-width: 170px;

        min-height: 40px;

        margin-top: 16px;

        padding: 8px 15px;

        font-size: 12px;
    }

}


/* Precio original tachado */
.paqsa-producto-precios del {
    color: #3992CD !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-decoration-color: #3992CD !important;
}


/* Asegurar que el precio interno tome el mismo color */
.paqsa-producto-precios del .woocommerce-Price-amount,
.paqsa-producto-precios del .woocommerce-Price-currencySymbol {
    color: #3992CD !important;
}

/* ==========================================================
   PAQSA - PRECIOS EN ESCRITORIO, TABLET Y MÓVIL
   ========================================================== */

/* Precio original tachado */
.paqsa-producto-precios del {
    display: block !important;
    margin-bottom: 5px !important;
    color: #C32D6B !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    text-decoration-color: #DF8BAF !important;
}

.paqsa-producto-precios del .woocommerce-Price-amount,
.paqsa-producto-precios del .woocommerce-Price-currencySymbol {
    color: #C32D6B !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Precio de oferta */
.paqsa-producto-precios ins {
    display: block !important;
    color: #2D3133 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.paqsa-producto-precios ins .woocommerce-Price-amount,
.paqsa-producto-precios ins .woocommerce-Price-currencySymbol {
    color: #2D3133 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Precio normal cuando no hay oferta */
.paqsa-producto-precios > .woocommerce-Price-amount {
    display: block !important;
    color: #2D3133 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}