/* Tela do cliente — identidade Rota 008 (noite, estrada, laranja de farol) */
:root {
  --bg: #0e0d0c;
  --card: #1a1917;
  --card-2: #23211e;
  --edge: #34302a;
  --orange: #f6a21a;
  --orange-2: #ffb938;
  --text: #f4efe6;
  --muted: #a8a196;
  --ok: #3aa35f;
  --rust: #b8452a;
  --head: "Oswald", "Arial Narrow", "sans-serif-condensed", Impact, sans-serif;
  --hand: "Permanent Marker", "Comic Sans MS", cursive;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 16px/1.35 var(--body);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, #1f1a14 0%, var(--bg) 60%) fixed,
    var(--bg);
}
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 12px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }

/* topo: cena + logo */
.hero { background: #000; border-bottom: 2px solid var(--orange); box-shadow: 0 6px 18px #000a; }
.hero img { display: block; width: 100%; max-width: 760px; margin: 0 auto; height: auto; aspect-ratio: 2172 / 724; }

.demo { background: var(--rust); color: #fff; text-align: center; padding: 8px 16px; font-size: .9rem; }

/* passos 1-2-3 */
.stepper { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0 auto; padding: 16px 12px 6px; max-width: 560px; }
.stepper .st { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.stepper .st b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #5b554c; font-family: var(--head); font-size: 1rem; color: var(--muted); }
.stepper .line { flex: 1; height: 3px; border-radius: 3px; background: #3a362f; }
.stepper .st.now { color: var(--text); font-weight: 700; }
.stepper .st.now b { background: var(--orange); border-color: var(--orange); color: #16130f; }
.stepper .st.past b { border-color: var(--orange); color: var(--orange); }
.stepper .line.past { background: var(--orange); }
.stepper .line.now { background: linear-gradient(90deg, var(--orange) 45%, #3a362f 45%); }

/* cabeçalho de categoria: faixa pincelada + tracejado + frase à mão */
.cat { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.brush { margin: 0; display: flex; align-items: center; gap: 8px; padding: 7px 18px 7px 12px; color: #17130e;
  font-family: var(--head); font-weight: 700; font-size: 1.7rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%23f6a21a' d='M5 9 L22 3 L64 6 L118 2 L186 5 L248 2 L294 7 L290 19 L298 31 L291 44 L296 55 L252 58 L190 54 L126 58 L70 55 L24 58 L4 53 L9 41 L2 29 L8 18 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.brush svg { width: 26px; height: 26px; flex: none; }
.cat .dash { flex: 1; height: 0; border-top: 3px dashed var(--orange); opacity: .9; min-width: 20px; }
.cat .tag { font-family: var(--hand); color: var(--orange); font-size: .78rem; line-height: 1.05; text-transform: uppercase;
  transform: rotate(-6deg); text-align: center; max-width: 118px; }

/* produtos */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; min-height: 88px; background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; padding-right: 10px; }
.item.on { border: 2px solid var(--orange); box-shadow: 0 0 0 1px #f6a21a33, 0 4px 18px #f6a21a22; }
.item.off { opacity: .45; filter: grayscale(.8); }
.thumb { flex: none; align-self: stretch; width: 96px; background: #111; display: grid; place-items: center; color: var(--orange);
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .ph { display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(circle at 40% 45%, #3a2a12, #141210 70%); }
.thumb .ph svg { width: 38px; height: 38px; }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 0; }
.info b { font-family: var(--head); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em; line-height: 1.15; }
.info small { color: var(--muted); font-size: .84rem; line-height: 1.25; margin-top: 1px; }
.frase { font-family: var(--hand); font-style: normal; color: #d9a24a; font-size: .78rem; line-height: 1.2; margin-top: 3px; }
.price { font-family: var(--head); font-weight: 700; color: var(--orange); font-size: 1.2rem; margin-top: 3px; }
.qty { display: flex; align-items: center; gap: 8px; flex: none; }
.qty span { min-width: 20px; text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.qty button { width: 44px; height: 44px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: transparent; border: 2px solid var(--orange); color: var(--orange); font-size: 1.6rem; line-height: 1; }
.qty button.minus { border-color: #6b645a; color: var(--text); }
.item.on .qty .plus { background: var(--orange); color: #16130f; }
.qty button:active { transform: scale(.94); }

.spacer { height: 150px; }

/* barra de pagamento */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: #0b0a09f2; border-top: 1px solid #2c2822;
  padding: 10px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px #000c;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bar-info { max-width: 536px; margin: 0 auto 8px; display: flex; justify-content: space-between; align-items: center; }
.cart { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.cart i { position: relative; display: grid; }
.cart i svg { width: 30px; height: 30px; color: var(--text); }
.cart i em { position: absolute; top: -7px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: var(--orange); color: #16130f; font: 700 .75rem/20px var(--body); text-align: center; font-style: normal; }
.bar-info strong { font-family: var(--head); font-size: 1.6rem; color: var(--orange); }
.bar .btn { display: flex; max-width: 536px; margin: 0 auto; }

.btn { width: 100%; border: 0; border-radius: 12px; padding: 15px; font-family: var(--head); font-weight: 700; font-size: 1.3rem;
  letter-spacing: .03em; display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn:disabled { opacity: .6; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #16130f; box-shadow: 0 4px 0 #b36f00, 0 8px 20px #f6a21a33; }
.btn-orange.copied { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #22693b; }
.btn-light { background: var(--text); color: #16130f; box-shadow: 0 4px 0 #9d968a; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid #5b554c; }
.btn-big { padding: 19px; font-size: 1.4rem; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 16px; width: 100%; }

/* telas pix / pronto */
.screen { padding-top: 10px; padding-bottom: 30px; }
.label { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.label b { color: var(--text); font-family: var(--head); font-size: 1.05rem; letter-spacing: .05em; }
.amount { font-family: var(--head); font-size: 3.2rem; margin: 2px 0 10px; line-height: 1; color: var(--orange); }
.summary { list-style: none; padding: 10px 14px; margin: 0 0 18px; background: var(--card); border: 1px solid var(--edge);
  border-radius: 12px; font-size: .95rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary li + li { border-top: 1px dashed var(--edge); }
.howto { list-style: none; counter-reset: s; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; }
.howto li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.howto li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange); font: 700 .85rem var(--head); }
.howto b { color: var(--orange); font-weight: 700; }
.qrbox { margin: 0 0 22px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; }
.qrbox summary { cursor: pointer; color: var(--muted); }
.qrbox img { display: block; margin: 12px auto 0; width: 240px; height: 240px; background: #fff; border-radius: 10px; padding: 6px; }
.check { width: 88px; height: 88px; margin: 14px auto 6px; border-radius: 50%; background: var(--orange); color: #16130f;
  display: grid; place-items: center; box-shadow: 0 0 0 8px #f6a21a22; }
.check svg { width: 46px; height: 46px; }
.screen h1 { font-family: var(--head); margin: 8px 0 4px; font-size: 2.3rem; text-transform: uppercase; }
.hand { font-family: var(--hand); color: var(--orange); transform: rotate(-3deg); margin: 0 0 16px; font-size: 1.05rem; }
.bignum { font-family: var(--head); font-weight: 700; font-size: 4.6rem; line-height: 1; margin: 2px 0 16px; letter-spacing: .04em; }
.left { text-align: left; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 160px; max-width: 528px; margin: 0 auto; background: var(--rust);
  color: #fff; padding: 14px 16px; border-radius: 12px; text-align: center; box-shadow: 0 6px 20px #000a; z-index: 10; }

@media (min-width: 480px) {
  .wrap { padding: 0 16px; }
  .thumb { width: 120px; }
  .cat .tag { font-size: .85rem; max-width: 150px; }
}
