/* Shared demo chrome for the Maisonblock. Original code. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #17171a;
  --muted: #6b6b73;
  --border: #e3e1dc;
  --accent: #2f5d50;
  --on-accent: #ffffff;
  --danger: #b3261e;
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.demo-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.demo-bar a { color: var(--text); text-decoration: none; }
.demo-bar .spacer { flex: 1; }
.demo-bar .cart-btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.demo-bar .cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--text); color: #fff; font-size: 12px; margin-left: 6px;
}
.cart-bump { animation: cart-bump .4s ease; }
@keyframes cart-bump { 40% { transform: scale(1.15); } }

.mock-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); z-index: 100;
  background: var(--surface); box-shadow: -20px 0 40px rgba(0,0,0,.12);
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.mock-drawer[data-open] { transform: none; }
.mock-drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.mock-drawer ul { list-style: none; margin: 0; padding: 8px 16px; overflow: auto; flex: 1; }
.mock-drawer li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.mock-drawer li small { display: block; color: var(--muted); }
.mock-drawer footer { padding: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius); padding: 12px 18px; cursor: pointer;
  background: var(--text); color: #fff; font-weight: 600;
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 6px; font-size: 18px; line-height: 1; }

.demo-note {
  max-width: 1100px; margin: 24px auto; padding: 0 16px; font-size: 14px; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
