/* Panier Éditions Perspectives — partagé par les pages françaises et anglaises */
.top-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.ep-cart-open,.ep-add-button,.ep-cart-checkout,.ep-cart-qty button,.ep-cart-remove,.ep-cart-close{
  font:inherit;
}
.ep-cart-open{
  border:1px solid #d7d7d7;
  background:#fff;
  color:#1c1c1c;
  border-radius:999px;
  padding:8px 13px;
  font-weight:750;
  cursor:pointer;
  white-space:nowrap;
}
.ep-cart-open:hover{border-color:#8f8f8f}
.ep-cart-count{
  display:inline-grid;
  place-items:center;
  min-width:1.55rem;
  height:1.55rem;
  margin-left:.35rem;
  padding:0 .35rem;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:.78rem;
  line-height:1;
}
.ep-add-button{
  border:0;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:11px 15px;
  font-weight:800;
  cursor:pointer;
}
.ep-add-button:hover{background:#2e2e2e}
.ep-add-button.secondary{background:#3b3b3b}
.ep-purchase-note{
  margin-top:12px;
  color:#5a5a5a;
  font-size:.94rem;
}
.ep-cart-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.42);
  display:none;
  align-items:stretch;
  justify-content:flex-end;
}
.ep-cart-overlay.is-open{display:flex}
.ep-cart-panel{
  width:min(100%,460px);
  height:100%;
  overflow:auto;
  background:#fff;
  color:#1c1c1c;
  padding:22px;
  box-shadow:-16px 0 44px rgba(0,0,0,.2);
}
.ep-cart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e5e5e5}
.ep-cart-head h2{margin:0;font-size:1.5rem}
.ep-cart-close{border:1px solid #ddd;background:#fff;border-radius:999px;width:36px;height:36px;cursor:pointer;font-size:1.25rem;line-height:1}
.ep-cart-items{display:grid;gap:14px;margin:20px 0}
.ep-cart-empty{padding:18px;border:1px dashed #cfcfcf;border-radius:12px;color:#5a5a5a;background:#fafafa}
.ep-cart-item{border:1px solid #e5e5e5;border-radius:14px;padding:15px;background:#fafafa}
.ep-cart-item-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.ep-cart-item-name{font-weight:800}
.ep-cart-item-price{white-space:nowrap;font-weight:750}
.ep-cart-item-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;flex-wrap:wrap}
.ep-cart-qty{display:flex;align-items:center;gap:8px}
.ep-cart-qty button{width:32px;height:32px;border-radius:8px;border:1px solid #d5d5d5;background:#fff;cursor:pointer;font-weight:800}
.ep-cart-qty span{min-width:2ch;text-align:center;font-weight:800}
.ep-cart-remove{border:0;background:transparent;color:#666;text-decoration:underline;cursor:pointer;padding:4px 0}
.ep-cart-threshold{padding:14px 15px;border-radius:12px;background:#f4f4f2;margin:8px 0 16px;font-size:.95rem}
.ep-cart-threshold strong{display:block;margin-bottom:3px}
.ep-cart-summary{border-top:1px solid #e5e5e5;padding-top:14px;display:grid;gap:7px}
.ep-cart-line{display:flex;justify-content:space-between;gap:20px}
.ep-cart-line.total{font-size:1.16rem;font-weight:850;padding-top:8px;border-top:1px solid #e5e5e5;margin-top:3px}
.ep-cart-checkout{width:100%;border:0;border-radius:11px;background:#111;color:#fff;padding:13px 16px;font-weight:850;cursor:pointer;margin-top:18px}
.ep-cart-checkout:hover{background:#2c2c2c}
.ep-cart-checkout:disabled{opacity:.55;cursor:not-allowed}
.ep-cart-error{display:none;margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff0f0;color:#8a1f1f;font-size:.92rem}
.ep-cart-error.is-visible{display:block}
.ep-cart-security{margin-top:13px;color:#666;font-size:.86rem;line-height:1.45}
body.ep-cart-lock{overflow:hidden}
@media(max-width:620px){
  .topbar{align-items:flex-start!important}
  .top-actions{gap:8px}
  .ep-cart-panel{padding:18px}
}
