:root {
  --cream: #f7f0e6;
  --paper: #fffbf5;
  --rust: #a34727;
  --orange: #e2652b;
  --orange-d: #c9521c;
  --forest: #1f3a2e;
  --forest-2: #2c4d3e;
  --ink: #2a211c;
  --muted: #7a6a5e;
  --line: #e6d9c8;
  --ok: #2f7a4b;
  --warn: #b7791f;
  --bad: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 6px 20px rgba(60, 35, 20, .07);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23e2652b' stroke-opacity='.10' stroke-width='1.4'%3E%3Cpath d='M-20 90c90-50 160 30 250-10s150-70 230-20 120 40 160 10'/%3E%3Cpath d='M-20 130c100-40 170 40 260 0s140-60 220-10 110 40 160 15'/%3E%3Cpath d='M-20 175c110-35 175 45 265 8s135-50 210 0 110 40 165 18'/%3E%3Cpath d='M-20 330c80 30 150-40 240-5s170 70 250 25 90-40 150-20'/%3E%3Cpath d='M-20 372c90 28 160-35 250 0s160 60 240 22 95-35 150-15'/%3E%3Cpath d='M-20 414c95 25 165-30 255 4s150 52 230 18 100-30 155-10'/%3E%3Cpath d='M-20 520c120-20 170 30 260 10s150-50 220-20 110 25 160 5'/%3E%3Cpath d='M-20 560c120-15 175 32 265 14s145-45 215-16 110 25 160 6'/%3E%3C/svg%3E");
  background-size: 600px 600px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: .01em; }
h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.eyebrow { font: 700 .75rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-d); margin-bottom: .8em; }

