:root {
  /* Abraçamente brand: card cream, wordmark mint, line gold, blush heart */
  --cream: #FBF7F1;
  --paper: #FFFFFF;
  --mint: #8FD0C9;
  --mint-soft: #DDF1EE;
  --mint-deep: #23766F;
  --mint-ink: #15524D;
  --gold: #C2914E;
  --gold-deep: #8E6127;
  --blush: #F2B4A8;
  --blush-soft: #FBE3DD;
  --blush-ink: #8A3E33;
  --ink: #3B2F25;
  --ink-soft: #6E5E4E;
  --line: #EDE3D6;
  --danger: #B3362B;

  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Sacramento", cursive;

  --r-sheet: 28px;
  --r-ctl: 999px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-peel: cubic-bezier(.34, 1.56, .64, 1);

  /* kiss-cut contour: white outline hugging the cutout, then a soft warm lift */
  --contour: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff);
  --rest: drop-shadow(0 1.5px 1.5px rgba(90, 60, 30, .18));
  --lift: drop-shadow(0 10px 10px rgba(90, 60, 30, .22));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 600 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

/* ── Header: the brand card ─────────────────────── */
.card-head {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px var(--gutter) 22px;
  text-align: center;
}
.mark {
  width: clamp(104px, 30vw, 148px);
  height: auto;
  margin: 0 auto -4px;
}
.logo {
  margin: 0;
  font: 500 clamp(2.5rem, 11vw, 3.6rem)/1 var(--display);
  letter-spacing: -0.005em;
  color: var(--mint);
}
.slogan {
  margin: 8px 0 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-left: .32em;
}
.script {
  margin: 14px 0 0;
  font: 400 clamp(2rem, 9vw, 2.6rem)/1 var(--script);
  color: #D98C7E;
}
.tag {
  margin: 6px auto 0;
  max-width: 32ch;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.02rem;
  text-wrap: balance;
}
.tag em { font-style: normal; color: var(--mint-deep); }
.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--line);
  color: var(--ink);
  font-size: .84rem;
  white-space: nowrap;
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  font: 600 .85rem/1 var(--display);
}
.steps b { font-weight: 800; }

/* ── Sheet (the card stock) ─────────────────────── */
.liner {
  max-width: 1080px;
  margin: 0 auto;
  margin-inline: max(10px, calc((100% - 1080px) / 2));
  padding: 28px var(--gutter) 0;
  border-radius: var(--r-sheet);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -22px rgba(90, 60, 30, .35);
  overflow: hidden;
  isolation: isolate;
}
.block + .block { margin-top: 44px; }
.block-head { margin-bottom: 18px; }
.block-head h2 {
  margin: 0;
  font: 600 clamp(1.6rem, 6vw, 2rem)/1.05 var(--display);
  color: var(--gold);
}
.hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  transition: color .25s;
}
.hint.alert { color: var(--danger); font-weight: 800; }

