﻿/* ==========================================
   Template Store - Design System
   ========================================== */
:root {
  /* Paleta da marca */
  --ca-pink: var(--primary-accent);

  /* SuperfÃ­cies (light) */
  --bg-0: #ffffff;
  --bg-1: #ffffff;
  --bg-2: #fff0f5;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.70);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(180, 30, 70, 0.08);
  --border-strong: rgba(180, 30, 70, 0.16);

  /* Texto */
  --text: #1a0a12;
  --text-dim: #5a3a48;
  --text-mute: #9a7a88;
  --danger: #e23a5a;
  --success: #1aa876;

  /* Cor primaria do template */
  --primary: #E8527A;
  --primary-rgb: 232, 82, 122;
  --primary-hover: #D63D68;
  --primary-hover-rgb: 214, 61, 104;
  --primary-accent: #FF5AA5;
  --primary-accent-rgb: 255, 90, 165;
  --primary-soft: rgba(var(--primary-rgb), 0.12);
  --primary-softest: rgba(var(--primary-rgb), 0.07);
  --primary-border: rgba(var(--primary-rgb), 0.18);
  --primary-border-strong: rgba(var(--primary-rgb), 0.28);
  --primary-border-active: rgba(var(--primary-rgb), 0.45);
  --primary-shadow: rgba(var(--primary-rgb), 0.32);
  --primary-shadow-strong: rgba(var(--primary-rgb), 0.45);
  --primary-glow: rgba(var(--primary-rgb), 0.22);

  /* DimensÃµes â€” mais arredondado para um visual amigÃ¡vel */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-1: 0 4px 12px rgba(180, 30, 70, 0.06);
  --shadow-2: 0 10px 28px rgba(180, 30, 70, 0.11);
  --shadow-glow: 0 0 28px var(--primary-glow);

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Alturas */
  --topbar-h: 64px;
  --bottomnav-h: 64px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Poppins', sans-serif;
}

html, body { height: 100%; }

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  position: relative;
  background-color: #ffffff;
  background-image: url('../assets/backgrounds/page-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding-top: calc(var(--topbar-h) + var(--safe-top) + 8px);
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 8px);
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

img, picture, video { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

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

/* Fundo extra (manchas MUITO sutis da marca) */
.bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 10% -10%, rgba(var(--primary-rgb), .07), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(var(--primary-accent-rgb), .06), transparent 60%);
}

/* ==========================================================
   TEMA VENDAARTE (vendaarte-padrao) — assinatura da marca.
   Inspirado na logo: roxo profundo + rosa vivo, fundo claro/arejado
   (lavanda -> branco -> rosa), brilho/glass LEVE so nas camadas que
   sobrepoem conteudo (barras, modais, drawer). Cards premium limpos,
   sem blur pesado que deixava tudo cinza. CTAs com gradiente glossy
   roxo -> rosa (espelhando o monograma VA).
   Obs.: --primary/--primary-accent tambem sao setados por JS (config.js)
   a partir de cor_primaria; aqui ficam como fallback + tokens de superficie.
   ========================================================== */
html.tema-v3-vendaarte-padrao {
  --bg-0: #fdfbff;
  --bg-1: #ffffff;
  --bg-2: #f6efff;
  --surface: rgba(255,255,255,.82);
  --surface-soft: rgba(255,255,255,.62);
  --surface-strong: rgba(255,255,255,.95);
  --border: rgba(75,22,168,.10);
  --border-strong: rgba(240,68,184,.22);
  --text: #2a1259;
  --text-dim: #6a5891;
  --text-mute: #9b8bbb;
  --primary: #4B16A8;
  --primary-rgb: 75,22,168;
  --primary-hover: #3c1187;
  --primary-hover-rgb: 60,17,135;
  --primary-accent: #F044B8;
  --primary-accent-rgb: 240,68,184;
  --primary-soft: rgba(75,22,168,.10);
  --primary-softest: rgba(75,22,168,.06);
  --primary-border: rgba(75,22,168,.16);
  --primary-border-strong: rgba(240,68,184,.22);
  --primary-border-active: rgba(240,68,184,.45);
  --primary-shadow: rgba(75,22,168,.26);
  --primary-shadow-strong: rgba(240,68,184,.40);
  --primary-glow: rgba(240,68,184,.18);
  --shadow-1: 0 6px 20px rgba(75,22,168,.07);
  --shadow-2: 0 16px 40px rgba(75,22,168,.13);
  --shadow-glow: 0 0 32px rgba(240,68,184,.16);
  --ca-pink: #F044B8;
}

