/* ========== CARDS ESTILO AMAZON ========== */


/*Para o resultado da busca*/

.busca-header {
    background: #8f0dfd;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.busca-header h3,
.busca-header p {
    color: #fff;
}

.busca-header .btn-outline-secondary {
    color: #fff;
    border-color: #fff;
}

.busca-header .btn-outline-secondary:hover {
    background: #fff;
    color: #333;
}
/*Fim da busca*/


.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #FF9900;
}

.product-card .product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 15px;
}

.product-card .product-image img {
    max-width: 90%;
    max-height: 160px;
    object-fit: contain;
}

.product-card .product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0F1111;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card .product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 4px;
}

.product-card .old-price {
    font-size: 0.8rem;
    color: #565959;
    text-decoration: line-through;
}

.product-card .discount-badge {
    display: inline-block;
    background: #CC0C39;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.product-card .alert-badge {
    display: inline-block;
    background: #fff;
    color: #1a19e2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}


.product-card .buy-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: #FFD814;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    color: #0F1111;
}

.product-card .buy-button:hover {
    background: #F7CA00;
}

.product-card .affiliate-badge {
    font-size: 0.7rem;
    color: #253825;
    margin-top: 8px;
    text-align: center;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card .product-image {
        height: 150px;
    }
    
    .product-card .product-title {
        font-size: 0.8rem;
    }
}

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

.product-card {
    text-align: center;
}

.product-card .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-info {
    text-align: center;
}

.product-card .buy-button {
    margin: 10px auto 0;
    width: 90%;
}


/*Avisando sobre mudança de preço*/
.info-price-updated{
    display: block;
    margin-top: 8px;  
    color: #1a19e2;    
}

/*Para o Botão de Detalhes*/
.btn-details {
    display: block;
    margin-top: 8px;

    background: transparent;
    border: 2px solid #ddd;
    color: #888;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-details:hover {
    border-color: #667eea;
    color: #667eea;
}
/*Fim*/