/* ── Color stickers ─────────────────────────────── */
.colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 16px 6px;
  margin: 0; padding: 0;
  list-style: none;
}
.colors.wiggle { animation: wiggle .5s var(--ease-out); }
@keyframes wiggle {
  20% { transform: translateX(-6px); } 45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); } 100% { transform: none; }
}
.color {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 2px 4px;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.color .art {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  max-width: 76px;
  aspect-ratio: 5 / 8;
  filter: var(--contour) var(--rest);
  transition: transform .45s var(--ease-peel), filter .3s var(--ease-out);
}
.color .art img,
.color .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.color .name {
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
  hyphens: manual;
}
.color[aria-checked="true"] .art {
  transform: translateY(-6px) rotate(-6deg) scale(1.06);
  filter: var(--contour) var(--lift);
}
.color[aria-checked="true"] .name {
  background: var(--mint-deep);
  color: #fff;
  margin-inline: -4px;
  padding: 2px 7px;
  border-radius: 10px;
}
.tick {
  position: absolute;
  top: -2px; right: 4%;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--blush-ink);
  border: 2.5px solid #fff;
  box-shadow: 0 3px 6px rgba(90, 60, 30, .25);
  transform: scale(0) rotate(-40deg);
  transition: transform .4s var(--ease-peel);
}
.tick .ic { width: 16px; height: 16px; }
.color[aria-checked="true"] .tick { transform: scale(1) rotate(0); }
@media (hover: hover) {
  .color:hover .art { transform: translateY(-3px) rotate(-2deg); }
  .color[aria-checked="true"]:hover .art { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
}

/* ── Product stickers ───────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 136px), 1fr));
  gap: 22px 14px;
  margin: 0; padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 22px; }
  .colors { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 22px 10px; }
  .color .art { max-width: 88px; }
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--cream);
  padding: 8px 8px 10px;
  box-shadow: 0 0 0 1px rgba(90, 60, 30, .04), 0 2px 3px rgba(90, 60, 30, .1);
  transition: transform .45s var(--ease-peel), box-shadow .3s var(--ease-out);
}
.product.added { animation: stick .55s var(--ease-peel); }
@keyframes stick {
  0% { transform: none; }
  35% { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 16px 24px -8px rgba(90, 60, 30, .3); }
  100% { transform: none; }
}
.product .photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #F6F1EA;
}
.slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
  pointer-events: none;
}
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 1px 2px rgba(59, 47, 37, .35);
  transition: width .3s var(--ease-out), background .3s;
}
.dots i.on { width: 18px; border-radius: 4px; background: #fff; }

/* multi-piece photos: pick one piece at a time */
.pick { margin: -2px 4px 6px; font-size: .8rem; color: var(--ink-soft); }
.parts { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 6px; }
.parts li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 10px;
  border-radius: 14px;
  background: var(--paper);
}
.part-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.part-txt b { font-size: .86rem; font-weight: 800; text-wrap: balance; }
.part-txt small { font-size: .78rem; color: var(--mint-deep); font-weight: 800; }
.parts li.set { background: var(--mint-soft); box-shadow: inset 0 0 0 1.5px var(--mint); }
.parts li.set b { color: var(--mint-ink); }
.set-inc { font-size: .74rem; color: var(--ink-soft); font-weight: 700; }
.order-item .info .inc { font-size: .76rem; }
.add-mini {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--mint-deep);
  color: #fff;
  transition: background .2s, transform .15s;
}
.add-mini:hover { background: var(--mint-ink); }
.add-mini:active { transform: scale(.92); }
.add-mini .ic { width: 18px; height: 18px; }
.add-mini .swatch { width: 14px; height: 24px; }
.price {
  position: absolute;
  top: -8px; right: -6px;
  min-width: 58px; height: 58px;
  padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--blush-ink);
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(90, 60, 30, .22);
  transform: rotate(10deg);
  font: 600 1rem/1 var(--display);
  text-align: center;
  z-index: 2;
}
.price small { display: block; font: 700 .58rem/1.1 var(--body); letter-spacing: .02em; }
.product h3 {
  margin: 10px 4px 8px;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.add {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--mint-deep);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  padding: 0 10px;
  transition: background .2s, transform .15s;
}
.add .ic { width: 18px; height: 18px; }
.add:hover { background: var(--mint-ink); }
.add:active { transform: scale(.96); }
.add .swatch, .add-mini .swatch {
  width: 12px; height: 20px; flex: none;
  object-fit: contain;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}
.in-order {
  position: absolute;
  top: 14px; left: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  z-index: 2;
}

