:root {
    color-scheme: dark;
    --shop-bg: #100d10;
    --shop-card: #211b20;
    --shop-surface: #2c2329;
    --shop-rule: #493840;
    --shop-ink: #fff8fa;
    --shop-muted: #cbbcc3;
    --shop-accent: #89183e;
    --shop-link: #f1bbcc;
}
* { box-sizing: border-box; }
.nw-shop-body {
    margin: 0;
    background: var(--shop-bg);
    color: var(--shop-ink);
    font: 400 1rem/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nw-shop { max-width: 52rem; margin: 0 auto; padding: max(.75rem,env(safe-area-inset-top)) max(1.1rem,env(safe-area-inset-right)) max(2.5rem,env(safe-area-inset-bottom)) max(1.1rem,env(safe-area-inset-left)); }
.nw-shop :is(p, h1, h2, h3, ol, ul, dl, dd, form) { margin: 0; }
.nw-shop :is(ul,ol) { padding: 0; list-style: none; }
.nw-shop a { color: var(--shop-link); text-underline-offset: .2em; }
.nw-shop :is(a,button,input):focus-visible { outline: 3px solid #ffcbda; outline-offset: 3px; }
.nw-shop-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem .8rem; }
.nw-shop-header a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; }
.nw-shop-home { font-weight: 650; }
.nw-shop-home span { font-size: 1.5rem; }
.nw-shop-balance { font-size: .9rem; color: var(--shop-muted); }
.nw-shop-balance b { color: var(--shop-ink); }
.nw-shop h1 { margin: 1.05rem 0 .8rem; font-size: clamp(2rem,5vw,2.9rem); letter-spacing: -.04em; line-height: 1.14; }
.nw-shop h2 { margin-bottom: .65rem; font-size: clamp(1.2rem,3vw,1.45rem); letter-spacing: -.018em; line-height: 1.3; }
.nw-shop h3 { font-size: 1.05rem; line-height: 1.35; color: var(--shop-ink); }
.nw-shop-nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: .2rem .4rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--shop-rule); }
.nw-shop-nav a { display: flex; gap: .3rem; align-items: center; justify-content: center; min-height: 44px; padding: .4rem .55rem; border-bottom: 3px solid transparent; text-decoration: none; color: var(--shop-muted); font-size: .95rem; font-weight: 650; }
.nw-shop-nav a:hover, .nw-shop-nav a[aria-current] { color: var(--shop-ink); }
.nw-shop-nav a[aria-current] { border-bottom-color: #d66c90; }
.nw-shop-nav [data-cart-count] { background: var(--shop-surface); border-radius: 1rem; padding: .04rem .35rem; min-width: 1.25rem; font-size: .76rem; }
.nw-shop-section { margin-top: 1.6rem; }
.nw-shop-muted, .nw-shop-section > p, .nw-shop-empty p, .nw-shop-line small, .nw-shop-edit label { color: var(--shop-muted); }
.nw-shop-section > p, .nw-shop-line small, .nw-shop-checkout > p:not(.nw-shop-total) { font-size: .94rem; }
.nw-shop-sign-in { color: var(--shop-muted); }
.nw-shop-sign-in a { font-weight: 650; }
.nw-shop-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin-top: .7rem; }
.nw-shop-item, .nw-shop-empty, .nw-shop-order { background: var(--shop-card); border-radius: .8rem; padding: 1rem 1.15rem; min-width: 0; overflow-wrap: anywhere; }
.nw-shop-item { display: flex; flex-direction: column; align-items: stretch; }
.nw-shop-description { margin-top: .35rem !important; white-space: pre-line; color: var(--shop-muted); font-size: .95rem; }
.nw-shop-buy, .nw-shop-line, .nw-shop-total, .nw-shop-order-head, .nw-shop-order-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .55rem 1rem; }
.nw-shop-buy { margin-top: auto; padding-top: .8rem; }
.nw-shop-price { color: var(--shop-ink); font-size: 1.16rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.nw-shop button, .nw-shop a.nw-shop-primary { display: inline-flex; align-items: center; justify-content: center; appearance: none; min-height: 44px; padding: .52rem .95rem; border: 0; border-radius: .55rem; color: #fff; background: var(--shop-accent); line-height: 1.3; font-family: inherit; font-size: .95rem; font-weight: 650; cursor: pointer; text-decoration: none; text-align: center; }
.nw-shop .nw-shop-secondary { background: #502437; color: #ffe1ec; }
.nw-shop button:disabled { cursor: default; opacity: .65; }
.nw-shop .nw-shop-remove { background: transparent; color: var(--shop-link); padding: .52rem .35rem; text-decoration: underline; text-underline-offset: .2em; font-weight: 500; }
.nw-shop-open-cart, .nw-shop-empty .nw-shop-primary { margin-top: 1rem; }
.nw-shop-lines { border-radius: .8rem; background: var(--shop-card); padding: 0 1.15rem !important; }
.nw-shop-lines li { padding: 1rem 0; }
.nw-shop-lines li + li { border-top: 1px solid var(--shop-rule); }
.nw-shop-line { align-items: flex-start; overflow-wrap: anywhere; }
.nw-shop-line small { display: block; margin-top: .15rem; }
.nw-shop-edit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .625rem; margin-top: .65rem !important; }
.nw-shop-edit input[type=number] { width: 4rem; max-width: 100%; height: 44px; padding: .4rem .5rem; border: 1px solid #88747e; border-radius: .45rem; background: var(--shop-bg); color: var(--shop-ink); font: inherit; }
.nw-shop-edit label { font-size: .9rem; }
.nw-shop-checkout { margin-top: .55rem; padding: 1rem 1.15rem; border-radius: .8rem; background: #321b25; }
.nw-shop-total { align-items: baseline; }
.nw-shop-total span { font-weight: 650; }
.nw-shop-total strong { font-size: 1.3rem; }
.nw-shop-checkout :is(form, button, p:not(.nw-shop-total)) { margin-top: .5rem; }
.nw-shop-checkout form button { margin-top: .2rem; }
.nw-shop :where(.nw-shop-notice, [role=alert]) { margin-top: .75rem; padding: .75rem 1rem; background: #402433; border-radius: .65rem; color: #ffebf2; }
.nw-shop-order + .nw-shop-order { margin-top: .75rem; }
.nw-shop-order-items { margin: .65rem 0 !important; }
.nw-shop-order-items li { padding: .35rem 0; }
.nw-shop-order-state { color: var(--shop-link); }
.nw-shop-order-pages { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.nw-shop-order-pages a { display: inline-flex; min-height: 44px; align-items: center; }
.nw-shop-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
@media (max-width: 36rem) {
    .nw-shop-grid { grid-template-columns: minmax(0,1fr); }
    .nw-shop-nav { gap: 0; }
    .nw-shop-nav a { flex: 1; padding-inline: .15rem; font-size: .91rem; }
    .nw-shop-item, .nw-shop-empty, .nw-shop-order, .nw-shop-checkout { padding: .9rem 1rem; }
    .nw-shop-lines { padding-inline: 1rem !important; }
}
.nw-shop-admin-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
.nw-shop-services { border-radius: .8rem; background: var(--shop-card); padding: 0 1rem !important; }
.nw-shop-services li + li { border-top: 1px solid var(--shop-rule); }
.nw-shop-services a { min-height: 54px; padding: .65rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .7rem; text-decoration: none; }
.nw-shop-services strong, .nw-shop-services small { display: block; }
.nw-shop-services strong { color: var(--shop-ink); }
.nw-shop-services small { color: var(--shop-link); text-decoration: underline; text-underline-offset: .18em; }
.nw-shop-services b { color: var(--shop-ink); font-variant-numeric: tabular-nums; }

.nw-shop form[aria-busy="true"] { opacity: .72; cursor: progress; }
.nw-shop #nw-shop-sync-error { margin: .65rem 0; }
.nw-shop #nw-shop-sync-error a { display: inline-flex; align-items: center; min-height: 44px; }

.nw-shop-icon { flex: none; vertical-align: -.15em; }
.nw-shop button, .nw-shop a.nw-shop-primary, .nw-shop-admin-link,
.nw-shop-in-cart, .nw-shop-guest-add, .nw-shop-order-pages a { gap: .42rem; }
.nw-shop h2 .nw-shop-icon, .nw-shop h3 .nw-shop-icon { color: var(--shop-link); }
.nw-shop-tab-label { display: inline-flex; align-items: center; gap: .3rem; }
.nw-shop-info-link { display: inline-flex; gap: .45rem; align-items: center; align-self: flex-start; min-height: 44px; font-size: .91rem; }
@media (max-width: 36rem) {
    .nw-shop-nav a { flex-direction: column; gap: .18rem; min-height: 55px; }
    .nw-shop-nav .nw-shop-icon { font-size: 1.18rem; }
}
