@import url("../fonts/fonts.css");

/* ============================================================
   FUNKO GOMES — Novo Design System Clean de Marketplace
   Inspirado no testefunko-local (simples, leve e focado)
   Paleta: Roxo Gomes (#6d28d9) · Dourado (#d97706) · WhatsApp (verde profundo #0b8054)
   ============================================================ */

:root {
  /* Variáveis Globais (Modo Claro Padrão E-commerce) */
  --bg: #faf7ff;
  --bg-deep: #1b0835;
  --surface: #ffffff;
  --surface-2: #f4effc;
  --surface-3: #e9e2f7;
  --fg: #241436;
  --muted: #675f7d;
  --muted-2: #9a93ad;
  --border: #e7def7;
  --border-soft: #f1ebfb;
  --accent: #6d28d9;
  --accent-hi: #5b21b6;
  --violet: #a855f7;
  --magenta: #db2777;
  --gold: #d97706;
  --hot: #ef4444;
  --ok: #22c55e;
  --photo-well: #f4effc;
  --wa-strong: #0b8054;
  --wa-strong-hover: #0a6f49;

  --font-display: 'Baloo 2', 'Fira Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Fira Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: 'Lobster Two', 'Baloo 2', cursive;

  --container: 1280px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  accent-color: var(--accent);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(109, 40, 217, 0.16); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
h1.sr-only { font-size: 26px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Utilitários de Scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-wa { background: var(--wa-strong); color: #fff; }
.btn-wa:hover { background: var(--wa-strong-hover); }
.btn-ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn-block { width: 100%; }

/* ---------- Alerta Opcional de Topo (Admin) ---------- */
.topbar-notice {
  background: var(--bg-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-notice[hidden] {
  display: none !important;
}

/* ---------- Header Principal ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-xs);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
}
.brand-txt {
  line-height: 1;
}
.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-funko {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 700;
  font-size: 27px;
  line-height: 0.85;
  color: var(--fg);
}
.brand-gomes {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--violet);
}
.brand-txt span.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 3px;
}

/* Barra de Busca Centralizada */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 680px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  height: 40px;
  padding: 0 84px 0 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: all .15s ease;
}
.search-input::placeholder {
  color: #5b6776;
}
.search-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 14px;
  background: #0f172a;
  color: #fff;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s ease;
}
.search-submit:hover {
  background: var(--accent);
}

.menu-toggle-btn {
  display: none;
  padding: 10px;
  border-radius: var(--r-sm);
  color: var(--fg);
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.menu-toggle-btn:hover { background: var(--surface-2); }
.menu-toggle-btn svg { width: 24px; height: 24px; }
@media (max-width: 768px) {
  .menu-toggle-btn { display: block; }

  /* Header em duas linhas: marca + menu na primeira, busca full-width na segunda */
  .header-main {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 0 12px;
  }
  .brand { flex: 1; min-width: 0; }
  .brand-funko { font-size: 24px; }
  .brand-gomes { font-size: 15px; }
  .brand-txt span.brand-sub { margin-top: 2px; }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

/* Sugestões de Busca */
.suggest {
  position: absolute;
  inset: calc(100% + 6px) 0 auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
}
.suggest a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--fg);
}
.suggest a:last-child { border-bottom: none; }
.suggest a:hover { background: var(--surface-2); }
.suggest img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 6px;
}
.suggest span {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Hero (2 Banners de Alto Impacto) ---------- */
.hero-section {
  padding: 24px 0 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  /* Rail único: os dois banners viram um carrossel com snap, liberando a dobra */
  .hero-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hero-grid::-webkit-scrollbar { display: none; }
  .hero-card {
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
}
.hero-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 30px 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.hero-card-catalog {
  background: radial-gradient(circle at 84% 48%, #5b21b6 0%, #3b1268 48%, #240a45 100%);
}
.hero-card-vip {
  background: radial-gradient(circle at 84% 48%, #0d6b4f 0%, #08432f 55%, #04211a 100%);
}
.hero-card-content {
  position: relative;
  z-index: 2;
  max-width: 58%;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.hero-badge-purple { background: var(--gold); color: #2a1a05; }
.hero-badge-green { background: #047857; color: #d1fae5; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #fff;
}
.hero-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
  margin: 0 0 20px;
}
.hero-card-catalog .hero-desc { color: #e9d5ff; }
.hero-card-vip .hero-desc { color: #d1fae5; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13.5px;
  transition: all .15s ease;
  width: fit-content;
}
.hero-btn svg { width: 15px; height: 15px; }
.hero-btn-white { background: #fff; color: #0f172a; }
.hero-btn-white:hover { background: #f1f5f9; }
.hero-btn-green { background: var(--wa-strong); color: #fff; }
.hero-btn-green:hover { background: var(--wa-strong-hover); }

.hero-img-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  overflow: hidden;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 22%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.8) 22%, black 100%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center right;
}

@media (max-width: 520px) {
  .hero-card-content { max-width: 65%; }
  .hero-img-wrap { width: 34%; max-width: 140px; }
  .hero-card { padding: 22px 18px; min-height: 210px; }
}

/* ---------- Grade de Produtos e Cards ---------- */
.products-section {
  padding: 16px 0 32px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}
.section-title-wrap h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), var(--magenta) 60%, var(--gold));
}
.section-title-wrap p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 0;
}
.tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
.tab-btn {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #334155;
  transition: all .15s ease;
  flex-shrink: 0;
}
.tab-btn:hover { border-color: var(--muted); color: var(--fg); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
}

/* Card de Produto */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c4b5fd;
}
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 10px;
}
.card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
  position: relative;
  z-index: 1;
}
.product-card:hover .card-img {
  transform: scale(1.06);
}
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}
.card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  line-height: 1.3;
}
.card-badge-novo { background: var(--gold); color: #2a1a05; }
.card-badge-exclusivo { background: var(--accent); color: #fff; }
.card-badge-esgotado { background: #991b1b; color: #fff; }
.card-img-wrap.is-esgotado .card-img { filter: grayscale(1); opacity: .72; }
/* Botão transparente que cobre o card e abre os detalhes do produto */
.card-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
}
.card-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.card-fotos-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(36, 20, 54, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  pointer-events: none;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c3aed;
  margin-bottom: 2px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-cta-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.card-wa-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--wa-strong);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.card-wa-btn svg { width: 17px; height: 17px; }
.card-wa-btn:hover { background: var(--wa-strong-hover); }
.card-wa-btn:active { transform: scale(0.94); }

/* ---------- Catálogo Geral (Filtros no Topo) ---------- */
body[data-page="catalogo"] .products-section { padding-top: 24px; }
.catalog-head-meta {
  margin-bottom: 16px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.crumbs a:hover { color: var(--fg); }
.catalog-head-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.catalog-head-meta h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), var(--magenta) 60%, var(--gold));
}
.catalog-head-meta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.catalog-head-meta p strong { color: var(--fg); }

