/* ═══ INSÔNIA — Monte seu combo (loja e caixa) · 7.3 ════════════════════════
   Sempre escuro (vitrine noturna), nos dois temas da loja.
   Um passo por vez: Bebida → Energético → Turbinar. O preço fica no rodapé.
   Leve no celular: sem blur, sem filtro animado, sem mexer no layout ao trocar
   (só opacidade e transform). Celular = coluna; computador = vitrine | passos. */
.mc-ov { position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 1rem;
  font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #f5f5f5; animation: mcFade .18s ease-out; -webkit-tap-highlight-color: transparent; }
@keyframes mcFade { from { opacity: 0; } }
.mc { width: min(1000px, 100%); height: min(720px, 100%); display: flex; flex-direction: column; background: #0b0b0b; border: 1px solid rgba(212,175,55,.3);
  border-radius: 20px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.mc i.ti { font-style: normal; }
.mc button { font: inherit; color: inherit; -webkit-appearance: none; appearance: none; }

/* cabeçalho */
.mc-h { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem .7rem 1rem; border-bottom: 1px solid #1c1c1c; flex: none; }
.mc-ht { flex: 1; min-width: 0; }
.mc-ht b { display: block; font-size: 1.05rem; font-weight: 850; letter-spacing: -.01em; }
.mc-ht small { display: block; color: #a6a6a6; font-size: .76rem; margin-top: .05rem; }
.mc-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #2a2a2a; background: #161616; cursor: pointer; display: grid; place-items: center; flex: none; font-size: 1.1rem; }

.mc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mc-show { display: flex; flex-direction: column; min-height: 0; background: radial-gradient(90% 70% at 50% 100%, #1a1406, #000 72%); border-right: 1px solid #1c1c1c; }

/* ── vitrine ─────────────────────────────────────────────────────────────── */
.mc-stage { position: relative; flex: 1; min-height: 220px; overflow: hidden; contain: layout paint; }
/* brilho atrás dos copos: gradiente simples (blur custa caro no celular) */
.mc-glow { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(30% 38% at 24% 80%, var(--g1, transparent), transparent 70%), radial-gradient(30% 38% at 44% 80%, var(--g2, transparent), transparent 70%); }
.mc-slot { position: absolute; left: var(--x); bottom: var(--y, 6%); height: var(--h); width: 0; z-index: var(--z, 1); }
.mc-slot > img { position: absolute; bottom: 0; left: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.mc-ice { --x: 37%; --h: 84%; --y: 9%; --z: 1; }
.mc-en  { --x: 60%; --h: 72%; --z: 2; }
.mc-bt  { --x: 81%; --h: 64%; --z: 3; }
.mc-cup { --h: 35%; --y: 2%; --z: 5; }
.mc-cup.c1 { --x: 22%; }
.mc-cup.c2 { --x: 41%; --z: 6; }
.mc-stage.solo .mc-en { display: none; }
.mc-stage.solo .mc-bt { --x: 70%; --h: 68%; }
.mc-stage.solo .mc-cup.c1 { --x: 27%; } .mc-stage.solo .mc-cup.c2 { --x: 47%; }
.mc-cup > img { opacity: 0; transition: opacity .25s ease; will-change: opacity; }
.mc-cup > img.on { opacity: 1; }
.mc-slot > img.in { animation: mcIn .28s ease-out; }
@keyframes mcIn { from { opacity: 0; transform: translate(-50%, 6%); } }
.mc-ghost { position: absolute; bottom: 0; left: 0; transform: translateX(-50%); height: 100%; aspect-ratio: .34; border: 2px dashed rgba(212,175,55,.32); border-radius: 30% 30% 12% 12% / 16% 16% 6% 6%; }
.mc-free { position: absolute; top: .6rem; left: .6rem; z-index: 8; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px;
  background: rgba(0,0,0,.78); border: 1px solid rgba(212,175,55,.55); color: #F0C84A; font-size: .72rem; font-weight: 800; }
.mc-free[hidden] { display: none; }

/* resumo (computador) */
.mc-recap { list-style: none; margin: 0; padding: .75rem 1rem .9rem; display: grid; gap: .3rem; border-top: 1px solid #1c1c1c; background: #0b0b0b; flex: none; }
.mc-recap li { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #cfcfcf; min-width: 0; }
.mc-recap .ti { color: #D4AF37; flex: none; }
.mc-recap span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-recap b { flex: none; color: #f5f5f5; }
.mc-recap b.ok { color: #3fd23a; }

/* ── passos ──────────────────────────────────────────────────────────────── */
.mc-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.mc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: .6rem .7rem; border-bottom: 1px solid #1c1c1c; flex: none; }
.mc-steps button { display: flex; align-items: center; gap: .45rem; min-width: 0; padding: .45rem .5rem; border-radius: 12px; border: 1px solid #242424; background: #121212; cursor: pointer; text-align: left; }
.mc-steps button:disabled { opacity: .45; cursor: default; }
.mc-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 850; background: #242424; color: #bbb; flex: none; }
.mc-steps span { min-width: 0; font-size: .8rem; font-weight: 800; line-height: 1.15; }
.mc-steps small { display: block; font-size: .66rem; font-weight: 600; color: #8e8e8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-steps .done i { background: #D4AF37; color: #000; }
.mc-steps .done small { color: #D4AF37; }
.mc-steps .on { border-color: #D4AF37; background: #17130a; }

.mc-pane { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: .7rem .7rem 1rem; }
.mc-pane[hidden] { display: none; }
.mc-cats { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.7rem .6rem; padding: 0 .7rem; }
.mc-cats::-webkit-scrollbar { display: none; }
.mc-cats button { flex: none; border: 1px solid #2a2a2a; background: #151515; color: #c8c8c8; border-radius: 999px; padding: .42rem .85rem; font-size: .78rem; font-weight: 700; cursor: pointer; }
.mc-cats button.on { background: #D4AF37; border-color: #D4AF37; color: #000; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .45rem; }
.mc-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem .4rem .55rem; border-radius: 14px; border: 1px solid #232323;
  background: #121212; cursor: pointer; text-align: center; min-width: 0; transition: border-color .12s; touch-action: manipulation; }
.mc-o:active { background: #181818; }
.mc-o.on { border-color: #D4AF37; background: #17130a; box-shadow: inset 0 0 0 1px #D4AF37; }
.mc-o.on::after { content: ''; position: absolute; top: .35rem; right: .35rem; width: 18px; height: 18px; border-radius: 50%; background: #D4AF37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.mc-o-img { width: 100%; height: 76px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mc-o-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mc-o-img .ti { font-size: 1.8rem; color: #777; }
.mc-o-n { font-size: .76rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; overflow-wrap: anywhere; }
.mc-o-p { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 750; color: #D4AF37; white-space: nowrap; max-width: 100%; }
.mc-o-p b { color: #F0C84A; }
.mc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.mc-o-low { position: absolute; top: .35rem; left: .35rem; font-size: .56rem; font-weight: 850; color: #000; background: #ff9f0a; border-radius: 999px; padding: .06rem .35rem; text-transform: uppercase; }
.mc-empty { color: #8a8a8a; font-size: .85rem; padding: .8rem 0; }
.mc-up { display: flex; align-items: center; gap: .55rem; padding: .6rem .7rem; margin-bottom: .6rem; border-radius: 12px; border: 1px dashed rgba(63,210,58,.55);
  background: rgba(63,210,58,.08); color: #e9ffe8; font-size: .8rem; line-height: 1.35; }
.mc-up[hidden] { display: none; }
.mc-up .ti { color: #3fd23a; font-size: 1.05rem; flex: none; }
.mc-up span { flex: 1; } .mc-up b { color: #3fd23a; }
[data-up2] { cursor: pointer; }

/* extras */
.mc-xl { display: flex; flex-direction: column; gap: .4rem; }
.mc-x1 { display: flex; align-items: center; gap: .65rem; padding: .45rem .55rem; border-radius: 13px; border: 1px solid #232323; background: #121212; }
.mc-x1 img { width: 40px; height: 40px; border-radius: 9px; object-fit: contain; background: #000; flex: none; }
.mc-x1 > span { flex: 1; min-width: 0; font-size: .82rem; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.mc-x1 > span small { display: block; color: #8a8a8a; font-size: .7rem; font-weight: 600; margin-top: .1rem; }

/* rodapé: preço · quantidade · adicionar */
.mc-f { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid #222; background: #0b0b0b; flex: none; }
.mc-pr { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; flex: none; max-width: 40%; }
.mc-pr small { font-size: .68rem; color: #9a9a9a; white-space: nowrap; }
.mc-pr small s { color: #7d7d7d; }
.mc-pr small em { font-style: normal; color: #3fd23a; font-weight: 800; }
.mc-pr b { font-size: 1.35rem; font-weight: 900; color: #F0C84A; letter-spacing: -.02em; white-space: nowrap; }
.mc-q { display: flex; align-items: center; border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; flex: none; margin-left: auto; }
.mc-q button { width: 36px; height: 44px; border: 0; background: #151515; font-size: 1.1rem; cursor: pointer; touch-action: manipulation; }
.mc-q span { min-width: 26px; text-align: center; font-weight: 800; }
.mc-q.sm { margin-left: 0; }
.mc-q.sm button { width: 34px; height: 34px; font-size: 1rem; }
.mc-q.sm button:disabled { opacity: .35; cursor: default; }
.mc-q.sm span { min-width: 24px; font-size: .9rem; }
.mc-add { flex: 1 1 0; min-width: 0; min-height: 46px; border: 0; border-radius: 13px; background: linear-gradient(135deg, #f0cf5c, #D4AF37); color: #1a1405 !important; font-weight: 850 !important;
  font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 .6rem; white-space: nowrap; touch-action: manipulation; }
.mc-f.wait .mc-q { display: none; }
.mc-add { overflow: hidden; text-overflow: ellipsis; }
.mc-add:disabled { background: #1f1f1f; color: #8a8a8a !important; cursor: not-allowed; font-weight: 700 !important; }

/* ── computador: sombra nas garrafas (no celular custaria caro) ───────────── */
@media (min-width: 761px) and (hover: hover) {
  .mc-slot > img { filter: drop-shadow(0 14px 16px rgba(0,0,0,.5)); }
  .mc-o:hover { border-color: rgba(212,175,55,.5); }
}

/* ── celular: tela cheia, vitrine em cima, passo embaixo ──────────────────── */
@media (max-width: 760px) {
  .mc-ov { padding: 0; align-items: stretch; }
  .mc { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .mc-h { padding-top: calc(.55rem + env(safe-area-inset-top)); }
  .mc-body { display: flex; flex-direction: column; }
  .mc-show { flex: none; border-right: 0; border-bottom: 1px solid #1c1c1c; }
  .mc-stage { flex: none; height: clamp(170px, 30vh, 250px); min-height: 0; }
  .mc-recap { display: none; }
  .mc-panel { flex: 1; }
  .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .mc-o-img { height: 64px; }
  .mc-o-p { font-size: .7rem; gap: .25rem; }
}
@media (max-width: 360px) {
  .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-steps span { font-size: .74rem; }
  .mc-pr b { font-size: 1.15rem; }
  .mc-q button { width: 32px; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .mc-stage { height: clamp(140px, 26vh, 190px); }
}
@media (prefers-reduced-motion: reduce) { .mc-cup > img { transition: none; } .mc-slot > img.in, .mc-ov { animation: none; } }