/* header */
.top { background: var(--forest); color: #f7f0e6; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 1.05rem/1 var(--head); letter-spacing: .14em; }
.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { color: #f7f0e6; text-decoration: none; font: 600 .9rem var(--head); padding: 8px 10px; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current] { background: rgba(255, 255, 255, .1); }
.lang { background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #f7f0e6; border-radius: 999px; font: 700 .75rem var(--head); padding: 6px 10px; cursor: pointer; letter-spacing: .08em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 0; font: 700 1rem var(--head); letter-spacing: .02em; cursor: pointer; text-decoration: none; background: var(--orange); color: #fff;
  transition: background .15s, transform .05s; }
.btn:hover { background: var(--orange-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #cdbfb1; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn.ghost:hover { background: var(--forest); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn.dark { background: var(--forest); }
.btn.dark:hover { background: var(--forest-2); }
.linkbtn { background: none; border: 0; color: var(--rust); font: inherit; cursor: pointer; padding: 4px; text-decoration: underline; }

/* landing */
.hero { padding: 44px 0 30px; text-align: center; }
.hero .logo { width: min(300px, 72vw); margin: 0 auto 18px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.band { background: var(--forest); color: #f1e7da; padding: 44px 0; margin-top: 30px; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.band img { border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; margin-bottom: 34px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tile .ic { width: 38px; height: 38px; border-radius: 10px; background: #fbe3d3; color: var(--rust); display: grid; place-items: center; margin-bottom: 10px; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.soon { font: 700 .7rem var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--line); color: var(--muted); padding: 3px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
footer { padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: .85rem; }

/* shirt page */
.pagehead { padding: 30px 0 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.open { background: #dff1e5; color: var(--ok); }
.status.closed { background: #f6dedb; color: var(--bad); }
.notice { background: #fff3e6; border: 1px solid #f3cfae; border-left: 4px solid var(--orange); padding: 12px 14px; border-radius: 10px; margin: 14px 0; white-space: pre-line; }
.notice.admin { background: #e9f1ec; border-color: #bcd5c5; border-left-color: var(--forest); }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product button.zoom { display: block; padding: 0; border: 0; background: #ddd; cursor: zoom-in; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.product button.zoom img { width: 100%; height: 100%; object-fit: cover; }
.product .info { padding: 12px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.product .info b { font-family: var(--head); color: var(--forest); }
.price-from { color: var(--rust); font-weight: 700; white-space: nowrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 16px 0; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: inline-grid; place-items: center; font: 800 .85rem var(--head); flex: none; }
table.prices { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.prices th, table.prices td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.prices th:first-child, table.prices td:first-child { text-align: left; }
table.prices thead th { font: 700 .8rem var(--head); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.tablewrap { overflow-x: auto; }

/* forms */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
label.f > span em { font-style: normal; color: var(--muted); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(226, 101, 43, .18); }
.invalid input, .invalid select, input.invalid, select.invalid { border-color: var(--bad); }
.err { color: var(--bad); font-size: .85rem; margin-top: 4px; display: none; }
.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }

.line { display: grid; grid-template-columns: 1.4fr 1.4fr .9fr auto auto; gap: 8px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.line.bad { border-color: var(--bad); }
.line .namerow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.line .namerow .check { margin: 0; }
.line .namerow input[type=text] { flex: 1 1 200px; max-width: 280px; padding: 8px 10px; }
.line .namerow small { flex-basis: 100%; }
.line .amt { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.line .amt .linkbtn { font-size: .85rem; padding: 0; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 44px; border: 0; background: #f4ece2; font: 700 1.1rem var(--head); cursor: pointer; color: var(--forest); }
.qty input { width: 42px; text-align: center; border: 0; padding: 0; height: 44px; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rm { width: 40px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; font-size: 1.3rem; }
.rm:hover { background: #f6dedb; color: var(--bad); }

.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; margin-bottom: 10px; }
.choice input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) { border-color: var(--orange); background: #fff7f0; }
.choice b { display: block; }
.choice small { color: var(--muted); display: block; white-space: pre-line; }

.bank { background: var(--forest); color: #f1e7da; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.bank dt { color: #b9c9bf; font-size: .85rem; }
.bank dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.bank .acct { font: 700 1.15rem var(--head); letter-spacing: .06em; color: #fff; }
.copy { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px; font: 600 .75rem var(--body); padding: 5px 10px; cursor: pointer; }
.totalbox { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 2px dashed var(--line); margin-top: 6px; }
.totalbox .big { font: 800 1.6rem var(--head); color: var(--rust); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed #d8c4ad; border-radius: 12px; padding: 22px 14px; background: #fff; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--orange); background: #fff7f0; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .preview { max-height: 180px; border-radius: 8px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 14px 0; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex: none; }

.sticky { position: sticky; bottom: 0; z-index: 10; background: rgba(255, 251, 245, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 20px; }
.sticky .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky .t small { display: block; color: var(--muted); font-size: .78rem; }
.sticky .t b { font: 800 1.3rem var(--head); color: var(--rust); }
.formerr { color: var(--bad); font-weight: 600; margin: 8px 0 0; }

.done { text-align: center; padding: 34px 20px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: #dff1e5; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 2rem; }
.done .ref { font: 800 1.8rem var(--head); letter-spacing: .06em; color: var(--forest); margin: 4px 0 14px; }
.summary { text-align: left; max-width: 420px; margin: 16px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.summary .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 800; }

dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(96vw, 1100px); max-height: 92vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(20, 25, 20, .7); }
dialog img { max-height: 88vh; width: auto; margin: 0 auto; }
dialog .x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.3rem; cursor: pointer; }

/* admin */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 18px 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 700 .92rem var(--head); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--forest); border-bottom-color: var(--orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--body); cursor: pointer; }
.chips button[aria-pressed=true] { background: var(--forest); color: #fff; border-color: var(--forest); }
.olist { display: grid; gap: 8px; }
.orow { display: grid; grid-template-columns: 100px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.orow:hover { border-color: var(--orange); }
.orow .ref { font: 800 .9rem var(--head); color: var(--forest); }
.orow .who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .meta { grid-column: 2 / 3; font-size: .85rem; color: var(--muted); }
.orow .amt { font-weight: 800; text-align: right; }
.pill { display: inline-block; font: 700 .7rem var(--head); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.pill.new { background: #fff0d9; color: var(--warn); }
.pill.verified { background: #dff1e5; color: var(--ok); }
.pill.done { background: #dde7f3; color: #2a5a8a; }
.pill.rejected { background: #f6dedb; color: var(--bad); }
.detail { padding: 22px; width: min(96vw, 720px); max-height: 90vh; overflow: auto; position: relative; }
.detail .kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: .95rem; margin-bottom: 14px; }
.detail .kv dt { color: var(--muted); }
.detail .kv dd { margin: 0; word-break: break-word; }
.detail .slip img { max-height: 420px; border: 1px solid var(--line); border-radius: 8px; }
.statusbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.statusbar button[aria-pressed=true] { outline: 3px solid var(--orange); outline-offset: 1px; }
.pgrid input { width: 86px; padding: 8px; text-align: right; }
.pgrid td, .pgrid th { padding: 6px 8px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 14px; }
.switch input { width: 20px; height: 20px; accent-color: var(--orange); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--forest); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat small { color: var(--muted); display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat b { font: 800 1.35rem var(--head); color: var(--forest); }
.login { max-width: 380px; margin: 60px auto; }

@media (max-width: 720px) {
  .band .grid, .cards3 { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; }
  .line { grid-template-columns: 1fr 1fr; }
  .line .c-cut { grid-column: 1 / -1; }
  .line .qty { justify-self: start; }
  .line .rm { justify-self: end; }
  .orow { grid-template-columns: 1fr auto; }
  .orow .meta { grid-column: 1 / -1; }
  .detail .kv { grid-template-columns: 1fr; gap: 0 0; }
  .detail .kv dt { margin-top: 6px; }
  .top nav a.hide-sm { display: none; }
}
.soonbtn { cursor: default; opacity: .6; }
.soonbtn:hover { background: transparent; color: var(--forest); }
.band .eyebrow { color: #f3a274; }
.band h2 { font-size: 1.6rem; }
.sticky .btn { white-space: nowrap; padding: 0 18px; }
.sticky .t { min-width: 0; }

.pricenotes { margin: 10px 0 16px; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.charts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chartcard { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; cursor: zoom-in; font: inherit; font-size: .8rem; color: var(--ink); text-align: left; }
.chartcard img { border-radius: 6px; margin-bottom: 4px; aspect-ratio: 3 / 2; object-fit: cover; object-position: right center; width: 100%; }
@media (max-width: 720px) { .charts { grid-template-columns: 1fr 1fr; } }
.ctas-left { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pgrid input[type=text] { width: 150px; text-align: left; }

.bank .qr { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
.bank .qr .zoom { flex: none; width: 128px; padding: 4px; border: 0; background: #fff; border-radius: 10px; cursor: zoom-in; }
.bank .qr p { margin: 4px 0 8px; font-size: .85rem; color: #cfdcd4; }
.bank .qr a.copy { display: inline-block; text-decoration: none; }
