/* MM2VERSE · loja
   Paleta: gelo (fundo), tinta índigo (texto), azul da marca, sinal amarelo (últimas unidades), alerta (esgotado). */
:root {
  --ice: #eef0ff;
  --paper: #ffffff;
  --ink: #0a0c3d;
  --ink-soft: #4a4d7a;
  --brand: #0100f1;
  --brand-deep: #00009e;
  --signal: #ffc93c;
  --alert: #e8344e;
  --ok: #12a46b;
  --line: #d6daf5;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.hero { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ice);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Cabeçalho */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font: 800 20px/1 var(--display); text-decoration: none; color: var(--brand); letter-spacing: -0.02em; }
.wordmark-small { font-size: 16px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--body); border: 2px solid var(--brand);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-quiet { background: transparent; color: var(--brand); }
.btn-quiet:hover { background: var(--paper); border-color: var(--brand); }
.btn[aria-disabled='true'] { opacity: .45; pointer-events: none; }

/* Hero: texto à esquerda, planeta com itens em órbita à direita */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 6vw, 72px) var(--pad) clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 800; color: var(--ink); max-width: 13ch; }
.lead { margin-top: 22px; max-width: 52ch; color: var(--ink-soft); font-size: clamp(17px, 2vw, 19px); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.status[data-state='open'] .dot { background: var(--ok); box-shadow: 0 0 0 5px rgba(18, 164, 107, .16); }
.status[data-state='open'] { color: var(--ink); }
.status[data-state='closed'] .dot { background: var(--alert); }

.proof { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.proof:empty { display: none; }
.proof li { display: grid; gap: 2px; }
.proof strong { font: 700 26px/1 var(--display); color: var(--brand); }
.proof span { font-size: 14px; color: var(--ink-soft); }

/* Planeta */
.planet-wrap { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.planet {
  position: absolute; inset: 21%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #6d6cff 0 9%, transparent 30%),
    var(--brand);
  box-shadow: inset -24px -30px 60px rgba(0, 0, 60, .55);
}
.planet-shine { position: absolute; left: 22%; top: 18%; width: 22%; height: 12%; border-radius: 50%; background: rgba(255, 255, 255, .35); filter: blur(6px); transform: rotate(-24deg); }
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed rgba(1, 0, 241, .22);
  animation: spin 60s linear infinite;
}
.orbit-item {
  position: absolute; left: 50%; top: 50%;
  transform: rotate(var(--a)) translateY(calc(-1 * min(46vw, 230px))) rotate(calc(-1 * var(--a)));
}
.orbit-item span {
  display: inline-block; transform: translate(-50%, -50%);
  background: var(--paper); color: var(--ink); border: 2px solid var(--brand);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font: 600 13px/1 var(--body);
  animation: counter 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Seções */
section { scroll-margin-top: 16px; }
.shop, .steps, .reviews, .faq {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 8vw, 88px) var(--pad);
}
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); font-size: 15px; }

/* Passos (é uma sequência de verdade, por isso numerada) */
.steps h2 { margin-bottom: 32px; }
.step-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--brand); color: #fff; font: 700 18px/1 var(--display);
}
.step-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-list p { color: var(--ink-soft); font-size: 16px; }

