﻿

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--container);
    margin: 2rem auto 0;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e4dc;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

.product-card .img-container {
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, #142845 0%, #0b1f3a 100%);
}

.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform .5s ease;
    display: block;
}

.product-card:hover .img-container img {
    transform: scale(1.08);
}

.product-card .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
    font-size: 4rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.2rem 1.2rem;
    gap: 0.3rem;
}

.product-info h4 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.product-tag {
    background: #f0ebdf;
    color: #7e6220;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    align-self: flex-start;
}

.product-info .descricao-card {
    margin: 0;
}

.product-info .descricao-texto-card {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

.product-info .descricao-texto-card.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .btn-vermais {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.15rem 0;
    font-family: inherit;
    transition: opacity .25s ease;
}

.product-info .btn-vermais:hover {
    opacity: 0.8;
}

.product-info .btn-whatsapp {
    margin-top: auto;
    padding-top: 0.5rem;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all .25s ease;
    background: #25d366;
    color: #fff;
    letter-spacing: 0.3px;
}

.product-info .btn-whatsapp:hover {
    background: #1db955;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    .product-card .img-container {
        height: 220px;
    }

    .product-info {
        padding: 0.8rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card .img-container {
        height: 240px;
    }
}
