/* Brand fonts, self-hosted (variable woff2, latin subset): no request to Google, text shows at once (swap). */
@font-face { font-family: 'Red Hat Text'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/redhattext-latin.woff2) format('woff2'); }
@font-face { font-family: 'Red Rose'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/redrose-latin.woff2) format('woff2'); }
/* Class Bespoke shop prototype - mobile-first. Brand tokens from classbespoke.com (read-only, 2026-11-03). */
:root {
  --brown: #482a1b; --espresso: #2a1810; --ink: #1e1e1e; --muted: #6a625a; --cream: #fff8ee; --sand: #f6f1e8;
  --line: #e4dccf; --gold: #e1b879; --gold-deep: #a87a35; --ok: #2f6b3a; --err: #a12a1c; --focus: #1a5fb4;
  --head: "Red Rose", "Red Hat Text", system-ui, sans-serif; --body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px; --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.cbs { margin: 0; background: var(--sand); color: var(--ink); font: 16px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
.cbs :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cbs a { color: var(--brown); }
.cbs h1, .cbs h2 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .35em; line-height: 1.15; }
.cbs h1 { font-size: clamp(24px, 6vw, 36px); }
.cbs h2 { font-size: clamp(18px, 4.6vw, 24px); }
.cbs h3 { font-size: 17px; margin: 0 0 .3em; color: var(--brown); }
.cbs p { margin: 0 0 .9em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 14px; }

.cbs-dev { background: #fdf3dc; color: #6b4a00; font-size: 12px; text-align: center; padding: 4px var(--gut); }
.cbs-head { position: sticky; top: 0; z-index: 20; background: var(--espresso); color: var(--cream); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.cbs-head-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px var(--gut); gap: 12px; }
.cbs-brand { color: var(--gold) !important; text-decoration: none; font-family: var(--head); font-weight: 700; letter-spacing: .14em; font-size: 15px; line-height: 1.1; }
.cbs-brand small { display: block; font-family: var(--body); color: #e8dccb; letter-spacing: .04em; font-weight: 400; font-size: 12px; margin-top: 2px; }
.cbs-bag { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid rgba(225,184,121,.6); background: transparent; color: var(--cream); font: 600 14px var(--body); cursor: pointer; }
.cbs-bag span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; background: var(--gold); color: var(--espresso); font-size: 13px; }
.cbs-bag em { font-style: normal; }
.cbs-steps { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 10px; display: flex; gap: 4px; }
.cbs-steps a { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); font-size: 0; text-decoration: none; }
.cbs-steps a.done { background: rgba(225,184,121,.6); }
.cbs-steps a.on { background: var(--gold); }
.cbs-steps a[aria-disabled="true"] { pointer-events: none; }
.cbs-stepname { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut) 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #e8dccb; }

.cbs-main { flex: 1; min-height: 100vh; width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px var(--gut) 112px; outline: none; }
.cbs-foot { font-size: 12px; color: var(--muted); text-align: center; padding: 16px var(--gut) 96px; }
.cbs-loading { color: var(--muted); }
.lede { color: var(--muted); max-width: 60ch; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 1px solid var(--brown); background: var(--brown); color: var(--cream); font: 600 15px var(--body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn:hover { background: #5a3524; }
.cbs a.btn { color: var(--cream); }
.cbs a.btn.ghost { color: var(--brown); }
.btn.ghost:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--brown); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--espresso); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 6px 0; color: var(--brown); font: 600 14px var(--body); text-decoration: underline; cursor: pointer; min-height: 44px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255,248,238,.97); border-top: 1px solid var(--line); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); }
.bar-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-in .sum { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.3; }
.bar-in .sum strong { display: block; color: var(--ink); font-size: 16px; }

