/* Product Card Component */
.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-orange);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.product-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-rating {
    color: #ffc107;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.product-rating .rating-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.product-price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.product-installments {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card .btn-comprar {
    width: 100%;
    background-color: var(--primary-orange);
    color: white;
    font-weight: bold;
    padding: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.product-card .btn-comprar i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.product-card .btn-comprar:hover {
    background-color: var(--primary-orange-hover);
}
