
/* ---- Notes clients */
.stars { position: relative; display: inline-block; width: 5.2em; height: 1em; line-height: 1; vertical-align: -0.1em; margin-right: .35em; }
.stars::before, .stars-fill::before { content: "★★★★★"; position: absolute; left: 0; top: 0; letter-spacing: .04em; font-size: 1em; }
.stars::before { color: #d6d6d6; }
.stars-fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.stars-fill::before { color: #f2a900; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .25em; font-size: .95rem; margin: .2rem 0 .6rem; }
.rating .rating-count { color: #666; }
.rating .rating-src { flex-basis: 100%; font-size: .8rem; color: #777; }
.product-card .card-rating { display: block; font-size: .85rem; margin: -.2rem 0 .4rem; }
.product-card .card-rating strong { font-weight: 600; }

/* ---- Acheter en ligne */
.btn.buy-btn { background: #1a7f37; border-color: #1a7f37; cursor: pointer; font: inherit; }
.btn.buy-btn:hover { background: #135f29; }
.buy-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.buy-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.buy-box { background: #fff; border-radius: 12px; max-width: 560px; width: 100%; padding: 1.5rem; position: relative; max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.buy-box h2 { margin: 0 0 .2rem; }
.buy-product { color: #555; margin: 0 0 1rem; font-size: .95rem; }
.buy-close { position: absolute; top: .5rem; right: .7rem; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #555; }
.offers { list-style: none; padding: 0; margin: 0; }
.offer { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .8rem; border: 1px solid #e3e3e3; border-radius: 8px; margin-bottom: .6rem; }
.offer-main { border: 2px solid var(--brand); background: #fff8f8; }
.offer-shop small { display: block; color: #777; font-size: .8rem; }
.offer-price { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.offer .btn, .offer .btn-outline { margin: 0; white-space: nowrap; }
.offer-sep { font-size: .85rem; color: #666; margin: 1rem 0 .4rem; }
.buy-note { font-size: .78rem; color: #777; margin: 1rem 0 0; }
@media (max-width: 520px) { .offer { grid-template-columns: 1fr auto; } .offer .btn, .offer .btn-outline { grid-column: 1 / -1; text-align: center; } }

/* ---- Produit indisponible : alerte e-mail */
.unavailable p { margin: 0 0 .8rem; }
.unavail-msg { background: #fff4e5; border-left: 4px solid #f2a900; padding: .7rem .9rem; border-radius: 6px; }
.alert-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.alert-row { display: flex; gap: .5rem; }
.alert-row input { flex: 1; min-width: 0; padding: .65rem .8rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.alert-row .btn { margin: 0; white-space: nowrap; cursor: pointer; font: inherit; }
.alert-form .consent { font-weight: 400; font-size: .82rem; color: #555; margin-top: .7rem; display: flex; gap: .5rem; align-items: flex-start; }
.alert-form .consent input { margin-top: .2rem; }
.alert-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert-status { font-size: .9rem; margin: .7rem 0 0; }
.alert-status.err { color: #b00020; }
.alert-status.ok { color: #1a7f37; }
@media (max-width: 520px) { .alert-row { flex-direction: column; } }

/* ---- Prix « à partir de » */
.price-from { font-size: 1.05rem; margin: .4rem 0 .8rem; }
.price-from strong { color: var(--brand); font-size: 1.3rem; }
.price-from small { color: #777; font-size: .8rem; }
