:root {
  --accent: #a20000;
  --accent-ink: #fff;
  --accent-soft: #fbeeee;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #e3e1dc;
  --bg: #f6f4f0;
  --card: #ffffff;
  --field: #ffffff;
  --ok: #1f7a3d;
  --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 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.shell { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }

/* header + progress */
.top { margin-bottom: 20px; }
.brandmark { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.top h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 4px 0 16px; letter-spacing: -.01em; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.progress li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); position: relative; }
.progress li.is-done { background: #d79a9a; }
.progress li.current { background: var(--accent); }
.progress-label { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; outline: none; }
@media (max-width: 520px) { .card { padding: 18px; } }

h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.lede { color: var(--muted); margin: 0 0 22px; }
.intro { white-space: pre-line; margin: 0 0 18px; }
.loading { color: var(--muted); }
h3 { font-size: 16px; margin: 26px 0 10px; }

/* fields */
.field { margin-bottom: 18px; }
.field > label, .legend { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.req::after { content: " *"; color: var(--accent); }
.hint { font-size: 14px; color: var(--muted); margin: -2px 0 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--field);
  padding: 11px 12px; border: 1px solid #cfccc5; border-radius: 10px; min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 620px) { .row.two { grid-template-columns: 1fr 1fr; } }
.money { position: relative; max-width: 200px; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 26px; }

/* choice cards */
.choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .box {
  display: block; border: 1px solid #cfccc5; border-radius: 12px; padding: 12px 14px; background: var(--field);
  transition: border-color .12s, background .12s; height: 100%;
}
.choice .box strong { display: block; font-size: 15px; }
.choice .box small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.choice input:checked + .box { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #cfccc5;
  border-radius: 999px; font-size: 14px; background: var(--field); cursor: pointer; min-height: 38px;
}
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }

/* products */
.cat-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.counter { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.products { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .products { grid-template-columns: 1fr 1fr; } }
.product { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--field); display: flex; flex-direction: column; }
.product.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.product .pic { aspect-ratio: 4 / 3; background: #f1efea; display: grid; place-items: center; }
.product .pic img { width: 100%; height: 100%; object-fit: contain; }
.product .pic .ph { font-weight: 800; font-size: 28px; color: #c9c5bc; }
.product .body { padding: 12px 14px; flex: 1; }
.product .brand { font-size: 13px; color: var(--muted); font-weight: 600; }
.product .pname { font-weight: 700; margin: 2px 0 4px; }
.product .desc { font-size: 14px; color: var(--muted); margin: 0; }
.product .opts { padding: 0 14px 14px; }
.product .opts .legend { font-size: 14px; margin-top: 10px; }
.product .foot { padding: 0 14px 14px; }
.empty { padding: 18px; border: 1px dashed #cfccc5; border-radius: 12px; color: var(--muted); }

/* designs */
.design { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.design-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.design-head strong { font-size: 16px; }
.files { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.files li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; padding: 8px 10px; background: #f6f4f0; border-radius: 8px; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filepick { display: inline-block; }
.filepick input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* buttons */
.btn {
  font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 20px; min-height: 46px; cursor: pointer;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); border-color: #cfccc5; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--accent); font-weight: 650; cursor: pointer; padding: 4px; }
.btn:focus-visible, .linkbtn:focus-visible, .filepick:focus-within .btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }

/* errors */
.err { color: var(--accent); font-size: 14px; font-weight: 600; margin-top: 6px; }
.err:empty { display: none; }
.has-err input, .has-err textarea, .has-err select { border-color: var(--accent); }
.banner-err { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }

/* review */
.review { display: grid; gap: 14px; }
.review section { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review .rh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review .rh strong { font-size: 15px; }
.review dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 15px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 6px; } }
.terms { background: #f6f4f0; border-radius: 12px; padding: 14px 16px; margin-top: 18px; }
.terms ul { margin: 6px 0 12px; padding-left: 20px; }
.terms li { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* done */
.done { text-align: center; padding: 20px 0; }
.done .ref { display: inline-block; font-size: 22px; font-weight: 800; letter-spacing: .06em; padding: 8px 16px; border: 2px dashed var(--accent); border-radius: 10px; color: var(--accent); margin: 10px 0 16px; }
.done ol { text-align: left; max-width: 460px; margin: 0 auto; }

/* summary */
.summary { display: none; }
@media (min-width: 900px) {
  .summary { display: block; position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
}
.summary .storehead { background: var(--accent); color: #fff; padding: 18px 16px; }
.summary .storehead small { opacity: .8; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.summary .storehead div { font-size: 19px; font-weight: 800; line-height: 1.2; margin-top: 2px; overflow-wrap: anywhere; }
.summary .sbody { padding: 14px 16px; font-size: 14px; }
.summary .sbody p { margin: 0 0 10px; }
.summary .sbody .k { color: var(--muted); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.summary .logo { width: 100%; max-height: 120px; object-fit: contain; background: #f6f4f0; border-radius: 8px; margin-bottom: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* artwork guide */
.guide { border: 1px solid var(--line); border-radius: 12px; background: #fbfaf7; margin: 4px 0 8px; }
.guide summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; line-height: 1; flex: none; }
.guide[open] summary::before { content: "–"; }
.guide summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.guide-body { padding: 0 16px 14px; font-size: 15px; }
/* "Don't see what you want?" box on Products */
.custom-add { border: 1px dashed var(--line); border-radius: 12px; background: #fbfaf7; margin: 16px 0 4px; }
.custom-add summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; }
.custom-add summary::-webkit-details-marker { display: none; }
.custom-add summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 14px; line-height: 1; flex: none; }
.custom-add[open] summary::before { content: "–"; }
.custom-add summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.custom-add > :not(summary) { margin-left: 16px; margin-right: 16px; }
.custom-add > :last-child { margin-bottom: 14px; }
.custom-add .hint { margin-top: 0; }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 560px) { .custom-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.custom-grid .field { margin-bottom: 10px; }
.guide-body h4 { font-size: 15px; margin: 16px 0 4px; }
.guide-body h4:first-child { margin-top: 2px; }
.guide-body p { margin: 0 0 8px; }
.guide-body ul { margin: 4px 0 0; padding-left: 20px; }
.guide-body li { margin-bottom: 3px; }
.dpi { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: 14px; background: #fff; border-radius: 8px; overflow: hidden; }
.dpi th, .dpi td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.dpi th { background: #f1efea; font-weight: 700; }
.dpi tr:last-child td { border-bottom: 0; }
.product .opts input[type=text] { min-height: 42px; margin-top: 2px; }
.product .opts .legend { display: block; }

/* compact product picker */
.picked { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfaf7; margin-bottom: 16px; }
.picked-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.picked-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.picked-head + .picked-row { border-top: 0; padding-top: 2px; }
.popts { grid-column: 2 / -1; display: grid; gap: 8px; }
.popts input[type=text] { min-height: 42px; }
@media (max-width: 520px) { .popts { grid-column: 1 / -1; } }
.pthumb { width: 84px; height: 48px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.pthumb img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.pthumb .ph { font-weight: 800; font-size: 20px; color: #c9c5bc; }
.pinfo { min-width: 0; }
.pinfo .pname { font-weight: 700; line-height: 1.3; }
.pinfo .brand { font-size: 13px; color: var(--muted); font-weight: 600; }
.pinfo .desc { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfilter { display: grid; gap: 10px; margin-bottom: 10px; position: sticky; top: 0; background: var(--card); padding: 6px 0; z-index: 2; }
.pfilter input[type=search] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #cfccc5; border-radius: 10px; min-height: 46px; background: var(--field); color: inherit; }
.pfilter input[type=search]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.chipbtn { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid #cfccc5; border-radius: 999px; background: var(--field); cursor: pointer; min-height: 36px; color: inherit; }
.chipbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chipbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--field); }
.prow:first-child { border-top: 0; }
.prow.on { background: var(--accent-soft); }
.prow[hidden] { display: none; }
.prow .btn { min-width: 84px; }

@media (max-width: 520px) {
  .prow, .picked-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
  .picked-row { padding: 8px 0; }
  .pthumb { width: 64px; height: 40px; }
  .prow .desc { display: none; }
  .prow .btn { min-width: 0; padding: 6px 12px; }
  .pfilter .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .pfilter .chipbtn { flex: none; }
}

.note { background: #f6f4f0; border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0 0 14px; }
