/* Shaw Prints v2 · "toy shelf" · mobile first */
:root {
  --cream: #FFF7EA;
  --paper: #FFFFFF;
  --ink: #1F2A24;
  --ink-2: #3D4A42;
  --muted: #4A574F;
  --green: #1F7A43;
  --green-dk: #165C32;
  --mint: #6FD39A;
  --red: #C8372A;
  --sun: #FFD84D;
  --wood: #D9A86C;
  --wood-dk: #B9864E;
  --night: #1F2A24;
  --night-2: #2C3A32;
  --night-line: #4F6357;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pop: 4px 4px 0 var(--ink);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
body.locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.3px; line-height: 1.1; margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: var(--r-md); border: 2px solid var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; background: var(--paper); color: var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--pop); }
.btn-primary:hover { background: var(--green-dk); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: var(--paper); }
.btn-mint { background: var(--mint); color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font-weight: 700; color: inherit; text-decoration: none; }
.icon-btn, .round-btn { width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: 0 0 auto; }
.round-btn.dark { background: var(--night-2); border-color: var(--night-line); color: #fff; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: 2px solid var(--ink); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 54px; height: 30px; object-fit: contain; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 22px; }
.topnav { display: none; gap: 22px; font-weight: 800; }
.topnav a { color: var(--ink); text-decoration: none; }
.top-actions { display: flex; gap: 8px; }
.cart-btn { position: relative; background: var(--green); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.cart-count { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.15) rotate(-6deg); } }
.searchbar { padding: 0 0 12px; }
.searchbar input { width: 100%; height: 48px; border-radius: 14px; border: 2px solid var(--ink); padding: 0 14px; background: var(--paper); font-size: 16px; }

