/* Estilo para a seção de produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 auto;
        max-width: 1200px; /* Limita a largura máxima do grid */
    justify-content: center; /* Centraliza os itens no grid */
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    max-width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color-a);
    margin: 5px 0;
    /* height: 2.6rem; Limita o texto para evitar desalinhamento */
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #39b54a;
    margin: 5px 0;
}

.product-discount {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

/*CSS ADICIONAL PARA O JS*/
.product-card img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 1.2rem;
    color: #39b54a;
    margin: 5px 0;
}

.product-card a {
    padding: 10px 20px;
    background-color: var(--button-bg);
    color: var(--text-color-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.product-card a:hover {
    background-color: var(--button-bg-hover);
}

/*Telas Midias Query*/
