/* Order flow: print-on-demand (.pod-*), cart / checkout / orders (.ord-*). */

/* ---------- Shared numbered step badge ---------- */
.pod-num { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 14px; }
.pod-inline { display: inline-block; vertical-align: -3px; margin-right: 4px; }

/* ---------- POD layout: preview on top (mobile), sticky aside (desktop) ---------- */
.pod-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pod-aside { order: -1; position: sticky; top: var(--top-h); z-index: 10; margin: 0 -16px; }
.pod-preview { display: grid; grid-template-columns: 124px minmax(0, 1fr); border-radius: 0; border-left: 0; border-right: 0; background: var(--bg-2); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.pod-stage { aspect-ratio: auto; min-height: 148px; }
.pod-stage.pad > svg { width: 88%; height: 88%; }
.pod-info { padding: 10px 14px 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; justify-content: center; }
.pod-info .chip { min-height: 30px; padding: 0 12px; font-size: 12.5px; }
.pod-total { font-size: 20px; color: var(--gold-2); }
@media (min-width: 960px) {
  .pod-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
  .pod-aside { order: 0; top: calc(var(--top-h) + 16px); margin: 0; }
  .pod-preview { display: block; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface); box-shadow: none; }
  .pod-stage { aspect-ratio: 1; min-height: 0; }
  .pod-info { padding: 16px; gap: 12px; }
  .pod-total { font-size: 26px; }
}

/* ---------- POD options ---------- */
.pod-garments { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.pod-opt, .pod-design, .pod-place { border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; color: var(--text); text-align: left; transition: border-color .15s, background .15s; }
.pod-opt:hover, .pod-design:hover, .pod-place:hover { border-color: var(--faint); }
.pod-opt.active, .pod-design.active, .pod-place.active { border-color: var(--gold); background: rgba(245, 168, 0, .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.pod-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; text-align: center; }
.pod-opt-art { width: 58px; height: 62px; display: block; }
.pod-opt-art svg { width: 100%; height: 100%; }
.pod-designs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.pod-design { display: flex; flex-direction: column; gap: 2px; padding: 6px 6px 8px; min-width: 0; }
.pod-design-art { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; margin-bottom: 4px; }
.pod-design-art svg { width: 100%; height: 100%; }
.pod-places { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pod-places { grid-template-columns: repeat(3, 1fr); } }
.pod-place { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 60px; }
.pod-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; color: var(--gold-2); }
.pod-drop:hover { border-color: var(--gold); }
.pod-drop:focus-within { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.pod-drop .bold { color: var(--text); }
.pod-upload { padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-2); }
.pod-upload-art { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: repeating-conic-gradient(#2a3558 0 25%, #1c2644 0 50%) 0 0 / 14px 14px; }
.pod-upload-art img { width: 100%; height: 100%; object-fit: contain; }
.pod-qty-input { width: 52px; height: 40px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.pod-qty-input::-webkit-outer-spin-button, .pod-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.pod-breakdown { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.pod-breakdown .divider { margin: 4px 0; }
.pod-cta { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .pod-cta { grid-template-columns: 1fr 1fr; } }

/* ---------- Line items ---------- */
.ord-lines { display: flex; flex-direction: column; }
.ord-line { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.ord-line:last-child { border-bottom: 0; }
.ord-lines.compact .ord-line { padding: 10px 0; gap: 10px; align-items: center; }
.card > .ord-lines.compact .ord-line { padding: 10px 16px; }
.ord-thumb { width: 84px; flex: none; border-radius: 12px; aspect-ratio: 4 / 5; }
.ord-thumb.sm { width: 46px; border-radius: 9px; }
.ord-total { font-size: 22px; color: var(--gold-2); }
.ord-stack { display: flex; flex: none; }
.ord-stack .ord-thumb + .ord-thumb { margin-left: -14px; box-shadow: -2px 0 0 var(--surface); }
.ord-card { display: block; padding: 16px; }

/* ---------- Checkout ---------- */
.ord-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.ord-form .ord-span { grid-column: 1 / -1; }
@media (max-width: 420px) { .ord-form { grid-template-columns: 1fr; } }
.ord-saved { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .ord-saved { grid-template-columns: 1fr 1fr; } }
.ord-pays { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; min-width: 0; }
@media (min-width: 620px) { .ord-pays { grid-template-columns: 1fr 1fr; } }
.ord-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); cursor: pointer; min-height: 64px; }
.ord-pay input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; margin: 0; }
.ord-pay .lead { color: var(--gold-2); flex: none; }
.ord-pay.active { border-color: var(--gold); background: rgba(245, 168, 0, .1); }
.ord-pay.disabled { opacity: .55; cursor: not-allowed; }
.ord-pay:focus-within { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.ord-stripe { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--bg-2); }
.ord-stripe b { color: var(--text); }
.ord-stripe svg { flex: none; color: var(--gold-2); margin-top: 2px; }

/* ---------- Confirmation ---------- */
.ord-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 18px; background: linear-gradient(170deg, rgba(24, 192, 138, .12), var(--surface) 55%); }
.ord-check { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #04261b; box-shadow: 0 0 0 8px rgba(24, 192, 138, .18); }
.ord-track { margin-top: 6px; padding: 12px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ord-track-no { font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2); }
.ord-hero-kv { width: 100%; max-width: 380px; margin: 6px 0 0; text-align: left; }
.ord-next { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ord-next-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.ord-next-ico.gold { background: rgba(245, 168, 0, .16); }
.ord-next-ico.blue { background: rgba(75, 141, 255, .18); }
.ord-next-ico.purple { background: rgba(169, 107, 255, .18); }
.ord-next-ico.green { background: rgba(24, 192, 138, .16); }
.ord-next-ico.cyan { background: rgba(25, 185, 214, .16); }

/* ---------- Order detail ---------- */
.ord-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.ord-address { font-style: normal; line-height: 1.6; }
.ord-rate { border: 0; padding: 0; margin: 0; }
.ord-rate-opt { cursor: pointer; }
.ord-rate-opt:has(input:checked) { background: rgba(245, 168, 0, .14); border-color: var(--gold); color: var(--gold-2); }
.ord-rate-opt:focus-within { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.timeline .tl .n svg { stroke-width: 3; }
