/* Demo additions: donation buttons, shop menu entry, cart. */
.primary-nav a.demo-don-nav { background:#b8860b; color:#fff; }
.primary-nav a.demo-don-nav:hover, .primary-nav a.demo-don-nav:focus-visible { background:#8f6708; color:#fff; }

.demo-entry { gap:10px; flex-wrap:wrap; }
.ini-live-entry a.demo-don-hero { background:#c9982f; border-color:#a87922; color:#10233f; font-size:15px; min-height:48px; }
.ini-live-entry a.demo-don-hero:hover, .ini-live-entry a.demo-don-hero:focus-visible { background:#e0b454; color:#10233f; }

.demo-don-float {
  position:fixed; right:16px; bottom:16px; z-index:50;
  display:inline-flex; align-items:center; gap:8px; min-height:52px; padding:0 20px;
  border-radius:26px; background:#c9982f; color:#10233f; font-weight:800; font-size:15px;
  text-decoration:none; box-shadow:0 8px 24px rgba(6,38,94,.28);
}
.demo-don-float:hover, .demo-don-float:focus-visible { background:#e0b454; color:#10233f; }
.demo-don-float:focus-visible, .demo-don-hero:focus-visible { outline:3px solid #06265e; outline-offset:3px; }

.demo-banner { margin:0; padding:8px 16px; background:#fff4d6; color:#5b4206; font-size:13px; text-align:center; }

/* Shop */
.demo-shop { max-width:1200px; margin:0 auto; padding:32px 16px 120px; }
.demo-shop .product-body p { min-height:0; }
.demo-shop .product-price small { display:block; color:#8a5a00; font-size:12px; font-weight:700; }
.demo-shop .product-actions .v2-btn { min-height:44px; font-size:14px; }
.demo-qty { display:inline-flex; align-items:center; gap:8px; }
.demo-qty button { width:44px; height:44px; border:1px solid #c7d2df; border-radius:10px; background:#fff; color:var(--navy); font-size:20px; font-weight:800; cursor:pointer; }
.demo-qty output { min-width:24px; text-align:center; font-weight:800; color:var(--navy); }

.demo-cart { margin-top:32px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 30px rgba(8,35,72,.07); }
.demo-cart h2 { margin:0 0 12px; color:var(--navy); font-size:22px; }
.demo-cart ul { margin:0; padding:0; list-style:none; }
.demo-cart li { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); color:#324765; }
.demo-cart .demo-total { display:flex; justify-content:space-between; margin:16px 0; color:var(--navy); font-size:20px; font-weight:900; }
.demo-cart .v2-btn { width:100%; border:0; cursor:pointer; font-size:16px; }
.demo-cart .v2-btn[disabled] { opacity:.5; cursor:not-allowed; }
.demo-error { color:#b91c1c; font-weight:700; }
.demo-empty { color:#68788e; }

#panier-titre { scroll-margin-top:16px; }

/* Donation dialog */
.demo-don-dialog { position:fixed; inset:0; margin:auto; height:fit-content; width:min(420px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:24px 20px 16px; border:0; border-radius:18px; box-shadow:0 24px 60px rgba(6,38,94,.3); color:var(--ink); }
.demo-don-dialog::backdrop { background:rgba(3,22,59,.55); }
.demo-don-dialog h2 { margin:0 0 16px; color:var(--navy); font-size:24px; }
.demo-don-amounts { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.demo-don-amounts button { min-height:52px; border:1px solid #c7d2df; border-radius:12px; background:#fff; color:var(--navy); font:inherit; font-size:16px; font-weight:800; cursor:pointer; }
.demo-don-amounts button[aria-pressed="true"] { border:2px solid #a87922; background:#fff4d6; }
.demo-don-other { display:block; margin-top:16px; color:#324765; font-size:14px; font-weight:700; }
.demo-don-other span { display:flex; align-items:center; gap:8px; margin-top:6px; padding:0 14px; min-height:52px; border:1px solid #c7d2df; border-radius:12px; }
.demo-don-other span:focus-within { border-color:var(--navy); }
.demo-don-other input { flex:1; min-width:0; border:0; outline:0; font:inherit; font-size:18px; font-weight:800; color:var(--navy); background:transparent; }
.demo-don-other em { font-style:normal; color:#68788e; font-weight:700; }
.demo-don-dialog .demo-error:empty { display:none; }
.demo-don-dialog .v2-btn { width:100%; margin-top:16px; border:0; font-size:16px; cursor:pointer; }
.demo-don-dialog .v2-btn[disabled] { opacity:.5; cursor:not-allowed; }
.demo-don-cancel { display:block; width:100%; min-height:44px; margin-top:4px; border:0; background:none; color:#60718a; font:inherit; font-weight:700; cursor:pointer; }
.demo-don-amounts button:focus-visible, .demo-don-cancel:focus-visible, .demo-don-dialog .v2-btn:focus-visible { outline:3px solid var(--navy); outline-offset:2px; }

@media (max-width:420px) {
  .demo-don-float { right:12px; bottom:12px; }
  .ini-live-entry { justify-content:stretch; }
  .ini-live-entry a { flex:1 1 100%; }
}

/* The original header is 7 px too wide at 320 px and its menu button is 35 px high. */
@media (max-width:400px) {
  .header-row { gap:10px; }
  .mobile-nav-toggle { min-height:44px; padding-inline:10px; }
}

/* On a desktop the full menu is wider than the page, on the live site too:
   it wraps onto two lines next to the logo instead of running off the right edge. */
@media (min-width:1051px) {
  .header-row { padding-block:8px; }
  .primary-nav { flex:1 1 0; min-width:0; flex-wrap:wrap; justify-content:flex-end; row-gap:4px; }
  .primary-nav .nav-group:nth-last-of-type(-n+2) .nav-dropdown { left:auto; right:0; }
}