/* Garantia: o único bloco em azul cheio */
.promise { background: var(--brand); color: #fff; padding: clamp(56px, 9vw, 104px) var(--pad); }
.promise-inner { max-width: calc(var(--wrap) - 2 * var(--pad)); margin: 0 auto; }
.promise h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; max-width: 18ch; }
.promise-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promise-grid p { color: #d9dcff; font-size: 16px; }
.promise-grid strong { display: block; color: #fff; font-size: 17px; margin-bottom: 6px; }

/* Avaliações */
.review-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { margin: 0; padding: 24px; background: var(--paper); border-radius: 18px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.review-stars { color: var(--brand); font-size: 17px; letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 17px; }
.review figcaption { font-size: 14px; color: var(--ink-soft); }

/* Perguntas */
.faq h2 { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 22px/1 var(--display); color: var(--brand); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }

/* Rodapé */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) 56px; border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.disclaimer { margin-top: 20px; font-size: 13px; color: var(--ink-soft); max-width: 70ch; }

/* Celular */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .planet-wrap { order: -1; width: min(62vw, 300px); margin: 8px 0 4px; }
  .orbit-item { transform: rotate(var(--a)) translateY(calc(-1 * min(31vw, 150px))) rotate(calc(-1 * var(--a))); }
  .step-list { grid-template-columns: 1fr 1fr; }
  .promise-grid, .review-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .step-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit, .orbit-item span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Loja ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.promo-bar { margin: 0; padding: 9px var(--pad); background: var(--ink); color: #dfe2ff; font-size: 13.5px; font-weight: 500; text-align: center; }
.promo-bar span { color: #6f74b8; margin: 0 6px; }
.top-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-weight: 600; font-size: 15px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover, .link-btn:hover { color: var(--brand); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; border-radius: 999px;
  background: var(--brand); color: #fff; border: 0; font: 600 15px/1 var(--body); cursor: pointer;
}
.cart-btn:hover { background: var(--brand-deep); }
.cart-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--brand); display: grid; place-items: center; font: 700 14px/1 var(--display); }
.cart-count[data-empty='true'] { background: rgba(255,255,255,.18); color: #fff; }

.search input {
  min-height: 44px; width: min(280px, 70vw); padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font: 500 15px var(--body); color: var(--ink);
}
.search input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(1,0,241,.15); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.tab { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.tab[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-empty { grid-column: 1 / -1; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; color: var(--ink-soft); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.card-art { aspect-ratio: 1; background: radial-gradient(circle at 50% 60%, #ffffff 0 30%, #e3e6ff 70%); display: grid; place-items: center; }
.card-art img { width: 82%; height: 82%; object-fit: contain; }
.art-placeholder { display: grid; place-items: center; width: 56%; aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; font: 800 clamp(22px, 3vw, 34px)/1 var(--display); box-shadow: inset -10px -12px 24px rgba(0,0,60,.45); }
.art-placeholder[data-cat='armas'] { background: var(--ink); }
.art-placeholder[data-cat='pacotes'] { background: #5b3df5; }
.art-placeholder[data-cat='pets'] { background: var(--ok); }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--signal); color: var(--ink); font: 700 13px/1 var(--display); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card h3 { font: 600 17px/1.25 var(--body); letter-spacing: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-soft); }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag-last { background: #fff3cf; color: #7a5600; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price strong { font: 700 20px/1 var(--display); }
.price s { color: var(--ink-soft); font-size: 14px; }
.add { margin-top: 10px; width: 100%; }
.add.is-added { background: var(--ok); border-color: var(--ok); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card.is-soldout .card-art { filter: grayscale(1); opacity: .6; }

/* Gaveta (carrinho, meus pedidos) */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); max-width: 100%;
  border: 0; padding: 0; background: var(--ice); color: var(--ink); display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide .22s ease-out; }
.drawer::backdrop { background: rgba(10, 12, 61, .45); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { padding: 20px 22px 28px; overflow-y: auto; flex: 1; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.cart-lines, .order-links { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.line-art { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #e3e6ff; display: grid; place-items: center; }
.line-art img { width: 90%; height: 90%; object-fit: contain; }
.line-art .art-placeholder { width: 70%; font-size: 15px; }
.cart-line strong { display: block; font-size: 15px; }
.cart-line > div:not(.line-art) > span { font-size: 14px; color: var(--ink-soft); }
.cart-empty { padding: 18px; background: var(--paper); border-radius: 16px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--ice); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font: 600 18px/1 var(--body); color: var(--brand); cursor: pointer; border-radius: 50%; }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 2px; margin-bottom: 14px; border-top: 1px solid var(--line); }
.cart-total strong { font: 700 22px/1 var(--display); }
.btn-block { width: 100%; }
.order-links a { display: grid; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.order-links a:hover { border-color: var(--brand); }
.order-links span, .muted { color: var(--ink-soft); font-size: 14px; }

/* Formulários */
.checkout { display: grid; gap: 16px; }
.back { justify-self: start; color: var(--brand); font-weight: 600; font-size: 15px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font: 500 16px var(--body); color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(1,0,241,.15); }
.field small { color: var(--ink-soft); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.form-msg { min-height: 1em; font-size: 14px; font-weight: 600; color: var(--ok); }
.form-msg.is-error, .form-msg:is(.is-error) { color: var(--alert); }
.checkout .form-msg { color: var(--alert); }
.form-msg:empty { display: none; }

/* Newsletter */
.newsletter {
  max-width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  width: calc(100% - 2 * var(--pad));
}
.newsletter h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.newsletter p { color: var(--ink-soft); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.news-form input { flex: 1 1 220px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font: 500 16px var(--body); background: var(--ice); color: var(--ink); }
.news-form .form-msg { flex-basis: 100%; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14.5px; font-weight: 600; }
.foot-links a { text-decoration: none; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none;
  font: 600 15px/1 var(--body); box-shadow: 0 8px 24px rgba(10, 12, 61, .25);
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: #178a45; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .top-nav { display: none; }
  .newsletter { grid-template-columns: 1fr; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 15px; }
  .price strong { font-size: 17px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0 14px; }
}
@media (max-width: 520px) { .promo-bar { font-size: 12.5px; } .search input { width: 100%; } .section-head .search { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

/* Páginas de texto (termos, privacidade, e-mail) */
.doc { max-width: 760px; margin: 0 auto; padding: 8px var(--pad) 56px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: clamp(19px, 2.4vw, 23px); margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); max-width: 66ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc .btn { margin-top: 22px; }
.doc-meta { font-size: 14.5px; }

/* Peças comuns (pedido e painel) */
.btn-wa { background: #1fa855; border-color: #1fa855; }
.btn-wa:hover { background: #178a45; border-color: #178a45; }
.btn-danger { background: var(--paper); color: var(--alert); border-color: var(--alert); }
.btn-danger:hover { background: #fde6ea; border-color: var(--alert); }
.notice { padding: 12px 14px; border-radius: 12px; background: #fff3cf; color: #5c4100; font-size: 14.5px; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items li.total { border-bottom: 0; font-weight: 700; }
.items li:last-child { border-bottom: 0; }
