/* Kat's Squishy Store — pastel candy theme. One deliberate light look everywhere. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFF3F9;
  --card: #FFFFFF;
  --ink: #3E2B4F;
  --ink-soft: #7A6689;
  --line: #F4DCEA;
  --pink: #FF8FC2;
  --pink-deep: #CF3F80;
  --pink-press: #A92F67;
  --pink-soft: #FFE3F0;
  --lav: #B49CFF;
  --lav-deep: #6F4FD8;
  --lav-soft: #EFE8FF;
  --mint: #7ADCC0;
  --mint-deep: #17805F;
  --mint-soft: #DDF6EE;
  --butter: #FFD66B;
  --butter-soft: #FFF4CF;
  --coral-deep: #C93A50;
  --coral-soft: #FFE4E8;
  --shadow: 0 6px 18px rgba(207, 63, 128, .10);
  --shadow-lg: 0 18px 50px rgba(62, 43, 79, .22);
  --fun: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 500 16px/1.45 var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(255, 143, 194, .16) 2px, transparent 2.6px),
    radial-gradient(rgba(180, 156, 255, .14) 2px, transparent 2.6px);
  background-size: 36px 36px; background-position: 0 0, 18px 18px;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--fun); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { text-align: center; padding: 40px; }

.boot { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 8px; font-family: var(--fun); color: var(--ink-soft); }
.boot img { animation: squish 1.4s ease-in-out infinite; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 40% { transform: scale(1.12, .88); } 70% { transform: scale(.95, 1.06); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 17px/1 var(--fun); padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #E0529A, var(--pink-deep)); color: #fff;
  box-shadow: 0 5px 0 var(--pink-press); transition: transform .08s, box-shadow .08s, filter .15s;
  min-height: 50px; text-decoration: none; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-press); }
.btn:disabled { filter: grayscale(.7) opacity(.55); box-shadow: none; }
.btn.block { width: 100%; }
.btn.big { font-size: 19px; min-height: 58px; }
.btn.soft { background: var(--lav-soft); color: var(--lav-deep); box-shadow: 0 4px 0 #D9CCFF; }
.btn.soft:active:not(:disabled) { box-shadow: 0 1px 0 #D9CCFF; }
.btn.mint { background: linear-gradient(180deg, #25A07A, var(--mint-deep)); box-shadow: 0 5px 0 #0F6048; }
.btn.mint:active:not(:disabled) { box-shadow: 0 1px 0 #0F6048; }
.btn.ghost { background: transparent; color: var(--ink-soft); box-shadow: none; min-height: 44px; }
.btn.danger { background: var(--coral-soft); color: var(--coral-deep); box-shadow: 0 4px 0 #F7C3CC; }
.btn.small { font-size: 14.5px; padding: 9px 14px; min-height: 38px; box-shadow: 0 3px 0 var(--pink-press); }
.btn.soft.small { box-shadow: 0 3px 0 #D9CCFF; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--card); border: 2px solid var(--line); font-size: 18px; color: var(--ink);
}
.iconbtn:active { transform: scale(.92); }
.linkbtn { color: var(--ink-soft); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

/* ---------- store ---------- */
.store { max-width: 1100px; margin: 0 auto; padding: 0 16px 140px; }
.hero { text-align: center; padding: calc(26px + env(safe-area-inset-top)) 8px 10px; position: relative; }
.brandmark { position: relative; width: 132px; margin: 0 auto 18px; }
.brandmark img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(207, 63, 128, .25)); animation: squish 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
.ribbon {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%) rotate(-4deg); white-space: nowrap;
  background: linear-gradient(180deg, #8C6FF0, var(--lav-deep)); color: #fff; font: 600 16px/1 var(--fun); letter-spacing: .06em;
  padding: 7px 24px 8px; clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%, 11px 50%);
}
.receipt .brandmark { width: 96px; margin-bottom: 16px; }
.receipt .ribbon { font-size: 13px; padding: 5px 19px 6px; bottom: -6px; }
.hero h1 { font-size: clamp(30px, 7.5vw, 46px); font-weight: 700; color: var(--pink-deep); line-height: 1.05; }
.hero p { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.hero .sparkle { position: absolute; font-size: 22px; opacity: .8; pointer-events: none; }
.topcart { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 30; }
.topcart .iconbtn { width: 50px; height: 50px; font-size: 22px; box-shadow: var(--shadow); position: relative; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--pink-deep); color: #fff; font: 700 12.5px/22px var(--fun); text-align: center; }
.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }

