:root {
  --maroon: #8B1A1A; --maroon-dark: #6E1414; --maroon-soft: #f7ecea; --ink: #1d1d1f; --muted: #62626a; --bg: #faf7f5; --card: #fff;
  --line: #ebe3e0; --err: #b3261e; --ok: #1f7a43; --boy: #2f6fd1; --girl: #e0508f; --warn: #fff6e6; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body.noscroll { overflow: hidden; }
a { color: var(--maroon); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.band { height: 6px; background: var(--maroon); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }

header.top { text-align: center; padding: 24px 0 6px; }
header.top .logo { display: block; margin: 0 auto 10px; width: 190px; height: auto; }
header.top h1 { font-size: clamp(30px, 8vw, 40px); letter-spacing: -.5px; }
header.top h1 em { font-style: normal; color: var(--maroon); }
header.top p { margin: 4px 0 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-top: 16px; }
.card > h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: 15px; flex: none; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.tiny { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.center { text-align: center; }
.notice { text-align: center; }
.notice h2 { justify-content: center; }

.errors { background: #fdecea; border: 1px solid #f3c1bc; color: var(--err); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.errors ul { margin: 4px 0 0; padding-left: 20px; }
.warn { background: var(--warn); border-left: 4px solid #d9822b; padding: 10px 14px; border-radius: 6px; }
.okmsg { background: #e9f6ee; border-left: 4px solid var(--ok); padding: 10px 14px; border-radius: 6px; }

label.f, .f { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #d9cfcb; border-radius: 10px; padding: 11px 12px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.req { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--maroon); margin-left: 4px; }

/* Missing fields */
.field-msg { display: none; color: var(--err); font-size: 14px; font-weight: 600; margin-top: 4px; }
.missing > .field-msg, #basketCard.missing .field-msg { display: block; }
.missing input[type=text], .missing input[type=email], .missing input[type=tel], .missing textarea { border-color: var(--err); background: #fff6f5; }
.missing .opt { border-color: var(--err); background: #fff6f5; }
#basketCard.missing { border-color: var(--err); box-shadow: 0 0 0 2px #f6c9c5; }
.field.missing .check { color: var(--err); }

/* Schools / grades / packs */
.schools { display: grid; gap: 10px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; margin-right: 4px; }
details[open] > summary .chev { transform: rotate(-135deg); }
.school { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.school[open] { border-color: var(--maroon); }
.school > summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.badge { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; flex: none; background: #fff; }
.badge.ini { display: grid; place-items: center; background: var(--maroon); color: #fff; font-weight: 800; letter-spacing: .5px; font-size: 16px; }
.sname { font-weight: 700; font-size: 17px; }
.grades { padding: 0 10px 10px; }
.grade { border-top: 1px solid var(--line); }
.grade > summary { display: flex; align-items: center; padding: 12px 4px; font-weight: 600; }
.grade[open] > summary { color: var(--maroon); }
.listlink { display: inline-block; font-size: 14px; margin: 0 4px 10px; }
.pack { background: var(--maroon-soft); border-radius: 12px; padding: 12px; margin: 0 0 10px; }
.ptop { display: flex; gap: 12px; align-items: center; }
.pimg { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; cursor: zoom-in; }
.pname { font-weight: 700; }
.pprice { font-size: 19px; font-weight: 800; color: var(--maroon); white-space: nowrap; }
.pprice small { font-size: 12px; font-weight: 600; color: var(--muted); }
.pnote { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.more { margin-top: 8px; }
.more > summary { color: var(--maroon); font-weight: 600; font-size: 14px; padding: 4px 0; }
.more > summary::before { content: "＋ "; }
.more[open] > summary::before { content: "－ "; }
.contents { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 8px; margin-top: 6px; }
.contents td { padding: 5px 8px; border-bottom: 1px solid var(--line); }
.contents td.q { width: 44px; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.pack .btn.add { margin-top: 10px; width: 100%; }
.missing-school { font-size: 14px; color: var(--muted); background: #faf6f4; border: 1px dashed #d9cfcb; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.hidden-tag { font-style: normal; font-size: 11px; background: #eee; color: #777; border-radius: 4px; padding: 1px 5px; }

/* Basket */
.empty { color: var(--muted); font-size: 15px; }
.bline { display: flex; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.bmain { flex: 1; min-width: 0; }
.bchild { font-weight: 700; }
.bpack, .bopt { font-size: 14px; color: var(--muted); }
.bright { text-align: right; flex: none; }
.bprice { white-space: nowrap; font-size: 14px; }
.bprice b { font-size: 16px; }
.sex { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.sex.boy { background: var(--boy); } .sex.girl { background: var(--girl); }
.link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--maroon); text-decoration: underline; cursor: pointer; }
.link.red { color: var(--err); }

/* Options */
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; cursor: pointer; background: #fff; }
.opt input { margin-top: 3px; accent-color: var(--maroon); width: 18px; height: 18px; flex: none; }
.opt .t { font-weight: 600; }
.opt .d { font-size: 14px; color: var(--muted); }
.opt .ico { width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; background: var(--bg); border-radius: 8px; flex: none; }
.opt img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.opt.slim { padding: 10px 12px; align-items: center; }
.opt.slim input { margin-top: 0; }
.opt:has(input:checked) { border-color: var(--maroon); background: var(--maroon-soft); }
.q { font-weight: 700; margin-top: 14px; }
#addressBox { display: none; }
#addressBox.show { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 12px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--maroon); width: 20px; height: 20px; flex: none; }
.stock-note { font-size: 13.5px; color: #6b4a10; background: var(--warn); border-radius: 8px; padding: 8px 12px; margin: 14px 0 0; }

/* Donation */
.donate { border-color: #f0d9a8; background: #fffaf0; }
.donate h2 { font-size: 18px; }
.don-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #e6cf9f; background: #fff; border-radius: 99px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Totals */
.totals { margin: 16px 0 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.totals b { white-space: nowrap; }
.totals .grand { font-size: 18px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.totals .now { color: var(--maroon); font-weight: 700; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 10px; background: var(--maroon); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover, .btn:focus-visible { background: var(--maroon-dark); }
.btn:disabled { opacity: .6; }
.btn.big { font-size: 17px; padding: 15px 18px; }
.btn.block { display: block; width: 100%; margin-top: 10px; }
.btn.ghost { background: #fff; color: var(--maroon); border: 1.5px solid var(--maroon); }
.btn.wa { background: #1f9d55; }
.btn.wa:hover { background: #18804a; }

/* Sticky total bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--maroon-dark); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.15); z-index: 10; }
.bar .in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar .tot { flex: 1; line-height: 1.2; min-width: 0; }
.bar .tot b { font-size: 20px; display: block; white-space: nowrap; }
.bar .tot small { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bar .btn { background: #fff; color: var(--maroon-dark); white-space: nowrap; }

/* Popups */
.modal { position: fixed; inset: 0; background: rgba(20, 10, 10, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet h3 { font-size: 20px; padding-right: 36px; }
.sheet .x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1ecea; font-size: 22px; line-height: 1; cursor: pointer; }
.sheet.img { padding: 48px 10px 16px; text-align: center; background: #fff; }
.sheet.img img { max-width: 100%; max-height: 80vh; }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 18px; } }
.sexsw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sexsw button { font: inherit; font-weight: 700; padding: 11px; border-radius: 10px; border: 2px solid #ddd; background: #fff; cursor: pointer; }
.sexsw .boy.on { background: var(--boy); border-color: var(--boy); color: #fff; }
.sexsw .girl.on { background: var(--girl); border-color: var(--girl); color: #fff; }
.handsw .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.muted-s { font-weight: 400; color: var(--muted); font-size: 13px; }
.lefty { display: inline-block; font-size: 11px; font-weight: 700; color: #8a5300; background: #fff1db; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #d9cfcb; border-radius: 10px; overflow: hidden; }
.stepper button { width: 46px; height: 44px; border: 0; background: #f5efed; font-size: 22px; cursor: pointer; }
.stepper span { min-width: 48px; text-align: center; font-weight: 700; font-size: 18px; }
.optgroup .f { margin-top: 16px; }
.optgroup.missing .opt { border-color: var(--err); }

/* Thank-you + order pages */
.thanks h2 { font-size: 22px; }
.ref { font-size: 18px; margin: 6px 0 10px; }
.payinfo { margin-top: 14px; }
.bank { background: #f7f1ef; border-radius: 10px; padding: 12px 14px; }
.pill { display: inline-block; border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: #eee; }
.st-paid { background: #e3f4e9; color: var(--ok); } .st-deposit { background: #e8f0fd; color: #1d4fa0; }
.st-part { background: #fff1db; color: #8a5300; } .st-unpaid { background: #fde8e6; color: var(--err); }
.totals.static { margin-top: 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 4px; color: var(--maroon); }
.prose ul { padding-left: 20px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
.foot p { margin: 4px 0; }
.foot .credit { font-size: 12px; opacity: .85; }
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }

/* Special offer */
.promo-banner { background: linear-gradient(90deg, #14213D, #2b1a3d 55%, #6E1414); color: #fff; font-size: 14.5px; line-height: 1.4; }
.promo-in { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; text-align: center; }
.promo-tag { background: #FFD23F; color: #1d1d1f; font-weight: 800; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.promo-main b { color: #FFD23F; }
.promo-end { opacity: .9; font-size: 13px; white-space: nowrap; }
.promo-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.promo-preview { background: #FFD23F; color: #1d1d1f; text-align: center; font-size: 12px; font-weight: 800; padding: 3px; letter-spacing: .5px; }
.promo-chip { display: inline-block; background: #e3f4e9; color: var(--ok); font-size: 12px; font-weight: 800; border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.totals .disc { color: var(--ok); font-weight: 700; }
.totals .nudge { display: block; background: #fff6d6; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.fw-canvas { position: fixed; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 30; }
