/* Estilo específico para el botón Personalizar de Chamevo/Fancy Product */
a.button.fpd-catalog-customize {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    text-align: center !important;
    display: block !important;
    text-transform: none !important;
    border-radius: 0px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Efecto al pasar el ratón para que no sea estático */
a.button.fpd-catalog-customize:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

/* --- AJUSTE TOTAL PARA 4 PRODUCTOS EN TSUBAKI --- */

/* Atacamos a Relacionados, Up-sells y Cross-sells */
.related.products ul.products, 
.upsells.products ul.products, 
.cross-sells ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

/* Forzamos el ancho para que solo quepan 4 */
.site-main ul.products li.product {
    width: 23% !important; 
    margin-right: 2% !important;
    margin-left: 0 !important;
    float: left !important;
}

/* Ocultamos del 5º en adelante en cualquier lista de productos */
.site-main ul.products li.product:nth-child(5),
.site-main ul.products li.product:nth-child(6),
.site-main ul.products li.product:nth-child(7) {
    display: none !important;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .site-main ul.products li.product {
        width: 48% !important;
        margin-right: 2% !important;
    }
}



/* 1. Títulos en cuadrícula (Catálogo) */
.titulo-fijo {
    height: 65px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    margin-bottom: 0px !important;
    padding: 0 !important;
}

/* 2. Enlaces de títulos en cuadrícula */
.titulo-fijo a {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

/* 3. Precios centrados SOLO en cuadrículas/listados */
.wc-block-grid__product-price, 
.products .price,
.up-sells .price,
.related .price {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
}

/* 4. EXCEPCIÓN: Forzar precio a la IZQUIERDA en la ficha de producto individual */
.single-product div.wc-block-components-product-price.wc-block-grid__product-price {
    display: block !important;
    text-align: left !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
}

/* Aseguramos que el número y el símbolo € también miren a la izquierda */
.single-product .wc-block-components-product-price * {
    text-align: left !important;
    display: inline-block !important;
}