/* Live strip */
.live-strip { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; background: var(--night); color: #fff; border-radius: var(--r-md); border: 0; text-align: left; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .8px; flex: 0 0 auto; }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
.live-pill.idle { background: var(--night-line); }
.live-pill.idle .dot { animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.live-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.live-line { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar { display: block; height: 5px; border-radius: 3px; background: #3A4A41; overflow: hidden; }
.live-bar span { display: block; height: 100%; width: 0; background: var(--mint); transition: width .6s; }

/* Hero */
.hero { display: grid; gap: 18px; padding-top: 26px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(34px, 9vw, 58px); font-weight: 700; }
.hero p { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; gap: 10px; margin-top: 18px; }
.hero-ctas .btn { flex: 1; }
.hero-art { position: relative; height: 260px; }
.sticker { position: absolute; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.sticker img { width: 100%; aspect-ratio: 1 / 0.9; object-fit: cover; }
.sticker span { padding: 8px 12px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.sticker.a { left: 6px; top: 22px; width: 52%; transform: rotate(-5deg); }
.sticker.b { right: 4px; top: 0; width: 42%; transform: rotate(6deg); }
.price-blob { position: absolute; right: 24px; bottom: 4px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-family: var(--head); font-weight: 700; transform: rotate(-4deg); }

/* Facts */
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px auto 0; }
.facts li { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.facts strong { font-size: 13px; }
.facts span { font-size: 12px; color: var(--muted); }

/* Chips */
.chips { position: sticky; top: 64px; z-index: 20; background: var(--cream); margin-top: 18px; }
.chips-in { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chips-in::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); font-weight: 800; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Shelves + cards */
.shelves { display: flex; flex-direction: column; gap: 34px; padding-top: 14px; }
.loading, .empty { color: var(--muted); font-weight: 700; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.shelf-head h2 { font-size: 26px; }
.shelf-head span { font-size: 13px; font-weight: 800; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ledge { height: 14px; margin: 14px -8px 0; border-radius: 6px; background: var(--wood); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--wood-dk); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--pop); transition: transform .12s, box-shadow .12s; text-align: left; padding: 0; }
.card:hover { transform: translate(-1px, -2px) rotate(-.4deg); box-shadow: 6px 6px 0 var(--ink); }
.card .pic { position: relative; aspect-ratio: 1 / 1; border-bottom: 2px solid var(--ink); background: #EADFCB; overflow: hidden; }
.card .pic img, .card .pic video { width: 100%; height: 100%; object-fit: cover; }
.card .pic video { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.card.playing .pic video { opacity: 1; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; border: 2px solid var(--ink); }
.badge.new { left: auto; right: 8px; background: var(--sun); color: var(--ink); }
.badge.vid { top: auto; bottom: 8px; left: auto; right: 8px; background: var(--ink); border-color: var(--ink); }
.card .info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-family: var(--head); font-weight: 600; font-size: 15px; line-height: 1.2; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card .price { font-weight: 800; font-size: 17px; }
.card .price s { font-size: 13px; color: #5C6961; font-weight: 700; margin-left: 4px; }
.card .plus { width: 32px; height: 32px; border-radius: 11px; background: var(--green); color: #fff; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); flex: 0 0 auto; }
.swatches { display: flex; gap: 3px; }
.swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); display: block; }

/* Bundle + custom */
.bundle, .custom { margin-top: 38px; }
.bundle-card { background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); padding: 18px; display: grid; gap: 12px; }
.bundle-card .kicker { font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.bundle-card h2 { font-size: 27px; }
.bundle-thumbs { display: flex; gap: 8px; }
.bundle-thumbs img { width: 64px; height: 64px; border-radius: 14px; border: 2px solid var(--ink); object-fit: cover; }
.bundle-card .btn { background: var(--ink); color: #fff; }
.custom-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px; }
.custom-card h2 { font-size: 27px; }
.custom-card > p { color: var(--ink-2); margin: 10px 0 16px; }
.form { display: grid; gap: 14px; }
.form label, .email { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.form input:not([type=file]), .form textarea, .email input { width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--ink); padding: 10px 12px; background: #fff; font-size: 16px; font-weight: 600; }
.form input[type=file] { padding: 10px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--cream); width: 100%; }
.opt { font-weight: 600; color: var(--muted); font-size: 13px; }
.row2 { display: grid; gap: 14px; }
.form-msg { margin: 0; font-weight: 800; min-height: 1.5em; }
.form-msg.ok { color: var(--green-dk); }
.form-msg.err { color: var(--red); }

/* Footer */
.footer { margin-top: 44px; background: var(--night); color: #E9EFEA; padding: 28px 0 40px; }
.footer-in { display: grid; gap: 12px; }
.footer-brand { font-family: var(--head); font-weight: 700; font-size: 22px; color: #fff; }
.footer p { margin: 0; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 800; font-size: 14px; }
.footer-links a, .footer-links .linklike { color: #9BE3B8; }

/* Sheets (bottom sheet on phones, dialog on desktop) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 28, 24, .55); z-index: 50; }
.sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(100% - 24px); background: var(--cream); border-radius: 24px 24px 0 0; border: 2px solid var(--ink); border-bottom: 0; display: flex; flex-direction: column; overflow: hidden; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ps-media { position: relative; background: #EADFCB; border-bottom: 2px solid var(--ink); }
.ps-media img, .ps-media video { width: 100%; aspect-ratio: 1 / 1; max-height: 56vh; object-fit: cover; }
.ps-close { position: absolute; top: 12px; left: 12px; }
.ps-share { position: absolute; top: 12px; right: 12px; }
.ps-video-btn { position: absolute; bottom: 12px; right: 12px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: #fff; border: 0; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ps-body { padding: 16px 16px 24px; display: grid; gap: 14px; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tag.sale { background: var(--red); color: #fff; }
.tag.new { background: var(--sun); }
.ps-body h2 { font-size: 30px; }
.ps-desc { margin: 0; color: var(--ink-2); }
.opt-group { display: grid; gap: 10px; margin-bottom: 14px; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.opt-head h3 { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.opt-head span { font-size: 14px; font-weight: 700; color: var(--ink-2); text-align: right; }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.color { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); padding: 0; }
.color[aria-pressed="true"] { border: 3px solid var(--cream); box-shadow: 0 0 0 3px var(--ink); }
.more, .custom-toggle { height: 44px; padding: 0 14px; border-radius: 22px; border: 2px dashed var(--ink); background: var(--paper); font-weight: 800; font-size: 13px; }
.custom-toggle[aria-pressed="true"] { border-style: solid; background: var(--ink); color: #fff; }
.custom-color input { width: 100%; min-height: 48px; border-radius: 14px; border: 2px solid var(--ink); padding: 10px 12px; font-size: 16px; }
.custom-color small { color: var(--muted); font-weight: 700; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size { min-height: 58px; border-radius: 14px; border: 2px solid var(--ink); background: var(--paper); font-weight: 800; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.size small { font-size: 12px; font-weight: 700; opacity: .85; }
.size[aria-pressed="true"] { background: var(--ink); color: #fff; }
.picks { display: grid; gap: 8px; }
.picks label { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.picks select { flex: 1; min-height: 46px; border-radius: 12px; border: 2px solid var(--ink); padding: 0 10px; background: #fff; font-size: 15px; font-weight: 600; }
.ps-ship { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-md); font-size: 13px; font-weight: 600; color: var(--green); }
.ps-ship span { color: var(--ink); }
.ps-buybar { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); background: var(--cream); }
.ps-price { display: flex; flex-direction: column; min-width: 64px; }
.ps-price span { font-size: 24px; font-weight: 800; line-height: 1; }
.ps-price s { font-size: 13px; color: #5C6961; }
.qty { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); height: 50px; }
.qty button { width: 36px; height: 46px; border: 0; background: none; font-size: 22px; font-weight: 800; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.ps-add { flex: 1; min-height: 54px; font-size: 17px; }

/* Cart drawer */
.drawer { position: fixed; z-index: 60; inset: 0; background: var(--cream); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; animation: up .2s ease-out; }
.drawer-head { position: sticky; top: 0; z-index: 2; background: var(--cream); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 2px solid var(--ink); }
.drawer-head h2 { font-size: 26px; }
.drawer-body { flex: 0 0 auto; padding: 12px 16px; display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 8px; }
.line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid var(--ink); }
.line .t { font-weight: 800; line-height: 1.2; }
.line .m { font-size: 13px; color: var(--muted); font-weight: 600; }
.line .side { display: grid; justify-items: end; gap: 6px; }
.line .qty { height: 38px; border-radius: 10px; }
.line .qty button { width: 30px; height: 34px; font-size: 18px; }
.line .rm { background: none; border: 0; color: var(--red); font-weight: 800; font-size: 13px; padding: 4px; }
.drawer-foot { border-top: 2px solid var(--ink); padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; background: var(--cream); }
.fulfil { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.fulfil legend { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.fulfil label { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.fulfil input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.fulfil strong { display: block; }
.totals { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.fine { margin: 0; font-size: 12px; color: var(--muted); text-align: center; font-weight: 600; }
.empty-cart { text-align: center; padding: 40px 10px; display: grid; gap: 14px; justify-items: center; }

/* Live sheet */
.live-sheet { background: var(--night); color: #fff; border-color: var(--night-line); }
.live-scroll { padding: 14px 16px 24px; display: grid; gap: 14px; align-content: start; grid-auto-rows: max-content; }
.live-head { display: flex; align-items: center; gap: 10px; }
.live-head h2 { flex: 1; font-size: 24px; }
.cam { flex: 0 0 auto; min-height: min-content; border-radius: 20px; border: 2px solid var(--night-line); background: #0F1512; display: flex; align-items: center; justify-content: center; color: #A9B8AF; font-weight: 700; }
/* Camera frames are ~1382x1220: show the whole frame, never crop */
.cam img { width: 100%; height: auto; max-height: 62vh; aspect-ratio: 1382 / 1220; object-fit: contain; border-radius: 18px; }
.job { background: var(--night-2); border: 2px solid var(--night-line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.job .k { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #A9B8AF; }
.job .n { font-family: var(--head); font-weight: 700; font-size: 24px; }
.job .bar { height: 14px; border-radius: 7px; background: var(--night); border: 2px solid var(--night-line); overflow: hidden; }
.job .bar span { display: block; height: 100%; background: var(--mint); }
.job .meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #C9D5CE; gap: 8px; }
.job .temps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.job .temps div { background: var(--night); border-radius: 12px; padding: 10px; display: grid; }
.job .temps small { color: #A9B8AF; font-weight: 700; }
.job .temps b { font-size: 17px; }
.spools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spools i { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--night-line); display: block; }
.spools i.on { border: 3px solid var(--night); box-shadow: 0 0 0 3px var(--mint); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* Tablet / desktop */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .row2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 44px; }
  .hero-ctas .btn { flex: 0 0 auto; }
  .hero-art { height: 360px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .facts li { flex-direction: row; justify-content: center; gap: 8px; padding: 14px; }
  .facts strong, .facts span { font-size: 15px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .bundle-card { grid-template-columns: 1fr auto; align-items: center; }
  .bundle-card .btn { grid-column: 1 / -1; justify-self: start; }
  .custom-card { padding: 28px; }
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: min(920px, calc(100% - 48px)); height: auto; max-height: calc(100% - 48px); border-radius: 26px; border-bottom: 2px solid var(--ink); animation: none; }
  #product-sheet .sheet-scroll { display: grid; grid-template-columns: 1fr 1fr; }
  #product-sheet .ps-media { border-bottom: 0; border-right: 2px solid var(--ink); }
  #product-sheet .ps-media img, #product-sheet .ps-media video { max-height: none; height: 100%; }
  .live-sheet { width: min(640px, calc(100% - 48px)); }
  .drawer { left: auto; width: 440px; border-left: 2px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
