/* ============================================================
   Produit Affilié Sidebar — styles front-end v1.2
   Thème : blanc / badge bleu / CTA vert (BlogCyclisme)
   ============================================================ */

.pas-widget {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
    margin-bottom: 1.5rem;
}

.pas-widget.pas-clickable {
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pas-widget.pas-clickable:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

/* ---------- Badge ---------- */
.pas-badge {
    background: #1d4ed8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-align: center;
    padding: 6px 14px;
}

/* ---------- Body ---------- */
.pas-body {
    padding: 16px 16px 0;
}

.pas-body-top-gap {
    padding-top: 14px;
}

/* ---------- Header ---------- */
.pas-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.pas-stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 9px;
}

.pas-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pas-instock     { background: #eaf7f1; color: #1a8a5a; }
.pas-instock .pas-stock-dot  { background: #22c372; }

.pas-limited     { background: #fef3e2; color: #b45309; }
.pas-limited .pas-stock-dot  { background: #f59e0b; }

.pas-outofstock  { background: #fef2f2; color: #b91c1c; }
.pas-outofstock .pas-stock-dot { background: #ef4444; }

/* ---------- Image ---------- */
.pas-image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: #f4f6f9;
    margin: 12px 0 0;
}

.pas-image-wrap img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- Séparateur ---------- */
.pas-sep {
    height: 1px;
    background: #f0f1f3;
    margin: 0;
}

/* ---------- Review ---------- */
.pas-review {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 12px;
}

.pas-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pas-review-content { flex: 1; min-width: 0; }

.pas-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

.pas-star          { font-size: 15px; line-height: 1; }
.pas-star.filled   { color: #f59e0b; }
.pas-star.empty    { color: #e5e7eb; }

.pas-quote {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* ---------- CTA ---------- */
.pas-cta-wrap { padding: 0 16px 16px; }

.pas-cta {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #16a34a;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none !important;
    letter-spacing: 0.15px;
    transition: background 0.15s, transform 0.1s;
    box-sizing: border-box;
}

.pas-cta:hover  { background: #15803d; color: #fff !important; text-decoration: none !important; }
.pas-cta:active { transform: scale(0.98); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .pas-image-wrap img { max-width: 85px; max-height: 85px; }
}
