@font-face { font-family: "Bricolage Grotesque"; src: url("/brand/fonts/bricolage-grotesque-var-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/brand/fonts/hanken-grotesk-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --uling: #271913; --papel: #f9f5eb; --banig: #f3dec1; --muted: #67574f; --rule: #e5dccd; --coral: #cc361e; --coral-deep: #af2d18; --lime: #c5e95c;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; --body: "Hanken Grotesk", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--papel); color: var(--uling); font: 400 16px/1.5 var(--body); -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.bar { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; padding: 18px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--rule); }
.bar .back { color: var(--muted); font-weight: 600; text-decoration: none; font-size: 15px; }
.bar .back:hover { color: var(--uling); }
.bar h1 { margin: 0; font: 800 clamp(28px, 4vw, 40px)/1 var(--display); font-variation-settings: "opsz" 96, "wdth" 88; letter-spacing: -0.035em; }
.bar h1 i { font-style: normal; color: var(--coral); }
.bar .note { color: var(--muted); font-size: 14px; margin-left: auto; }
.bar .pack { color: var(--uling); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bar .pack:hover { color: var(--coral); }

.tool { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: clamp(20px, 4vw, 56px); padding: clamp(16px, 4vw, 40px); max-width: 1280px; margin: 0 auto; align-items: start; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } .stage { position: static !important; } }

.stage { position: sticky; top: 16px; background: var(--banig); border-radius: 28px; padding: 18px 18px 14px; }
.views { display: flex; gap: 6px; margin-bottom: 12px; }
.views button, .seg button { border: 1.5px solid var(--uling); background: transparent; border-radius: 999px; padding: 8px 16px; min-height: 40px; font-weight: 700; font-size: 14px; }
.views button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--uling); color: var(--papel); }
.shirt { position: relative; width: 100%; aspect-ratio: 640 / 700; }
.tee { position: absolute; inset: 0; width: 100%; height: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair[hidden] { display: none; }
.side { margin: 0; }
.side figcaption { text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 4px; }
.art { position: absolute; transform: translateX(-50%); transition: opacity .15s; pointer-events: none; }
.art.busy { opacity: .55; }
.pic { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #ddd; }
.pic .base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic .art { mix-blend-mode: multiply; opacity: .94; filter: saturate(.95); }
.scale { margin: 6px 4px 0; font-size: 13px; color: var(--muted); }

.controls { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.field > span b { font-weight: 700; color: var(--muted); }
#text { font: 800 26px/1.1 var(--display); font-variation-settings: "opsz" 96, "wdth" 85; letter-spacing: -0.02em; padding: 12px 16px; border: 2px solid var(--uling); border-radius: 16px; background: #fff; color: var(--uling); width: 100%; }
#text:focus { outline: none; box-shadow: 0 0 0 4px var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; }
.chips button { border: 1px solid var(--rule); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; min-height: 34px; }
.chips button:hover { border-color: var(--uling); }
.chips button[aria-pressed=true] { background: var(--lime); border-color: var(--lime); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 0; }
.swatches { display: flex; gap: 8px; }
.swatches button { flex: 1 1 0; display: flex; align-items: center; gap: 8px; justify-content: center; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 8px 12px; min-height: 44px; font-weight: 700; font-size: 14px; }
.swatches button::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.swatches button[aria-pressed=true] { border-color: var(--uling); box-shadow: inset 0 0 0 1px var(--uling); }
#color-field.off { opacity: .4; pointer-events: none; }
input[type=range] { width: 100%; accent-color: var(--coral); height: 28px; }

.spec { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; padding: 14px 16px; background: #fff; border-radius: 16px; font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spec .ink { display: inline-flex; align-items: center; gap: 5px; }
.spec .ink::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.spec .warn { color: var(--coral-deep); }

.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--uling); background: var(--uling); color: var(--papel); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn:hover { background: var(--coral); border-color: var(--coral); }
.btn.ghost { background: transparent; color: var(--uling); }
.btn.ghost:hover { background: var(--uling); color: var(--papel); border-color: var(--uling); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

.soft { color: var(--muted); font-weight: 400; }
.save, .orders { background: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.save h2, .orders h2 { margin: 0; font: 800 22px/1.1 var(--display); font-variation-settings: "opsz" 48, "wdth" 92; letter-spacing: -0.02em; }
.orders h2 b { color: var(--muted); font-weight: 700; }
.save-row { display: flex; gap: 10px; align-items: end; }
.save-row .grow { flex: 1; }
.save input, .save select { font: 600 16px var(--body); padding: 11px 14px; min-height: 46px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--papel); color: var(--uling); }
.save input:focus, .save select:focus { outline: none; border-color: var(--uling); box-shadow: 0 0 0 3px var(--lime); }
.saved { font-weight: 700; font-size: 14px; color: var(--muted); align-self: center; }
.orders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.off { opacity: .4; pointer-events: none; }
.tally { margin: -4px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.tally:empty { display: none; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--rule); }
.list li:first-child { border-top: 0; }
.list li.on { background: #f7fbe9; border-radius: 12px; }
.list li img { width: 96px; height: 34px; object-fit: contain; }
.list .who { display: flex; flex-direction: column; min-width: 0; }
.list .who b { font-weight: 700; } .list .who span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li.empty { display: block; color: var(--muted); font-size: 14px; }
.link { background: none; border: 0; padding: 8px 4px; font-weight: 700; font-size: 14px; color: var(--uling); text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--coral-deep); }
.more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); padding: 6px 0; }
.more .actions { margin-top: 8px; }
@media (max-width: 520px) { .list li { grid-template-columns: 72px 1fr auto; } .list li img { width: 72px; } .list .danger { grid-column: 3; } .save-row { flex-wrap: wrap; } }
