/* ============================================================
   VWallCraft — Estilo 100% Minecraft
   Fontes: "Press Start 2P" (títulos) + "VT323" (texto)
   ============================================================ */

:root {
  --mc-green: #4caf50;
  --mc-green-dark: #357a38;
  --mc-green-light: #6fcf73;
  --mc-gold: #ffc107;
  --mc-gold-dark: #c98a00;
  --mc-red: #e53935;
  --mc-red-dark: #a52521;
  --mc-dark-bg: #2b2b2b;
  --mc-stone-bg: #3d3d3d;
  --mc-stone-light: #575757;
  --mc-panel: #c6c6c6;
  --mc-panel-dark: #8b8b8b;
  --mc-text-light: #f5f5f5;
  --mc-text-dark: #222;
  --border-dark: #1a1a1a;
  --font-title: 'Press Start 2P', cursive;
  --font-body: 'VT323', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  background-color: var(--mc-dark-bg);
  background-image: url('../images/textures/stone.jpg');
  background-size: 128px 128px;
  background-repeat: repeat;
  background-blend-mode: multiply;
  color: var(--mc-text-light);
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  line-height: 1.6;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--mc-dark-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--mc-green-dark);
  border: 2px solid var(--border-dark);
}

/* ============================================================
   Botão estilo Minecraft (efeito 3D / bisel de inventário)
   ============================================================ */
.mc-btn {
  font-family: var(--font-title);
  font-size: 13px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  padding: 14px 22px;
  border: 4px solid;
  border-color: #6fcf73 #1f5c22 #1f5c22 #6fcf73;
  background: var(--mc-green);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.25), inset -2px -2px 0 rgba(0,0,0,0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.05s ease, filter 0.15s ease;
  border-radius: 2px;
  user-select: none;
}
.mc-btn:hover {
  filter: brightness(1.12);
}
.mc-btn:active {
  transform: translateY(2px);
  border-color: #1f5c22 #6fcf73 #6fcf73 #1f5c22;
}
.mc-btn.secondary {
  background: var(--mc-panel-dark);
  border-color: #cfcfcf #4a4a4a #4a4a4a #cfcfcf;
  color: #222;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}
.mc-btn.gold {
  background: var(--mc-gold);
  border-color: #ffe28a #a56b00 #a56b00 #ffe28a;
  color: #3a2600;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.35);
}
.mc-btn.danger {
  background: var(--mc-red);
  border-color: #ff8a86 #7a1e1b #7a1e1b #ff8a86;
}
.mc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.mc-btn.small {
  font-size: 10px;
  padding: 8px 12px;
}
.mc-btn.block {
  width: 100%;
  justify-content: center;
}

/* Painel estilo inventário Minecraft */
.mc-panel {
  background: var(--mc-panel);
  border: 4px solid;
  border-color: #fff #555 #555 #fff;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.5), inset -2px -2px 0 rgba(0,0,0,0.4), 4px 4px 0 rgba(0,0,0,0.4);
  color: var(--mc-text-dark);
  border-radius: 2px;
}

.mc-slot {
  background: var(--mc-stone-light);
  border: 3px solid;
  border-color: #1a1a1a #7a7a7a #7a7a7a #1a1a1a;
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.6);
  border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(180deg, #2f2f2f, #232323);
  border-bottom: 4px solid var(--border-dark);
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--mc-green-light);
  white-space: nowrap;
}
.logo .block-icon {
  width: 34px;
  height: 34px;
  background-image: url('../images/textures/grass.jpg');
  background-size: cover;
  border: 2px solid #000;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: stretch;
  flex-wrap: nowrap;
}
.main-nav a {
  font-family: var(--font-title);
  font-size: 11px;
  padding: 10px 10px;
  color: #ddd;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: all 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 1;
}
.main-nav a:hover {
  color: var(--mc-green-light);
  border-color: var(--mc-green-dark);
  background: rgba(76,175,80,0.12);
  transform: translateY(-1px);
}
.main-nav a:active {
  transform: translateY(1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ip-pill {
  font-family: var(--font-body);
  font-size: 17px;
  background: var(--mc-stone-bg);
  border: 2px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mc-gold);
  transition: transform 0.1s ease;
}
.ip-pill:hover {
  transform: scale(1.04);
  background: #4a4a4a;
}
.ip-pill i {
  color: var(--mc-green-light);
}

.cart-btn {
  position: relative;
  background: var(--mc-panel-dark);
  border: 3px solid;
  border-color: #cfcfcf #4a4a4a #4a4a4a #cfcfcf;
  color: #222;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}
.cart-btn:active {
  transform: translateY(1px);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--mc-red);
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(10,15,10,0.55), rgba(10,15,10,0.75)), url('../images/hero/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 6px solid var(--border-dark);
}
.hero-content {
  max-width: 800px;
  padding: 40px 20px;
}
.hero-content h1 {
  font-size: 30px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero-content p {
  font-size: 24px;
  color: #e6e6e6;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS GERAL
   ============================================================ */
section {
  padding: 70px 0;
}
.section-title {
  text-align: center;
  font-size: 24px;
  color: var(--mc-green-light);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  font-size: 22px;
  color: #cfcfcf;
  margin-bottom: 50px;
}

.section-wood {
  background-image: linear-gradient(rgba(30,20,10,0.75), rgba(30,20,10,0.75)), url('../images/textures/wood.jpg');
  background-size: 200px 200px;
  border-top: 6px solid var(--border-dark);
  border-bottom: 6px solid var(--border-dark);
}

.section-dark {
  background-image: linear-gradient(rgba(10,10,10,0.85), rgba(10,10,10,0.85)), url('../images/textures/darkstone.jpg');
  background-size: 160px 160px;
}

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  padding: 28px 18px;
  text-align: center;
}
.step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: var(--mc-green);
  border: 3px solid #1a1a1a;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: #fff;
}
.step-card i {
  font-size: 30px;
  color: var(--mc-gold);
  margin-bottom: 14px;
  display: block;
}
.step-card h3 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 19px;
  color: #d5d5d5;
}

