/* AtocpanVive · Productos compactos V3
   3 columnas + fotografía completa + mayor altura */

#productos .profile-products{
    display:block !important;
}

#productos .product-group{
    display:block !important;
    margin:0 0 2rem !important;
    padding:0 !important;
}

#productos .product-group > h3{
    margin:0 0 .95rem !important;
    font-size:1.1rem !important;
    line-height:1.2 !important;
    color:#34251f !important;
    font-weight:850 !important;
}

#productos .product-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:stretch !important;
    width:100% !important;
}

#productos .product-card{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid #e7dacd !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 7px 20px rgba(52,37,31,.07) !important;
    transition:transform .18s ease, box-shadow .18s ease !important;
}

#productos .product-card:hover{
    transform:translateY(-3px) !important;
    box-shadow:0 13px 30px rgba(52,37,31,.11) !important;
}

/*
 * V2: 132px.
 * V3: 265px aprox.
 * Incremento aproximado de 130px ≈ 3.5 cm en CSS a 96dpi.
 */
#productos .product-card > img{
    display:block !important;
    width:100% !important;
    height:265px !important;
    min-height:265px !important;
    max-height:265px !important;
    margin:0 !important;
    padding:10px !important;
    box-sizing:border-box !important;
    border-radius:0 !important;

    /* Mostrar la imagen completa */
    object-fit:contain !important;
    object-position:center !important;

    background:#f5f0eb !important;
}

#productos .product-card > div{
    display:flex !important;
    flex-direction:column !important;
    gap:.42rem !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    padding:.9rem .95rem 1rem !important;
}

#productos .product-card h4{
    margin:0 !important;
    font-size:1rem !important;
    line-height:1.28 !important;
    font-weight:850 !important;
    color:#2b211d !important;
}

#productos .product-card p{
    margin:0 !important;
    color:#74665e !important;
    font-size:.84rem !important;
    line-height:1.42 !important;

    display:-webkit-box !important;
    -webkit-line-clamp:3 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
}

#productos .product-card strong{
    display:inline-flex !important;
    align-items:center !important;
    align-self:flex-start !important;
    margin-top:.22rem !important;
    padding:.34rem .68rem !important;
    min-width:0 !important;
    min-height:0 !important;
    border-radius:999px !important;
    background:#f7eee8 !important;
    color:#7a2e24 !important;
    font-size:.9rem !important;
    font-weight:900 !important;
    white-space:nowrap !important;
}

#productos .product-card:not(:has(> img)){
    min-height:160px !important;
}

/* Tablet: 2 columnas */
@media(max-width:900px){
    #productos .product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:16px !important;
    }

    #productos .product-card > img{
        height:250px !important;
        min-height:250px !important;
        max-height:250px !important;
    }
}

/* Móvil: 1 columna horizontal, también con imagen completa */
@media(max-width:600px){
    #productos .product-grid{
        grid-template-columns:1fr !important;
        gap:12px !important;
    }

    #productos .product-card{
        display:grid !important;
        grid-template-columns:145px minmax(0,1fr) !important;
        min-height:225px !important;
    }

    #productos .product-card > img{
        width:145px !important;
        height:225px !important;
        min-height:225px !important;
        max-height:225px !important;
        padding:8px !important;
        object-fit:contain !important;
    }

    #productos .product-card > div{
        padding:.82rem .85rem !important;
        justify-content:center !important;
    }

    #productos .product-card h4{
        font-size:.96rem !important;
    }

    #productos .product-card p{
        font-size:.8rem !important;
        -webkit-line-clamp:4 !important;
    }

    #productos .product-card strong{
        font-size:.86rem !important;
        padding:.28rem .58rem !important;
    }

    #productos .product-card:not(:has(> img)){
        display:flex !important;
        min-height:130px !important;
    }
}

@media(max-width:390px){
    #productos .product-card{
        grid-template-columns:125px minmax(0,1fr) !important;
        min-height:215px !important;
    }

    #productos .product-card > img{
        width:125px !important;
        height:215px !important;
        min-height:215px !important;
        max-height:215px !important;
    }
}

@media(prefers-reduced-motion:reduce){
    #productos .product-card{
        transition:none !important;
    }
}
