/*==================================================================
[ CARD DE PRODUCTO — DISEÑO ELEGANTE ]
==================================================================*/

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ---------- Media (imagen) ---------- */
.product-card__media {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--color-fondo-alt, #f7f7f7);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.08);
}

/* ---------- Badges ---------- */
.product-card__badge {
    position: absolute;
    top: 12px;
    z-index: 3;
    font-family: Poppins-SemiBold, Poppins, sans-serif;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 20px;
    color: #ffffff;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    text-transform: uppercase;
}

.product-card__badge--oferta {
    right: 12px;
    background: linear-gradient(135deg, #ff4d6d 0%, #f74877 100%);
}

.product-card__badge--agotado {
    left: 12px;
    background: #555555;
}

.product-card__badge--stock {
    left: 12px;
    background: #f9ba48;
    color: #333;
}

/* ---------- Overlay de acciones (hover) ---------- */
.product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 2;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
    visibility: visible;
}

.product-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #333;
    padding: 10px 18px;
    border-radius: 24px;
    font-family: Poppins-Medium, Poppins, sans-serif;
    font-size: 13px;
    text-decoration: none;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, background 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.product-card:hover .product-card__action {
    transform: translateY(0);
    opacity: 1;
}

.product-card__action:hover {
    background: var(--color-primario, #717fe0);
    color: #ffffff;
}

.product-card__action i {
    font-size: 16px;
}

/* ---------- Body (info) ---------- */
.product-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-card__name {
    font-family: Poppins-Medium, Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: var(--color-texto, #333);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    transition: color 0.25s ease;
}

.product-card__name:hover {
    color: var(--color-primario, #717fe0);
}

/* ---------- Precio ---------- */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card__price-current {
    font-family: Poppins-Bold, Poppins, sans-serif;
    font-size: 18px;
    color: var(--color-primario, #717fe0);
    line-height: 1;
}

.product-card__price-old {
    font-family: Poppins-Regular, Poppins, sans-serif;
    font-size: 13px;
    color: #aaaaaa;
    text-decoration: line-through;
    line-height: 1;
}

/* ---------- Botón WhatsApp ---------- */
.product-card__btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #39a84e;
    color: #ffffff;
    font-family: Poppins-Medium, Poppins, sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    transition: background 0.25s ease, transform 0.2s ease;
}

.product-card__btn-wa:hover {
    background: #1da851;
    color: #ffffff;
    transform: translateY(-2px);
}

.product-card__btn-wa i {
    font-size: 15px;
}

/*==================================================================
[ RESPONSIVE ]
==================================================================*/
@media (max-width: 991px) {
    .product-card__media {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .product-card__media {
        height: 240px;
    }
    .product-card__name {
        font-size: 14px;
        min-height: auto;
    }
    .product-card__price-current {
        font-size: 16px;
    }
    .product-card__btn-wa {
        font-size: 12px;
        padding: 9px 12px;
    }
}

@media (max-width: 575px) {
    .product-card__media {
        height: 280px;
    }
    .product-card {
        border-radius: 12px;
    }
}