/* Gradiente de marca reutilizado nos CTAs (roxo profundo -> rosa vivo). */
html.tema-v3-vendaarte-padrao {
  --va-gradient: linear-gradient(135deg, #4B16A8 0%, #8A28C4 48%, #F044B8 100%);
}

/* Fundo claro e arejado como a logo. */
html.tema-v3-vendaarte-padrao body {
  background-color: #fdfbff;
  background-image:
    radial-gradient(680px 460px at 6% -10%, rgba(75,22,168,.12), transparent 60%),
    radial-gradient(560px 400px at 114% 4%, rgba(240,68,184,.13), transparent 58%),
    linear-gradient(180deg, #fdfbff 0%, #ffffff 46%, #fef6fc 100%);
}

html.tema-v3-vendaarte-padrao .bg-gradient {
  background:
    radial-gradient(620px 420px at 16% 2%, rgba(75,22,168,.08), transparent 64%),
    radial-gradient(560px 420px at 102% 18%, rgba(240,68,184,.11), transparent 62%),
    radial-gradient(520px 460px at 50% 116%, rgba(120,40,180,.06), transparent 64%);
}

/* GLASS LEVE: barras que flutuam sobre o conteudo CLARO da pagina. Aqui o glass
   translucido funciona (atras delas ha o fundo lavanda/rosa claro), entao ficam
   arejadas sem virar cinza. */
html.tema-v3-vendaarte-padrao .fixed-top-bar,
html.tema-v3-vendaarte-padrao .bottom-nav {
  background: rgba(255,255,255,.82);
  border-color: rgba(75,22,168,.10);
  box-shadow: 0 18px 46px rgba(75,22,168,.12), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

/* Modais centrais flutuam sobre o VEU ESCURO do overlay. Glass translucido ali
   deixava o branco a 82% revelar o escuro por tras -> a superficie virava cinza
   (era o "fundo cinza estranho" do modal). Aqui a superficie e clara e quase
   solida (branco -> lavanda -> rosa bem leve): premium, arejada e independente do
   que esta atras. Sem backdrop-filter: nao ha nada util pra borrar atras de uma
   camada opaca, e ainda alivia o render. */
html.tema-v3-vendaarte-padrao .product-modal-content,
html.tema-v3-vendaarte-padrao .payment-modal-content,
html.tema-v3-vendaarte-padrao .cart-checkout-content {
  background: linear-gradient(168deg, #ffffff 0%, #fbf6ff 55%, #fff5fb 100%);
  border-color: rgba(75,22,168,.12);
  box-shadow:
    0 24px 60px rgba(40,16,92,.26),
    0 0 40px rgba(240,68,184,.10),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Drawer do carrinho: mesma superficie clara (sofria do mesmo cinza por estar
   sobre o overlay escuro), mas com a sombra projetada para CIMA, ja que ele sobe
   a partir da base da tela. */
html.tema-v3-vendaarte-padrao .cart-drawer {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8ff 60%, #fff5fb 100%);
  border-top-color: rgba(240,68,184,.20);
  box-shadow:
    0 -20px 50px rgba(40,16,92,.22),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Veu dos modais/drawer no tema: roxo profundo da marca em vez de quase-preto,
   pra leitura premium (e nao "carvao"). Continua escuro o bastante pra dar foco
   ao card claro por cima. */
html.tema-v3-vendaarte-padrao .product-modal,
html.tema-v3-vendaarte-padrao .payment-modal,
html.tema-v3-vendaarte-padrao .cart-checkout-modal {
  background: rgba(26,10,54,.62);
}
html.tema-v3-vendaarte-padrao .cart-drawer-overlay {
  background: rgba(26,10,54,.55);
}

/* Secoes/containers em fluxo: branco premium com brilho sutil, blur minimo. */
html.tema-v3-vendaarte-padrao .section,
html.tema-v3-vendaarte-padrao .toolbar,
html.tema-v3-vendaarte-padrao .como-funciona,
html.tema-v3-vendaarte-padrao .footer {
  background: rgba(255,255,255,.74);
  border-color: rgba(75,22,168,.09);
  box-shadow: 0 8px 26px rgba(75,22,168,.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Cards de produto: limpos, com leve gradiente, sombra suave e um brilho de
   borda superior (glass sutil via inset) que NAO sobrepoe a imagem do produto. */
html.tema-v3-vendaarte-padrao .product-card {
  background: linear-gradient(160deg, #ffffff 0%, #fdf8ff 100%);
  border-color: rgba(75,22,168,.10);
  box-shadow: 0 10px 26px rgba(75,22,168,.08), inset 0 1px 0 rgba(255,255,255,.85);
}
html.tema-v3-vendaarte-padrao .product-card:hover {
  border-color: rgba(240,68,184,.28);
  box-shadow: 0 16px 38px rgba(120,40,180,.14), inset 0 1px 0 rgba(255,255,255,.9);
}

html.tema-v3-vendaarte-padrao .product-img-container,
html.tema-v3-vendaarte-padrao .search-input,
html.tema-v3-vendaarte-padrao .filter-select,
html.tema-v3-vendaarte-padrao .price-input,
html.tema-v3-vendaarte-padrao .form-input {
  background: rgba(255,255,255,.70);
  border-color: rgba(75,22,168,.12);
}
html.tema-v3-vendaarte-padrao .product-img-container {
  background: linear-gradient(160deg, #faf5ff, #ffffff);
}

/* Nome no topo e subtitulo na cor da marca. */
html.tema-v3-vendaarte-padrao .top-bar-store-name { color: #331078; }
html.tema-v3-vendaarte-padrao .store-intro-title { color: #331078; }
html.tema-v3-vendaarte-padrao .store-intro-subtitle { color: #6f5a86; }

/* CTAs com gradiente glossy roxo -> rosa (monograma VA). */
html.tema-v3-vendaarte-padrao .buy-button,
html.tema-v3-vendaarte-padrao .product-modal-button-buy,
html.tema-v3-vendaarte-padrao .cart-checkout-button,
html.tema-v3-vendaarte-padrao .payment-button-pay,
html.tema-v3-vendaarte-padrao .pedidos-modal-submit,
html.tema-v3-vendaarte-padrao .status-button-primary,
html.tema-v3-vendaarte-padrao .copy-pix-button {
  background: var(--va-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(120,30,170,.26);
}
html.tema-v3-vendaarte-padrao .buy-button:hover:not([disabled]),
html.tema-v3-vendaarte-padrao .product-modal-button-buy:hover,
html.tema-v3-vendaarte-padrao .cart-checkout-button:not([disabled]):hover,
html.tema-v3-vendaarte-padrao .payment-button-pay:hover:not([disabled]),
html.tema-v3-vendaarte-padrao .pedidos-modal-submit:hover,
html.tema-v3-vendaarte-padrao .copy-pix-button:hover {
  background: var(--va-gradient);
  filter: brightness(1.06);
  box-shadow: 0 12px 28px rgba(240,68,184,.30);
}

/* Bolha do carrinho e nav ativa com o gradiente da marca. */
html.tema-v3-vendaarte-padrao .nav-icon-wrap-cart {
  background: linear-gradient(135deg, #4B16A8, #F044B8);
  box-shadow: 0 6px 20px rgba(240,68,184,.34);
}
html.tema-v3-vendaarte-padrao .product-nav-button.active {
  background: linear-gradient(135deg, #4B16A8, #F044B8);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(240,68,184,.32);
}

/* Hero/banner com moldura suave da marca. */
html.tema-v3-vendaarte-padrao .hero-track,
html.tema-v3-vendaarte-padrao .hero-banner a {
  border-color: rgba(240,68,184,.22);
  box-shadow: 0 18px 46px rgba(75,22,168,.14), 0 0 32px rgba(240,68,184,.12);
}

/* Detalhe do titulo de secao na cor de destaque. */
html.tema-v3-vendaarte-padrao .section-title::after {
  background: linear-gradient(90deg, #4B16A8, #F044B8);
}

/* Aviso de loja pausada por limite do plano.
   Fica integrado ao tema em vez de parecer um alerta externo. */
#loja-bloqueada-banner {
  width: 100%;
  padding: 0 8px;
}

.store-unavailable-notice {
  width: 100%;
  max-width: 540px;
  margin: 10px auto 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.74)),
    linear-gradient(135deg, var(--primary-softest), rgba(var(--primary-accent-rgb), .07));
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), .10), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.store-unavailable-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary-border);
}

.store-unavailable-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-unavailable-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.store-unavailable-copy strong {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.22;
}

.store-unavailable-copy small {
  color: var(--text-dim);
  font-size: .76rem;
  line-height: 1.35;
}

/* ==========================================
   TOP BAR FIXA
   ========================================== */
.fixed-top-bar {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  max-width: 540px;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  z-index: 1000;
  overflow: hidden;
}

.fixed-top-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;        /* permite o nome truncar em vez de empurrar os icones */
  flex: 1 1 auto;      /* ocupa o espaco entre a logo e os icones */
  height: 100%;
  overflow: hidden;
}
.top-bar-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
/* Nome da loja ao lado da logo (controlado pelas configs do tema_v3 via JS:
   exibicao, negrito e fonte). Trunca com reticencias para nao quebrar o header
   nem sobrepor os icones no mobile. */
.top-bar-store-name {
  min-width: 0;
  font-size: clamp(.96rem, 3.6vw, 1.12rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-store-name:empty { display: none; }

.fixed-top-bar-icons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fixed-top-bar-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  background: rgba(20,10,50,.05);
  border: 1px solid var(--border);
  transition: transform .2s ease, background .2s ease;
}
.fixed-top-bar-icon:hover { transform: scale(1.08); background: rgba(20,10,50,.10); }
.fixed-top-bar-icon img { width: 100%; height: 100%; object-fit: contain; }

.fixed-top-bar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fixed-top-bar-button:hover { transform: translateY(-1px); background: var(--primary-hover); box-shadow: 0 6px 18px var(--primary-shadow-strong); }

/* ==========================================
   HERO
   ========================================== */
.hero-slot,
.header-video-container {
  width: 100%;
  padding: 8px 12px 0;
}

.hero-slot[hidden] { display: none; }

/* store-intro agora carrega so o subtitulo (vitrine discreta). O nome migrou
   para o topo/header; o H1 fica como sr-only para SEO. Sem caixa propria: quando
   o subtitulo esta oculto, a secao colapsa sem deixar buraco visual. */
.store-intro {
  margin: 0;
  padding: 0;
  text-align: center;
}
.store-intro-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.28rem, 5vw, 1.85rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: 0;
}
.store-intro-subtitle {
  max-width: 620px;
  margin: 8px 16px 0;
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.45;
}
/* Visivel para leitores de tela, oculto visualmente (H1 do nome no header). */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2), 0 0 40px rgba(59,91,255,.25);
}

.hero-carousel,
.hero-banner {
  position: relative;
}

.hero-track {
  position: relative;
  width: 100%;
  aspect-ratio: 2880 / 720;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2), 0 0 40px rgba(59,91,255,.18);
  background: var(--bg-2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.is-clickable {
  cursor: pointer;
}

.hero-slide.is-clickable:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: -7px;
  box-shadow: inset 0 0 0 5px var(--primary-shadow-strong);
}

.hero-slide img,
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner a {
  display: block;
  aspect-ratio: 2880 / 720;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.hero-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.hero-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 1px 5px rgba(0,0,0,.28);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

.hero-dot.active::before {
  width: 22px;
  background: #fff;
}

.hero-dot:focus-visible {
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: -8px;
}

.hero-carousel.is-single .hero-dots {
  display: none;
}

/* ==========================================
   PRODUCT NAV (topo/rodapÃ© das seÃ§Ãµes)
   ========================================== */
.product-nav-top,
.product-nav-bottom {
  display: flex;
  gap: 5px;
  padding: 5px;
  margin: 16px 12px 0;
  background: var(--primary-softest);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  scrollbar-width: none;
}
.product-nav-top::-webkit-scrollbar,
.product-nav-bottom::-webkit-scrollbar { display: none; }

.product-nav-button {
  flex: 1 0 auto;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
  border: 1.5px solid transparent;
  background: transparent;
}
.product-nav-button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(var(--primary-rgb), 0.38);
}
.product-nav-button:not(.active) {
  background: rgba(var(--primary-rgb), 0.10);
  color: var(--primary);
  border-color: var(--primary-border-strong);
}
.product-nav-button:not(.active):hover {
  background: rgba(var(--primary-rgb), 0.20);
  border-color: var(--primary-border-active);
}
.product-nav-bottom { margin: 24px 0 0; }

/* ==========================================
   AVALIAÃ‡Ã•ES â€” RIVER (faixa + carrossel mesclados)
   ========================================== */
.reviews-section {
  margin: 20px 12px 0;
  padding: 16px 0 14px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reviews-title {
  text-align: center;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
}

.reviews-river {
  overflow: hidden;
  width: 100%;
}

.reviews-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: reviews-river 40s linear infinite;
  padding: 2px 12px 6px;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviews-river {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary, #e8527a);
  position: relative;
}

.review-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-initial {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.review-name {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.review-stars {
  color: #f5a623;
  font-size: .62rem;
  letter-spacing: .02em;
}

.review-text {
  font-size: .67rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   TOOLBAR (busca/filtros)
   ========================================== */
.toolbar {
  margin: 10px 12px 0;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}
.search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 38px;
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: .95rem;
}
.search-input::placeholder { color: var(--text-mute); }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(20,10,50,.07);
  color: var(--text-dim);
  cursor: pointer;
  font-size: .7rem;
}
.search-clear:hover { background: rgba(20,10,50,.12); color: var(--text); }

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filter-select {
  flex: 1 1 140px;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: .85rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.filter-select option { background: var(--bg-2); color: var(--text); }
.price-range {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 160px;
  color: var(--text-mute);
  font-size: .85rem;
}
.price-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  text-align: center;
}
.price-input:focus { border-color: var(--primary); }
/* ==========================================
   SECTIONS + GRID
   ========================================== */
main { flex: 1; width: 100%; }

.content-section { display: none; }
.content-section.active { display: block; }

.section {
  margin: 12px;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--text);
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: var(--primary);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Empty / no-results */
.empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-mute);
  padding: 24px 12px;
  font-size: .9rem;
}

/* Spinner */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 24px;
}
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(20,10,50,.12);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.product-skeleton {
  background: linear-gradient(90deg, rgba(20,10,50,.03), rgba(20,10,50,.07), rgba(20,10,50,.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
  min-height: 260px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==========================================
   PRODUCT CARD
   ========================================== */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }

.product-img-container {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: var(--bg-2);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-img { transform: scale(1.03); }

.product-share-button {
  display: none; /* removido â€” substituÃ­do por .product-share-btn-inline */
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
  z-index: 2;
  animation: shareFloat 3s ease-in-out infinite;
}
.product-share-button svg { width: 16px; height: 16px; }
.product-share-img { width: 28px; height: 28px; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px var(--primary-shadow-strong)); }
.product-share-button:hover { transform: scale(1.15); filter: brightness(1.1); animation-play-state: paused; }
@keyframes shareFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}
.product-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.product-delivery-badge {
  display: inline-flex;
  align-items: center;
  font-size: .65rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(26, 168, 118, 0.10);
  border: 1px solid rgba(26, 168, 118, 0.22);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  letter-spacing: .01em;
}
.product-share-btn-inline {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.78;
  transition: opacity .2s ease, transform .25s ease;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: share-pulse 2.4s ease-in-out infinite;
}
.product-share-btn-inline:hover,
.product-share-btn-inline:focus-visible { opacity: 1; transform: scale(1.18); }
.product-share-btn-inline:active { transform: scale(.92); }
.product-share-btn-inline img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
  overflow: visible;
}
@keyframes share-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.10); }
}
.product-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.product-old-price {
  font-size: .72rem;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-top: 4px;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.product-timer {
  font-size: .68rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}
.product-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.buy-button,
.add-cart-button {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.1;
}
.buy-button {
  background: var(--primary);
  color: #fff;
}
.buy-button:hover:not([disabled]) { background: var(--primary-hover); transform: translateY(-1px); }
.buy-button[disabled] { opacity: .5; cursor: not-allowed; }
.add-cart-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.add-cart-button:hover:not([disabled]) { background: rgba(20,10,50,.04); }
.add-cart-button.added {
  background: rgba(61,220,151,.15);
  color: var(--success);
  border-color: rgba(61,220,151,.4);
}

/* ==========================================
   PRODUCT MODAL
   ========================================== */
.product-modal,
.payment-modal,
.cart-checkout-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3,1,12,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-transform: translateZ(0);
}
.product-modal[style*="flex"],
.payment-modal[style*="flex"] { display: flex; }
.cart-checkout-modal.active { display: flex; }

/* body-lock: aplicado via JS ao abrir qualquer modal/drawer.
   O motor adiciona .no-scroll no <html> e .drawer-open no <body>;
   ambos travam a rolagem de fundo e liberam ao fechar. */
html.no-scroll {
  overflow: hidden;
}
body.drawer-open {
  overflow: hidden;
}
/* legado: mantido por compatibilidade caso algo aplique .modal-open */
body.modal-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll;
}

.product-modal-content,
.payment-modal-content,
.cart-checkout-content {
  width: 100%;
  max-width: 440px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2), var(--shadow-glow);
  padding: 16px;
  position: relative;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-transform: translateZ(0);
}

.product-modal-close,
.payment-modal-close,
.cart-checkout-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20,10,50,.07);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  z-index: 5;
  transition: background .2s ease;
}
.product-modal-close:hover,
.payment-modal-close:hover,
.cart-checkout-close:hover { background: rgba(20,10,50,.14); }

