ul#lista_produtos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

ul#lista_produtos li {
    flex: 1 1 calc(25% - 20px);
    max-width: 300px;
    min-width: 250px;
    display: flex;
    justify-content: center;
    font-weight: bolder;
    font-size: larger;
}

div.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

img.card-img {
    width: 100%;
    max-width: 300px;
    height: 180px;
    object-fit: contain;
    margin-top: 10px;
}

div.card-body {
    padding: 15px;
    width: 100%;
}

h3.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    word-wrap: break-word;
    text-align: center;
    width: 95%;
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

p.card-brand {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

p.card-price {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

button.btnDetalhes {
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

div.card:hover {
    transform: scale(1.05);
}


/* Estiliza o card em promoção */
.card.promo {
    position: relative;
    border: 2px solid red;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8);
    overflow: hidden;

    .card-price {
        color: red;
        font-size: 15pt;
    }
}

/* Container das chamas */
.flames {
    position: absolute;
    bottom: -80px;
    left: 50%;
    width: 100%;
    height: 100px;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

/* Estiliza cada chama */
.flame {
    margin: 0px 0px 2px 2px;
    width: 20px;
    height: 40px;
    background: rgba(255, 140, 0, 0.7);
    border-radius: 50%;
    animation: fire-move 1s infinite alternate, fire-flicker 0.15s infinite alternate;
}

/* Animação de movimento das chamas */
@keyframes fire-move {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-30px) scaleX(1.2);
        opacity: 0;
    }
}

/* Animação para o tremor das chamas */
@keyframes fire-flicker {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Cores diferentes para cada chama */
.flame:nth-child(1) {
    background: rgba(255, 100, 0, 0.6);
    animation-delay: 0s;
}

.flame:nth-child(2) {
    background: rgba(255, 50, 0, 0.5);
    animation-delay: 0.2s;
}

.flame:nth-child(3) {
    background: rgba(255, 180, 0, 0.7);
    animation-delay: 0.4s;
}

.flame:nth-child(4) {
    background: rgba(255, 100, 0, 0.6);
    animation-delay: 0s;
}

.flame:nth-child(5) {
    background: rgba(255, 50, 0, 0.5);
    animation-delay: 0.2s;
}

.flame:nth-child(6) {
    background: rgba(255, 180, 0, 0.7);
    animation-delay: 0.4s;
}

.flame:nth-child(7) {
    background: rgba(255, 180, 0, 0.7);
    animation-delay: 0.4s;
}

.flame:nth-child(8) {
    background: rgba(255, 100, 0, 0.6);
    animation-delay: 0s;
}

.flame:nth-child(9) {
    background: rgba(255, 50, 0, 0.5);
    animation-delay: 0.2s;
}

.flame:nth-child(10) {
    background: rgba(255, 180, 0, 0.7);
    animation-delay: 0.4s;
}