/* ============================================================
   LOJA — FILTROS
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-title);
  font-size: 11px;
  padding: 12px 18px;
  background: var(--mc-stone-bg);
  border: 3px solid;
  border-color: #666 #1a1a1a #1a1a1a #666;
  color: #ddd;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn i {
  margin-right: 6px;
}
.filter-btn:hover {
  background: #4a4a4a;
}
.filter-btn.active {
  background: var(--mc-green);
  color: #fff;
  border-color: #6fcf73 #1f5c22 #1f5c22 #6fcf73;
}

/* ============================================================
   GRID DE PRODUTOS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: linear-gradient(180deg, #4a4a4a, #333);
  border: 4px solid;
  border-color: #6a6a6a #161616 #161616 #6a6a6a;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), 5px 5px 0 rgba(0,0,0,0.35);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}

.product-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--font-title);
  font-size: 9px;
  padding: 6px 10px;
  background: var(--mc-red);
  color: #fff;
  border: 2px solid #000;
  border-radius: 3px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  z-index: 2;
}
.product-badge.bestseller {
  background: var(--mc-gold);
  color: #3a2600;
}

.product-image-wrap {
  background: var(--mc-stone-light);
  border-bottom: 3px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-image-wrap img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.4));
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: var(--font-title);
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px;
}
.product-desc {
  font-size: 19px;
  color: #cfcfcf;
  margin-bottom: 14px;
}
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}
.product-benefits li {
  font-size: 18px;
  color: #e0e0e0;
  padding: 3px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.product-benefits li i {
  color: var(--mc-green-light);
  margin-top: 4px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}
.price-new {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--mc-gold);
}

/* ============================================================
   FAQ ACORDEÃO
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--mc-stone-bg);
  border: 3px solid;
  border-color: #666 #1a1a1a #1a1a1a #666;
  margin-bottom: 12px;
  border-radius: 2px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 21px;
  color: #fff;
  font-weight: bold;
}
.faq-question i {
  color: var(--mc-green-light);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-question i {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p {
  font-size: 19px;
  color: #cfcfcf;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1c1c1c;
  border-top: 6px solid var(--border-dark);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 13px;
  color: var(--mc-green-light);
  margin-bottom: 16px;
}
.footer-col p, .footer-col li {
  font-size: 19px;
  color: #b8b8b8;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a:hover {
  color: var(--mc-green-light);
}
.footer-ip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mc-gold);
  margin-top: 8px;
  cursor: pointer;
}
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--mc-stone-bg);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 18px;
  transition: background 0.15s ease;
}
.social-icons a:hover {
  background: var(--mc-green-dark);
}
.footer-bottom {
  border-top: 2px solid #333;
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 16px;
  color: #777;
  margin: 4px 0;
}

/* ============================================================
   CARRINHO — DRAWER LATERAL
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #2f2f2f;
  border-left: 5px solid var(--border-dark);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}
.cart-drawer.active {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 3px solid #1a1a1a;
  background: var(--mc-stone-bg);
}
.cart-header h3 {
  font-size: 15px;
  color: var(--mc-green-light);
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  color: #999;
  font-size: 22px;
  margin-top: 40px;
}
.cart-item {
  display: flex;
  gap: 12px;
  background: var(--mc-stone-bg);
  border: 2px solid #1a1a1a;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 3px;
  align-items: center;
}
.cart-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--mc-stone-light);
  border: 2px solid #000;
  padding: 4px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-info h4 {
  font-family: var(--font-title);
  font-size: 11px;
  color: #fff;
  margin: 0 0 6px;
}
.cart-item-price {
  color: var(--mc-gold);
  font-size: 19px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  background: var(--mc-panel-dark);
  border: 2px solid #000;
  color: #222;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.qty-value {
  font-size: 19px;
  min-width: 20px;
  text-align: center;
}
.remove-item-btn {
  background: none;
  border: none;
  color: var(--mc-red);
  cursor: pointer;
  font-size: 18px;
  align-self: flex-start;
}
.cart-footer {
  padding: 18px 20px;
  border-top: 3px solid #1a1a1a;
  background: var(--mc-stone-bg);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
}
.cart-total-row span:last-child {
  color: var(--mc-gold);
  font-family: var(--font-title);
  font-size: 16px;
}

/* ============================================================
   MODAL CHECKOUT
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #3d3d3d;
  border: 5px solid;
  border-color: #6a6a6a #161616 #161616 #6a6a6a;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.5);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 3px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 3px solid #1a1a1a;
  background: var(--mc-stone-bg);
}
.modal-header h3 {
  font-size: 14px;
  color: var(--mc-green-light);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.modal-body {
  padding: 24px;
}

.checkout-steps-indicator {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 0;
}
.step-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #000;
  background: #666;
  border-radius: 50%;
}
.step-dot.active {
  background: var(--mc-green);
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 19px;
  color: #ddd;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 20px;
  background: var(--mc-stone-light);
  border: 3px solid;
  border-color: #1a1a1a #7a7a7a #7a7a7a #1a1a1a;
  color: #fff;
  border-radius: 2px;
}
.form-group input:focus {
  outline: 2px solid var(--mc-green);
}
.form-error {
  color: var(--mc-red);
  font-size: 16px;
  margin-top: 4px;
  display: none;
}
.form-error.active {
  display: block;
}

.checkout-summary {
  background: var(--mc-stone-bg);
  border: 2px solid #1a1a1a;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 3px;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: #ccc;
  padding: 3px 0;
}
.checkout-summary-total {
  border-top: 2px solid #555;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 20px;
  color: var(--mc-gold);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

/* Pix payment screen */
.pix-qr-wrap {
  text-align: center;
  margin-bottom: 20px;
}
.pix-qr-wrap img {
  width: 220px;
  height: 220px;
  background: #fff;
  padding: 10px;
  border: 4px solid #fff;
  border-radius: 4px;
  image-rendering: auto;
}
.pix-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.pix-copy-input {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  background: var(--mc-stone-light);
  border: 2px solid #1a1a1a;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 2px;
  font-family: monospace;
}
.pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 21px;
  color: #eee;
  margin-bottom: 10px;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 4px solid #555;
  border-top-color: var(--mc-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pix-timer {
  text-align: center;
  font-size: 19px;
  color: #999;
  margin-bottom: 10px;
}
.pix-timer.warning {
  color: var(--mc-red);
}
.pix-test-mode-box {
  margin-top: 14px;
  padding: 12px;
  border: 2px dashed var(--mc-gold);
  border-radius: 4px;
  background: rgba(255, 193, 7, 0.08);
}
.pix-test-mode-box p {
  font-size: 18px;
  color: var(--mc-gold);
  margin: 0 0 10px;
  line-height: 1.4;
}

.success-screen {
  text-align: center;
  padding: 10px 0 20px;
}
.success-icon {
  font-size: 60px;
  color: var(--mc-green-light);
  margin-bottom: 20px;
}
.success-screen h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 14px;
}
.success-screen p {
  font-size: 21px;
  color: #ccc;
  margin-bottom: 8px;
}

