.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    justify-items: center;
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heart-icon {
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff5e5e;
    transition: color 0.3s ease;
}
.heart-icon:hover {
    color: #e00000;
}
.product-details {
    padding: 15px;
}
.product-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: capitalize;
}
.product-price {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}
.add-to-cart-btn {
    font-size: 0.85rem;
    padding: 8px 15px;
}
@media (max-width: 576px) {
    .product-card {
        width: 100%;
    }
}
/* Eliminar subrayado y cambiar color del enlace */
a.product-link {
    text-decoration: none; /* Elimina el subrayado */
    color: inherit; /* Hereda el color del texto del contenedor, manteniendo el color original */
}

a.product-link:hover, a.product-link:focus {
    text-decoration: none; /* Asegura que no haya subrayado al pasar el mouse */
    color: inherit; /* Mantiene el color del texto al pasar el mouse */
}
