/* ========================================================================= */
/* == ESTILOS ULTRA ESPECÍFICOS PARA CLUSTERS EN PÁGINA DE PRODUCTO == */
/* ========================================================================= */

/* Contenedor principal de la sección en la página de producto */
body.single-product .final-page-container-v4.category-cluster-section .category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

/* Estilo de cada tarjeta/categoría individual */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card {
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    color: #ffffff !important; /* Usamos el color directamente por si la variable no carga */
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
}

/* Efecto al pasar el ratón sobre la tarjeta */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.2) !important;
}

/* Capa de la imagen de fondo de la tarjeta */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card .card-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Efecto de zoom en la imagen de fondo al pasar el ratón */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card:hover .card-background {
    transform: scale(1.1) !important;
}

/* Capa de sombreado oscuro sobre la imagen */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card .card-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%) !important;
}

/* Estilo del título (h3) dentro de la tarjeta */
body.single-product .final-page-container-v4.category-cluster-section .category-grid a.category-card h3 {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 20px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: center !important;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    body.single-product .final-page-container-v4.category-cluster-section .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- OCULTAR CAMPO 'NOM DE L'EMPRESA' EN CHECKOUT --- */
#billing_company_field {
    display: none !important;
}
/* Ocultar título de la sección de clusters en la página de producto */
body.single-product .category-cluster-section .section-title {
    display: none !important;
}