/* Afiliado Pro – Frontend Card */
.afp-card {
    position: relative;
    background: var(--afp-bg, #fff);
    border: 1.5px solid var(--afp-border, #dde1e7);
    border-radius: var(--afp-radius, 16px);
    overflow: hidden;
    max-width: 640px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow .2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--afp-text, #1d1d1d);
    display: flex;
    flex-direction: row;
}
.afp-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.13); }

.afp-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 10px; border-radius: 20px;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; z-index: 2;
}
.afp-badge--shopee { background: #ee4d2d; color: #fff; }
.afp-badge--ali    { background: #ff6600; color: #fff; }

.afp-image-wrap {
    width: 200px; min-width: 200px; flex-shrink: 0;
    overflow: hidden; background: #f5f5f5;
    border-radius: var(--afp-radius, 16px) 0 0 var(--afp-radius, 16px);
}
.afp-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .3s;
}
.afp-card:hover .afp-image-wrap img { transform: scale(1.04); }

.afp-body {
    padding: 18px 18px 18px 16px;
    display: flex; flex-direction: column;
    justify-content: center; flex: 1; min-width: 0;
}
.afp-name {
    font-size: .92rem; font-weight: 600; line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--afp-text, #1d1d1d);
}
.afp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .78rem; color: #666; margin-bottom: 12px; }
.afp-star--full, .afp-star--half { color: #f5a623; }
.afp-star--empty { color: #ccc; }
.afp-rating-num { color: #888; font-size: .75rem; }
.afp-price { font-size: 1.6rem; font-weight: 800; color: var(--afp-price, #e63946); margin: 0 0 4px; line-height: 1.1; }
.afp-installment { font-size: .8rem; color: var(--afp-installment, #457b9d); margin: 0 0 16px; }
.afp-btn {
    display: block; width: 100%; text-align: center; padding: 11px 0;
    background: var(--afp-btn-bg, #ee4d2d); color: var(--afp-btn-text, #fff) !important;
    border-radius: calc(var(--afp-radius, 16px) - 6px);
    font-weight: 700; font-size: .9rem; text-decoration: none !important;
    transition: opacity .2s, transform .15s; box-sizing: border-box; margin-top: auto;
}
.afp-btn:hover { opacity: .88; transform: translateY(-1px); }

@media (max-width: 480px) {
    .afp-card { flex-direction: column; max-width: 100%; }
    .afp-image-wrap { width: 100%; min-width: unset; height: 220px; border-radius: var(--afp-radius, 16px) var(--afp-radius, 16px) 0 0; }
}