.product-modal-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-2);
  margin-bottom: 12px;
}
.product-modal-info { display: flex; flex-direction: column; gap: 8px; }
.product-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.product-modal-price-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product-modal-old-price {
  font-size: .9rem;
  color: var(--text-mute);
  text-decoration: line-through;
}
.product-modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.product-modal-description {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-dim);
  white-space: pre-line;
  margin: 0;
}
.product-modal-timer {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
}
.product-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.product-modal-button {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-size: .92rem;
  transition: all .2s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-modal-button-buy {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), .35);
}
.product-modal-button-buy:hover { background: var(--primary-hover); transform: translateY(-1px); }
.product-modal-button-cart {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.product-modal-button-cart:hover { background: rgba(20,10,50,.04); }
.product-modal-button-cart.added {
  background: rgba(61,220,151,.15);
  color: var(--success);
  border-color: rgba(61,220,151,.4);
}
.product-modal-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.product-modal-button-continue {
  flex: 1;
  background: rgba(20,10,50,.03);
  color: var(--text-dim);
  font-size: .82rem;
  min-height: 40px;
}
.product-modal-button-share {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20,10,50,.05);
  color: var(--text);
  flex: 1;
}
.product-modal-button-share:hover { background: rgba(20,10,50,.10); }
.product-modal-button-share svg { width: 18px; height: 18px; flex-shrink: 0; }