/* Barra Superior de Filtros Rápidos */
.catalog-topbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chips-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chips-filter .chips-row {
  flex: 1;
  min-width: 0;
}
.chips-row {
  --chips-fade: 48px;
  --chips-fade-inner: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
}
.chips-row.can-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--chips-fade)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--chips-fade)), transparent);
}
.chips-row.can-left {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - var(--chips-fade)), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - var(--chips-fade)), transparent);
}
.chips-row.can-left.can-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--chips-fade-inner), #000 calc(100% - var(--chips-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--chips-fade-inner), #000 calc(100% - var(--chips-fade)), transparent);
}
@media (prefers-reduced-motion: reduce) {
  .chips-row { scroll-behavior: auto; }
}
.chips-set {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}
.chips-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-right: 4px;
}
.filter-chip {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: #334155;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-chip:hover {
  background: #e9e2f7;
  color: var(--fg);
}
.filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.chips-toggle {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
}
.chips-toggle:hover { background: var(--surface-2); border-color: var(--muted-2); }
.chips-toggle[hidden] { display: none; }
.chips-filter.is-expanded .chips-row {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.chips-filter.is-expanded .chips-set {
  flex-wrap: wrap;
}

.filter-tools-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.sort-select {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  outline: none;
}

.empty-state,
.empty-state-card {
  text-align: center;
  padding: 48px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  margin: 20px 0;
}
.empty-state h2,
.empty-state h3 { font-size: 16px; margin: 0 0 6px; }
.empty-state p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.products-grid > .empty-state { grid-column: 1 / -1; }

.load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  margin: 4px 0;
}
.load-error h2,
.load-error h3 { font-size: 15px; margin: 0 0 6px; }
.load-error p { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

/* ---------- Skeleton de carregamento ---------- */
.skeleton-card { pointer-events: none; }
.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.skeleton-line { height: 10px; margin-bottom: 8px; }
.sk-block { width: 100%; height: 100%; border-radius: var(--r-sm); }
.sk-l1 { width: 42%; }
.sk-l2 { width: 88%; }
.sk-l3 { width: 64%; margin-bottom: 14px; }
.sk-l4 { width: 72px; margin: 0; }
.sk-chip { width: 36px; height: 36px; border-radius: 6px; }

.home-cta {
  text-align: center;
  margin-top: 28px;
}
.btn-lg {
  min-height: 44px;
  padding: 0 24px;
  font-size: 13.5px;
}

.load-more-wrap {
  text-align: center;
  margin: 32px 0;
}

/* ---------- Botão Flutuante de WhatsApp ---------- */
.wa-floating-btn {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa-strong);
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
  text-decoration: none;
}
.wa-floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.26);
  background: var(--wa-strong-hover);
}
.wa-floating-btn.is-obscured {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.wa-floating-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.wa-floating-txt {
  text-align: left;
  line-height: 1.15;
}
.wa-floating-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}
.wa-floating-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .wa-floating-btn { padding: 13px; }
  .wa-floating-txt { display: none; }
}

