/* ---------- Cart demo page (shown in the collection overlay) ---------- */
.collection .cart-page .lines { flex: 1 1 420px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.collection .cart-page .lines li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.collection .cart-page .lines li:first-child { padding-top: 0; }
.collection .cart-page .lines img { width: 112px; height: 112px; object-fit: contain; max-height: none; }
.collection .cart-page .lines div { flex: 1; }
.collection .cart-page h2 { margin: 0; font: 400 22px/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif; color: var(--ink); }
.collection .cart-page .lines p { margin: 8px 0 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.collection .cart-page .qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.collection .cart-page .qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.collection .cart-page .qty button:hover { background: var(--rule); }
.collection .cart-page .qty output { width: 28px; text-align: center; }
.collection .cart-page .line-price, .collection .cart-page .total b {
  font: 400 19px/1.3 "Iowan Old Style", "Palatino Linotype", Georgia, serif; color: var(--ink); font-variant-numeric: lining-nums;
}
.collection .cart-page .pay { flex: 0 1 360px; max-width: 360px; padding: 28px; border: 1px solid var(--rule); }
.collection .cart-page .demo {
  margin: 0 0 20px; padding: 8px 12px; background: #fdf6e3; color: #7a5b12; font-size: 12px; letter-spacing: .04em;
}
.collection .cart-page .total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.collection .cart-page .pay label { display: block; margin: 0 0 14px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.collection .cart-page .pay input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #d9d6cf; border-radius: 4px;
  font: 14px/1.2 "Open Sans", system-ui, sans-serif; color: var(--ink); background: #faf9f7;
}
.collection .cart-page .card { display: grid; grid-template-columns: 1fr 1fr; }
.collection .cart-page .card input:first-child { grid-column: 1 / -1; border-radius: 4px 4px 0 0; }
.collection .cart-page .card input:nth-child(2) { margin-top: -1px; border-radius: 0 0 0 4px; }
.collection .cart-page .card input:nth-child(3) { margin: -1px 0 0 -1px; width: calc(100% + 1px); border-radius: 0 0 4px 0; }
.collection .cart-page .pay button {
  width: 100%; margin: 6px 0 0; padding: 13px; border-radius: 4px; background: var(--ink); color: #fff;
  font-size: 14px; letter-spacing: .04em; transition: opacity .15s;
}
.collection .cart-page .pay button:disabled { opacity: .55; cursor: default; }
.collection .cart-page .paid { margin: 14px 0 0; font-size: 13px; color: #2e6b3c; }
.collection .cart-page .by { margin: 18px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.collection .cart-page .by b { font-weight: 700; letter-spacing: -.02em; font-size: 13px; }

/* "DEMO" across the screen's diagonal, so nobody takes the mockup for a real checkout */
.collection .cart-page::after {
  content: "DEMO"; position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none;
  rotate: calc(-1 * atan2(100vh, 100vw));
  font: 700 min(21vw, 34vh)/1 system-ui, sans-serif; letter-spacing: .08em; color: rgb(160 30 30 / .25);
}