.product-modal-warning {
  font-size: .78rem;
  color: var(--text-dim);
  padding: 10px;
  background: rgba(255,208,0,.08);
  border: 1px solid rgba(255,208,0,.25);
  border-radius: var(--radius);
  margin-top: 4px;
}
.product-modal-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
  color: var(--text-mute);
  font-size: .78rem;
}
.product-modal-seal img { height: 36px; width: auto; filter: brightness(1.05); }
.product-modal-seal-text { font-weight: 500; }

/* ==========================================
   PAYMENT MODAL / CHECKOUT FORM
   ========================================== */

/* Seletor de mÃ©todo de pagamento */
.payment-method-selector {
  margin-bottom: 12px;
}
.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-1);
}
.payment-method-option:hover { border-color: var(--border-strong); background: var(--bg-2); }
.payment-method-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.payment-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
}
.payment-method-option.selected .payment-method-icon { background: var(--primary); color: #fff; }
.payment-method-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.payment-method-name { font-size: .85rem; font-weight: 700; color: var(--text); }
.payment-method-desc { font-size: .72rem; color: var(--text-mute); }
.payment-method-badge {
  font-size: .62rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.payment-form-title,
.cart-checkout-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1rem;
  touch-action: manipulation;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-input.error { border-color: var(--danger); }
.error-message {
  display: none;
  font-size: .75rem;
  color: var(--danger);
  margin-top: 4px;
}
.payment-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.payment-button {
  flex: 1;
  min-height: 46px;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-size: .92rem;
  transition: all .2s ease;
}
.payment-button-cancel {
  background: rgba(20,10,50,.05);
  color: var(--text-dim);
}
.payment-button-cancel:hover { background: rgba(20,10,50,.10); color: var(--text); }
.payment-button-pay {
  background: var(--primary);
  color: #fff;
}
.payment-button-pay:hover:not([disabled]) { background: var(--primary-hover); transform: translateY(-1px); }
.payment-button-pay[disabled] { opacity: .6; cursor: wait; }

/* Status screens (loading / pix / sucesso / erro) */
.payment-status {
  text-align: center;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.payment-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
}
.payment-status-icon.success { background: rgba(61,220,151,.18); color: var(--success); border: 2px solid rgba(61,220,151,.4); }
.payment-status-icon.error   { background: rgba(255,92,122,.18); color: var(--danger); border: 2px solid rgba(255,92,122,.4); }
.payment-status-icon.warn    { background: rgba(255,170,40,.16); color: #b26a00; border: 2px solid rgba(255,170,40,.4); }
.payment-status-icon.loading { background: rgba(29,166,255,.18); }
.pix-exit-confirm .status-buttons { flex-direction: column; }
.payment-status-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.payment-status-message { color: var(--text-dim); font-size: .85rem; }
.spinner-container { position: relative; width: 60px; height: 60px; }
.spinner-large {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(20,10,50,.08);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
.pix-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pix-qr-code {
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
}
.pix-qr-code img { width: 180px; height: 180px; display: block; }
.pix-code {
  width: 100%;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .72rem;
  word-break: break-all;
  text-align: center;
  color: var(--text-dim);
  font-family: monospace;
}
.copy-pix-button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.copy-pix-button:hover:not([disabled]) { background: var(--primary-hover); }
.status-buttons { width: 100%; display: flex; gap: 8px; margin-top: 8px; }
.status-button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.status-button-primary { background: var(--primary); color: #fff; }
.status-button-secondary { background: rgba(20,10,50,.05); color: var(--text-dim); }
.status-button.checking { opacity: .9; cursor: default; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.status-button-spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* Tela do PIX: passos, tranquilização e nota de verificação */
.pix-steps {
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pix-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.pix-steps li {
  counter-increment: pix-step;
  position: relative;
  padding-left: 30px;
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.pix-steps li::before {
  content: counter(pix-step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pix-steps li strong { color: var(--text); font-weight: 600; }
.pix-reassurance {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(61,220,151,.1);
  border: 1px solid rgba(61,220,151,.28);
  color: var(--text-dim);
  font-size: .8rem;
  line-height: 1.45;
  text-align: left;
}
.pix-reassurance svg { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.pix-reassurance strong { color: var(--text); font-weight: 700; }
.pix-checking-note {
  width: 100%;
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.45;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  font-weight: 600;
  margin-top: 6px;
}
.whatsapp-icon { width: 20px; height: 20px; }

/* ==========================================
   CART DRAWER
   ========================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,1,12,.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1800;
}
.cart-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  background: var(--bg-1);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 32px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.2,.9,.3,1);
  z-index: 1900;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.cart-drawer.active { transform: translate(-50%, 0); }
.cart-drawer-handle {
  width: 44px;
  height: 4px;
  margin: 8px auto 4px;
  border-radius: 4px;
  background: rgba(20,10,50,.14);
}
.cart-drawer-header {
  padding: 8px 16px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.cart-clear-button {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,92,122,.14);
  color: var(--danger);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
}
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
.cart-empty-message {
  text-align: center;
  color: var(--text-mute);
  padding: 32px 16px;
  font-size: .9rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-item-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-0);
}
.cart-item-info { min-width: 0; }
.cart-item-title {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,92,122,.12);
  color: var(--danger);
  font-size: 1.1rem;
  cursor: pointer;
}
.cart-item-remove:hover { background: rgba(255,92,122,.25); }
.cart-drawer-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}
.cart-total-label { color: var(--text-dim); }
.cart-total-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.cart-checkout-button {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: .95rem;
  box-shadow: 0 6px 18px var(--primary-shadow);
  transition: background .2s ease, transform .2s ease;
}
.cart-checkout-button:not([disabled]):hover { background: var(--primary-hover); transform: translateY(-1px); }
.cart-checkout-button[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cart-continue-button {
  width: 100%;
  min-height: 40px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.cart-continue-button:hover {
  background: rgba(20,10,50,.04);
  border-color: rgba(var(--primary-rgb), .32);
}
.cart-drawer.is-empty .cart-continue-button {
  min-height: 46px;
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px var(--primary-shadow);
}
.cart-drawer.is-empty .cart-continue-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Cart summary (dentro do modal de checkout) */
.cart-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 12px;
  font-size: .85rem;
}
.cart-summary-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.cart-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  color: var(--text-dim);
}
.cart-summary-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
}
.cart-summary-total-value { color: var(--text); }

/* ==========================================
   BOTTOM NAV
   ========================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  z-index: 1000;
}
.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-mute);
  transition: color .2s ease;
  cursor: pointer;
  text-decoration: none;
  padding-bottom: 2px;
}
.nav-item.active { color: var(--primary); }
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  transition: background .2s ease;
}
.nav-item.active .nav-icon-wrap { color: var(--primary); }

/* Carrinho centralizado com destaque */
.nav-item-cart {
  flex: 1;
  position: relative;
}
.nav-icon-wrap-cart {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--primary-rgb), .35);
  margin-top: -26px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-item-cart:hover .nav-icon-wrap-cart,
.nav-item-cart:active .nav-icon-wrap-cart {
  background: var(--primary-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 22px var(--primary-shadow-strong);
}
.nav-icon-wrap-cart .nav-icon { color: #fff; width: 24px; height: 24px; }
.nav-item-cart .nav-text { color: var(--primary); font-weight: 600; margin-top: 2px; }
.nav-item-cart .nav-badge {
  top: -4px;
  right: -4px;
}

.nav-icon { width: 22px; height: 22px; }
.nav-text { font-size: .68rem; font-weight: 500; }
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-item.has-items .nav-badge { display: flex; }

.pulse-animation { animation: pulse .4s ease; }
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ==========================================
   COMO FUNCIONA
   ========================================== */
.como-funciona {
  margin: 22px 12px 0;
  padding: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}
.cf-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cf-kicker {
  color: var(--primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.como-funciona-title {
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.como-funciona-steps {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  counter-reset: how-step;
}
.cf-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
}
.cf-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -1px;
  width: 1px;
  height: 34px;
  background: var(--border-strong);
}
.cf-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff7fa;
  border: 1px solid rgba(var(--primary-rgb), .22);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cf-step-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cf-step-copy strong {
  color: var(--text);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}
.cf-step-copy small {
  color: var(--text-dim);
  font-size: .66rem;
  font-weight: 500;
  line-height: 1.35;
}
.cf-inline-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.cf-inline-link:hover { color: var(--primary-hover); }

@media (max-width: 479px) {
  .cf-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .como-funciona-steps {
    flex-direction: column;
    gap: 4px;
  }
  .cf-step {
    align-items: flex-start;
    padding: 10px 8px 10px 0;
  }
  .cf-step:not(:last-child)::after {
    top: 48px;
    left: 17px;
    right: auto;
    width: 1px;
    height: 18px;
  }
  .cf-step-copy strong { font-size: .82rem; }
  .cf-step-copy small { font-size: .7rem; }
}

/* ==========================================
   BANNER
   ========================================== */
.promo-banner {
  margin: 24px 12px 0;
  text-align: center;
  width: calc(100% - 24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.promo-banner.show {
  opacity: 1;
  visibility: visible;
}
.promo-banner img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  animation: wobble 2s infinite ease-in-out;
}
.promo-banner-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.vendaarte-banner-texto-wrap {
  width: 100%;
  text-align: center;
  margin: 12px 0 0;
}
.vendaarte-banner-texto-wrap:empty { display: none; }
.vendaarte-banner-texto {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: .78rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.vendaarte-banner-texto:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), .06);
}
.vendaarte-banner-texto strong { color: var(--primary); }
@keyframes wobble {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  15%       { transform: translateX(-5px) rotate(-2deg); }
  30%       { transform: translateX(5px) rotate(2deg); }
  45%       { transform: translateX(-3px) rotate(-1deg); }
  60%       { transform: translateX(3px) rotate(1deg); }
  75%       { transform: translateX(-2px) rotate(-1deg); }
  90%       { transform: translateX(2px) rotate(1deg); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  margin: 16px 12px 0;
  padding: 20px 12px calc(var(--bottomnav-h) + var(--safe-bottom) + 24px);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 48px;
  width: auto;
  opacity: .9;
}
.footer-subtitle {
  max-width: 420px;
  margin: -2px auto 0;
  color: var(--text-dim);
  font-size: .78rem;
  line-height: 1.45;
}
.footer-text {
  color: var(--text-mute);
  font-size: .75rem;
}

/* ==========================================
   TOAST
   ========================================== */

/* ==========================================
   MODAL PIX
   ========================================== */
.pm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  min-height: 200px;
}
.pm-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pm-loading-text { font-size: .9rem; color: var(--text-dim); font-weight: 500; }

/* PIX */
.pm-pix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-pix-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pm-pix-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #00BDAE1A;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00BDAE;
  flex-shrink: 0;
}
.pm-pix-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.pm-pix-subtitle { font-size: .75rem; color: var(--text-mute); }

.pm-pix-timer-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-dim);
  background: var(--bg-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  align-self: center;
}
.pm-pix-timer-bar strong { color: var(--primary); }

.pm-pix-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--radius);
}
.pm-pix-qr {
  width: 160px;
  height: 160px;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: var(--shadow-1);
}
.pm-pix-qr-label { font-size: .72rem; color: var(--text-mute); }

.pm-pix-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: .75rem;
}
.pm-pix-or::before,
.pm-pix-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.pm-pix-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.pm-pix-code {
  flex: 1;
  font-size: .68rem;
  color: var(--text-dim);
  word-break: break-all;
  line-height: 1.4;
  font-family: monospace;
  min-width: 0;
}
.pm-pix-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.pm-pix-copy-btn:hover { background: var(--primary-hover); transform: scale(1.02); }
.pm-pix-copy-btn.copied { background: var(--success); }

.pm-pix-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-pix-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: var(--text-dim);
}
.pm-step-n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-pix-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-dim);
  font-weight: 500;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: var(--radius-pill);
  align-self: center;
}
.pm-waiting-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.pm-pix-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-mute);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.pm-cancel-link {
  font-size: .72rem;
  color: var(--text-mute);
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  padding: 0;
}
.pm-cancel-link:hover { color: var(--danger); }

