/* loja.css */

/* Estilização geral */
body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 600;
}

/* Container dos produtos */
.produtos-disponiveis {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Cartão de produto */
.card {
    width: 18rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: #555;
}

/* Botão */
.btn-primary {
    background-color: #007bff;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Texto com overflow oculto inicialmente */
.card-text {
    font-size: 0.95rem;
    color: #555;
    max-height: 3.6em; /* Limita visualmente a cerca de 2 linhas */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

/* Efeito "fade" com gradiente no final do texto cortado */
.card-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1.5em;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* Ao passar o mouse no card, mostrar toda a descrição */
.card:hover .card-text {
    max-height: 500px; /* Alto o suficiente para mostrar tudo */
}

/* Remover gradiente ao expandir */
.card:hover .card-text::after {
    display: none;
}
