/* Shared cart slideout used by legacy pages */
/* Shared cart slideout (all non-store pages) */
dialog.site-cart{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);max-width:none;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid var(--border);background:var(--surface);color:var(--fg);box-shadow:0 24px 60px rgba(0,0,0,.24)}
dialog.site-cart[open]{display:flex;flex-direction:column;animation:hcCartIn .24s ease-out}
dialog.site-cart::backdrop{background:rgba(76,35,4,.42)}
html[data-theme="dark"] dialog.site-cart::backdrop{background:rgba(0,0,0,.62)}
html[data-theme="contrast"] dialog.site-cart{box-shadow:none}
@keyframes hcCartIn{from{transform:translateX(100%)}to{transform:translateX(0)}}
body.site-cart-open{overflow:hidden}
.site-cart-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border)}
.site-cart-head h2{font-family:var(--display);font-size:1.5rem;font-weight:600;line-height:1.2;margin:0;color:var(--fg)}
.site-cart-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--fg);cursor:pointer}
.site-cart-close:hover{background:var(--bg)}
.site-cart-close:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.site-cart-body{flex:1;overflow:auto;padding:8px 24px;overscroll-behavior:contain}
.site-cart-empty{padding:48px 0;text-align:center}
.site-cart-empty p{color:var(--muted);margin-bottom:16px}
.site-cart-browse{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:3px solid var(--fg);border-radius:999px;color:var(--fg);font-family:var(--display);font-weight:600;text-decoration:none}
.site-cart-browse:hover{background:var(--fg);color:var(--bg)}
.site-cart-line{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}
.site-cart-line img{width:64px;height:64px;object-fit:cover;border-radius:4px;border:1px solid var(--border);flex:none}
.site-cart-line-main{flex:1;min-width:0}
.site-cart-line-top{display:flex;justify-content:space-between;gap:12px}
.site-cart-name{font-family:var(--display);font-weight:600;font-size:1rem;color:var(--fg)}
.site-cart-price{font-family:var(--display);font-weight:600;font-size:1rem;color:var(--fg);white-space:nowrap}
.site-cart-meta{color:var(--muted);font-size:.8125rem;line-height:1.5;margin:2px 0 8px}
.site-cart-slot{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);font-size:.8125rem;line-height:1.5;margin:0 0 8px;text-underline-offset:3px}
.site-cart-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.site-cart-stepper{display:inline-flex;align-items:center;border:1px solid var(--input-border,var(--border));border-radius:999px;overflow:hidden;background:var(--bg)}
.site-cart-stepper button{width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--fg);font-size:1.25rem;line-height:1;cursor:pointer}
.site-cart-stepper button:hover{background:var(--fg);color:var(--bg)}
.site-cart-stepper button:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.site-cart-stepper input{width:48px;height:44px;padding:0;border:0;border-left:1px solid var(--border);border-right:1px solid var(--border);background:transparent;color:var(--fg);font-family:var(--body);font-size:.875rem;text-align:center}
.site-cart-remove{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0 4px;border:0;border-radius:8px;background:transparent;color:#c92a18;cursor:pointer}
.site-cart-remove:hover{background:var(--bg)}
.site-cart-remove:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
html[data-theme="dark"] .site-cart-remove{color:#e88a73}
html[data-theme="contrast"] .site-cart-remove{color:#a3160b}
.site-cart-foot{padding:20px 24px 24px;border-top:1px solid var(--border)}
.site-cart-foot[hidden]{display:none}
.site-cart-subtotal{display:flex;justify-content:space-between;gap:16px;font-family:var(--display);font-weight:600;font-size:1.125rem;color:var(--fg);margin-bottom:14px}
.site-cart-checkout{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:0 22px;border:1px solid var(--btn-bg,var(--control,#c92a18));border-radius:999px;background:var(--btn-bg,var(--control,#c92a18));color:var(--btn-fg,#ffffff);font-family:var(--display);font-weight:600;font-size:1rem;line-height:1;text-decoration:none}
.site-cart-checkout:hover{filter:brightness(.94);color:var(--btn-fg,#ffffff)}
.site-cart-checkout:focus-visible,.site-cart-continue:focus-visible,.site-cart-browse:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.site-cart-continue{display:block;min-height:44px;margin:10px auto 0;padding:0 10px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--fg);font-family:var(--display);font-weight:600;font-size:.9375rem;cursor:pointer}
.site-cart-continue:hover{border-bottom-color:var(--accent)}
.site-cart-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:520px){dialog.site-cart{width:100vw}.site-cart-head,.site-cart-foot{padding-left:18px;padding-right:18px}.site-cart-body{padding-left:18px;padding-right:18px}}
@media (prefers-reduced-motion:reduce){dialog.site-cart[open]{animation:none}}
