/* =====================================================================
   06-productos.css
   Tarjetas de producto y sus imágenes (incluye ajustes responsive).
   Origen: css/styles.css (líneas 450–569). El orden de carga importa: ver index.html.
   ===================================================================== */

/* Configuración general del contenedor de productos */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#carousel-inner-images{
  height: 450px;
}
/* Configuración del contenedor de imágenes con tamaño fijo */
.card-img {
    height: 320px; /* Tamaño fijo */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imágenes del producto */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 1475px) {
    .product-card {
        display: block !important;
    }

    .product-card img {
        max-width: 100%;
        height: auto;
    }

    /* Configuración de la imagen en pantallas medianas */
    .card-img {
        height: 300px; /* Tamaño ajustado */
    }

}
@media (max-width: 1175px) {
    .product-card {
        display: block !important;
    }

    .product-card img {
        max-width: 100%;
        height: auto;
    }

    /* Configuración de la imagen en pantallas medianas */
    .card-img {
        height: 250px; /* Tamaño ajustado */
    }

}
/* Ajustes responsivos */
@media (max-width: 768px) {
    .product-card {
        display: block !important;
    }

    .product-card img {
        max-width: 100%;
        height: auto;
    }

    /* Configuración de la imagen en pantallas medianas */
    .card-img {
        height: 230px; /* Tamaño ajustado */
    }
    #carousel-inner-images{
    height: 400px;
  }
}

/* Ajustar las tarjetas en pantallas móviles */
@media (max-width: 576px) {
    .product-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-img {
        width: 100%;
        display: block;
        text-align: center;
        height: 200px; /* Tamaño ajustado para pantallas móviles */
    }

    .card-img img {
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .cart-concern {
        bottom: 0;
    }

    .form-container {
        background: white;
        padding: 30px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 600px;
    }
    #carousel-inner-images{
    height: 350px;
  }
}

/* Asegurarse de que el carousel de las imágenes funcione correctamente */
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: auto;
}
