/* Afilio Cupons & Ofertas */

.afilio-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}
.afilio-cols-1 { grid-template-columns: 1fr; }
.afilio-cols-2 { grid-template-columns: repeat(2, 1fr); }
.afilio-cols-3 { grid-template-columns: repeat(3, 1fr); }
.afilio-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .afilio-cols-3,
    .afilio-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .afilio-grid { grid-template-columns: 1fr !important; }
}

/* Card */
.afilio-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.afilio-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* Imagem */
.afilio-card__img {
    position: relative;
    background: #f3f4f6;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.afilio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.afilio-card__no-image {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding: 12px;
    text-align: center;
}

/* Badge */
.afilio-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 8px;
    border-radius: 20px;
}
.afilio-badge--coupon {
    background: #f59e0b;
    color: #fff;
}
.afilio-badge--deal {
    background: #10b981;
    color: #fff;
}

/* Body */
.afilio-card__body {
    padding: 14px 16px 8px;
    flex: 1;
}
.afilio-card__store {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #9ca3af;
    margin: 0 0 4px;
}
.afilio-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 8px;
}
.afilio-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 8px;
}
.afilio-card__expires {
    font-size: 12px;
    color: #ef4444;
    font-weight: 600;
    margin: 0;
}

/* Footer */
.afilio-card__footer {
    padding: 12px 16px 16px;
}

/* Botões */
.afilio-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, opacity .15s;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}

/* Botão de oferta (deal) */
.afilio-btn--deal {
    background: #111827;
    color: #fff !important;
}
.afilio-btn--deal:hover {
    background: #374151;
    color: #fff !important;
}

/* Botão revelar cupom */
.afilio-btn--reveal {
    background: #f59e0b;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.afilio-btn--reveal:hover {
    background: #d97706;
}
.afilio-btn__code {
    display: none;
    font-size: 15px;
    letter-spacing: 1.5px;
}

/* Estado: revelado */
.afilio-btn--revealed {
    background: #10b981;
}
.afilio-btn--revealed .afilio-btn__label {
    display: none;
}
.afilio-btn--revealed .afilio-btn__code {
    display: inline;
}

/* Copiado */
.afilio-btn--copied {
    background: #6366f1 !important;
}
.afilio-btn--copied::after {
    content: " ✓ Copiado!";
}

.afilio-empty {
    color: #6b7280;
    font-style: italic;
}