/* Toasts */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--mc-stone-bg);
  border: 2px solid #000;
  border-left: 6px solid var(--mc-green);
  color: #fff;
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 19px;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  min-width: 260px;
  max-width: 340px;
  animation: toastIn 0.25s ease;
}
.toast.error {
  border-left-color: var(--mc-red);
}
@keyframes toastIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Utility */
.hidden { display: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) and (min-width: 901px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 10px 6px; font-size: 9.5px; }
  .header-inner { gap: 6px; padding: 12px 12px; }
  .header-actions { gap: 6px; }
  .ip-pill { padding: 7px 10px; font-size: 15px; }
  .ip-pill span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo .block-icon { width: 28px; height: 28px; }
  .logo { font-size: 13px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #232323;
    border-bottom: 4px solid var(--border-dark);
    padding: 10px;
    gap: 6px;
  }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 20px; }
  .hero-content p { font-size: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 19px; }
  .cart-drawer { width: 100%; right: -100%; }
  .logo span.logo-text { display: none; }
}

/* ============================================================
   CUPOM (carrinho) E MELHORIAS DE CHECKOUT — adicionado na reformulação
   ============================================================ */
.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.coupon-row input {
  flex: 1;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 18px;
  background: var(--mc-stone-light);
  border: 3px solid;
  border-color: #1a1a1a #7a7a7a #7a7a7a #1a1a1a;
  color: #fff;
  border-radius: 2px;
}
.coupon-feedback {
  font-size: 15px;
  min-height: 18px;
  margin-bottom: 10px;
}
.coupon-feedback.success { color: var(--mc-green-light, #7ee787); }
.coupon-feedback.error { color: var(--mc-red); }

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  color: #ccc;
  padding: 3px 0;
}
.summary-line.discount { color: var(--mc-green-light, #7ee787); }
.summary-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #555;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 20px;
  color: var(--mc-gold);
}

.pix-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 14px;
}
.pix-qr-wrap svg {
  width: 220px;
  height: 220px;
}

.pix-test-mode-box {
  background: rgba(255, 193, 7, 0.12);
  border: 2px dashed var(--mc-gold);
  padding: 12px;
  border-radius: 4px;
  margin-top: 14px;
  font-size: 15px;
  color: #ffd966;
}


/* Admin-only checkout diagnostics */
.admin-test-wrap{margin-top:16px;padding:14px;border:1px solid rgba(255,193,7,.28);background:rgba(255,193,7,.06);border-radius:10px}.admin-test-badge{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffd66b;margin-bottom:8px}.admin-test-wrap small{display:block;margin-top:8px;color:#aaa;line-height:1.4}.admin-test-success{color:#71e58b!important}.admin-test-error{color:#ff7777!important}.mc-btn.is-loading{opacity:.7;pointer-events:none}


/* Ranking / conta */
.leaderboard-section{padding:90px 0}.leaderboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:980px;margin:30px auto 0}.leaderboard-card{background:#2f2f2f;border:4px solid;border-color:#5e5e5e #171717 #171717 #5e5e5e;box-shadow:5px 5px 0 rgba(0,0,0,.35);padding:18px;display:flex;align-items:center;gap:15px}.leaderboard-card.top{background:#3b351d;border-color:#d6ae43 #5b430c #5b430c #d6ae43}.leaderboard-rank{font-family:'Press Start 2P',cursive;font-size:14px;color:#ffd34d;min-width:36px}.leaderboard-avatar{width:58px;height:58px;object-fit:cover;image-rendering:pixelated;border:3px solid #111;background:#555}.leaderboard-name{font-family:'Press Start 2P',cursive;font-size:10px;color:#fff}.leaderboard-money{font-family:'VT323',monospace;font-size:23px;color:#67e56d;margin-top:4px}.leaderboard-loading{font-family:'VT323',monospace;font-size:22px;color:#bbb;text-align:center;grid-column:1/-1}.account-page{min-height:100vh;background:url('/images/textures/stone.jpg') repeat;background-size:128px;color:#fff}.account-shell{max-width:1100px;margin:0 auto;padding:40px 18px}.account-card{background:#c6c6c6;color:#222;border:4px solid;border-color:#fff #555 #555 #fff;box-shadow:7px 7px rgba(0,0,0,.35);padding:22px}.account-grid{display:grid;grid-template-columns:320px 1fr;gap:22px}.account-avatar{width:120px;height:120px;object-fit:cover;image-rendering:pixelated;border:4px solid #222;background:#555}.account-title{font-family:'Press Start 2P',cursive;text-shadow:3px 3px #111;color:#fff}.account-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.account-tab{font-family:'Press Start 2P',cursive;font-size:9px;padding:11px 14px;background:#555;color:#fff;border:3px solid;border-color:#777 #222 #222 #777}.account-tab.active{background:#4caf50;border-color:#7de581 #245c27 #245c27 #7de581}.account-table{width:100%;border-collapse:collapse;background:#333;color:#fff}.account-table th,.account-table td{padding:10px;border-bottom:2px solid #555;text-align:left}.account-table th{font-family:'Press Start 2P',cursive;font-size:8px;color:#ffe27a}.account-message{padding:10px;background:#333;border:3px solid #111;color:#fff;margin-top:12px}.account-message.error{border-color:#7a2522;color:#ff8a86}.account-message.success{border-color:#28652b;color:#8af08d}@media(max-width:800px){.leaderboard-grid{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}}

/* ============================================================
   Minha Conta — interface Minecraft limpa e organizada
   ============================================================ */
.account-heading{max-width:1100px;margin:0 auto 24px}.account-kicker{font-family:'VT323',monospace;color:#ffe27a;font-size:22px;text-shadow:2px 2px #111}.account-heading p{font-family:'VT323',monospace;font-size:23px;color:#ddd;margin:5px 0 0}.account-auth-layout{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:1fr 1.15fr;gap:22px;align-items:stretch}.account-intro{display:flex;flex-direction:column;justify-content:center}.account-intro h2,.account-auth-card h2{font-family:'Press Start 2P',cursive;font-size:14px;margin:8px 0 14px}.account-intro p{font-size:23px;line-height:1.25}.account-intro ul{padding:0;list-style:none;font-size:22px;line-height:1.7;margin:15px 0 0}.account-hero-icon{width:76px;height:76px;image-rendering:pixelated}.account-auth-card{max-width:none}.account-tabs-large{margin-bottom:22px}.account-form-title{font-family:'Press Start 2P',cursive;font-size:11px;color:#222;margin-bottom:4px}.account-help{font-family:'VT323',monospace;font-size:18px;color:#555;margin-top:-5px}.account-profile-head{max-width:1100px;margin:0 auto 20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.account-profile-main{display:flex;align-items:center;gap:18px}.account-avatar{width:86px;height:86px;object-fit:cover;image-rendering:pixelated;border:4px solid #222;background:#555;box-shadow:3px 3px #555}.account-avatar-large{width:128px;height:128px}.account-profile-main h2{font-family:'Press Start 2P',cursive;font-size:15px;margin:4px 0}.account-label{font-family:'Press Start 2P',cursive;font-size:8px;color:#555}.account-email{font-size:20px;color:#333}.account-bio{font-size:21px;margin:7px 0 0;color:#333}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-dashboard-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:220px 1fr;gap:20px}.account-menu{height:max-content;padding:12px}.account-menu-title{font-family:'Press Start 2P',cursive;font-size:10px;color:#333;padding:8px 9px 13px}.account-menu-btn{width:100%;text-align:left;font-family:'Press Start 2P',cursive;font-size:8px;padding:13px 10px;margin:3px 0;background:#777;color:#fff;border:3px solid;border-color:#aaa #3b3b3b #3b3b3b #aaa;cursor:pointer;text-shadow:2px 2px #222}.account-menu-btn.active{background:#4caf50;border-color:#7de581 #245c27 #245c27 #7de581}.account-section{min-height:350px}.section-heading{border-bottom:3px solid #8b8b8b;padding-bottom:12px;margin-bottom:18px}.section-heading h2{font-family:'Press Start 2P',cursive;font-size:14px;color:#222;margin:6px 0 0}.profile-editor-grid{display:grid;grid-template-columns:220px 1fr;gap:22px}.profile-preview-card{background:#8b8b8b;border:3px solid;border-color:#555 #ddd #ddd #555;padding:16px;text-align:center}.profile-preview-card .account-avatar{margin:8px auto 10px}.profile-preview-name{font-family:'Press Start 2P',cursive;font-size:9px;color:#fff;text-shadow:2px 2px #222;word-break:break-all}.skin-label{margin-top:20px;color:#222}.skin-preview{width:150px;height:150px;object-fit:cover;object-position:center;image-rendering:pixelated;display:block;margin:7px auto;background:#666;border:3px solid #333;border-radius:4px}.profile-form-card{padding:2px}.security-note{background:#8b8b8b;border:3px solid;border-color:#555 #ddd #ddd #555;padding:12px;font-size:20px;color:#222;margin-bottom:16px}.security-form{max-width:560px}.account-message{font-family:'VT323',monospace;font-size:20px}.account-table{font-family:'VT323',monospace}.account-table th{font-family:'Press Start 2P',cursive}.account-content{min-width:0}
@media(max-width:820px){.account-auth-layout,.profile-editor-grid{grid-template-columns:1fr}.account-dashboard-grid{grid-template-columns:1fr}.account-profile-head{align-items:flex-start;flex-direction:column}.account-menu{display:flex;gap:5px;flex-wrap:wrap}.account-menu-title{width:100%}.account-menu-btn{width:auto;flex:1;min-width:130px}.profile-preview-card{max-width:360px;margin:auto;width:100%}}
@media(max-width:560px){.account-shell{padding:25px 12px}.account-title{font-size:18px}.account-profile-main{align-items:flex-start}.account-avatar{width:72px;height:72px}.account-menu-btn{font-size:7px}.account-actions{width:100%}.account-actions .mc-btn{flex:1;justify-content:center}.account-heading p{font-size:20px}}

/* Conta VWallCraft — layout Minecraft limpo */
.account-page{overflow-x:hidden;background:#111814 url('/images/textures/stone.jpg') repeat!important;background-size:128px!important;background-blend-mode:multiply;color:#eef6ef!important}
.account-shell{width:100%;max-width:1180px;margin:0 auto;padding:42px 24px 70px}
.account-heading{width:100%;max-width:1120px;margin:0 auto 28px}.account-kicker{color:#9de6a5!important;font-size:18px!important}.account-title{font-size:clamp(20px,3vw,34px)!important;color:#fff!important;text-shadow:4px 4px #0a120e!important;margin:8px 0}.account-heading p{color:#cbd8cf!important;font-size:22px!important}
.account-auth-layout{width:100%;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(260px,.85fr) minmax(360px,1.15fr);gap:24px;align-items:stretch}
.account-card{background:linear-gradient(180deg,#22352a,#17241d)!important;color:#eef6ef!important;border:4px solid!important;border-color:#5b8365 #09110c #09110c #5b8365!important;box-shadow:7px 7px #09100b!important;border-radius:3px!important}
.account-intro{padding:28px!important;justify-content:center}.account-intro h2,.account-auth-card h2{color:#fff!important;text-shadow:3px 3px #09110c!important}.account-intro p,.account-intro li{color:#d4e1d8!important}.account-intro ul{line-height:1.55}.account-hero-icon{background:#102016;border:3px solid #52775b;padding:8px}
.account-auth-card{padding:24px!important}.account-tabs{gap:8px}.account-tab{background:#31483a!important;border-color:#63816b #101a14 #101a14 #63816b!important;color:#fff!important}.account-tab.active{background:#3fa84a!important;border-color:#7ee487 #245b29 #245b29 #7ee487!important}.account-form{display:grid;gap:12px}.account-form label{display:grid;gap:6px;color:#dbe8df!important;font-family:'VT323',monospace;font-size:21px}.account-form input,.account-form textarea{width:100%;background:#0f1712!important;color:#fff!important;border:3px solid!important;border-color:#070c09 #56715d #56715d #070c09!important;border-radius:2px!important;padding:10px 12px!important;min-height:44px;box-shadow:inset 2px 2px 5px rgba(0,0,0,.45)}.account-form input:focus,.account-form textarea:focus{outline:none;border-color:#6ed67a #1c4823 #1c4823 #6ed67a!important}.account-help{color:#aebdb2!important}.mc-btn.gold{background:#3fa84a!important;border-color:#7ee487 #245b29 #245b29 #7ee487!important;color:#fff!important}.mc-btn{border-radius:2px!important}
.account-profile-head{max-width:1120px;margin:0 auto 22px!important;background:linear-gradient(180deg,#22352a,#17241d)!important}.account-dashboard-grid{max-width:1120px;margin:0 auto;grid-template-columns:230px minmax(0,1fr);gap:22px}.account-menu{padding:12px!important}.account-menu-title,.account-label{color:#9de6a5!important}.account-menu-btn{background:#2d4335!important;border-color:#5f7e66 #101812 #101812 #5f7e66!important;color:#fff!important}.account-menu-btn.active{background:#3fa84a!important}.account-section{background:linear-gradient(180deg,#22352a,#17241d)!important}.profile-preview-card{background:#17241d!important;border-color:#5a7961 #0b130e #0b130e #5a7961!important}.profile-preview-name{color:#fff!important}.security-note,.account-message{background:#142019!important;color:#dce9df!important;border-color:#42604a!important}.account-table{background:#0f1712!important}.account-table th{background:#0b120e!important}.account-table td{background:#16231b!important;color:#e5efe8!important}
@media(max-width:850px){.account-shell{padding:28px 14px 55px}.account-auth-layout,.account-dashboard-grid{grid-template-columns:1fr}.account-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.account-menu-title{grid-column:1/-1}.account-menu-btn{width:100%;margin:0}.profile-editor-grid{grid-template-columns:1fr}.profile-preview-card{max-width:420px;width:100%;margin:0 auto}}
@media(max-width:560px){.account-auth-layout{grid-template-columns:1fr}.account-shell{padding:24px 10px 45px}.account-auth-card,.account-intro{padding:18px!important}.account-title{font-size:20px!important}.account-menu{grid-template-columns:1fr}.account-menu-title{grid-column:auto}}

/* ============================================================
   EFEITOS VISUAIS, SONS E ANIMAÇÕES — "dar vida" ao site
   ============================================================ */

/* --- Botão de som no header --- */
.sound-toggle-btn {
  background: var(--mc-stone-bg);
  border: 3px solid;
  border-color: #666 #1a1a1a #1a1a1a #666;
  color: #ddd;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.sound-toggle-btn:hover { filter: brightness(1.2); }
.sound-toggle-btn:active { transform: translateY(1px); }
.sound-toggle-btn.is-on { color: var(--mc-gold); border-color: #ffe28a #a56b00 #a56b00 #ffe28a; }

/* --- Hero: cena viva em CSS puro (sem depender de foto externa) --- */
.hero { overflow: hidden; }
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  --parallax-x: 0;
  --parallax-y: 0;
}
.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #14213d 0%, #2d4a6b 30%, #ee9b56 62%, #7c3f2b 100%);
}
.hero-sun {
  position: absolute;
  top: 14%;
  left: 50%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dd 0%, #ffe27a 45%, rgba(255,226,122,0) 72%);
  box-shadow: 0 0 70px 25px rgba(255, 226, 122, 0.35);
  transform: translate(calc(-50% + var(--parallax-x, 0) * -14px), calc(var(--parallax-y, 0) * -8px));
  animation: sunPulse 5s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.hero-clouds { position: absolute; inset: 0; }
.hero-cloud {
  position: absolute;
  background: rgba(255,255,255,0.65);
  border-radius: 3px;
  box-shadow: 20px 0 0 rgba(255,255,255,0.65), 40px 4px 0 rgba(255,255,255,0.5), -18px 6px 0 rgba(255,255,255,0.5);
}
.hero-cloud.c1 { width: 60px; height: 16px; top: 18%; left: -10%; animation: driftCloud 38s linear infinite; }
.hero-cloud.c2 { width: 44px; height: 12px; top: 30%; left: -20%; animation: driftCloud 52s linear infinite; animation-delay: -12s; opacity: 0.8; }
.hero-cloud.c3 { width: 70px; height: 18px; top: 10%; left: -30%; animation: driftCloud 65s linear infinite; animation-delay: -30s; opacity: 0.6; }
@keyframes driftCloud {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: #1c2b22;
  clip-path: polygon(0% 100%, 0% 55%, 8% 40%, 16% 58%, 24% 30%, 33% 52%, 42% 20%, 52% 48%, 61% 35%, 70% 55%, 80% 25%, 90% 50%, 100% 38%, 100% 100%);
  transform: translateX(calc(var(--parallax-x, 0) * -6px));
}
.hero-mountains::before {
  content: '';
  position: absolute;
  inset: 0;
  top: -14px;
  background: #24382c;
  clip-path: polygon(0% 100%, 0% 70%, 10% 55%, 20% 72%, 30% 48%, 40% 68%, 50% 40%, 60% 65%, 72% 50%, 84% 68%, 100% 55%, 100% 100%);
  opacity: 0.85;
}
.hero-blocks-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: repeating-linear-gradient(90deg, #3d5a3a 0 32px, #365233 32px 64px);
  border-top: 4px solid #1a1a1a;
  box-shadow: 0 -3px 0 rgba(255,255,255,0.06) inset;
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particle {
  position: absolute;
  bottom: -10px;
  border-radius: 2px;
  opacity: 0;
  animation-name: floatParticle;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  box-shadow: 0 0 6px currentColor;
}
@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translateY(-52vh) translateX(12px); }
  92% { opacity: 0.7; }
  100% { transform: translateY(-100vh) translateX(-8px); opacity: 0; }
}
.hero-scroll-cue {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  animation: bobCue 1.8s ease-in-out infinite;
  z-index: 2;
}
@keyframes bobCue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}
.hero-content { position: relative; z-index: 2; }

/* --- Scroll reveal genérico --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Produtos: brilho e leve inclinação no hover --- */
.product-card { will-change: transform; }
.product-card:hover {
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), 5px 5px 0 rgba(0,0,0,0.35), 0 0 0 3px var(--mc-gold);
}
.product-image-wrap img, .cart-item img {
  transition: transform 0.25s ease;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.08) rotate(-1deg);
}

/* --- Botão carrinho: contador "pop" e bounce ao adicionar item --- */
.cart-count {
  animation: none;
}
.cart-count:not(.hidden) {
  animation: popIn 0.25s ease;
}
@keyframes popIn {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.cart-bounce {
  animation: cartBounce 0.5s ease;
}
@keyframes cartBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-6px) scale(1.15); }
  55% { transform: translateY(2px) scale(0.96); }
  75% { transform: translateY(-2px) scale(1.04); }
}

/* --- Animação "voar pro carrinho" --- */
.fly-to-cart-ghost {
  position: fixed;
  z-index: 2000;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-gold);
  font-size: 18px;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}
.fly-to-cart-ghost.go {
  transition: transform 0.55s cubic-bezier(.3,.6,.3,1), opacity 0.55s ease;
  transform: translate(var(--dx), var(--dy)) scale(0.4);
  opacity: 0.15;
}

/* --- Badge de "logado" no checkout --- */
.logged-in-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,175,80,0.15);
  border: 2px solid var(--mc-green-dark);
  color: var(--mc-green-light);
  font-size: 18px;
  padding: 10px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.logged-in-badge i { color: var(--mc-green-light); }

/* --- Confete na tela de sucesso --- */
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.confetti-bit {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 8px;
  animation-name: confettiFall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--drift), 340px) rotate(340deg); opacity: 0; }
}
.success-screen { position: relative; }

/* --- Botões e cards: micro-interações extra --- */
.filter-btn, .qty-btn, .faq-question {
  transition: transform 0.08s ease, background 0.15s ease;
}
.filter-btn:active, .qty-btn:active { transform: translateY(1px); }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-cloud, .hero-particle, .hero-sun, .hero-scroll-cue, .reveal, .cart-bounce, .confetti-bit {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   NOVOS EFEITOS (fase de expansão de sons/animações)
   ============================================================ */

/* --- Ripple: onda expandindo do ponto de clique --- */
.mc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  pointer-events: none;
  animation: mcRippleAnim 0.55s ease-out forwards;
  z-index: 1;
}
@keyframes mcRippleAnim {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0; }
}

