/* ==========================================================
   Aquele Bolo — trilha de encomenda e página do pedido
   ========================================================== */
.order-page {
  background: var(--cream);
}
.order {
  position: relative;
  padding: calc(var(--header-h) + 34px) 0 60px;
  min-height: 100svh;
}
.order__band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 300px;
  background-size: 900px auto;
  border-bottom: 4px solid var(--ink);
  opacity: 0.95;
}
.order__band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 233, 0) 40%, rgba(255, 248, 233, 0.15));
}
.order__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

/* ---------- Prévia ---------- */
.preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.preview__card {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 38%, var(--paper) 0 34%, var(--lav-4) 35% 100%);
  box-shadow: 0 12px 0 var(--ink);
  padding: 26px 24px 24px;
  overflow: hidden;
}
.preview__card::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 3px dashed rgba(146, 132, 188, 0.6);
  aspect-ratio: 1;
  height: auto;
  bottom: auto;
  animation: spin 50s linear infinite;
}
.preview__stage {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 0.92;
  display: grid;
  place-items: center;
}
.preview__stage > * {
  max-width: 100%;
  max-height: 100%;
}
.preview__stage .cake-svg {
  width: 92%;
  overflow: visible;
}
.preview__stage .slice-svg {
  width: 88%;
}
.preview__caption {
  position: relative;
  z-index: 1;
  margin: 6px 0 14px;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  min-height: 1.5em;
}
.preview__price {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  background: var(--but);
  box-shadow: 0 5px 0 var(--ink);
}
.preview__price small {
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.preview__price strong {
  font-family: var(--f-display);
  font-size: 1.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* composição inicial */
.compo {
  position: relative;
  width: 100%;
  height: 100%;
}
.compo > div {
  position: absolute;
  filter: drop-shadow(0 12px 12px rgba(46, 37, 82, 0.22));
}
.compo .c-cake {
  width: 62%;
  left: 19%;
  top: 2%;
}
.compo .c-slice {
  width: 40%;
  right: -2%;
  bottom: 0;
}
.compo .c-b1 {
  width: 20%;
  left: 4%;
  bottom: 6%;
}
.compo .c-b2 {
  width: 17%;
  left: 22%;
  bottom: 0;
}

/* caixa de brigadeiros */
.bbox {
  width: 92%;
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 26px;
  border: 4px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--lav-2) 0 26px, var(--but) 26px 52px);
  box-shadow: 0 8px 0 var(--ink);
}
.bbox__in {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 50% 30%, #f3e2c7, var(--kraft));
  display: grid;
  grid-template-columns: repeat(var(--c, 3), 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  padding: 6px;
  box-shadow: inset 0 10px 18px rgba(46, 37, 82, 0.25);
}
.bslot {
  position: relative;
  display: grid;
  place-items: center;
}
.bslot::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px dashed rgba(46, 37, 82, 0.28);
}
.bslot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bbox--dense .bslot::before {
  inset: 22%;
  border-width: 1px;
}

/* ---------- Fluxo ---------- */
.flow {
  min-width: 0;
}
.crumbs {
  list-style: none;
  margin: 0 0 18px;
  padding: 6px;
  display: flex;
  gap: 4px;
  border-radius: var(--pill);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
}
.crumbs::-webkit-scrollbar {
  display: none;
}
.crumbs li {
  flex: 1;
  min-width: max-content;
}
.crumbs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s;
}
.crumbs b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  font-size: 0.8rem;
}
.crumbs li.is-done a {
  color: var(--lav-deep);
}
.crumbs li.is-done b {
  background: var(--lav-3);
  border-color: var(--lav-deep);
}
.crumbs li.is-on a {
  background: var(--but);
  color: var(--ink);
}
.crumbs li.is-on b {
  background: var(--ink);
  color: var(--but);
  border-color: var(--ink);
}
.crumbs li.is-locked a {
  pointer-events: none;
  opacity: 0.45;
}

.panel {
  position: relative;
  border: 4px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 12px 0 var(--ink);
  padding: clamp(22px, 3.4vw, 40px);
  min-height: 520px;
}
.panel__loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  font-weight: 800;
  color: var(--ink-2);
}
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid var(--lav-3);
  border-top-color: var(--lav-deep);
  animation: spin 0.8s linear infinite;
}
.view-head {
  margin-bottom: 22px;
}
.view-head h1,
.view-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 8px 0 8px;
}
.view-head p {
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 4px 0;
  font-weight: 900;
  color: var(--lav-deep);
  text-decoration: none;
  font-size: 0.92rem;
}
.back-link:hover {
  text-decoration: underline;
}