/* garment cards */
.garments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.gcard { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; overflow: hidden; font: inherit; color: inherit; min-height: 44px; }
.gcard:hover { border-color: var(--gold-deep); }
.gcard .pic { background: linear-gradient(180deg, #f3ece1, #e9dfd0); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 10px; }
.gcard .pic { position: relative; }
.gcard .pic > svg, .gcard .pic > img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.gcard .txt { padding: 10px 12px 12px; }
.gcard .nm, .gcard .pr, .fcard .nm, .fcard .cl, .fcard .pr { display: block; }
.gcard .nm { font-weight: 600; font-size: 15px; line-height: 1.25; }
.gcard .pr { font-size: 13px; color: var(--gold-deep); font-weight: 600; margin-top: 2px; }
.gcard .pr.req { color: var(--muted); font-weight: 500; }
.sect { margin-top: 26px; }
.sect > h2 { font-size: 15px; letter-spacing: .1em; color: var(--muted); }

/* collection intro */
.colhead { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 14px 0; }
.colhead .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.colhead .price { color: var(--gold-deep); font-weight: 600; }
.colhead ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }

/* filters */
.filters { padding: 8px 0 10px; }
.search { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: 16px var(--body); background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px var(--body); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.chip .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.count { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* fabric grid */
.fabrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.fcard { display: block; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; overflow: hidden; font: inherit; color: inherit; position: relative; }
.fcard img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #e9e2d6; }
.fcard .txt { padding: 8px 10px 10px; }
.fcard .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.fcard .cl { font-size: 12.5px; color: var(--muted); }
.fcard .pr { font-size: 13px; color: var(--gold-deep); font-weight: 600; }
.fcard.sel { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown); }
.fcard.sel::after { content: "\2713"; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font-weight: 700; }
.more { display: flex; justify-content: center; margin: 18px 0; }

/* sheet (bottom on phones, centred on desktop) */
.cbs-sheet { position: fixed; inset: 0; z-index: 50; }
.cbs-sheet[hidden] { display: none; }
.cbs-sheet-bg { position: absolute; inset: 0; background: rgba(20,12,8,.55); }
.cbs-sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--cream); border-radius: 14px 14px 0 0; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); outline: none; }
.sheet-close { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 8px; z-index: 2; }
.sheet-close button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 22px; cursor: pointer; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-top: -60px; }
.gallery img { flex: none; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; background: #e9e2d6; }
.gallery.multi img { width: 88%; }
.sheet-body { padding: 14px var(--gut) 0; }
.sheet-body .price { font-size: 18px; color: var(--gold-deep); font-weight: 600; margin: 4px 0 10px; }
.facts { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 8px 10px; border-radius: var(--r); margin: 0 0 12px; }
.cbs .imgnote { font-size: 12px; color: var(--muted); margin: 6px var(--gut) 0; }

/* choice cards */
.choices { display: grid; gap: 12px; margin: 16px 0; }
.choice { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; color: inherit; cursor: pointer; min-height: 64px; }
.choice:hover { border-color: var(--gold-deep); }
.choice[aria-pressed="true"], .choice.on { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown); }
.choice .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--brown); font-weight: 700; }
.choice b { display: block; font-size: 16px; }
.choice span { display: block; font-size: 14px; color: var(--muted); }