.foot {
  position: relative;
  margin: 56px calc(var(--gutter) * -1) 0;
  padding: 44px var(--gutter) 40px;
  background: var(--mint);
  color: #fff;
  text-align: center;
  border-radius: 48px 48px 0 0;
}
/* the blush stripe that runs behind the mint panel on the brand card */
.foot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 16px;
  height: 10px;
  background: var(--blush);
  z-index: -1;
}
.foot p { margin: 4px auto; max-width: 34ch; font-weight: 800; color: var(--mint-ink); }
.foot .foot-script { font: 400 2.1rem/1.1 var(--script); color: #fff; font-weight: 400; margin-bottom: 10px; }
.foot small { display: block; margin-top: 14px; font-weight: 700; color: var(--mint-ink); opacity: .8; }

/* ── Bottom order bar ───────────────────────────── */
.bar {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 640px);
  display: flex;
  gap: 8px;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
}
.bar > button {
  border: 0;
  min-height: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 24px -8px rgba(90, 60, 30, .55);
}
.bar-color {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px 0 8px;
  background: var(--paper);
  text-align: left;
  flex: 0 1 44%;
  min-width: 0;
}
.bar-color-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.bar-color-txt small { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.bar-color-txt b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sticker {
  width: 28px; height: 44px; flex: none;
  display: grid; place-items: center;
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 1px 2px rgba(90,60,30,.3));
}
.mini-sticker { position: relative; overflow: visible; }
.mini-sticker img, .mini-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mini-sticker:empty {
  border-radius: 999px;
  border: 2px dashed #D9C9B4;
  filter: none;
}
.bar-order {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--mint-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 14px;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
}
.bar-order:hover:not(:disabled) { background: var(--mint-ink); }
.bar-order:disabled { background: #CFC3B4; color: #fff; cursor: default; box-shadow: 0 10px 24px -8px rgba(90, 60, 30, .4); }
.count {
  min-width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--mint-ink);
  font-size: .9rem;
}
.count.bump { animation: bump .45s var(--ease-peel); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ── Order sheet ────────────────────────────────── */
.sheet {
  width: min(100%, 560px);
  max-width: 100%;
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 -10px 40px rgba(90, 60, 30, .35);
}
@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: 26px; }
}
.sheet::backdrop { background: rgba(59, 47, 37, .45); }
.sheet[open] { animation: rise .45s var(--ease-out); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet-inner { padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font: 600 1.8rem/1 var(--display); color: var(--gold); }
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff;
}
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
}
.order-item .thumb { position: relative; width: 64px; height: 64px; }
.order-item .thumb .pimg { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #F6F1EA; overflow: hidden; display: grid; place-items: center; }
.order-item .thumb .pimg svg { width: 60%; }
.order-item .thumb .mini-sticker { position: absolute; right: -8px; bottom: -6px; width: 22px; height: 36px; }
.order-item .info { min-width: 0; }
.order-item .info b { display: block; font-size: .95rem; line-height: 1.2; }
.order-item .info span { display: block; font-size: .84rem; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 2px; background: var(--cream); border-radius: 999px; padding: 3px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; }
.order-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 16px 4px 18px;
  font-weight: 700;
}
.order-total b { font: 600 1.6rem/1 var(--display); color: var(--mint-deep); }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; font-size: .9rem; }
.field small { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font: 500 16px/1.4 var(--body);
  color: var(--ink);
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint-deep); }
.field input::placeholder, .field textarea::placeholder { color: #8F7D69; }
.send {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  background: var(--mint-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px -8px rgba(35, 118, 111, .6);
}
.send:hover { background: var(--mint-ink); }
.send[aria-busy="true"] { opacity: .7; cursor: progress; }
.send-alt {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: transparent;
  font-weight: 700;
  color: var(--ink);
}
.send-note { margin: 12px 4px 0; font-size: .82rem; color: var(--ink-soft); text-align: center; }
.empty { padding: 24px 8px; text-align: center; color: var(--ink-soft); }

/* ── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
  z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* phones: a photo with several pieces takes the full row, photo left, pieces right */
@media (max-width: 719px) {
  .product.multi {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 46%) 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 12px;
  }
  .product.multi .photo { grid-row: 1 / 4; align-self: start; }
  .product.multi h3 { margin: 6px 0 2px; }
  .product.multi .pick { margin: 0 0 8px; }
  .product.multi .parts { margin: 0; align-self: start; }
  .product.multi .parts li:not(.set) { background: var(--paper); }
}

/* ── Per-piece color picker ─────────────────────── */
.picker .sheet-head { align-items: flex-start; gap: 12px; }
.picker .sheet-head h2 { font-size: 1.5rem; line-height: 1.1; }
.picker-sub { margin: 4px 0 0; font-size: .88rem; color: var(--ink-soft); }
.pick-rows { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.pick-row { padding: 12px 0 10px 12px; border-radius: 18px; background: var(--paper); }
.pick-row.missing { box-shadow: inset 0 0 0 2px var(--danger); }
.pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-right: 12px; margin-bottom: 8px; }
.pick-head b { font-size: .95rem; font-weight: 800; }
.pick-name { font-size: .84rem; font-weight: 800; color: var(--mint-deep); text-align: right; }
.pick-row.missing .pick-name { color: var(--danger); }
.swatches {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 6px 12px 8px 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.swatches::-webkit-scrollbar { display: none; }
.sw {
  flex: none;
  width: 58px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 4px 0 0; border: 0; background: none;
  scroll-snap-align: center;
}
.sw-art {
  position: relative;
  width: 34px; height: 54px;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 1px 2px rgba(90, 60, 30, .25));
  transition: transform .3s var(--ease-peel);
}
.sw-art img, .sw-art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sw-name {
  font-size: .68rem; font-weight: 700; line-height: 1.1;
  color: var(--ink-soft);
  text-align: center; text-wrap: balance;
  min-height: 2.2em;
}
.sw[aria-checked="true"] .sw-art {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(3px 0 0 var(--mint-deep)) drop-shadow(-3px 0 0 var(--mint-deep)) drop-shadow(0 3px 0 var(--mint-deep)) drop-shadow(0 -3px 0 var(--mint-deep)) drop-shadow(0 6px 6px rgba(90, 60, 30, .3));
}
.sw[aria-checked="true"] .sw-name { color: var(--mint-ink); font-weight: 800; }
.same { margin: -4px 0 12px; }
.picker-err { margin: -4px 4px 10px; color: var(--danger); font-weight: 800; font-size: .9rem; }

/* order lines: per-piece colors + edit link */
.part-colors { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.part-colors li { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-soft); line-height: 1.2; }
.part-colors b { color: var(--ink); }
.mini-sticker.sm { width: 14px; height: 22px; }
.link {
  margin-top: 4px;
  padding: 4px 0;
  border: 0; background: none;
  color: var(--mint-deep);
  font-weight: 800; font-size: .84rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.order-item { align-items: start; }
.pick-rows { grid-template-columns: minmax(0, 1fr); }
.pick-row, .swatches { min-width: 0; max-width: 100%; }
.picker .sheet-inner { min-width: 0; }
.picker .sheet-head > div { min-width: 0; }
.order-item .info .part-colors li > span:last-child { display: inline; font-size: .8rem; }
.desc { margin: -4px 4px 8px; font-size: .84rem; color: var(--gold-deep); font-weight: 700; line-height: 1.3; }
@media (max-width: 719px) { .product.multi .desc { margin: 0 0 6px; } }
.product.multi { grid-template-rows: auto auto auto 1fr; }
.product.multi .photo { grid-row: 1 / 5; }

/* the colors section is a reference gallery now, not a control */
li.color { cursor: default; }
@media (hover: hover) { li.color:hover .art { transform: none; } }
.bar-order { flex: 1; }
/* fade the right edge so it reads as a scrolling strip */
.swatches {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  padding-right: 36px;
}
.picker-tip { margin: -6px 2px 12px; font-size: .8rem; font-weight: 700; color: var(--gold-deep); }

/* ── Payment (PIX) + receipt ────────────────────── */
.pay { margin: 4px 0 18px; }
.pay h3, .pay-h {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font: 600 1.15rem/1.2 var(--display);
  color: var(--gold);
}
.step-n {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint); color: var(--mint-ink);
  font: 600 .85rem/1 var(--display);
}
.pix-box { padding: 14px; border-radius: 18px; background: var(--paper); display: grid; gap: 12px; }
.pix-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.pix-row small { grid-column: 1; font-size: .78rem; color: var(--ink-soft); font-weight: 700; }
.pix-row b { grid-column: 1; font-size: 1.05rem; font-weight: 800; color: var(--ink); word-break: break-all; }
.pix-row .chip-btn { grid-column: 2; grid-row: 1 / 3; }
.chip-btn {
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint-ink);
  font-weight: 800; font-size: .84rem;
}
.chip-btn:active { transform: scale(.96); }
.pix-fav { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.prazo { margin: 10px 4px 0; font-size: .86rem; font-weight: 700; color: var(--gold-deep); }
.upload {
  position: relative;
  display: block;
  padding: 14px;
  border-radius: 18px;
  border: 2px dashed #D9C9B4;
  background: var(--paper);
  cursor: pointer;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.upload.done { border-style: solid; border-color: var(--mint); }
.upload.missing { border-color: var(--danger); }
.upload-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 800; color: var(--mint-deep); }
.upload-done { display: flex; align-items: center; gap: 12px; }
.upload-done img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; }
.upload-done b { display: block; font-size: .88rem; word-break: break-all; }
.upload-done small { font-size: .78rem; color: var(--ink-soft); }
.send-err { margin: 10px 4px 0; color: var(--danger); font-weight: 800; font-size: .9rem; text-align: center; }

.pix-main { margin-top: 0; min-height: 52px; }
.pix-how { margin: -4px 2px 0; font-size: .8rem; color: var(--ink-soft); font-weight: 700; }
.pix-code {
  width: 100%; resize: none;
  font: 600 .72rem/1.35 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink-soft);
  padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream);
}
.pix-qr-box summary { cursor: pointer; font-weight: 800; font-size: .86rem; color: var(--mint-deep); padding: 4px 0; }
.pix-qr { width: min(220px, 70%); margin: 10px auto 2px; }
.pix-qr svg { display: block; width: 100%; height: auto; }
.chip-btn.copied, .send.copied { background: var(--mint); color: var(--mint-ink); }
dialog .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
