.full-grid-section {
    padding: 3rem 0;
    background: transparent;
}

/* CONTENEDOR PRINCIPAL: Ahora con fondo blanco estilizado */
.gallery-card {
    background: #ffffff;
    border: none;
    width: 100%;
    height: 100%; /* Obliga a usar todo el alto de la celda */
    display: flex;
    flex-direction: column;
    
    /* MEJORAS PARA EL FONDO BLANCO */
    padding: 1rem;               /* Margen interno para que el contenido no pegue a los bordes */
    border-radius: 20px;         /* Esquinas redondeadas más elegantes para tarjetas sólidas */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04); /* Sombra ultra suave para dar volumen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto levitante al pasar el mouse por la tarjeta completa */
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Envoltura de la imagen */
.gallery-img-wrapper {
    width: 100%;
    height: 220px;       /* 1. Definimos una altura fija para que todas las tarjetas midan lo mismo */
    overflow: hidden;
    border-radius: 14px; 
    margin-bottom: 0.85rem;
    background-color: #f8f9fa; /* 2. Un fondo gris suave muy sutil que enmarca el producto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card img {
    width: 100%;       
    height: 100%;      
    /* aspect-ratio: 1 / 1; <- ELIMINADO: Ya no lo necesitamos al fijar el alto del wrapper */
    
    object-fit: contain; /* 3. CLAVE: Achica la imagen proporcionalmente para que quepa ENTERA sin recortarse */
    padding: 0.5rem;     /* 4. Le da un "aire" o margen interno para que el inflable no pegue a los bordes grises */
    
    display: block;    
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* El efecto hover ahora es un zoom controlado y elegante que no deforma el producto */
.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.06);
}
/* Cuerpo de información */
.product-info-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0.25rem 0.2rem 0 0.2rem; /* Alínea levemente el texto internamente */
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FILA DE COMPRA */
.product-purchase-row {
    margin-top: auto; 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 10px;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Botón estilo píldora minimalista */
.btn-add-cart {
    background-color: #007aff; /* Tu azul de marca */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 20px; 
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background-color: #0056b3;
}