/* Estilos personalizados para cards de productos */

/* Establecer altura fija para el contenedor de imagen */
.block2-pic {
    height: 280px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

/* Hacer que las imágenes se ajusten proporcionalmente */
.block2-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Establecer altura fija para el contenedor de texto */
.block2-txt {
    min-height: 100px;
    display: flex;
    align-items: flex-start;
}

/* Limitar altura del nombre del producto */
.block2-txt-child1 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5em;
}

/* Card completa con altura consistente */
.block2 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Asegurar que todas las cards en la grilla tengan la misma altura */
.isotope-item {
    display: flex;
}

.isotope-item .block2 {
    width: 100%;
}
