/* Shockwave Music – second-hand shop */
:root {
  --navy: #14213D; --navy-2: #1d2d52; --blue: #3B73D1; --blue-dark: #2c5db3; --blue-soft: #eaf1fc; --ink: #1b1f2a; --muted: #5b6170;
  --bg: #F4F5F7; --card: #fff; --line: #e3e6ec; --err: #b3261e; --ok: #1f7a43; --warn: #fff6e6; --wa: #25D366; --radius: 16px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
body.noscroll { overflow: hidden; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; }

/* Header */
.topline { background: var(--navy); color: #fff; font-size: 13.5px; }
.topline .in, header.site .in, .hero .in, .foot .in { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.topline .in { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topline a { color: #fff; text-decoration: none; font-weight: 600; }
.topline a:hover { text-decoration: underline; }
.topline .tl-wa { opacity: .85; font-weight: 500; white-space: nowrap; }
header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
header.site .logo img { display: block; width: 180px; height: auto; }
header.site .shoplink { color: var(--navy); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.hero .in { padding-top: 30px; padding-bottom: 30px; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: #8fb4f0; }
.hero p { margin: 10px 0 0; color: #d6deee; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li { font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin-top: 16px; }
.card > h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--navy); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); 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=url], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #cfd4dd; border-radius: 10px; padding: 11px 12px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* 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); }

/* Departments / sub-categories */
.depts { display: grid; gap: 10px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { margin-left: 10px; 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); }
.dept { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.dept[open] { border-color: var(--navy); }
.dept > summary { display: flex; align-items: center; gap: 10px; padding: 14px 14px; }
.dname { font-weight: 800; font-size: 18px; color: var(--navy); flex: 1; }
.count { font-size: 12.5px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.subs { padding: 0 10px 10px; }
.sub { border-top: 1px solid var(--line); }
.sub > summary { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 700; }
.sub > summary > span:first-child { flex: 1; }
.sub[open] > summary { color: var(--blue); }
.items { display: grid; gap: 14px; padding: 0 0 10px; }
@media (min-width: 640px) { .items { grid-template-columns: 1fr 1fr; } }
.hidden-tag { font-style: normal; font-size: 11px; background: #eee; color: #777; border-radius: 4px; padding: 1px 5px; font-weight: 600; }

/* Instrument card */
.inst { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,33,61,.05); }
.gallery { position: relative; background: #eef0f4; aspect-ratio: 4 / 3; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; display: block; }
.dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.4); }
.dots span.on { background: #fff; }
.pcount { position: absolute; right: 8px; top: 8px; background: rgba(20,33,61,.75); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; pointer-events: none; }
.nophoto { height: 100%; display: grid; place-items: center; color: #b5bccb; }
.ribbon { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-8deg); text-align: center; font-weight: 900; letter-spacing: .2em; font-size: 26px; color: #fff; padding: 6px 0; pointer-events: none; }
.ribbon.sold { background: rgba(179,38,30,.92); }
.ribbon.reserved { background: rgba(20,33,61,.88); font-size: 22px; }
.ibody { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.iname { font-weight: 800; font-size: 18px; color: var(--navy); line-height: 1.25; }
.iname span { font-weight: 600; color: var(--ink); }
.imeta { margin-top: 6px; }
.cond { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef0f4; color: var(--ink); }
.cond.c-excellent { background: #e3f4e9; color: #1f6b3d; }
.cond.c-very_good { background: #e6f0fd; color: #1d4fa0; }
.cond.c-good { background: #fff1db; color: #7a4a00; }
.cond.c-fair { background: #f1ecea; color: #6b4c42; }
.iprice { font-size: 22px; font-weight: 800; color: var(--navy); margin-top: 6px; white-space: nowrap; }
.iprice small { font-size: 12px; font-weight: 600; color: var(--muted); }
.idesc { font-size: 14.5px; color: #353b48; margin: 8px 0 0; }
.idesc.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.morebtn { align-self: flex-start; }
.incl { font-size: 14px; margin: 8px 0 0; background: var(--blue-soft); border-radius: 8px; padding: 6px 10px; }
.inote { font-size: 13.5px; color: #6b4a10; background: var(--warn); border-radius: 8px; padding: 6px 10px; margin: 8px 0 0; }
.ibody .btn.add { margin-top: auto; }
.ibody > .btn.add, .ibody > .inbasket, .ibody > .statusmsg { margin-top: 12px; }
.inbasket { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #e9f6ee; color: var(--ok); font-weight: 700; border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 14.5px; }
.inbasket .btn { padding: 6px 14px; font-size: 14px; }
.statusmsg { font-size: 14px; color: var(--muted); background: #eef0f4; border-radius: 10px; padding: 8px 12px; margin-bottom: 0; }
.statusmsg.sold { color: var(--err); background: #fdecea; font-weight: 600; }
.inst.st-reserved .gallery img, .inst.st-sold .gallery img { filter: grayscale(.85); opacity: .65; }
.inst.st-reserved .iname, .inst.st-reserved .iprice, .inst.st-sold .iname, .inst.st-sold .iprice { color: #8a90a0; }
.inst.st-sold .iprice { text-decoration: line-through; }

/* Basket */
.empty { color: var(--muted); font-size: 15px; }
.bline { display: flex; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.bthumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: #eef0f4; }
.bmain { flex: 1; min-width: 0; }
.bname { font-weight: 800; color: var(--navy); }
.bmeta, .badd { font-size: 14px; color: var(--muted); }
.bright { text-align: right; flex: none; }
.bprice { white-space: nowrap; font-weight: 800; }
.link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--blue); 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(--blue); width: 18px; height: 18px; flex: none; }
.opt .t { font-weight: 700; }
.opt .d { font-size: 14px; color: var(--muted); }
.opt .ico { width: 38px; height: 38px; display: grid; place-items: center; background: var(--bg); color: var(--navy); border-radius: 10px; flex: none; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.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(--blue); width: 20px; height: 20px; flex: none; }
.reserve-note { font-size: 14px; color: #6b4a10; background: var(--warn); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }

/* Add-on rows in the popup */
.addon { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; margin-top: 8px; }
.addon.on { border-color: var(--blue); background: var(--blue-soft); }
.addon label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.addon input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.addon img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; cursor: zoom-in; }
.addon .an { font-weight: 700; font-size: 15px; }
.addon .ap { font-size: 13.5px; color: var(--muted); }
.addon .stepper { flex: none; }
.addon:not(.on) .stepper { opacity: .35; pointer-events: none; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #cfd4dd; border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 36px; height: 36px; border: 0; background: #f0f2f6; font-size: 20px; cursor: pointer; color: var(--navy); }
.stepper span { min-width: 30px; text-align: center; font-weight: 800; }
.im-top { display: flex; gap: 12px; align-items: center; margin: 6px 0 4px; }
.im-top img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.im-incl { font-size: 14px; color: var(--muted); }

/* 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; color: var(--navy); }

/* Buttons – pill shape like shockwavemusic.co.za */
.btn { display: inline-block; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; padding: 12px 22px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover, .btn:focus-visible { background: var(--blue-dark); }
.btn:disabled { opacity: .6; }
.btn.big { font-size: 17px; padding: 15px 22px; }
.btn.block { display: block; width: 100%; margin-top: 10px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--bg); }
.btn.wa { background: #1fa855; }
.btn.wa:hover { background: #188a45; }

/* Sticky total bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.18); z-index: 10; }
.bar .in { max-width: 720px; 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 { white-space: nowrap; }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 11; }
.wa-float:hover { transform: scale(1.05); }
body:has(.bar) .wa-float { bottom: calc(82px + env(safe-area-inset-bottom)); }

/* Popups */
.modal { position: fixed; inset: 0; background: rgba(10, 16, 32, .6); 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: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet h3 { font-size: 20px; padding-right: 40px; color: var(--navy); }
.sheet .x { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #eef0f4; font-size: 22px; line-height: 1; cursor: pointer; }
@media (min-width: 600px) { .modal { align-items: center; } .sheet { border-radius: 20px; } }

/* Photo lightbox (swipe) */
.lightbox { position: fixed; inset: 0; background: #0b1020; z-index: 30; display: flex; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 8px 48px; }
.lb-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
@media (hover: none) { .lb-nav { display: none; } }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 600; }

/* Thank-you + order pages */
.thanks h2 { font-size: 24px; color: var(--navy); }
.ref { font-size: 18px; margin: 6px 0 10px; }
.payinfo { margin-top: 14px; }
.collect-box { background: var(--bg); border-radius: 12px; padding: 2px 14px; margin-top: 14px; }
.bank { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.more > summary { color: var(--blue); font-weight: 700; padding: 10px 0; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: #eee; }
.st-paid { background: #e3f4e9; color: var(--ok); } .st-part { background: #fff1db; color: #8a5300; } .st-unpaid { background: #fde8e6; color: var(--err); }
.st-done { background: #e6eef8; color: #2d5a8a; }
.totals.static { margin-top: 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 4px; color: var(--navy); }
.prose ul { padding-left: 20px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { background: var(--navy); color: #c9d2e4; text-align: center; font-size: 13.5px; padding: 22px 0 110px; margin-top: 30px; }
.foot a { color: #fff; }
.foot p { margin: 6px 0; }
.foot .credit { font-size: 12px; opacity: .8; }
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } header.site .logo img { width: 150px; } .topline .tl-wa { display: none; } }

/* Video (v2) */
.vbadge { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(20,33,61,.82); color: #fff; border: 0; font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; cursor: pointer; text-decoration: none; }
.vidbtn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 8px; background: #fff; color: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 700; padding: 7px 15px; cursor: pointer; text-decoration: none; }
.vidbtn span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e33; color: #fff; font-size: 10px; padding-left: 2px; }
.vidbtn:hover { border-color: var(--navy); }
.lb-track figure.vslide { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.vbox { width: min(100%, 960px); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.vbox.tall { width: auto; height: min(100%, 78vh); aspect-ratio: 9 / 16; max-width: 100%; }
.vbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.vposter { width: 100%; height: 100%; background: #111 center / cover no-repeat; display: grid; place-items: center; }
.vplay { background: none; border: 0; cursor: pointer; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.vplay:hover { transform: scale(1.06); }
.vext { color: #c9d2e4; font-size: 14px; }

/* Terms page (v4.2) */
.terms > h2 { font-size: 26px; }
.terms .lead { background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 10px; padding: 14px 16px; margin: 14px 0 18px; }
.terms .toc { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; margin: 0 0 8px; background: #fafbfc; }
.terms .toc-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.terms .toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; counter-reset: toc; }
.terms .toc li { break-inside: avoid; counter-increment: toc; margin: 0 0 4px; }
.terms .toc a { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.terms .toc a::before { content: counter(toc); flex: none; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; transform: translateY(-1px); }
.terms .toc a:hover, .terms .toc a:focus-visible { background: var(--blue-soft); color: var(--blue-dark); }
@media (max-width: 560px) { .terms .toc ol { columns: 1; } }
.terms h3 { scroll-margin-top: 16px; font-size: 18px; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.terms li { margin: 6px 0; }
.terms ul { padding-left: 22px; }
.terms ul ul { margin: 6px 0; }
.terms p, .terms li { line-height: 1.6; }