/* --- Shake: feedback de erro em campos/elementos --- */
.mc-shake {
  animation: mcShakeAnim 0.4s ease;
}
@keyframes mcShakeAnim {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

/* --- Pulse: destaque temporário (cupom aplicado, preço atualizado) --- */
.mc-pulse {
  animation: mcPulseAnim 0.5s ease;
}
@keyframes mcPulseAnim {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* --- Glow: brilho temporário em torno de um elemento --- */
.mc-glow {
  box-shadow: 0 0 0 3px var(--mc-gold), 0 0 18px 4px rgba(255,193,7,0.55) !important;
  transition: box-shadow 0.25s ease;
}

/* --- Barra de progresso de rolagem no topo --- */
.mc-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-gold));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* --- Cursor sparkle no hero --- */
.mc-cursor-spark {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffe97a;
  box-shadow: 0 0 6px 2px rgba(255,233,122,0.7);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  animation: mcSparkFade 0.7s ease-out forwards;
}
@keyframes mcSparkFade {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) translateY(-14px); }
}

/* --- Coupon feedback com leve "pop" ao mudar de estado --- */
.coupon-feedback.success, .coupon-feedback.error { animation: mcPulseAnim 0.4s ease; }

/* --- Erros de formulário com shake automático via classe .active --- */
.form-error.active { animation: mcShakeAnim 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .mc-ripple, .mc-shake, .mc-pulse, .mc-glow, .mc-scroll-progress, .mc-cursor-spark {
    animation: none !important;
  }
}