.pm-switch-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.pm-switch-btn:hover { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.18); }

/* ==========================================
   MODAL CARTÃƒO
   ========================================== */
.pm-card { display: flex; flex-direction: column; gap: 14px; }
.pm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pm-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.pm-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.pm-card-subtitle { font-size: .75rem; color: var(--text-mute); }

.pm-card-summary {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-card-item {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-dim);
}
.pm-card-total {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.pm-card-total-value { color: var(--primary); }

.pm-card-form-area {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pm-card-fields-placeholder {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-card-row { display: flex; gap: 10px; }
.pm-card-row .pm-card-field-group { flex: 1; }
.pm-card-field-group { display: flex; flex-direction: column; gap: 4px; }
.pm-card-label { font-size: .72rem; font-weight: 600; color: var(--text-dim); }
.pm-card-field-mock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--text-mute);
  letter-spacing: .05em;
}
.pm-card-coming-soon {
  font-size: .72rem;
  color: var(--text-mute);
  text-align: center;
  padding: 6px;
  background: rgba(var(--primary-rgb), .06);
  border-radius: 8px;
}

.pm-card-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--primary-shadow);
  transition: background .2s, transform .15s;
  opacity: .5;
  cursor: not-allowed;
}
.pm-card-pay-btn:not([disabled]) {
  opacity: 1;
  cursor: pointer;
}
.pm-card-pay-btn:not([disabled]):hover { background: var(--primary-hover); transform: translateY(-1px); }

