/* ============================================================
   Shopee Afiliados — Estilos da vitrine
   ============================================================ */

/* --- Grade / Vitrine --- */
.shopee-vitrine {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

/* --- Card de produto --- */
.shopee-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: box-shadow .2s, transform .2s;
}
.shopee-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

/* --- Imagem --- */
.shopee-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f7f7;
}
.shopee-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.shopee-card:hover .shopee-img img {
    transform: scale(1.05);
}

/* --- Informações --- */
.shopee-info {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.shopee-nome {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shopee-preco {
    font-size: 16px;
    font-weight: 700;
    color: #ee4d2d;
    margin: 4px 0 0;
}
.shopee-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin: 0;
}
.shopee-vendas {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

/* --- Badge de desconto --- */
.shopee-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ee4d2d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 2;
}
.shopee-badge-oferta {
    background: #d0021b;
    font-size: 13px;
    padding: 4px 9px;
}

/* --- Botão --- */
.shopee-btn {
    display: inline-block;
    margin-top: auto;
    padding: 7px 12px;
    background: #ee4d2d;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    transition: background .2s;
}
.shopee-btn:hover {
    background: #c73e22;
}
.shopee-btn-oferta {
    background: #d0021b;
}
.shopee-btn-oferta:hover {
    background: #a30015;
}

/* ============================================================
   Lista (estilo comparador)
   ============================================================ */
.shopee-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}
.shopee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: box-shadow .2s;
}
.shopee-item:hover {
    box-shadow: 0 3px 14px rgba(0,0,0,.09);
}
.shopee-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.shopee-item-info {
    flex: 1;
}
.shopee-precos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.shopee-item .shopee-badge {
    position: static;
    font-size: 11px;
}
.shopee-item .shopee-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================================
   Ofertas do dia
   ============================================================ */
.shopee-ofertas-wrap {
    margin: 24px 0;
    border: 2px solid #ee4d2d;
    border-radius: 12px;
    overflow: hidden;
}
.shopee-ofertas-header {
    background: #ee4d2d;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.shopee-fogo {
    font-size: 20px;
}
.shopee-ofertas {
    padding: 16px;
    background: #fff9f8;
    margin: 0;
}
.shopee-oferta-card {
    border-color: #ffd0c5;
}

/* ============================================================
   Vazio / erro
   ============================================================ */
.shopee-vazio {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 32px;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 600px) {
    .shopee-vitrine {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .shopee-item {
        flex-wrap: wrap;
    }
    .shopee-item .shopee-btn {
        width: 100%;
        text-align: center;
    }
}
