/* CC Afiliados — Card compacto horizontal, mobile-first */

.cc-card {
    margin: 20px 0;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cc-label {
    display: block;
    padding: 5px 12px;
    font-size: 10px;
    color: #aaa;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    letter-spacing: .3px;
}

.cc-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

/* Imagem */
.cc-img-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-img-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

/* Informações */
.cc-info {
    flex: 1;
    min-width: 0;
}

.cc-titulo {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.cc-descricao {
    margin: 0 0 4px;
    font-size: 11px;
    color: #777;
    line-height: 1.3;
}

.cc-rating {
    font-size: 11px;
    color: #f5a623;
    margin-bottom: 5px;
}

.cc-aval-count {
    color: #aaa;
    font-size: 10px;
}

.cc-preco-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.cc-preco {
    font-size: 17px;
    font-weight: 700;
    color: #27ae60;
    line-height: 1;
}

.cc-preco-ori {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
}

.cc-desconto {
    font-size: 11px;
    font-weight: 700;
    color: #e74c3c;
    background: #fef0ee;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Botão CTA */
.cc-cta-wrap {
    flex-shrink: 0;
}

.cc-btn {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 44px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff9500, #ff6b35);
}

/* Cores por plataforma */
.cc-btn--amazon       { background: linear-gradient(135deg, #ff9900, #e47911); }
.cc-btn--mercadolivre { background: linear-gradient(135deg, #ffe600, #f0c000); color: #333; }
.cc-btn--magalu       { background: linear-gradient(135deg, #0086ff, #0060cc); }
.cc-btn--shopee,
.cc-btn--outro        { background: linear-gradient(135deg, #ff9500, #ff6b35); }

/* Hover (desktop) */
@media (hover: hover) {
    .cc-card-inner:hover .cc-btn {
        filter: brightness(1.08);
    }
    .cc-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.1);
    }
}

/* Mobile: empilha verticalmente se tela muito pequena */
@media (max-width: 360px) {
    .cc-card-inner {
        flex-wrap: wrap;
    }
    .cc-img-wrap {
        width: 64px;
        height: 64px;
    }
    .cc-img-wrap img {
        width: 64px;
        height: 64px;
    }
    .cc-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
}
