/*======================================
Theme Name: C2
Theme URI: https://pilma.com
Description: C2 Child Theme
Version: 1.0
Author: C2 Intelligent Solutions
Author URI: https://www.solucionesc2.com
Template: Divi
======================================*/


/* CSS propias. */

body.woocommerce-cart p.woocommerce-shipping-destination, body.woocommerce-cart form.woocommerce-shipping-calculator {
    display: block !important;
}

/* PASAR A GRID LOS LISTADOS DE PRODUCTOS Y ENCAJAR EL BANNER DENTRO DE LOS LISTADOS */
ul.products.columns-4 {
    display:grid !important;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:20px;
}
@media (max-width:980px){
    ul.products.columns-4 {
        display:grid !important;
        grid-template-columns:repeat(3, minmax(0, 1fr));
        gap:20px;
    }
}
@media (max-width:768px){
    ul.products.columns-4 {
        display:grid !important;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:10px;
    }
}

/* FIN PASAR A GRID LOS LISTADOS DE PRODUCTOS Y ENCAJAR EL BANNER DENTRO DE LOS LISTADOS */

/* LIQUIDACIÓN MENU*/
/* COLOR MENU */
ul li a.rojorebajas,
.sfm-menu-item-72136 > a span, /* ES Liquidación */
.sfm-menu-item-72138 > a span, /* CA Liquidació */
.sfm-menu-item-72139 > a span /* EN Clearance IMPORTANTE, EL ÚLTIMO NO LLEVA COMA */
{
    color:#ad0000 !important; /* Modificar color por defecto */
}
ul li a.rojorebajas:hover,
.sfm-menu-item-72136 > a span:hover,  /* ES Liquidación */
.sfm-menu-item-72138 > a span:hover,  /* CA Liquidació */
.sfm-menu-item-72139 > a span:hover  /* EN Clearance IMPORTANTE, EL ÚLTIMO NO LLEVA COMA */
{
    color:#cb8b76 !important; /* Modificar color de hover */
}
/* FIN COLOR MENU */

/* NEGRITAS MENU */
ul li a.negrita,
.sfm-menu-item-72136 > a span, /* ES Liquidación */
.sfm-menu-item-72138 > a span, /* CA Liquidació */
.sfm-menu-item-72139 > a span /* EN Clearance IMPORTANTE, EL ÚLTIMO NO LLEVA COMA */
{
    font-weight:900 !important; /* Modificar color por defecto */
}
/* FIN NEGRITAS MENU */
/* FIN LIQUIDACIÓN MENU*/

/* BLACK DAYS MENU*/
/* NEGRITAS MENU */
ul li a.negrita,
.sfm-menu-item-95704 > a span, /* ES Black Days */
.sfm-menu-item-95706 > a span, /* CA Black Days */
.sfm-menu-item-95707 > a span /* EN Black Days IMPORTANTE, EL ÚLTIMO NO LLEVA COMA */
{
    font-weight:900 !important; /* Modificar color por defecto */
}
/* FIN NEGRITAS MENU */
/* FIN BLACK DAYS*/

/* Swatches y badges de variacion en archivo */

/* Ocultar los badges YITH que YITH inyecta sueltos como hijos directos
   del contenedor imagen (ya los gestionamos nosotros en contenedor-badges). */
.wvs-archive-product-wrapper .container-image-and-badge > .yith-wcbm-badge {
    display: none !important;
}

/* contenedor-badges: posicionamiento superpuesto igual que en productos simples.
   Se aplica tanto al div del hack como al pilma-archive-variation-badge con esa clase. */
.container-image-and-badge > .contenedor-badges,
.container-image-and-badge > .pilma-archive-variation-badge.contenedor-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    pointer-events: none;
    font-family: 'Graphik regular', sans-serif;
}

/* Tipografía del contenedor de badges en archivos (cubría el snippet con div.contenedor-badges *) */
body.archive .contenedor-badges * {
    font-family: 'Graphik regular', sans-serif;
}

/* pilma-archive-variation-badge sin la clase contenedor-badges:
   productos variables cuyo badge se actualiza vía JS (found_variation AJAX). */
.wvs-archive-product-wrapper .container-image-and-badge > .pilma-archive-variation-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    line-height: 0;
    pointer-events: none;
}

/* Asegurar que el badge YITH dentro de nuestros contenedores se muestre correctamente. */
.contenedor-badges .yith-wcbm-badge,
.pilma-archive-variation-badge .yith-wcbm-badge {
    display: flex !important;
    margin-right: 0 !important;
}

/* Flexbox layout para la tarjeta de producto en listados.
   Imagen ocupa ancho completo, titulo+coleccion (70%) y precio (30%) en fila. */
.wvs-archive-product-wrapper a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.wvs-archive-product-wrapper a.woocommerce-LoopProduct-link .et_shop_image {
    flex: 0 0 100%;
}

.wvs-archive-product-wrapper a.woocommerce-LoopProduct-link .coleccion-atributo {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
}

.wvs-archive-product-wrapper a.woocommerce-LoopProduct-link .price {
    flex: 0 0 30%;
    align-self: flex-start;
}

