/* ─── Carte fiche produit ─────────────────────────────────────────────────── */
.capsys-fiche-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
    align-items: flex-start;
    max-width: 640px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ─── Miniature ───────────────────────────────────────────────────────────── */
.capsys-fiche-thumb {
    flex-shrink: 0;
    width: 120px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
}

.capsys-fiche-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.capsys-pdf-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.capsys-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 170px;
    color: #a0aec0;
}

.capsys-no-thumb .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

/* ─── Contenu ─────────────────────────────────────────────────────────────── */
.capsys-fiche-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capsys-fiche-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.capsys-fiche-famille {
    font-size: 12px;
    color: #646970;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ─── Boutons d'action ────────────────────────────────────────────────────── */
.capsys-fiche-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.capsys-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, transform .1s;
    border: none;
    line-height: 1.2;
}

.capsys-btn:active { transform: scale(.97); }

.capsys-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.capsys-btn-view {
    background: #2271b1;
    color: #fff !important;
}
.capsys-btn-view:hover { background: #135e96; }

.capsys-btn-dl {
    background: #f0f6fc;
    color: #2271b1 !important;
    border: 1px solid #c2d9ef;
}
.capsys-btn-dl:hover { background: #e0eef9; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .capsys-fiche-card { flex-direction: column; }
    .capsys-fiche-thumb { width: 100%; min-height: auto; }
    .capsys-fiche-thumb img { max-height: 200px; object-fit: contain; }
}
