/* ============================================================
   bons-plans.css - Page listing des bons plans Amazon
   ============================================================ */

.bonsplans-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    min-height: 80vh;
}

.bonsplans-container h1 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #14244a;
    text-align: center;
    margin-bottom: 8px;
}

.bonsplans-subtitle {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 36px;
}

.bonsplans-empty {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    margin-top: 60px;
}

/* ---------- GRILLE ---------- */
.bonsplans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ---------- CARTE PRODUIT ---------- */
.bonsplans-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 18px 20px;
    box-shadow: 0 4px 20px rgba(80, 80, 110, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bonsplans-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(80, 80, 110, 0.18);
    text-decoration: none;
    color: inherit;
}

/* ---------- BADGE ---------- */
.bonsplans-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f7c948;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
}

/* ---------- IMAGE ---------- */
.bonsplans-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 8px auto 14px;
    display: block;
}

/* ---------- TITRE ---------- */
.bonsplans-title {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 8px;
    max-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- ETOILES (reutilise amazon-stars de amazon-showcase.css si charge, sinon inline) ---------- */
.bonsplans-card .amazon-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.bonsplans-card .amazon-stars .stars-display {
    position: relative;
    display: inline-block;
    font-size: 16px;
    letter-spacing: 2px;
    color: #ddd;
}

.bonsplans-card .amazon-stars .stars-display::before {
    content: '\2605\2605\2605\2605\2605';
    color: #ff9900;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    width: var(--star-width, 0%);
}

.bonsplans-card .amazon-stars .stars-text {
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

/* ---------- PRIX ---------- */
.bonsplans-price {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #b12704;
    margin: 4px 0 12px;
}

/* ---------- BOUTON CTA ---------- */
.bonsplans-cta {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(180deg, #f7c948 0%, #f1af21 100%);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(241, 175, 33, 0.3);
    margin-top: auto;
}

.bonsplans-card:hover .bonsplans-cta {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 175, 33, 0.5);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .bonsplans-container {
        padding: 24px 12px 40px;
    }

    .bonsplans-container h1 {
        font-size: 1.6rem;
    }

    .bonsplans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bonsplans-img {
        width: 130px;
        height: 130px;
    }
}
