/* =========================
   WIDGET - PRODUCT CARDS
========================= */

.laf-insights-widget--product-cards {
    padding: var(--laf-space-5);
}

/* scroll interne du widget */
.laf-insights-widget--product-cards .laf-insights-widget__body{
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;
}

/* scrollbar propre */
.laf-insights-widget--product-cards .laf-insights-widget__body::-webkit-scrollbar{
    width: 10px;
}

.laf-insights-widget--product-cards .laf-insights-widget__body::-webkit-scrollbar-thumb{
    background: rgba(15,23,42,.18);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.laf-insights-widget--product-cards .laf-insights-widget__body::-webkit-scrollbar-track{
    background: transparent;
}


/* =========================
   GRID
========================= */

.laf-product-cards__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}


/* =========================
   CARD
========================= */

.laf-product-card{
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    align-items:stretch;
    min-height:130px;

    border:1px solid var(--laf-ins-border);
    border-radius:16px;
    background:#fff;
    overflow:hidden;

    cursor:pointer;
    transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}

.laf-product-card:hover{
    transform:translateY(-1px);
    border-color:rgba(15,23,42,.14);
    box-shadow:0 12px 28px rgba(15,23,42,.08);
}

.laf-product-card.is-selected{
    border-color:var(--laf-ins-accent);
    box-shadow:0 0 0 1px var(--laf-ins-accent), 0 12px 28px rgba(15,23,42,.08);
}


/* =========================
   IMAGE
========================= */

.laf-product-card__media{
    background:var(--laf-ins-soft-bg);
    min-height:130px;
}

.laf-product-card__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.laf-product-card__placeholder{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    color:var(--laf-ins-muted);
    font-size:12px;
    font-weight:600;
    text-align:center;
    padding:10px;
}


/* =========================
   BODY
========================= */

.laf-product-card__body{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:10px 12px;
    min-width:0;
}


/* =========================
   HEADER
========================= */

.laf-product-card__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px;
}

.laf-product-card__title{
    font-size:14px;
    line-height:1.3;
    font-weight:700;
    color:var(--laf-ins-page-text);
    margin:0;
    min-width:0;
}


/* =========================
   BADGE
========================= */

.laf-product-card__badge{
    flex:0 0 auto;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(15,23,42,.08);
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
}

.laf-product-card__badge.is-hot{ color:#b42318; }
.laf-product-card__badge.is-warm{ color:#b54708; }
.laf-product-card__badge.is-cold{ color:#475467; }


/* =========================
   METRICS
========================= */

.laf-product-card__metrics{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px 10px;
    margin-top:auto;
}

.laf-product-card__metrics div{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    gap:6px;
    font-size:11px;
    line-height:1.2;
    color:var(--laf-ins-soft-text);
}

.laf-product-card__metrics strong{
    color:var(--laf-ins-page-text);
    font-size:11px;
    font-weight:700;
    text-align:right;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px){
    .laf-product-cards__grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 767px){
    .laf-product-card{
        grid-template-columns:90px minmax(0,1fr);
        min-height:110px;
    }

    .laf-product-card__media{
        min-height:110px;
    }

    .laf-product-card__body{
        padding:8px 10px;
        gap:5px;
    }

    .laf-product-card__title{
        font-size:13px;
    }

    .laf-product-card__metrics{
        gap:3px 8px;
    }

    .laf-product-card__metrics div,
    .laf-product-card__metrics strong{
        font-size:10px;
    }
}