.banner { max-width: 640px; margin: 14px auto 4px; padding: 14px 18px; border-radius: 22px; background: var(--butter-soft); border: 2px dashed var(--butter); font-weight: 700; text-align: center; }
.banner b { font-family: var(--fun); font-size: 18px; display: block; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin-top: 18px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; } }
.pcard { background: var(--card); border: 2px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
@media (hover: hover) { .pcard:hover { transform: translateY(-3px) rotate(-.4deg); } }
.pimg { position: relative; aspect-ratio: 1; width: 100%; background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft)); overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg .ph { width: 100%; height: 100%; display: grid; place-items: center; }
.pimg .ph img { width: 46%; height: auto; opacity: .55; }
.ptag { position: absolute; top: 10px; left: 10px; background: var(--butter); color: var(--ink); font: 600 13px/1 var(--fun); padding: 6px 10px; border-radius: 99px; transform: rotate(-4deg); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.pcard.soldout .pimg img { filter: grayscale(.8) opacity(.65); }
.soldtag { position: absolute; inset: auto 0 14px; margin: 0 auto; width: max-content; background: var(--ink); color: #fff; font: 600 15px/1 var(--fun); padding: 8px 14px; border-radius: 99px; transform: rotate(-3deg); }
.pbody { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pname { font: 600 16.5px/1.2 var(--fun); }
.pmeta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.price { font: 700 20px/1 var(--fun); color: var(--pink-deep); }
.stockline { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.stockline.low { color: var(--coral-deep); }
.pcard .btn { margin-top: auto; min-height: 42px; font-size: 15px; padding: 10px 12px; box-shadow: 0 3px 0 var(--pink-press); }
.pcard .btn.soft { box-shadow: 0 3px 0 #D9CCFF; }
.pcard .pbody > .spacer { flex: 1; min-height: 6px; }

.empty { text-align: center; padding: 50px 20px; }
.empty img { width: 90px; margin: 0 auto 10px; opacity: .8; }
.empty h2 { font-size: 24px; }
.soon { list-style: none; padding: 0; margin: 22px auto 0; max-width: 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; text-align: left; }
.soon li { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.soon span { color: var(--ink-soft); font-size: 14px; }

.about { max-width: 560px; margin: 40px auto 0; padding: 22px 20px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; }
.about h2 { font-size: 22px; margin: 0 0 8px; }
.about p { margin: 0 0 12px; line-height: 1.5; }
.about .steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.cartbar .btn { pointer-events: auto; width: 100%; max-width: 520px; margin: 0 auto; display: flex; justify-content: space-between; min-height: 60px; font-size: 18px; box-shadow: 0 5px 0 var(--pink-press), var(--shadow-lg); }
.cartbar .count { background: rgba(255,255,255,.25); border-radius: 99px; padding: 5px 11px; font-size: 15px; }

.foot { text-align: center; margin: 56px 0 0; color: var(--ink-soft); font-weight: 700; display: grid; gap: 6px; justify-items: center; }
.ownerlink { margin-top: 18px; font-size: 13.5px; font-weight: 800; color: var(--ink-soft); background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; }

/* ---------- sheets & dialogs ---------- */
.layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.overlay { position: absolute; inset: 0; background: rgba(62, 43, 79, .42); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-height: 92dvh; background: var(--bg); border-radius: 30px 30px 0 0;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .28s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
@media (min-width: 720px) { .layer { align-items: center; padding: 20px; } .sheet { max-width: 540px; border-radius: 30px; max-height: 88dvh; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 8px; }
.sheet-head h2 { font-size: 23px; }
.sheet-body { overflow-y: auto; padding: 6px 18px 18px; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); background: var(--card); border-radius: 0 0 30px 30px; display: grid; gap: 8px; }
@media (max-width: 719px) { .sheet-foot { border-radius: 0; } }
.grabber { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto -8px; }

.dialog-layer { align-items: center; padding: 20px; z-index: 70; }
.dialog { position: relative; background: var(--card); border-radius: 28px; padding: 24px 22px 20px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.dialog .big-emoji { font-size: 46px; line-height: 1; }
.dialog h2 { font-size: 22px; margin: 8px 0 6px; }
.dialog p { margin: 0 0 18px; color: var(--ink-soft); font-weight: 600; }
.dialog .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

#toasts { position: fixed; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top)); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--ink); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 460px; text-align: center; animation: pop .25s ease; }
.toast.good { background: var(--mint-deep); }
.toast.bad { background: var(--coral-deep); }

/* ---------- product close-up ---------- */
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 24px; background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft)); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--pink-deep); }
.detail h3 { font-size: 26px; margin-top: 14px; }
.detail .pmeta { margin: 6px 0 10px; }
.detail .price { font-size: 26px; }
.detail .desc { white-space: pre-wrap; margin: 0 0 8px; }

.stepper { display: inline-flex; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 99px; padding: 3px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; font: 700 22px/1 var(--fun); color: var(--pink-deep); background: var(--pink-soft); }
.stepper button:disabled { opacity: .35; }
.stepper output, .stepper input { min-width: 42px; text-align: center; font: 700 19px/1 var(--fun); border: 0; background: transparent; width: 52px; padding: 0; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-weight: 800; }

/* ---------- cart & checkout ---------- */
.cline { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; margin-bottom: 10px; }
.thumb { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; background: linear-gradient(135deg, var(--pink-soft), var(--lav-soft)); }
.thumb.ph { display: grid; place-items: center; }
.thumb.ph img { width: 60%; opacity: .6; }
.cline .info { flex: 1; min-width: 0; }
a.cline { text-decoration: none; color: inherit; }
a.cline .go { font: 700 22px/1 var(--fun); color: var(--pink-deep); padding: 0 6px; }
.cline .name { font: 600 16px/1.2 var(--fun); }
.cline .sub { font-size: 13.5px; color: var(--ink-soft); font-weight: 700; }
.cline .stepper button { width: 32px; height: 32px; font-size: 18px; }
.cline .stepper output { min-width: 30px; width: 30px; font-size: 16px; }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; font: 600 20px/1 var(--fun); padding: 6px 4px; }
.totalrow b { font-size: 26px; color: var(--pink-deep); }

.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > span { font: 600 16px/1.2 var(--fun); }
.field small { color: var(--ink-soft); font-weight: 600; }
.input { width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 13px 14px; font-size: 17px; font-weight: 600; outline: none; }
.input:focus { border-color: var(--lav); box-shadow: 0 0 0 4px var(--lav-soft); }
textarea.input { min-height: 84px; resize: vertical; }
.field.bad .input { border-color: var(--coral-deep); }
.field .err { color: var(--coral-deep); font-weight: 800; font-size: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { border: 2px solid var(--line); background: var(--card); border-radius: 99px; padding: 10px 16px; font: 600 16px/1 var(--fun); }
.choice[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink-deep); color: var(--pink-deep); }
.infobox { background: var(--mint-soft); border-radius: 18px; padding: 12px 14px; font-weight: 700; margin: 0 0 16px; display: flex; gap: 10px; align-items: flex-start; }
.infobox.lav { background: var(--lav-soft); }
.infobox.butter { background: var(--butter-soft); }

/* ---------- receipt ---------- */
.receipt-page { max-width: 560px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px 60px; }
.receipt { background: var(--card); border-radius: 30px; box-shadow: var(--shadow-lg); padding: 26px 20px 22px; position: relative; overflow: hidden; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: radial-gradient(circle at 10px -2px, var(--bg) 9px, transparent 10px) repeat-x; background-size: 20px 10px; transform: rotate(180deg); }
.receipt .hello { text-align: center; }
.receipt .hello h1 { font-size: 30px; color: var(--pink-deep); }
.receipt .hello p { margin: 4px 0 0; font-weight: 700; color: var(--ink-soft); }
.ordernum { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.ordernum span { background: var(--lav-soft); color: var(--lav-deep); font: 600 15px/1 var(--fun); padding: 8px 12px; border-radius: 99px; }
.tracker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0 18px; position: relative; }
.tracker .step { text-align: center; font-size: 13px; font-weight: 800; color: var(--ink-soft); position: relative; }
.tracker .dot { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: 18px; position: relative; z-index: 1; }
.tracker .step.done { color: var(--mint-deep); }
.tracker .step.done .dot { background: var(--mint-soft); box-shadow: 0 0 0 3px var(--mint); }
.tracker .step:not(:first-child)::before { content: ""; position: absolute; top: 18px; right: 50%; width: 100%; height: 4px; background: var(--line); }
.tracker .step.done:not(:first-child)::before { background: var(--mint); }
.rline { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 2px dashed var(--line); }
.rline .thumb { width: 46px; height: 46px; border-radius: 12px; }
.rline .info { flex: 1; font-weight: 700; }
.rline .info small { display: block; color: var(--ink-soft); }
.rline b { font-family: var(--fun); font-size: 17px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-weight: 700; }
.kv span:first-child { color: var(--ink-soft); }
.paidchip { display: inline-block; font: 600 13px/1 var(--fun); padding: 5px 9px; border-radius: 99px; background: var(--butter-soft); color: #8A6400; }
.paidchip.yes { background: var(--mint-soft); color: var(--mint-deep); }
.cancelled-note { background: var(--coral-soft); color: var(--coral-deep); border-radius: 18px; padding: 12px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.receipt-actions { display: grid; gap: 10px; margin-top: 18px; }
.receipt-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tip { text-align: center; color: var(--ink-soft); font-weight: 700; font-size: 14px; margin-top: 12px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- owner ---------- */
.owner { max-width: 760px; margin: 0 auto; padding: 0 14px calc(110px + env(safe-area-inset-bottom)); }
.owner-top { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 2px 10px; }
.owner-top img { width: 44px; height: 44px; }
.owner-top .who { flex: 1; min-width: 0; }
.owner-top h1 { font-size: 21px; }
.owner-top .live { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.owner-top .live i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.owner-top .live.on i { background: #22C38E; box-shadow: 0 0 0 3px rgba(34, 195, 142, .2); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 2px solid var(--line); display: flex; justify-content: center; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.tabs .in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 520px; }
.tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 18px; font: 600 14px/1.1 var(--fun); color: var(--ink-soft); }
.tab .ic { font-size: 24px; line-height: 1; }
.tab[aria-selected="true"] { background: var(--pink-soft); color: var(--pink-deep); }
.tab .badge { top: 2px; right: calc(50% - 30px); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 2px 10px; }
.section-title h2 { font-size: 22px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.stat { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px 10px; text-align: center; }
.stat b { display: block; font: 700 24px/1.1 var(--fun); }
.stat span { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.stat.pink b { color: var(--pink-deep); }
.stat.butter b { color: #9A6B00; }
.stat.mint b { color: var(--mint-deep); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.filters .choice { white-space: nowrap; font-size: 15px; padding: 9px 14px; }

.ocard { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.ocard.isnew { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft), var(--shadow); }
.ocard.cancelled { opacity: .7; }
.ohead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ohead h3 { font-size: 19px; }
.ohead h3 small { color: var(--lav-deep); font-size: 14px; margin-right: 4px; }
.ohead time { font-size: 13px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.newdot { display: inline-block; background: var(--pink-deep); color: #fff; font: 600 11.5px/1 var(--fun); padding: 4px 7px; border-radius: 99px; vertical-align: 3px; margin-left: 6px; }
.contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; font-weight: 700; }
.contact a { text-decoration: none; background: var(--lav-soft); color: var(--lav-deep); padding: 7px 11px; border-radius: 99px; font: 600 14px/1 var(--fun); }
.onote { background: var(--butter-soft); border-radius: 14px; padding: 9px 12px; font-weight: 700; margin: 8px 0; white-space: pre-wrap; }
.oitems { margin: 8px 0; }
.oitem { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 700; }
.oitem .thumb { width: 40px; height: 40px; border-radius: 10px; }
.oitem span:first-of-type { flex: 1; }
.ototal { display: flex; justify-content: space-between; align-items: center; font: 600 17px/1 var(--fun); padding: 8px 0 4px; border-top: 2px dashed var(--line); }
.ototal b { font-size: 21px; color: var(--pink-deep); }
.toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tog { border: 2px solid var(--line); background: var(--card); border-radius: 18px; padding: 9px 4px; display: grid; justify-items: center; gap: 3px; font: 600 13.5px/1.1 var(--fun); color: var(--ink-soft); min-height: 64px; }
.tog .ic { font-size: 22px; line-height: 1; filter: grayscale(1) opacity(.55); }
.tog[aria-pressed="true"] { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-deep); }
.tog[aria-pressed="true"] .ic { filter: none; }
.ofoot { display: flex; justify-content: flex-end; margin-top: 6px; }
.ofoot .linkbtn { font-size: 13.5px; }

.prow { display: flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 10px; margin-bottom: 10px; }
.prow.hidden { background: #FBF7FA; }
.prow .thumb { width: 64px; height: 64px; }
.prow .info { flex: 1; min-width: 0; cursor: pointer; }
.prow .name { font: 600 16.5px/1.2 var(--fun); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .sub { font-size: 13.5px; font-weight: 800; color: var(--ink-soft); }
.prow .sub .price { font-size: 15px; }
.chip { display: inline-block; font: 600 12px/1 var(--fun); padding: 4px 8px; border-radius: 99px; background: var(--line); color: var(--ink-soft); vertical-align: 2px; }
.chip.out { background: var(--coral-soft); color: var(--coral-deep); }
.prow .stepper button { width: 34px; height: 34px; font-size: 19px; }
.prow .stepper output { width: 34px; min-width: 34px; font-size: 17px; }
.prow .stockcol { display: grid; justify-items: center; gap: 3px; }
.prow .stockcol small { font-size: 11.5px; font-weight: 800; color: var(--ink-soft); }
.movecol { display: grid; gap: 4px; }
.movecol button { width: 30px; height: 26px; border-radius: 9px; background: var(--lav-soft); color: var(--lav-deep); font-size: 12px; }
.movecol button:disabled { opacity: .3; }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.pslot { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--card); border: 2px solid var(--line); }
.pslot img { width: 100%; height: 100%; object-fit: cover; }
.pslot.add { border: 2px dashed var(--pink); background: var(--pink-soft); color: var(--pink-deep); display: grid; place-content: center; justify-items: center; font: 600 13px/1.1 var(--fun); gap: 2px; text-align: center; }
.pslot.add .ic { font-size: 24px; }
.pslot .cover { position: absolute; left: 4px; bottom: 4px; background: var(--butter); font: 600 10.5px/1 var(--fun); padding: 3px 6px; border-radius: 99px; }
.pslot .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); font-size: 22px; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 16px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 4px; }
.card p { margin: 0 0 10px; color: var(--ink-soft); font-weight: 600; }
.openswitch { display: flex; align-items: center; gap: 14px; }
.openswitch .emoji { font-size: 40px; }
.openswitch .txt { flex: 1; }
.openswitch .txt b { font: 700 20px/1.15 var(--fun); display: block; }
.switch { width: 66px; height: 38px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s; }
.switch[aria-checked="true"] { background: #22C38E; }
.switch[aria-checked="true"]::after { transform: translateX(28px); }
.card.open { border-color: var(--mint); background: linear-gradient(160deg, var(--mint-soft), var(--card) 70%); }
.card.closed { border-color: var(--butter); background: linear-gradient(160deg, var(--butter-soft), var(--card) 70%); }
.togglerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 16px/1.2 var(--fun); margin: 4px 0 14px; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 700; word-break: break-all; margin-bottom: 10px; font-size: 14.5px; }
.methodchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.methodchips .choice { display: inline-flex; gap: 8px; align-items: center; background: var(--lav-soft); border-color: transparent; color: var(--lav-deep); }
.methodchips .choice b { font-size: 18px; line-height: 1; opacity: .7; }
.addrow { display: flex; gap: 8px; }
.addrow .input { flex: 1; }

.pinpad { display: grid; justify-items: center; gap: 18px; padding: 8px 0 12px; }
.pindots { display: flex; gap: 14px; height: 22px; }
.pindots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--pink); }
.pindots i.on { background: var(--pink-deep); border-color: var(--pink-deep); }
.pindots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; }
.key { width: 76px; height: 76px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font: 600 30px/1 var(--fun); box-shadow: 0 4px 0 var(--line); }
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); background: var(--pink-soft); }
.key.fn { font-size: 16px; background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-soft); }
.pinmsg { min-height: 22px; font-weight: 800; color: var(--coral-deep); text-align: center; }

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

@media print {
  body { background: #fff; }
  .receipt-actions, .tip, #toasts, .confetti { display: none !important; }
  .receipt { box-shadow: none; border: 2px solid #ddd; }
}