/* escolha inicial */
.kinds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kind {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--lav-4);
  text-decoration: none;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.3s var(--ease-back), box-shadow 0.3s;
}
.kind:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 12px 0 var(--ink);
}
.kind:nth-child(2) {
  background: var(--but-3);
}
.kind:nth-child(3) {
  background: var(--cream-2);
}
.kind__art {
  height: 150px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.kind__art > * {
  height: 100%;
  width: auto;
  max-width: 100%;
}
.kind__art .art-brigs {
  display: flex;
  align-items: flex-end;
}
.kind__art .art-brigs svg {
  width: 56px;
  height: auto;
  margin: 0 -6px;
}
.kind__art .art-brigs svg:nth-child(2) {
  width: 70px;
  transform: translateY(-14px);
}
.kind__body {
  padding: 14px 18px 18px;
  border-top: 3px solid var(--ink);
  background: var(--paper);
  flex: 1;
  display: grid;
  gap: 4px;
}
.kind__body h3 {
  font-size: 1.5rem;
}
.kind__body small {
  font-weight: 700;
  color: var(--ink-2);
}
.kind__body strong {
  font-family: var(--f-display);
  color: var(--lav-deep);
}
.kind.is-off {
  opacity: 0.5;
  pointer-events: none;
}
.closed-note {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: #ffe3e5;
  font-weight: 800;
}

/* mini carrinho na tela inicial */
.mini-cart {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 22px;
  border: 3px dashed var(--lav);
  background: var(--lav-4);
  font-weight: 800;
}

/* sub-etapas do bolo */
.substeps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.substeps span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--lav-4);
  overflow: hidden;
  position: relative;
}
.substeps span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lav);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.substeps span.is-done::after,
.substeps span.is-on::after {
  transform: scaleX(1);
}
.substeps span.is-on::after {
  background: var(--but-deep);
}

/* opções */
.opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.opts--wide {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  text-align: left;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.25s var(--ease-back), box-shadow 0.25s, background 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.opt:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--ink);
}
.opt:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.opt.is-on {
  background: var(--but);
}
.opt.is-on::after {
  content: '✓';
  position: absolute;
  top: -12px;
  right: -10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lav-deep);
  color: #fff;
  font-weight: 900;
  border: 3px solid var(--ink);
  animation: pop 0.45s var(--ease-back);
}
.opt[data-order]::after {
  content: attr(data-order);
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
.opt__swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: inset -5px -6px 0 rgba(0, 0, 0, 0.08), inset 5px 5px 0 rgba(255, 255, 255, 0.35);
}
.opt__name {
  font-weight: 900;
  line-height: 1.15;
}
.opt__sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
}
.opt__price {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--lav-deep);
}
.opt--size {
  align-items: center;
  text-align: center;
}
.opt--size .size-dot {
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--lav-3);
  margin: 4px 0;
}
.opt.is-on .size-dot {
  background: var(--paper);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 3px dashed var(--lav-3);
}
.step-actions .spacer {
  flex: 1;
}
.hint {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* linhas com contador (fatias / sabores) */
.rows {
  display: grid;
  gap: 10px;
}
.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  transition: background 0.25s;
}
.row.has-qty {
  background: var(--but-3);
}
.row__art {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--lav-4);
}
.row__art svg {
  width: 92%;
  height: auto;
}
.row__name {
  font-weight: 900;
  line-height: 1.2;
}
.row__desc {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
.row__price {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--lav-deep);
  font-size: 1rem;
}

/* brigadeiros */
.fillbar {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}
.fillbar__track {
  flex: 1;
  height: 14px;
  border-radius: 7px;
  background: var(--lav-4);
  border: 2.5px solid var(--ink);
  overflow: hidden;
}
.fillbar__track span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--lav) 0 12px, var(--but) 12px 24px);
  transition: width 0.4s var(--ease-out);
}
.fillbar b {
  font-family: var(--f-display);
  font-size: 1.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fillbar.is-full {
  background: var(--but);
}
.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip-btn {
  border: 2.5px solid var(--ink);
  border-radius: var(--pill);
  background: var(--paper);
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 3px 0 var(--ink);
}
.chip-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

/* formulário de detalhes */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.counter-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 2.5px dashed var(--lav);
  background: var(--lav-4);
  font-weight: 800;
}