/* style options */
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0; overflow: hidden; }
.item-h { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.item-h img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex: none; background: #e9e2d6; }
.item-h .t { flex: 1; min-width: 0; }
.item-h .t b { display: block; }
.item-h .t span { font-size: 13px; color: var(--muted); }
.opt { padding: 12px; border-bottom: 1px solid #f0e9de; }
.opt:last-child { border-bottom: 0; }
.opt > .lb { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 8px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--cream); font: 500 14px var(--body); cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pics button { display: flex; flex-direction: column; align-items: stretch; padding: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--cream); cursor: pointer; font: 500 13px var(--body); color: var(--ink); min-height: 44px; }
.pics button svg { width: 100%; height: 84px; }
.pics button svg.a2 { height: auto; aspect-ratio: 4 / 3; border-radius: 3px; background: #efe8dc; }
.pics button[aria-pressed="true"] { border-color: var(--brown); box-shadow: 0 0 0 2px var(--brown); background: #fff; }
details.more-opts > summary { cursor: pointer; padding: 12px; font-weight: 600; color: var(--brown); min-height: 44px; list-style: none; }
details.more-opts > summary::before { content: "+ "; }
details.more-opts[open] > summary::before { content: "\2212 "; }

/* review */
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img, .line .ph { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; background: #e9e2d6; }
.line .ph { display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; padding: 4px; }
.line .nm { font-weight: 600; }
.line .sub { font-size: 13px; color: var(--muted); }
.line .acts { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--brown); }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.lp { font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
.totals { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 16px 0; }
.totals .r { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.totals .r.big { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* forms */
.form { display: grid; gap: 14px; margin: 16px 0; }
.fld label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; border: 1px solid #cfc4b4; border-radius: var(--r); padding: 10px 12px; font: 16px var(--body); background: #fff; color: var(--ink); }
.fld textarea { min-height: 88px; }
.fld .hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
.fld.bad input, .fld.bad select { border-color: var(--err); }
.err { color: var(--err); font-size: 14px; }
.ack { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; }
.ack input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--brown); }
.draft { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: #fdf3dc; color: #6b4a00; padding: 2px 6px; border-radius: 3px; margin-bottom: 6px; }
.sim { background: #fdf3dc; border: 1px solid #f1d9a0; color: #5b3d00; border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.finish { text-align: center; padding: 28px 0; }
.finish .ref { font-family: var(--head); font-size: 28px; letter-spacing: .08em; color: var(--brown); margin: 8px 0 16px; }

.cbs-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: .25s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
.cbs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.cbs-toast.err { background: var(--err); }

@media (min-width: 600px) {
  .garments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fabrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form.two .wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  :root { --gut: 28px; }
  .garments { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fabrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cbs-sheet-card { left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%); width: min(880px, 92vw); border-radius: 12px; }
  .sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .gallery { margin-top: 0; }
  .sheet-body { padding-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .cbs-toast { transition: none; } }
.cbs-main:focus, .cbs-main:focus-visible { outline: none; }

.offer .ofimg { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; flex: none; }
.ofp { margin-top: 4px; color: var(--ink) !important; }
.was { color: var(--muted); font-weight: 400; }
.now { color: var(--gold-deep); }
.save { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ok); background: #e9f3ea; border-radius: 3px; padding: 1px 6px; }

.opt-cut { margin: 12px 0 4px; }
.progress-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; margin: 6px 0 16px; }
.progress-card .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pbar > span { display: block; height: 100%; background: var(--gold-deep); }
.photo-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.photo-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.photo-list li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--muted); font-weight: 700; }
.photo-list li.ok span { background: var(--ok); color: #fff; }
.cbs-mframe { position: fixed; inset: 0; z-index: 45; background: var(--sand); display: flex; flex-direction: column; }
.mf-bar { flex: none; display: flex; align-items: center; gap: 12px; background: var(--espresso); color: var(--cream); padding: 8px var(--gut); padding-top: calc(8px + env(safe-area-inset-top)); }
.mf-back { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(225,184,121,.6); background: transparent; color: var(--cream); font: 600 14px var(--body); cursor: pointer; flex: none; }
.mf-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mf-t b { font-size: 14px; color: var(--gold); }
.mf-t span { font-size: 12px; color: #e8dccb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mf-iframe { flex: 1; width: 100%; border: 0; background: var(--sand); }

details.opts-sum > summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; min-height: 32px; }
.mlist { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 2px; font-size: 14px; }
.mlist li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.ack { margin-top: 12px; }

.cbs-acts { display: flex; gap: 8px; align-items: center; }
.cbs-later { min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--gold); font: 600 14px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.choice .ofp, .choice .ofp * { display: inline; }
.choice .ofp .save { display: inline-block; margin-left: 4px; }
.cbs-brand { white-space: nowrap; }
.cbs-bag em { white-space: nowrap; }
@media (max-width: 420px) {
  .cbs-brand { font-size: 13px; letter-spacing: .1em; }
  .cbs-brand small { font-size: 11px; }
  .cbs-bag { font-size: 13px; padding-right: 10px; gap: 6px; }
  .cbs-bag span { min-width: 24px; height: 24px; font-size: 12px; }
  .cbs-later { padding: 4px 6px; font-size: 13px; }
  .cbs-head-in { gap: 6px; }
}

.item-h .t > span { display: block; }

.center { text-align: center; }
.mt8 { margin-top: 8px; }
.consult-banner { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; min-height: 52px; padding: 12px 14px; margin: 4px 0 6px; border: 1px solid var(--gold); border-radius: var(--r); background: #fff8ec; font: 15px/1.35 var(--body); color: var(--ink); cursor: pointer; }
.consult-banner b { color: var(--brown); }
.consult-banner > span:last-child { font-size: 20px; color: var(--gold-deep); }
.consult-card { margin: 24px 0 8px; padding: 20px 18px; border-radius: 10px; background: var(--espresso); color: var(--cream); }
.cbs .consult-card h2 { color: var(--gold); font-size: 20px; }
.consult-card p { color: #efe4d3; }
.cc-acts { display: grid; gap: 10px; margin-top: 14px; }
.cc-acts.center { display: flex; flex-wrap: wrap; justify-content: center; }
.cbs .consult-card a.btn.ghost { color: var(--cream); border-color: rgba(225,184,121,.7); }
.lede.center { margin-left: auto; margin-right: auto; }
@media (min-width: 600px) { .consult-card .cc-acts { grid-template-columns: 1fr 1fr; } }
