/* ==========================================================================
   COMPONENT: PRODUCT CARD
   ========================================================================== */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.product-discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color, #ff7a00);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    z-index: 2;
    transition: color 0.3s ease;
    cursor: pointer;
}

.btn-favorite:hover,
.btn-favorite.active {
    color: #e74c3c;
}

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

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-category-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 10px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    font-size: 0.8rem;
    color: #ffc107;
    margin-bottom: 12px;
}

.product-price-container {
    margin-top: auto;
}

.price-old {
    text-decoration: line-through;
    font-size: 0.85rem;
    color: #999;
}

.price-new {
    font-weight: 800;
    color: #158b5e; /* Green matching standard */
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 3px;
}

.price-installments {
    font-size: 0.8rem;
    color: #777;
}

.btn-buy-card {
    background-color: var(--accent-color, #ff7a00);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-buy-card:hover {
    background-color: #e66e00;
}