/* carrinho */
.cart-list {
  display: grid;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
}
.cart-item__art {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: var(--lav-4);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cart-item__art svg {
  width: 92%;
  height: auto;
}
.cart-item h4 {
  font-family: var(--f-body);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.25;
}
.cart-item ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.cart-item__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.cart-item__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.cart-item__tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-item .stepper button {
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
}
.cart-item .stepper output {
  min-width: 26px;
}
.trash {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.trash:hover {
  background: #ffe3e5;
}
.totals {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 22px;
  background: var(--cream-2);
  border: 3px solid var(--ink);
}
.totals div {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.totals .grand {
  font-family: var(--f-display);
  font-size: 1.5rem;
  padding-top: 8px;
  border-top: 2px dashed rgba(46, 37, 82, 0.25);
}
.empty {
  text-align: center;
  padding: 30px 10px;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.empty svg {
  width: 140px;
}

/* entrega */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.seg .opt {
  min-height: 96px;
}
.cal {
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  padding: 14px;
  user-select: none;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal__head strong {
  font-family: var(--f-display);
  font-size: 1.3rem;
  text-transform: capitalize;
}
.cal__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  font-weight: 900;
}
.cal__nav:disabled {
  opacity: 0.3;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal__dow {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ink-2);
  padding: 4px 0;
  text-transform: uppercase;
}
.cal__day {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--lav-4);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s var(--ease-back), background 0.2s;
}
.cal__day:hover:not(:disabled) {
  transform: scale(1.08);
  border-color: var(--ink);
}
.cal__day:disabled {
  background: transparent;
  color: rgba(46, 37, 82, 0.28);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal__day.is-on {
  background: var(--but);
  border-color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.cal__day.is-today {
  outline: 2px dashed var(--lav);
}
.cal__blank {
  aspect-ratio: 1;
}
.periods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.periods .opt {
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
}
.info-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--lav-4);
  font-weight: 700;
  font-size: 0.92rem;
}
.info-box.is-warn {
  background: #ffe3e5;
}
.section-label {
  display: block;
  margin: 22px 0 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
}

/* pagamento */
.pay-methods {
  display: grid;
  gap: 12px;
}
.pay {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  text-align: left;
  box-shadow: 0 4px 0 var(--ink);
  transition: background 0.25s, transform 0.25s var(--ease-back);
}
.pay:hover {
  transform: translateY(-2px);
}
.pay.is-on {
  background: var(--but-3);
}
.pay__ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--lav-4);
  border: 2.5px solid var(--ink);
}
.pay__ico svg {
  width: 30px;
  height: 30px;
}
.pay b {
  display: block;
  font-size: 1.08rem;
}
.pay small {
  font-weight: 700;
  color: var(--ink-2);
}
.pay__radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.pay.is-on .pay__radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lav-deep);
  animation: pop 0.35s var(--ease-back);
}
.summary {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--lav-4);
  font-weight: 700;
}
.summary .line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.summary .line span:first-child {
  color: var(--ink-2);
}
.secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
}
.test-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2.5px dashed var(--warn);
  background: #fff4dd;
  font-weight: 800;
  font-size: 0.9rem;
}
.error-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 3px solid var(--err);
  background: #ffe3e5;
  font-weight: 800;
}