/* ---------- Rodapé Institucional ---------- */
.site-footer {
  position: relative;
  background: #f7f2ff;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 48px 0 24px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--magenta) 45%, var(--gold));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}
.footer-col p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-brand { margin-bottom: 14px; }
.footer-brand img {
  width: 64px;
  height: 64px;
}
.footer-brand .brand-funko { font-size: 34px; }
.footer-brand .brand-gomes { font-size: 21px; }
.footer-brand .brand-sub { margin-top: 4px; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s ease;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.footer-contact-icon svg { width: 22px; height: 22px; }
.footer-contact-icon.is-wa { background: var(--wa-strong); }
.footer-contact-icon.is-ig {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
}
.footer-contact-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.footer-contact-rotulo {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer-contact-txt strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.footer-contact:hover .footer-contact-txt strong { color: var(--accent); }
.footer-trust {
  margin: 16px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Menu Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-drawer.open {
  display: block;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}
.drawer-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.drawer-close {
  padding: 12px;
  border-radius: 6px;
  color: var(--muted);
  margin: -6px;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--fg);
}
.drawer-links a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 999;
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Ajustes de Toque e Digitação (Mobile) ---------- */
@media (max-width: 768px) {
  /* 16px evita o zoom automático do iOS ao focar campos */
  .search-input,
  .sort-select {
    font-size: 16px;
  }
  .search-input { height: 44px; }
  .sort-select { height: 44px; }
  .filter-chip { min-height: 40px; }
  .chips-row { --chips-fade: 64px; }
  /* No toque o rail com swipe é o padrão; o botão Ver todas fica só no desktop */
  .chips-toggle { display: none; }
  /* Rótulo vira texto só para leitores de tela: libera espaço para os chips */
  .chips-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .tab-btn { min-height: 40px; }
  .btn { min-height: 44px; }
  .card-wa-btn { width: 44px; height: 44px; }
  .card-wa-btn svg { width: 18px; height: 18px; }
}

/* ---------- Foco visível em campos que zeram o outline padrão ---------- */
.search-input:focus-visible,
.sort-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Galeria de Fotos (Lightbox) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20, 12, 33, .74); display: grid; place-items: center; padding: 20px; z-index: 90; backdrop-filter: blur(3px); }
.modal-overlay[hidden] { display: none; }
.modal-produto {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 780px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  scrollbar-width: thin;
  scrollbar-color: #c4b5fd transparent;
}
.modal-produto .modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  transition: color .15s ease, transform .15s ease;
}
.modal-produto .modal-close:hover { color: var(--fg); transform: scale(1.06); }

.modal-produto__midia {
  background: linear-gradient(180deg, #faf5ff 0%, var(--surface-2) 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 22px 0 0 22px;
  min-width: 0;
}
.galeria-palco {
  position: relative;
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#galeria-img {
  max-width: 100%;
  max-height: 54vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .22));
}
.galeria-vazio { color: var(--muted); font-size: 14px; }
.galeria-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .95);
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.galeria-seta:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .20); }
.galeria-seta:active { transform: translateY(-50%) scale(.94); }
.galeria-seta--prev { left: 0; }
.galeria-seta--next { right: 0; }
.galeria-contador { text-align: center; margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.galeria-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.galeria-thumb { border: 2px solid transparent; border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.galeria-thumb.on { border-color: var(--accent); }
.galeria-thumb img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }

.modal-produto__info { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-badges .card-badge { box-shadow: none; }
.modal-produto__titulo { font-family: var(--font-display); font-size: 26px; line-height: 1.16; font-weight: 700; color: var(--fg); margin: 2px 0 0; }
.modal-produto__cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.modal-produto__nota { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.modal-produto button:focus-visible,
.modal-produto a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-produto__cta { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.modal-cta-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--wa-strong);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.modal-cta-wa:hover { background: var(--wa-strong-hover); }
.modal-cta-wa:active { transform: scale(.98); }
.modal-cta-wa svg { width: 19px; height: 19px; flex: 0 0 auto; }

@media (max-width: 720px) {
  .modal-overlay { padding: 12px; }
  .modal-produto { grid-template-columns: 1fr; max-height: 94vh; border-radius: 18px; }
  .modal-produto__midia { border-radius: 18px 18px 0 0; padding: 16px; }
  #galeria-img { max-height: 40vh; }
  .modal-produto__info { padding: 18px 18px 20px; }
  .modal-produto__titulo { font-size: 21px; }
  .galeria-seta { width: 34px; height: 34px; font-size: 17px; }
  .galeria-thumb img { width: 44px; height: 44px; }
  .modal-produto .modal-close { top: 8px; right: 8px; width: 34px; height: 34px; font-size: 21px; }
}

/* ---------- Movimento Reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .product-card, .card-img, .wa-floating-btn, .toast, .hero-btn, .btn { transition: none; }
}

