/* StuffedSicle — ordering, tracking and owner pages. Builds on site.css. */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 108px var(--gutter) var(--section-pad); }
.page-title { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-title .script { font-size: clamp(64px, 9vw, 112px); color: var(--peri-deep); }
.page-title h1 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; text-transform: uppercase; line-height: 1.15; max-width: 640px; text-wrap: balance; }
.page-title p { font-size: 16px; line-height: 1.5; max-width: 520px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.wrap.narrow { max-width: 720px; }
.hidden { display: none !important; }
.muted { color: var(--ink); }
.mono-note { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--peri-pale); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-family: var(--font-mono); font-size: 12px; }
.demo-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--peri-deep); }

/* ---------- category tabs ---------- */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(24px, 3vw, 40px); position: sticky; top: 72px; z-index: 5; padding: 8px 0; background: var(--cream); }
.cat-tabs button { font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.cat-tabs button.on, .cat-tabs button:hover { background: var(--navy); color: var(--cream); }

/* ---------- product grid ---------- */
.cat-block { margin-bottom: clamp(40px, 6vw, 72px); scroll-margin-top: 140px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--navy); padding-top: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.cat-head .blurb { font-family: var(--font-mono); font-size: 14px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.prod { background: #fff; border: 2px solid var(--navy); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.prod .photo { aspect-ratio: 4 / 3; background: var(--peri-pale); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .photo img.mark { width: auto; height: 56%; object-fit: contain; opacity: .9; }
.prod .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod .name { font-family: var(--font-script); font-size: 38px; line-height: .9; color: var(--navy); }
.prod .name.plain { font-family: var(--font-body); font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.2; }
.prod .desc { font-size: 14px; line-height: 1.45; flex: 1; }
.prod .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.prod .price { font-family: var(--font-mono); font-size: 15px; }
.prod .price small { font-size: 12px; color: var(--ink); }
.prod .add { border: 2px solid var(--navy); background: var(--navy); color: var(--cream); border-radius: 999px; padding: 9px 18px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.prod .add:hover { background: var(--navy-soft); }
.prod .add.in { background: transparent; color: var(--navy); }

/* ---------- sheet (customise) ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 400; background: rgba(52, 58, 90, .6); display: none; align-items: flex-end; justify-content: center; padding: 0; }
.sheet-scrim.is-open { display: flex; }
.sheet { background: var(--cream); width: min(100%, 560px); max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; box-shadow: 0 -20px 60px rgba(52, 58, 90, .3); animation: sheet-up .35s cubic-bezier(.22, 1, .36, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 10px; }
.sheet-head .script { font-size: 48px; color: var(--navy); }
.sheet-head .sub { font-size: 14px; line-height: 1.45; margin-top: 4px; }
.sheet-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; font-size: 18px; cursor: pointer; color: var(--navy); }
.sheet-body { overflow-y: auto; padding: 4px 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.group h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.group h3 small { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1.5px solid var(--line); cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; flex: none; }
.opt .lbl { flex: 1; font-size: 16px; font-weight: 600; }
.opt .delta { font-family: var(--font-mono); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field label em, .field .label em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field .hint { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--ink); }
.field .err { font-family: var(--font-mono); font-size: 12px; color: #B3382C; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 16px; font-weight: 600; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field.bad input, .field.bad textarea { border-color: #B3382C; }
.sheet-foot { display: flex; gap: 12px; align-items: center; padding: 14px 22px 22px; border-top: 1.5px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 42px; border: none; background: transparent; font-size: 20px; font-weight: 700; color: var(--navy); cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.btn-wide { flex: 1; justify-content: space-between; padding: 14px 22px; }
.btn-wide .amt { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0; }

/* ---------- cart bar ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(120%); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.cart-bar.is-visible { transform: none; }
.cart-bar .in { pointer-events: auto; width: min(100%, 560px); background: var(--navy); color: var(--cream); border-radius: 999px; padding: 10px 10px 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 16px 40px -10px rgba(52, 58, 90, .6); }
.cart-bar .sum { display: flex; flex-direction: column; line-height: 1.2; }
.cart-bar .sum b { font-size: 15px; }
.cart-bar .sum small { font-family: var(--font-mono); font-size: 12px; color: var(--pill-muted); }
.cart-bar .btn { background: var(--cream); color: var(--navy); padding: 11px 20px; }
.cart-bar .btn:hover { background: var(--peri-light); color: var(--navy); }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 32px; }
.co-section { display: flex; flex-direction: column; gap: 16px; }
.co-section > h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; text-transform: uppercase; border-top: 3px solid var(--navy); padding-top: 12px; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1.5px solid var(--line); align-items: start; }
.line .n { font-weight: 700; font-size: 16px; }
.line .o { font-family: var(--font-mono); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.line .p { font-family: var(--font-mono); font-size: 15px; white-space: nowrap; }
.line .tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.link-btn { background: none; border: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--navy); border-radius: 999px; overflow: hidden; }
.seg button { border: none; background: transparent; color: var(--navy); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 12px; cursor: pointer; }
.seg button.on { background: var(--navy); color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font-family: inherit; font-size: 14px; font-weight: 700; border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.chips button.on { background: var(--navy); color: var(--cream); }
.chips button:disabled { opacity: .35; cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.summary { background: var(--peri-pale); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.summary .script { font-size: 44px; color: var(--peri-deep); }
.summary .srow { display: flex; justify-content: space-between; font-size: 15px; }
.summary .srow.total { font-size: 20px; font-weight: 700; border-top: 2px solid var(--navy); padding-top: 12px; margin-top: 4px; }
.summary .note { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; }
.summary .btn { justify-content: center; width: 100%; padding: 15px 22px; }
.form-status { font-weight: 700; font-size: 14px; min-height: 1.4em; color: #B3382C; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty .script { font-size: 64px; color: var(--peri-deep); }

/* ---------- inspiration photos ---------- */
.photo-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-strip:empty { display: none; }
.photo-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 2px solid var(--navy); background: var(--peri-pale); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--navy); color: var(--cream); font-size: 14px; line-height: 1; cursor: pointer; }
.photo-add { align-self: flex-start; cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-grid a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- tracker ---------- */
.tnote { background: var(--peri-pale); border-radius: 16px; padding: 14px 16px; }
.tnote:empty { display: none; }
.track-card { background: #fff; border: 2px solid var(--navy); border-radius: 24px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.track-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.track-top .num { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.track-top h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.track-top .when { background: var(--peri-pale); border-radius: 999px; padding: 8px 16px; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .45; }
.stage .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; background: #fff; }
.stage.done { opacity: 1; }
.stage.done .dot { background: var(--navy); color: var(--cream); }
.stage.now { opacity: 1; color: var(--navy); }
.stage.now .dot { background: var(--peri); color: var(--navy); border-color: var(--peri); box-shadow: 0 0 0 4px var(--peri-pale); }
.stage.cancelled .dot { background: #B3382C; border-color: #B3382C; color: #fff; }
.pun { font-family: var(--font-script); font-size: 56px; line-height: .9; color: var(--peri-deep); }
.blurb { font-size: 17px; line-height: 1.5; }
.updates { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 13px; }
.updates .u { display: flex; gap: 12px; }
.updates .u span:first-child { color: var(--ink); white-space: nowrap; }
.track-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- owner board ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; line-height: 1; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filters button { font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.filters button.on { background: var(--navy); color: var(--cream); }
.olist { display: flex; flex-direction: column; gap: 10px; }
.orow { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; cursor: pointer; text-align: left; font-family: inherit; color: var(--navy); }
.orow:hover, .orow.on { border-color: var(--navy); }
.orow .num { font-family: var(--font-mono); font-size: 13px; }
.orow .who { font-weight: 700; }
.orow .what { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--ink); }
.pill { display: inline-block; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--peri-pale); color: var(--ink); white-space: nowrap; }
.pill.ready { background: #DCEFE3; color: #1F6B45; }
.pill.done { background: var(--cream-2); color: var(--navy-soft); }
.pill.cancelled { background: #F6DEDA; color: #8D2B20; }
.detail { background: #fff; border: 2px solid var(--navy); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.detail h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.detail .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; }
.detail .kv span:nth-child(odd) { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--ink); padding-top: 3px; }
.detail .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.login { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 900px) {
  .co-grid, .board { grid-template-columns: 1fr; }
  .summary, .detail { position: static; }
}
@media (max-width: 760px) {
  .page-main { padding-top: 96px; }
  .cat-tabs { top: 64px; }
  .stages { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; }
  .orow .num { grid-column: 1 / -1; }
}
@media (min-width: 761px) {
  .sheet-scrim { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: 86vh; }
}
