/* ========================================
   BARRACÃO REVERSA – ESTILOS PREMIUM
   ======================================== */

:root {
  --primary: #FFD600;
  --primary-dark: #E6C000;

  /* O amarelo da marca, imutavel. NAO use var(--primary) esperando amarelo:
     applyStoreSettings() sobrescreve --primary em runtime com
     store_settings.primary_color, que hoje e #010a19 (quase preto). Foi
     assim que a contagem do botao selecionado virou preto sobre preto. */
  --marca-amarelo: #FFD600;

  /* Altura da barra de leilões, fixa no topo. O header e o conteúdo abaixo
     se deslocam por esta variável — zerá-la remove a barra sem deixar
     buraco. Muda no mobile (ver media query no fim do arquivo). */
  --barra-leilao: 46px;
  --primary-light: #fff9e0;
  --secondary: #f4f4f6;
  --accent: #ff4d00;
  --accent-light: #fff1eb;
  --bg: #ffffff;
  --bg-card: #f9f9fb;
  --bg-card2: #ffffff;
  --surface: #edf0f5;
  --text: #1a1a1e;
  --text-secondary: #626b7a;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', sans-serif;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --on-primary: #111111;
  /* text on yellow buttons */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── HEADER ──────────────────────────────── */
.header {
  position: fixed;
  top: var(--barra-leilao);
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img-header {
  height: 48px;
  object-fit: contain;
}

.logo-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-size: .65rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-link:hover {
  color: var(--text);
}

.btn-whatsapp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background .2s, transform .2s;
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.admin-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color .2s, color .2s;
  margin-left: 8px;
}

.admin-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── BANNERS SLIDER ───────────────────────── */
.banner-slider {
  max-width: 1400px;
  margin: calc(74px + var(--barra-leilao)) auto 28px;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  gap: 16px;
}

.banner-slider::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-img {
  width: 100%;
  max-height: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .banner-slider {
    margin-top: calc(68px + var(--barra-leilao));
    margin-bottom: 20px;
    padding: 0 12px;
    scroll-padding: 0 12px;
  }

  .banner-img {
    max-height: 260px;
    border-radius: 8px;
  }
}

/* ── HERO ─────────────────────────────────── */
.hero {
  padding: calc(120px + var(--barra-leilao)) 20px 80px;
  text-align: center;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 60%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 214, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 77, 0, 0.08);
  border: 1px solid rgba(255, 77, 0, 0.25);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.highlight {
  background: linear-gradient(135deg, #E6C000, #ff4d00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 20px rgba(255, 214, 0, 0.35);
}

.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  transition: border-color .2s, transform .2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}

.stat span {
  font-size: .8rem;
  color: var(--text-secondary);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}

/* ── HOW TO BUY ───────────────────────────── */
.how-section {
  padding: 60px 20px;
  background: var(--bg);
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--text);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
  position: relative;
  transition: transform .25s, border-color .25s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
  font-size: .8rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── PRODUCTS SECTION ────────────────────── */
.products-section {
  padding: 40px 20px 80px;
  max-width: 1600px;
  margin: 0 auto;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.products-header .section-title {
  margin-bottom: 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input,
.category-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.search-input {
  min-width: 200px;
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-input:focus,
.category-select:focus {
  border-color: var(--primary);
}

.category-select option {
  background: var(--bg-card);
}

/* ── VITRINE DE LEILOES (entre o hero e o Como Comprar) ─── */
/* Mostra os lotes abertos com o lance atual e o relogio correndo. Nasce
   escondida (hidden no HTML) e so aparece quando o app.js confirma que veio
   lote de verdade — se o site de leiloes estiver fora do ar, bloqueado por
   CORS ou sem lote aberto, a loja simplesmente nao mostra nada. Vitrine vazia
   na home de quem vende e pior que vitrine nenhuma. */
.vitrine-leilao {
  max-width: 1600px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.vitrine-leilao-caixa {
  background: linear-gradient(100deg, #16233a 0%, #1e3357 60%, #16233a 100%);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  color: #fff;
}

.vitrine-leilao-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vitrine-leilao-titulo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
  color: #fff;
}

.vitrine-leilao-titulo em {
  font-style: normal;
  color: var(--marca-amarelo);
}

.vitrine-leilao-todos {
  font-size: .82rem;
  font-weight: 700;
  color: var(--marca-amarelo);
  text-decoration: none;
  white-space: nowrap;
}

.vitrine-leilao-todos:hover { text-decoration: underline; }

.vitrine-leilao-lotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lote-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .18s, border-color .18s, transform .18s;
}

.lote-card:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 214, 0, .5);
  transform: translateY(-2px);
}

.lote-card:focus-visible {
  outline: 2px solid var(--marca-amarelo);
  outline-offset: 2px;
}

.lote-card-num {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: #94a5bf;
  font-variant-numeric: tabular-nums;
}

.lote-card-titulo {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* O relogio e o motivo de a pessoa clicar agora em vez de depois. */
.lote-card-relogio {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 77, 0, .18);
  border: 1px solid rgba(255, 120, 60, .42);
  color: #ffb391;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.lote-card-relogio.urgente {
  background: rgba(255, 77, 0, .32);
  border-color: rgba(255, 140, 80, .75);
  color: #ffd0ba;
}

.lote-card-linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.lote-card-rotulo { font-size: .65rem; color: #94a5bf; }

.lote-card-valor {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--marca-amarelo);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.lote-card-lances { font-size: .65rem; color: #94a5bf; }

/* Cartao com a capa do lote, como no site de leiloes: caixa fixa 4:5 e a capa
   INTEIRA dentro dela (contain), nunca cortada — o texto da arte nao pode sumir.
   As capas reais tem proporcoes diferentes (de 0,56 a 0,91); a sobra e preenchida
   por uma copia desfocada da propria capa (a 1a <img>). As imagens ficam em
   position:absolute para nao empurrarem a altura da caixa: com a proporcao fixa,
   a pagina nao "pula" quando a imagem termina de carregar. */
.lote-card.com-capa { padding: 0; gap: 0; overflow: hidden; }
.lote-card-capa { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(0, 0, 0, .28); }
.lote-card-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lote-card-capa img.lote-card-capa-fundo { object-fit: cover; transform: scale(1.15); filter: blur(16px); opacity: .55; }
.lote-card-info { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }

/* No computador, cada cartao com capa fica com no maximo 380 px de largura (capa de
   ~475 px de altura), centralizados — inclusive quando ha so 1 ou 2 lotes abertos.
   Sem esse limite, monitor grande deixaria cada capa com mais de 600 px e a vitrine
   ocuparia a tela inteira. No celular nao vale: la a fila rola para o lado, e
   centralizar cortaria o primeiro cartao. */
@media (min-width: 861px) {
  .vitrine-leilao-lotes.com-capas { display: flex; justify-content: center; }
  .vitrine-leilao-lotes.com-capas .lote-card { flex: 0 1 380px; min-width: 0; }
}

/* No celular vira rolagem lateral — o mesmo gesto dos botoes de categoria. */
@media (max-width: 860px) {
  .vitrine-leilao-lotes {
    display: flex;
    overflow-x: auto;
    gap: 11px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .lote-card { flex: 0 0 215px; }
  .vitrine-leilao-caixa { padding: 20px 16px 22px; }
  .vitrine-leilao-titulo { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .vitrine-leilao { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lote-card { transition: none; }
  .lote-card:hover { transform: none; }
}

/* ── BARRA DE LEILOES (topo, sempre fixa) ─── */
/* Fica ACIMA do header, colada no topo. O azul e o amarelo sao os do site de
   leiloes, nao os da loja: e o mesmo destino, e a cor ja anuncia isso antes
   de a pessoa clicar. */
.barra-leilao {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--barra-leilao);
  background: linear-gradient(90deg, #16233a 0%, #1e3357 55%, #16233a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  font-size: 0.86rem;
  border-bottom: 2px solid var(--marca-amarelo);
}

.barra-leilao-texto {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.barra-leilao-selo {
  flex: 0 0 auto;
  background: var(--marca-amarelo);
  color: #16233a;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.barra-leilao-frase {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.barra-leilao-frase strong { font-weight: 800; }

.barra-leilao-btn {
  flex: 0 0 auto;
  background: var(--marca-amarelo);
  color: #16233a;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s;
}

.barra-leilao-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 214, 0, .35);
}

.barra-leilao-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* No celular a frase longa nao cabe junto do botao: some o texto explicativo
   e fica o essencial — o selo, a palavra e o botao. */
@media (max-width: 720px) {
  :root { --barra-leilao: 42px; }
  .barra-leilao { gap: 10px; font-size: 0.8rem; padding: 0 10px; }
  .barra-leilao-frase { display: none; }
  .barra-leilao-btn { font-size: 0.75rem; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .barra-leilao-btn { transition: none; }
  .barra-leilao-btn:hover { transform: none; }
}

/* ── BOTOES DE CATEGORIA ──────────────────── */
/* Gerados pelo app.js a partir dos produtos que existem no banco. Categoria
   sem produto nao vira botao — e por isso que nao da mais pra loja acabar
   com prateleira vazia, como aconteceu com as 14 gavetas de informatica. */
.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar { height: 5px; }
.category-chips::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}

/* :not(.active) para o hover nao roubar o contorno do selecionado */
/* Hover em cinza, nao em amarelo: amarelo sobre branco da 1.76:1 e some.
   Assim a borda faz uma progressao legivel — quase invisivel em repouso,
   cinza no hover, preta no selecionado. :not(.active) para o hover nao
   roubar o contorno de quem ja esta escolhido. */
.cat-chip:not(.active):hover { border-color: #767676; }

.cat-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selecionado = contorno, nao preenchimento. A borda vai de 1px para 2px, e
   o padding cai 1px em cada lado pra compensar: sem isso o botao cresceria
   2px ao ser clicado e a fileira inteira daria um pulo. */
.cat-chip.active {
  background: transparent;
  border-color: var(--text);
  border-width: 2px;
  padding: 7px 13px;
  color: var(--text);
  font-weight: 700;
}

/* A contagem e informacao, nao enfeite: mostra de cara onde tem sortimento. */
.cat-chip-n {
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 999px;
  padding: 1px 6px;
}

.cat-chip.active .cat-chip-n {
  background: var(--marca-amarelo);
  color: #1a1a1e;
  font-weight: 700;
}

@media (max-width: 640px) {
  .category-chips { padding-bottom: 12px; }
  .cat-chip { font-size: .78rem; padding: 7px 12px; }
}

/* ── PRODUCT GRID ─────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(255, 214, 0, 0.12);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

/* Carousel Styles */
.card-image-wrap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.card-image-wrap::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.card-image-wrap img {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, width 0.3s;
}

.indicator-dot.active {
  background: var(--primary);
  width: 12px;
  border-radius: 4px;
}

.card-badge-urgent {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-badge-store-unit {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0284c7; /* Azul celeste */
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  z-index: 2;
}

.card-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-description {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-condition {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 600;
}

.card-store-unit {
  font-size: .72rem;
  color: #2d3277;
  font-weight: 600;
}

.card-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
  flex-wrap: wrap;
}

.card-price-original {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: -2px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}

.card-pix {
  font-size: .65rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-footer {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-footer-actions {
  display: flex;
  gap: 8px;
}

.btn-details {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-details:hover {
  background: var(--surface);
  transform: scale(1.02);
}

.btn-buy {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .2s, transform .2s;
}

.btn-buy:hover {
  opacity: .9;
  transform: scale(1.02);
}

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s;
}

.btn-share:hover {
  background: var(--border);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.btn-share svg {
  opacity: 0.9;
}

/* ── EMPTY STATE ──────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.empty-state small {
  color: var(--text-secondary);
  font-size: .82rem;
}

.empty-state a {
  color: var(--primary);
}

/* ── MODAL ────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay .2s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-admin {
  max-width: 560px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.modal-close:hover {
  background: var(--surface);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── MODAL PRODUCT PREVIEW ────────────────── */
.modal-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.modal-product img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.modal-product-info {
  flex: 1;
}

.modal-product-info strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.price-row-modal {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-size: 1.8rem;
  font-weight: 950;
  color: var(--accent);
  line-height: 1;
}

.price-method {
  font-size: .85rem;
  color: var(--text-secondary);
}


.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* ── FORM ─────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(136, 146, 164, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.12);
}

input.error,
select.error,
textarea.error {
  border-color: #f44336 !important;
}

textarea {
  resize: vertical;
}

select option {
  background: var(--bg-card2);
  color: var(--text);
}

.payment-info {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pix-badge,
.lock-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

.pix-badge {
  background: rgba(255, 214, 0, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.3);
  color: #b38600;
}

.lock-badge {
  background: rgba(255, 111, 0, 0.12);
  border: 1px solid rgba(255, 111, 0, 0.25);
  color: var(--accent);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity .2s, transform .15s;
}

.btn-submit:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── IMAGE UPLOAD ─────────────────────────── */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 200, 83, 0.04);
}

.image-upload-area.dragover {
  border-color: var(--primary);
  background: rgba(0, 200, 83, 0.08);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.logo-img-footer {
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}

.upload-placeholder span {
  font-size: .85rem;
  color: var(--text-secondary);
}

.upload-placeholder small {
  font-size: .72rem;
  color: rgba(136, 146, 164, 0.5);
}

#imagePreview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ── ADMIN PRODUCT LIST ───────────────────── */
#adminProductList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .82rem;
}

.admin-product-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-product-item-info {
  flex: 1;
}

.admin-product-item-info strong {
  display: block;
  color: #fff;
  font-size: .85rem;
}

.admin-product-item-info span {
  color: var(--primary);
  font-weight: 700;
}

.btn-delete-product {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.25);
  color: #f44336;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
  flex-shrink: 0;
}

.btn-delete-product:hover {
  background: rgba(244, 67, 54, 0.25);
}

.admin-subtitle {
  font-size: .82rem;
  color: var(--text-secondary);
  margin-top: -14px;
  margin-bottom: 20px;
}

/* ── TOAST ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 48px 20px;
}

.footer-inner {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}

.footer p {
  color: var(--text-secondary);
  font-size: .85rem;
  margin-bottom: 12px;
}

.footer-whatsapp {
  display: inline-block;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: var(--whatsapp);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .9rem;
  transition: background .2s;
  margin-bottom: 16px;
}

.footer-whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
}

.footer-copy {
  font-size: .72rem;
  color: rgba(136, 146, 164, 0.5) !important;
}

/* ── STOCK BADGES ─────────────────────────── */
.stock-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-ok {
  background: rgba(255, 214, 0, 0.10);
  border: 1px solid rgba(255, 214, 0, 0.25);
  color: var(--primary);
}

.badge-low {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

.badge-reserved {
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

.badge-out {
  background: rgba(244, 67, 54, 0.10);
  border: 1px solid rgba(244, 67, 54, 0.25);
  color: #f44336;
}

/* ── SOLD / ESGOTADO CARD ─────────────────── */
.card-sold {
  opacity: .7;
}

.card-sold-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  backdrop-filter: blur(2px);
}

.btn-buy:disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: .6;
  transform: none !important;
}

/* ── ADMIN STOCK CONTROL ──────────────────── */
.admin-stock-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.stock-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}

.stock-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .header-nav .nav-link {
    display: none;
  }

  .hero {
    padding: calc(100px + var(--barra-leilao)) 20px 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .step-arrow {
    display: none;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    width: 100%;
  }

  .search-input {
    min-width: 0;
    flex: 1;
  }

  .modal {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* ── PRODUCT DETAILS PAGE (STYLE HG TECH) ──────────────── */
.product-details-view {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeIn .3s ease-out;
  text-align: left;
}

@media (min-width: 900px) {
  .product-details-view {
    flex-direction: row;
    align-items: flex-start;
  }
}

.main-detail-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #000;
}

.thumb-video {
  position: relative;
}

.video-play-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  z-index: 2;
  pointer-events: none;
}

.thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.details-image-section {
  flex: 1.2;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.details-image-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 600px;
}

.details-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-category-badge {
  display: inline-block;
  background: #f0f2f5;
  color: #666;
  /* Cor escura para visibilidade em fundo branco */
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  width: fit-content;
}

.details-title {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  /* Cor escura para visibilidade em fundo branco */
  line-height: 1.2;
  margin: 0;
}

.details-description {
  font-size: 1rem;
  color: #666;
  /* Cor escura para visibilidade em fundo branco */
  line-height: 1.6;
  margin-top: 10px;
  white-space: pre-line;
  /* mantém as quebras de linha digitadas no painel */
}

/* Bloco de Preço HG Tech */
.details-price-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 24px;
  margin-top: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.exclusive-badge {
  background: #FFD600;
  color: #000;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  position: absolute;
  top: -12px;
  right: 20px;
  text-transform: uppercase;
}

.old-price {
  text-decoration: line-through;
  color: #a0a0a0;
  font-size: 1rem;
}

.price-current {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e88e5;
  /* Azul Mercado Livre suave */
  margin: 4px 0;
  display: block;
}

.price-method {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e7d32;
  margin-left: 5px;
}

.price-meta {
  display: flex;
  gap: 15px;
  font-size: .85rem;
  font-weight: 600;
  color: #2e7d32;
  /* Verde HG Tech */
}

/* Selos de Confiança */
.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.trust-badge {
  background: #f8f9fa;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge-icon {
  background: #e8f5e9;
  color: #2e7d32;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-badge-text strong {
  display: block;
  font-size: .85rem;
  color: #333;
  /* Cor escura para visibilidade em fundo branco */
}

.trust-badge-text span {
  font-size: .75rem;
  color: #666;
  /* Cor escura para visibilidade em fundo branco */
}

/* Botões HG Tech style */
.btn-hg-buy {
  background: #00c853;
  /* Verde WhatsApp / Sucesso */
  color: #fff;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform .2s, filter .2s;
  text-decoration: none;
  margin-top: 10px;
  font-family: inherit;
}

.btn-hg-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-back-store {
  background: none;
  border: none;
  color: #1e88e5;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 0;
  font-size: .95rem;
  margin-bottom: 20px;
}

.btn-back-store:hover {
  text-decoration: underline;
}

/* Reuso do Modal para "Full Page" */
.modal-overlay.full-view {
  background: #fff;
  align-items: flex-start;
  padding: 0 !important;
  overflow-y: auto;
}

.modal-overlay.full-view .modal {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 110px auto 40px;
  box-shadow: none;
  min-height: auto;
  padding: 0 20px;
  border: none;
  transform: none !important;
  background: transparent;
}

.modal-overlay.full-view .modal-close {
  top: 80px;
  right: 40px;
  background: #f0f2f5;
  color: #333;
  z-index: 1001;
}

/* ── PRODUCT GALLERY (STYLE ML) ───────────────────── */
.product-details-view {
  align-items: stretch !important;
}

.details-gallery {
  flex: 1.2;
  display: flex;
  gap: 15px;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 50px;
  flex-shrink: 0;
}

.thumb-item {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s;
  background: #fff;
}

.thumb-item.active {
  border: 2px solid var(--ml-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.details-image-section {
  flex: 1;
  min-height: 400px;
  background: #fff;
}

/* ── VARIATION SELECTORS ─────────────────────────── */
.variation-group {
  margin-bottom: 20px;
}

.details-condition {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a0a0a0;
  margin-bottom: 5px;
  display: block;
}

.variation-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  /* Cor escura para visibilidade em fundo branco */
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-capsule {
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .85rem;
  cursor: pointer;
  background: #fff;
  transition: all .2s;
}

.option-capsule:hover {
  background: #f5f8ff;
  border-color: var(--ml-blue);
}

.option-capsule.selected {
  border: 2px solid var(--ml-blue);
  color: var(--ml-blue);
  font-weight: 700;
  padding: 7px 15px;
  /* Manter tamanho similar */
}

@media (max-width: 900px) {
  .details-gallery {
    flex-direction: column-reverse;
  }

  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

/* ── CHECKOUT FORM FIXES FOR FULL-VIEW (LIGHT THEME) ── */
.modal-overlay.full-view #checkoutFormView,
.modal-overlay.full-view #waitlistFormView {
  color: #333;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.modal-overlay.full-view #checkoutFormView .modal-title,
.modal-overlay.full-view #waitlistFormView .modal-title {
  color: #333;
  margin-top: 20px;
}

.modal-overlay.full-view #checkoutFormView label,
.modal-overlay.full-view #waitlistFormView label {
  color: #555;
  font-weight: 700;
}

.modal-overlay.full-view #checkoutFormView input,
.modal-overlay.full-view #checkoutFormView select,
.modal-overlay.full-view #checkoutFormView textarea,
.modal-overlay.full-view #waitlistFormView input,
.modal-overlay.full-view #waitlistFormView select,
.modal-overlay.full-view #waitlistFormView textarea {
  background: #f9f9f9;
  border: 1px solid #ddd;
  color: #333;
}

.modal-overlay.full-view #checkoutFormView input:focus,
.modal-overlay.full-view #checkoutFormView select:focus,
.modal-overlay.full-view #checkoutFormView textarea:focus,
.modal-overlay.full-view #waitlistFormView input:focus,
.modal-overlay.full-view #waitlistFormView select:focus,
.modal-overlay.full-view #waitlistFormView textarea:focus {
  border-color: var(--primary-dark);
}

.modal-overlay.full-view .payment-info-box {
  background: #f8f9fa;
  border: 1px solid #e1e4e8;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-overlay.full-view .payment-info-box p {
  color: #666;
  font-size: 0.85rem;
  margin-top: 8px;
}

.modal-overlay.full-view .modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f2f5;
  border: none;
  color: #333;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: background 0.2s;
}

.modal-overlay.full-view .modal-close-btn:hover {
  background: #e4e6e9;
}

.btn-confirm-order {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-confirm-order:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-share-details-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFD600 !important; /* Amarelo do Barracão */
  color: #000000 !important; /* Letras pretas */
  border: none !important;
  border-radius: 8px;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 214, 0, 0.15);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-share-details-wpp:hover {
  background: #E6C000 !important; /* Amarelo escuro */
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.3);
  transform: translateY(-2px);
}

/* ── LIGHTBOX (IMAGEM EXPANDIDA) ────────────────────── */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ── FIT IMAGE STYLES ──────────────────────────────── */
.card-image-wrap img.img-fit-contain {
  object-fit: contain !important;
  background-color: #ffffff; /* Fundo branco para mesclar com as fotos dos produtos */
}

.cursor-zoom {
  cursor: zoom-in;
}

/* ── LIGHTBOX NAVIGATION BUTTONS ───────────────────── */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.2s, opacity 0.2s;
  z-index: 100000;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.75);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Lightbox mobile adjustments */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-img {
    max-width: 95%;
    max-height: 80%;
  }
}