.pm-switch-pix-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: 2px solid #00BDAE;
  color: #00BDAE;
  font-size: .85rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pm-switch-pix-btn:hover { background: #00BDAE1A; }

.pm-card-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 76px);
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  background: var(--surface-strong);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 2500;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.share-toast { /* alias mantÃ©m compat com cÃ³digo original */
  position: fixed;
  bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 76px);
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 2500;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================
   MODAL MEUS PEDIDOS
   ========================================== */
.pedidos-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3,1,12,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pedidos-modal.active { display: flex; }

.pedidos-modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2), var(--shadow-glow);
  padding: 28px 20px 24px;
  text-align: center;
  animation: modalSlideUp .3s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pedidos-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20,10,50,.07);
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.pedidos-modal-close:hover { background: rgba(20,10,50,.14); }

.pedidos-modal-icon {
  color: var(--primary);
  margin-bottom: 8px;
}
.pedidos-modal-icon svg { margin: 0 auto; }

.pedidos-modal-title {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.pedidos-modal-desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 18px;
}

.pedidos-form-group {
  text-align: left;
  margin-bottom: 16px;
}
.pedidos-form-group .form-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.pedidos-form-group .form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.pedidos-form-group .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.pedidos-form-group .form-input.error {
  border-color: var(--danger);
}
.pedidos-form-group .error-message {
  display: none;
  color: var(--danger);
  font-size: .78rem;
  margin-top: 4px;
}

.pedidos-modal-submit {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px var(--primary-shadow);
}
.pedidos-modal-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-shadow-strong);
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-title { font-size: .88rem; }
}

@media (min-width: 720px) {
  body { max-width: 760px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .fixed-top-bar-button { font-size: .78rem; }
  .top-bar-logo { height: 48px; }
}

@media (min-width: 1024px) {
  body { max-width: 1100px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .toolbar { padding: 12px; }
}

@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Reduzir animaÃ§Ãµes se preferÃªncia */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slide,
  .hero-dot::before {
    transition: none !important;
  }
}
