/**
 * Product Card Component
 * Shared styles for all product card instances (BEM)
 * Reutilizado por: new-arrivals, sale-products, shop, etc.
 */

.product-card {
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f5f5f5;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-card__badge.sale {
    background-color: #c09578;
    color: #fff;
}

.product-card__badge.out-of-stock {
    background-color: #999;
    color: #fff;
}

.product-card__info {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card__title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.4;
}

.product-card__price {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: block;
}

.product-card__price del {
    color: #999;
    font-weight: 400;
    margin-right: 8px;
    font-size: 13px;
}

.product-card__price ins {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        padding: 10px;
    }

    .product-card__info {
        padding-top: 10px;
    }

    .product-card__title {
        font-size: 13px;
    }

    .product-card__price {
        font-size: 13px;
    }
}