/* ============================================================
   RESPONSIVO — reforço geral para celular
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { padding: 10px 16px; }
  .header-actions { gap: 8px; }
  .sound-toggle-btn { width: 38px; height: 38px; font-size: 14px; }
  .ip-pill span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: 440px; }
  .hero-sun { width: 90px; height: 90px; }
}

@media (max-width: 700px) {
  section { padding: 46px 0; }
  .steps-grid { gap: 14px; }
  .step-card { padding: 20px 12px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 9px; padding: 10px 12px; }
  .leaderboard-grid { grid-template-columns: 1fr; max-width: 420px; }
  .modal-box { max-width: 100%; }
  .modal-body { padding: 18px; }
  .hero-content { padding: 28px 16px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .mc-btn { justify-content: center; }
  .footer-grid { text-align: left; }
}

@media (max-width: 420px) {
  .ip-pill span { max-width: 70px; }
  .logo span.logo-text { display: none; }
  .cart-btn, .sound-toggle-btn { width: 36px; height: 36px; }
  .section-title { font-size: 17px; }
  .section-subtitle { font-size: 18px; }
  .product-card h3 { font-size: 13px; }
  .mc-btn { font-size: 11px; padding: 12px 16px; }
}

/* Evita overflow horizontal causado pelas nuvens/partículas do hero */
html, body { max-width: 100%; }