/* recibo (prévia das etapas finais) */
.receipt {
  position: relative;
  width: 88%;
  max-height: 100%;
  overflow: hidden;
  padding: 22px 20px 30px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 14px 24px -10px rgba(46, 37, 82, 0.35);
  font-size: 0.86rem;
  font-weight: 700;
  transform: rotate(-2deg);
  -webkit-mask: radial-gradient(circle at 10px 100%, transparent 9px, #000 10px) 0 0 / 20px 100% repeat-x;
  mask: radial-gradient(circle at 10px 100%, transparent 9px, #000 10px) 0 0 / 20px 100% repeat-x;
}
.receipt h5 {
  margin: 0 0 4px;
  font-family: var(--f-display);
  font-size: 1.3rem;
  text-align: center;
}
.receipt .r-sub {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.receipt .r-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1.5px dashed rgba(46, 37, 82, 0.2);
}
.receipt .r-line span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.receipt .r-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 1.2rem;
}
.receipt .r-meta {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .order__grid {
    grid-template-columns: 1fr;
  }
  .preview {
    position: relative;
    top: 0;
  }
  .preview__card {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 6px 14px;
    padding: 12px 14px;
    border-radius: 28px;
    box-shadow: 0 7px 0 var(--ink);
  }
  .preview__card::before {
    display: none;
  }
  .preview__stage {
    grid-row: span 2;
    aspect-ratio: 1;
  }
  .preview__caption {
    text-align: left;
    margin: 0;
    font-size: 1.05rem;
  }
  .preview__price {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 16px;
  }
  .preview__price small,
  .preview__price strong {
    white-space: nowrap;
  }
  .preview__price strong {
    font-size: 1.3rem;
  }
  .preview__stage .mobile-icon {
    width: 78%;
    filter: drop-shadow(0 8px 10px rgba(46, 37, 82, 0.25));
  }
  .receipt {
    display: none;
  }
  .kinds {
    grid-template-columns: 1fr;
  }
  .kind {
    flex-direction: row;
  }
  .kind__art {
    width: 120px;
    height: auto;
    flex: none;
  }
  .kind__body {
    border-top: 0;
    border-left: 3px solid var(--ink);
  }
  .crumbs span {
    display: none;
  }
  .crumbs li.is-on span {
    display: inline;
  }
  .panel {
    border-radius: 30px;
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .seg {
    grid-template-columns: 1fr;
  }
  .opts {
    grid-template-columns: repeat(2, 1fr);
  }
  .opts--wide {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 60px 1fr;
  }
  .cart-item__art {
    width: 60px;
    height: 60px;
  }
  .cart-item__side {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }
  .step-actions .btn {
    flex: 1;
  }
  .row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px 8px 8px;
  }
  .row__art {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .row__desc {
    display: none;
  }
  .row .stepper button {
    width: 36px;
    height: 36px;
  }
  .row .stepper output {
    min-width: 26px;
  }
}

/* ==========================================================
   Página do pedido
   ========================================================== */
.track {
  padding: calc(var(--header-h) + 34px) 0 60px;
  min-height: 100svh;
  position: relative;
}
.track__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.track-card {
  border: 4px solid var(--ink);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: 0 12px 0 var(--ink);
  padding: clamp(22px, 3.4vw, 40px);
}
.track-card + .track-card {
  margin-top: 24px;
}
.order-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 2.5px solid var(--ink);
  background: var(--lav-4);
  font-weight: 900;
  letter-spacing: 0.06em;
}
.status-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  margin: 18px 0 6px;
}
.status-hero__art {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--but-3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.status-hero__art svg,
.status-hero__art img {
  width: 82%;
}
.status-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}
.status-hero p {
  margin: 0;
  font-weight: 600;
  color: var(--ink-2);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 10%;
  right: 10%;
  height: 6px;
  border-radius: 3px;
  background: var(--lav-4);
}
.timeline .bar {
  position: absolute;
  top: 19px;
  left: 10%;
  height: 6px;
  border-radius: 3px;
  background: var(--lav);
  width: 0;
}
.timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.timeline .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 1;
}
.timeline li.is-done .dot {
  background: var(--lav);
  color: #fff;
}
.timeline li.is-on .dot {
  background: var(--but);
  box-shadow: 0 0 0 6px rgba(251, 211, 108, 0.45);
}
.timeline li.is-on {
  color: var(--ink);
}
.pix {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border-radius: 28px;
  border: 3px solid var(--ink);
  background: var(--cream-2);
}
.pix__qr {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 3px solid var(--ink);
  background: #fff;
  padding: 10px;
  display: grid;
  place-items: center;
}
.pix__qr img {
  width: 100%;
  image-rendering: pixelated;
}
.pix__code {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.pix__code input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}
.pix__timer {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.waiting {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--lav-deep);
}
.waiting i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lav);
  animation: blink 1.2s infinite;
}
.waiting i:nth-child(2) {
  animation-delay: 0.2s;
}
.waiting i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.track-items {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.track-items .ti {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(46, 37, 82, 0.15);
}
.track-items small {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
}
.kv {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.kv div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}
.kv span:first-child {
  color: var(--ink-2);
}
.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.recent {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.recent a {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--ink);
}
@media (max-width: 900px) {
  .track__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .track-card {
    padding: 22px 18px;
    border-radius: 30px;
  }
  .status-hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  .kv div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .pix {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .pix__code {
    width: 100%;
  }
  .status-hero {
    grid-template-columns: 90px 1fr;
  }
  .status-hero__art {
    width: 90px;
  }
  .timeline span.lbl {
    font-size: 0.7rem;
  }
  .timeline .dot {
    width: 36px;
    height: 36px;
  }
  .timeline::before,
  .timeline .bar {
    top: 15px;
  }
}

@media print {
  .site-header,
  .order__band,
  .curtain,
  .mini-footer {
    display: none !important;
  }
}
