/* =====================================================
   CAT?LOGO DIGITAL ? style.css
   Baseado na estrutura visual do inttmg.com.br (Mercos)
   ===================================================== */

/* === VARIÁVEIS DE TEMA === */
:root {
  --brand:          #212121;
  --brand-contrast: #ffffff;
  --title-color:    #424242;
  /* CTAs e destaques herdam o tema (nada de amarelo/azul soltos) */
  --btn-comprar:    var(--tema-primario);
  --btn-comprar-txt:#ffffff;
  --link-color:     var(--tema-primario);
  --header-bg:      #e1e0e0;
  --header-txt:     #212121;
  --footer-bg:      #e1e0e0;
  --footer-txt:     #212121;
  --page-bg:        #ececec;
  --card-bg:        #ffffff;
  --card-radius:    5px;
  --header-h:       80px;
  --sidebar-w:      220px;
  --font:           "Open Sans", Helvetica, Arial, sans-serif;
  --pix-color:      var(--tema-primario);
  --cartao-color:   var(--tema-realce);
  --danger:         #e53935;
  --success:        #43a047;
  --warning:        #fb8c00;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.12);
  --shadow-md:      0 3px 8px rgba(0,0,0,.15);

  /* ── TEMA (padrão: Rosé Elegante) ─────────────────────
     Paleta única para todo o catálogo — topo, botões, badges,
     estados. Trocar o tema = trocar estas variáveis. */
  --tema-primario:        #8b5162; /* CTA / badges fortes (vinho rosé) */
  --tema-primario-escuro: #764657; /* hover do CTA */
  --tema-realce:          #a45d73; /* ícones / acentos */
  --tema-suave:           #fbf1f4; /* fundos tintados */
  --tema-suave-claro:     #fff8fa; /* fundos quase brancos */
  --tema-borda:           #eadfe2;
  --tema-borda-forte:     #dcbfc8;
  --tema-titulo:          #2f2529;
  --tema-texto:           #47363d;
  --tema-texto-2:         #5b3b49;
  --tema-texto-3:         #6b4654;
  --tema-texto-suave:     #75676d;
  --tema-placeholder:     #8b7b81;
  --tema-sombra-cta:      rgba(139,81,98,.18);
}

/* ── TEMA 2: Lavanda Serena (feminino, calmo, spa) ────── */
[data-tema="lavanda"] {
  --tema-primario:        #7d5ba6;
  --tema-primario-escuro: #674990;
  --tema-realce:          #9b7fc0;
  --tema-suave:           #f4f0fa;
  --tema-suave-claro:     #faf8fd;
  --tema-borda:           #e6ddf2;
  --tema-borda-forte:     #cbb8e3;
  --tema-titulo:          #2e2738;
  --tema-texto:           #453a52;
  --tema-texto-2:         #554866;
  --tema-texto-3:         #5f5170;
  --tema-texto-suave:     #746a80;
  --tema-placeholder:     #8d8298;
  --tema-sombra-cta:      rgba(125,91,166,.18);
}

/* ── TEMA 3: Pêssego Terracota (feminino, quente, acolhedor) ── */
[data-tema="terracota"] {
  --tema-primario:        #bf6b4e;
  --tema-primario-escuro: #a5583e;
  --tema-realce:          #cd8262;
  --tema-suave:           #fdf3ee;
  --tema-suave-claro:     #fefaf7;
  --tema-borda:           #f0ddd3;
  --tema-borda-forte:     #e0bfae;
  --tema-titulo:          #33241d;
  --tema-texto:           #4f3a31;
  --tema-texto-2:         #5e463b;
  --tema-texto-3:         #6b5145;
  --tema-texto-suave:     #7d6c64;
  --tema-placeholder:     #96857d;
  --tema-sombra-cta:      rgba(191,107,78,.18);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--brand);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* === UTILIT?RIOS === */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-lancamento { background: #e53935; color: #fff; }
.badge-destaque    { background: var(--btn-comprar); color: var(--btn-comprar-txt); }
.badge-pix         { background: var(--pix-color); color: #fff; }
.badge-cartao      { background: var(--cartao-color); color: #fff; }
.badge-sem-estoque { background: #c62828; color: #fff; }
.badge-pending     { background: #f9a825; color: #fff; }
.badge-ativo       { background: #2e7d32; color: #fff; }
.badge-inativo     { background: #757575; color: #fff; }
.badge-aprovado    { background: #2e7d32; color: #fff; }
.badge-rejeitado   { background: #c62828; color: #fff; }
.badge-aguardando  { background: #f9a825; color: #fff; }
.badge-cancelado   { background: #616161; color: #fff; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,.08);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1400px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 50px; width: auto; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--header-txt); white-space: nowrap; }

/* Nav central */
.header-nav { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }

/* Dropdown Categorias */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: none;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--header-txt);
  white-space: nowrap;
  transition: background .15s;
}
.dropdown-toggle:hover { background: rgba(0,0,0,.05); }
.dropdown-toggle .icon { font-size: 18px; transition: transform .2s; }
.dropdown.open .dropdown-toggle .icon { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--page-bg);
  border-radius: 4px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a,
.dropdown-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--brand);
  transition: background .1s;
}
.dropdown-menu li a:hover,
.dropdown-menu li button:hover { background: var(--page-bg); }
.dropdown-menu li.active a,
.dropdown-menu li.active button { font-weight: 700; color: var(--btn-comprar-txt); background: #fff9e6; }

/* Busca */
.search-form {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search-input {
  flex: 1;
  padding: 9px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  background: transparent;
}
.search-btn {
  padding: 9px 12px;
  background: none;
  border: none;
  color: #666;
  display: flex;
  align-items: center;
}
.search-btn:hover { color: var(--brand); }
.search-btn .icon { font-size: 20px; }

/* ?rea do usu?rio */
.user-area { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.btn-entrar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-entrar:hover { opacity: .85; }
.btn-entrar .icon { font-size: 18px; }

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.user-menu .icon { font-size: 22px; }
.btn-sair {
  padding: 6px 12px;
  background: none;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  font-size: 12px;
  transition: background .15s;
}
.btn-sair:hover { background: rgba(0,0,0,.05); }

/* Carrinho no header */
.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px;
  background: none;
  border: none;
  color: var(--header-txt);
}
.btn-cart .icon { font-size: 24px; }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile menu toggle */
.btn-hamburger {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  color: var(--header-txt);
}
.btn-hamburger .icon { font-size: 26px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100vh;
  background: #fff;
  z-index: 300;
  box-shadow: var(--shadow-md);
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--page-bg);
}
.mobile-nav ul li a,
.mobile-nav ul li button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--page-bg);
  font-size: 14px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  width: 100%;
  text-align: left;
  color: var(--brand);
}
.mobile-nav ul li a .icon,
.mobile-nav ul li button .icon { font-size: 20px; }
.mobile-nav ul li.mnav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid var(--page-bg);
}
.mobile-nav ul li.mnav-user .icon { font-size: 20px; color: var(--brand); }
#mnavSair { color: #c62828 !important; }
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 299;
}
.mobile-nav-overlay.open { display: block; }

/* =====================================================
   BANNER CARROSSEL
   ===================================================== */
.banner-section {
  overflow: hidden;
  width: 100%;
  /* Alinha ao container do site (header/conteúdo = 1400px). Sem full-bleed,
     as artes de 1400×400 aparecem inteiras, sem corte nem zoom em telas largas */
  max-width: 1400px;
  margin: 0 auto;
  background: #ccc;
  contain: layout paint;
  isolation: isolate;
}
.banner-track-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
}
.banner-track {
  display: flex;
  width: 100%;
  max-width: 100%;
  transition: transform .4s ease;
}
.banner-slide {
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #e1e0e0, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-placeholder {
  flex-direction: column;
  gap: 8px;
  color: #888;
  font-size: 15px;
}
.banner-placeholder .icon { font-size: 48px; }

.banner-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 8px;
}
.banner-btn {
  pointer-events: all;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  border: none;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
}
.banner-btn:hover { background: #fff; }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  background: var(--page-bg);
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #bbb;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.banner-dot.active { background: var(--brand); }

/* =====================================================
   AVISO DE LOGIN
   ===================================================== */
.login-notice {
  background: #fff8e1;
  border-bottom: 2px solid var(--btn-comprar);
  padding: 12px 16px;
}
.login-notice-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.login-notice .icon { font-size: 28px; color: #f57c00; flex-shrink: 0; }
.login-notice-text { flex: 1; min-width: 160px; }
.login-notice-text strong { display: block; font-size: 15px; }
.login-notice-text span { font-size: 13px; color: #555; }
.login-notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* =====================================================
   BOTÕES GLOBAIS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .15s, filter .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(.92); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary    { background: var(--brand); color: #fff; }
.btn-secondary  { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn-comprar    { background: var(--btn-comprar); color: var(--btn-comprar-txt); }
.btn-pix        { background: var(--pix-color); color: #fff; }
.btn-danger     { background: var(--danger); color: #fff; }
.btn-success    { background: var(--success); color: #fff; }
.btn-sm         { padding: 5px 12px; font-size: 12px; }
.btn-lg         { padding: 12px 24px; font-size: 15px; }
.btn-block      { width: 100%; }
.btn .icon      { font-size: 16px; }

/* =====================================================
   CONTEÚDO PRINCIPAL + SIDEBAR
   ===================================================== */
.page-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Sidebar de categorias */
.sidebar-cats {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-cats h3 {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--page-bg);
  color: #555;
}
.sidebar-cats ul li a,
.sidebar-cats ul li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--brand);
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
  cursor: pointer;
}
.sidebar-cats ul li a:hover,
.sidebar-cats ul li button:hover { background: var(--page-bg); }
.sidebar-cats ul li.active a,
.sidebar-cats ul li.active button { font-weight: 700; background: #fff9e6; border-left: 3px solid var(--btn-comprar); }

/* =====================================================
   SEÇÁO DE PRODUTOS
   ===================================================== */
.products-section { flex: 1; min-width: 0; }

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.products-title { font-size: 16px; font-weight: 700; }
.products-count { font-size: 12px; color: #777; font-weight: 400; margin-left: 6px; }

/* Ferramentas (busca + ordena??o) */
.products-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.ph-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  padding: 0 10px;
  height: 36px;
  flex: 1;
  max-width: 360px;
  min-width: 0;
}
.ph-search .icon { font-size: 19px; color: #999; flex: 0 0 auto; }
.ph-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  width: 100%;
  min-width: 0;
}
.ph-search:focus-within { border-color: var(--brand, #2e7d32); }
.sort-dropdown select { flex: 0 0 auto; }

/* Ordena??o */
.sort-dropdown { position: relative; }
.sort-dropdown select {
  appearance: none;
  padding: 7px 30px 7px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer;
  outline: none;
}

/* Grade de produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

/* =====================================================
   CARD DE PRODUTO
   ===================================================== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-badges {
  position: absolute;
  top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 1;
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.product-card:hover .card-img-wrapper img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #bbb;
  font-size: 12px;
}
.card-img-placeholder .icon { font-size: 40px; }

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

/* Pre?os no card ? vis?vel s? para logados */
.card-preco { margin-bottom: 8px; }
.card-preco-base {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.card-preco-pix {
  font-size: 16px;
  font-weight: 700;
  color: var(--pix-color);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.card-preco-pix small { font-size: 11px; font-weight: 400; }
.card-preco-cartao {
  font-size: 11px;
  color: var(--cartao-color);
  margin-top: 2px;
}

/* Bloco de desconto para n?o-logados */
.card-desconto-hint {
  font-size: 11px;
  color: #888;
  background: #f9f9f9;
  padding: 5px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-align: center;
  border: 1px dashed #ddd;
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =====================================================
   VER MAIS
   ===================================================== */
.load-more-wrapper {
  text-align: center;
  padding: 24px 0;
}
.load-more-wrapper p {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* =====================================================
   P?GINA DE PRODUTO (produto.html)
   ===================================================== */
.product-page { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb .icon { font-size: 14px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* Galeria */
.product-gallery { position: relative; }
.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }

/* Thumbnails da galeria de produto */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  background: #f5f5f5;
}
.gallery-thumb:hover {
  border-color: #999;
  transform: scale(1.05);
}
.gallery-thumb.active {
  border-color: var(--brand, #7cb342);
  box-shadow: 0 0 0 2px rgba(124,179,66,.3);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-zoom-icon {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  padding: 4px;
  color: #555;
}

/* Info do produto */
.product-info {}
.product-info h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--title-color);
}
.product-code {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.product-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0;
}

/* Pre?os no detalhe */
.preco-block {
  background: #fafafa;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #eee;
}
.preco-tabela {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
  margin-bottom: 10px;
}
.preco-opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 2px solid transparent;
}
.preco-opcao.pix    { background: #e3f2fd; border-color: var(--pix-color); }
.preco-opcao.cartao { background: #f3e5f5; border-color: var(--cartao-color); }
.preco-opcao-label { font-size: 12px; font-weight: 700; }
.preco-opcao-valor { font-size: 20px; font-weight: 800; }
.preco-opcao-economia { font-size: 11px; color: #555; }

/* Acesso para comprar (n?o-logado) */
.acesso-bloco {
  background: #fff8e1;
  border: 2px solid var(--btn-comprar);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}
.acesso-bloco p { font-size: 13px; margin-bottom: 12px; color: #555; }

/* Quantidade + adicionar */
.qty-add {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.qty-control button {
  width: 34px; height: 38px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.qty-control button:hover { background: #e0e0e0; }
.qty-control input {
  width: 48px; height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-family: var(--font);
}
.qty-control input:focus { outline: none; }

/* Descri??o do produto */
.product-desc-section {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.product-desc-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--btn-comprar);
  display: inline-block;
}
.product-desc-body { font-size: 14px; line-height: 1.7; color: #444; white-space: pre-line; }

/* Produtos relacionados */
.related-section { margin-bottom: 24px; }
.related-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* =====================================================
   P?GINA DE LOGIN
   ===================================================== */
.login-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  /* Alinha com o container do header (.header-inner) ? evita a logo "deslocada"
     e o painel escuro gigante em monitores largos */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.login-form-side {
  flex: 1 1 42%;
  min-width: 360px;
  max-width: 560px;
  padding: 48px clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.login-banner-side {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #424242 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
  color: #fff;
}
.login-banner-side h2 { font-size: 22px; font-weight: 700; text-align: center; }
.login-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.login-benefit .icon { font-size: 22px; color: var(--btn-comprar); }

.login-form-side h1 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color .15s;
  outline: none;
  background: #fafafa;
}
.form-control:focus { border-color: var(--brand); background: #fff; }
.form-control.is-error { border-color: var(--danger); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.login-links { margin-top: 16px; font-size: 13px; color: #666; }
.login-links a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.login-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}
.form-password-wrapper { position: relative; }
.form-password-wrapper .form-control { padding-right: 40px; }
.btn-toggle-pwd {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  padding: 4px;
}
.btn-toggle-pwd .icon { font-size: 18px; }

/* =====================================================
   SOLICITAR ACESSO (multi-step)
   ===================================================== */
.signup-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.signup-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
}
.signup-header {
  background: var(--brand);
  color: #fff;
  padding: 20px 24px;
}
.signup-header h1 { font-size: 20px; font-weight: 700; }
.signup-header p { font-size: 13px; opacity: .8; margin-top: 4px; }

.steps-indicator {
  display: flex;
  padding: 16px 24px;
  gap: 0;
  border-bottom: 1px solid #eee;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #eee;
  z-index: 0;
}
.step-item.done::after { background: var(--success); }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #eee;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all .2s;
}
.step-item.active .step-num { background: var(--brand); color: #fff; }
.step-item.done .step-num { background: var(--success); color: #fff; }
.step-label { font-size: 10px; color: #999; text-align: center; }
.step-item.active .step-label { color: var(--brand); font-weight: 600; }

.step-panel { display: none; padding: 24px; }
.step-panel.active { display: block; }

.tipo-pessoa { display: flex; gap: 12px; margin-bottom: 20px; }
.tipo-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  text-align: center;
  color: #555;
}
.tipo-btn.active { border-color: var(--brand); background: var(--brand); color: #fff; }

.signup-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid var(--success); }
.alert-error   { background: #ffebee; color: #c62828; border-left: 4px solid var(--danger); }
.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid var(--pix-color); }

/* =====================================================
   CARRINHO
   ===================================================== */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.cart-page h1 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.cart-empty .icon { font-size: 64px; display: block; margin-bottom: 12px; }
.cart-empty p { font-size: 16px; }
.cart-empty a { margin-top: 16px; display: inline-block; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }

.cart-items { background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f5;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cart-item-code { font-size: 11px; color: #999; margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-item-price { font-size: 14px; font-weight: 700; }
.cart-item-price .pix { color: var(--pix-color); }
.cart-item-price .cartao { color: var(--cartao-color); }
.btn-remove { background: none; border: none; color: #ccc; padding: 2px; transition: color .15s; }
.btn-remove:hover { color: var(--danger); }
.btn-remove .icon { font-size: 20px; }

/* Sidebar do carrinho */
.cart-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 16px;
}
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.payment-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.payment-option {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all .15s;
  display: block;
}
.payment-option:has(input:checked) { border-color: var(--brand); background: #fafafa; }
.payment-option input { margin-right: 8px; }
.payment-option-title { font-size: 13px; font-weight: 700; }
.payment-option-info { font-size: 12px; color: #777; margin-top: 2px; }
.payment-option-preco { font-size: 16px; font-weight: 800; margin-top: 6px; }
.payment-option-preco.pix { color: var(--pix-color); }
.payment-option-preco.cartao { color: var(--cartao-color); }

.cart-totals { border-top: 1px solid #eee; padding-top: 14px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
.cart-total-row.desconto { color: var(--success); }
.cart-total-row.total { font-size: 16px; font-weight: 800; border-top: 1px solid #eee; padding-top: 10px; margin-top: 6px; }

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  min-width: 0;
}
.admin-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #1a1a2e;
  color: #ccc;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-logo {
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-nav { flex: 1; padding: 8px 0; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #aaa;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-nav-item .icon { font-size: 18px; flex-shrink: 0; }
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.active { background: rgba(242,194,38,.12); color: var(--btn-comprar); border-left: 3px solid var(--btn-comprar); }

.admin-main { flex: 1 1 auto; min-width: 0; overflow-y: auto; background: var(--page-bg); }
.admin-content { padding: 24px; max-width: 1100px; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-header-bar h2 { font-size: 20px; font-weight: 700; }

/* Cards de dashboard */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-card .icon { font-size: 32px; }
.dash-card-num { font-size: 28px; font-weight: 800; }
.dash-card-label { font-size: 12px; color: #888; }
.dash-card.amarelo .icon { color: var(--warning); }
.dash-card.azul    .icon { color: var(--pix-color); }
.dash-card.verde   .icon { color: var(--success); }
.dash-card.roxo    .icon { color: var(--cartao-color); }

/* Tabela admin */
.admin-table-wrap {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: #f5f5f5;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #777;
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 14px;
  border-top: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafafa; }
.admin-table .td-img {
  width: 48px; height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.admin-table .td-img img { width: 100%; height: 100%; object-fit: cover; }

.table-actions { display: flex; gap: 6px; }
.badge-ativo   { background: #e8f5e9; color: #2e7d32; }
.badge-inativo { background: #ffebee; color: #c62828; }
.badge-pending { background: #fff8e1; color: #e65100; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.btn-modal-close { background: none; border: none; color: #999; padding: 4px; }
.btn-modal-close .icon { font-size: 24px; }
.modal-body { padding: 20px; flex: 1; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky; bottom: 0; background: #fff;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font);
  background: #fafafa;
  outline: none;
}
.form-select:focus { border-color: var(--brand); }
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font);
  min-height: 100px;
  resize: vertical;
  outline: none;
  background: #fafafa;
}
.form-textarea:focus { border-color: var(--brand); }
.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.form-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* Admin search bar */
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-search .form-control {
  max-width: 260px;
  padding: 8px 12px;
}

/* Imagem preview no form */
.img-preview-wrap {
  width: 100%;
  height: 160px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
  background: #fafafa;
}
.img-preview-wrap img { width: 100%; height: 100%; object-fit: contain; }
.img-preview-placeholder { color: #bbb; text-align: center; }
.img-preview-placeholder .icon { font-size: 36px; display: block; margin-bottom: 4px; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-txt);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 20px 16px;
  margin-top: 32px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-phone { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.footer-phone .icon { font-size: 16px; }
.footer-links { display: flex; gap: 16px; font-size: 12px; color: rgba(0,0,0,.5); }
.footer-links a:hover { color: var(--brand); }

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.toast {
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: 340px;
  animation: slideInRight .25s ease;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--pix-color); }
.toast .icon   { font-size: 18px; }
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* =====================================================
   RESPONSIVO
   ===================================================== */
@media (max-width: 1024px) {
  .sidebar-cats { display: none; }
  .page-content { flex-direction: column; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
  .admin-sidebar { width: 180px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-nav { display: none; }
  .search-form { display: none; }
  .btn-entrar span:last-child { display: none; }
  .btn-hamburger { display: flex; }
  .mobile-nav { display: flex; }

  .banner-slide { height: 180px; }

  .products-header { flex-wrap: wrap; }
  .products-tools { flex: 1 0 100%; justify-content: space-between; }
  .ph-search { max-width: none; }

  .products-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
  .product-detail { grid-template-columns: 1fr; }
  .login-page { flex-direction: column; }
  .login-form-side { flex: none; width: 100%; min-width: 0; max-width: 100%; padding: 32px 20px; }
  .login-banner-side { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-title { font-size: 14px; }
  .page-content { padding: 10px 8px; }
}

/* =====================================================
   SISTEMA DE UPLOAD DE IMAGENS
   ===================================================== */

/* Zona de drag & drop */
.upload-zone {
  border: 2px dashed #c5c5c5;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--btn-comprar);
  background: #fff9e6;
}
.upload-zone.drag-over::after {
  content: 'Solte para enviar';
  position: absolute;
  inset: 0;
  background: rgba(242,194,38,.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--btn-comprar-txt);
  pointer-events: none;
}
.upload-zone .icon-upload { font-size: 48px; color: #bbb; display: block; margin-bottom: 8px; }
.upload-zone h3 { font-size: 15px; margin-bottom: 4px; }
.upload-zone p  { font-size: 12px; color: #888; }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

/* Progress bar de upload */
.upload-progress-wrap { margin-top: 16px; }
.upload-progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.upload-progress-fill {
  height: 100%;
  background: var(--success);
  transition: width .3s;
}
.upload-progress-text { font-size: 12px; color: #666; }

/* Lista de resultados de upload */
.upload-results { margin-top: 12px; max-height: 200px; overflow-y: auto; }
.upload-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  background: #f5f5f5;
}
.upload-result-item.ok   { background: #e8f5e9; }
.upload-result-item.erro { background: #ffebee; }
.upload-result-item .icon { font-size: 16px; }

/* Galeria de imagens no admin */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}
.img-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
}
.img-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.img-gallery-item .img-code {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  text-align: center;
}
.img-gallery-item .btn-del-img {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.img-gallery-item:hover .btn-del-img { display: flex; }
.img-gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #bbb;
  padding: 32px;
  font-size: 13px;
}

/* Upload individual de imagem no form de produto */
.img-upload-area {
  border: 2px dashed #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  transition: border-color .15s;
}
.img-upload-area:hover { border-color: var(--btn-comprar); }
.img-upload-preview {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-upload-preview img { width: 100%; height: 100%; object-fit: contain; }
.img-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #bbb;
  font-size: 12px;
}
.img-upload-placeholder .icon { font-size: 40px; }
.img-upload-actions {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #eee;
  background: #fff;
}
.img-upload-actions label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--page-bg);
  border: 1px solid #ddd;
  transition: background .15s;
}
.img-upload-actions label:hover { background: #e8e8e8; }
.img-upload-actions label input { display: none; }
.img-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 4px;
}
.img-quality-badge.local  { background: #e8f5e9; color: #2e7d32; }
.img-quality-badge.url    { background: #fff8e1; color: #e65100; }
.img-quality-badge.none   { background: #f5f5f5; color: #999; }

/* =====================================================
   IMPORTAÇÁO / EXPORTAÇÁO DE DADOS
   ===================================================== */
.import-wizard {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.import-wizard-header {
  background: var(--brand);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.import-wizard-header h3 { font-size: 15px; font-weight: 700; }
.import-wizard-body { padding: 20px; }

.import-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}
.import-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.import-tab.active { color: var(--brand); border-bottom-color: var(--btn-comprar); }

/* Preview da tabela de importa??o */
.import-preview-wrap { overflow-x: auto; max-height: 300px; overflow-y: auto; }
.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.import-preview-table th {
  background: #f5f5f5;
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
  font-weight: 700;
  font-size: 11px;
  color: #777;
  position: sticky; top: 0;
}
.import-preview-table td {
  padding: 6px 10px;
  border-top: 1px solid #f0f0f0;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.import-preview-table tr.linha-ok   td { background: #f1fff5; }
.import-preview-table tr.linha-erro td { background: #fff1f1; }
.import-preview-table tr.linha-erro td:first-child { color: var(--danger); font-weight: 700; }

.import-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.import-stat {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 10px 16px;
  text-align: center;
}
.import-stat .num { font-size: 24px; font-weight: 800; }
.import-stat .label { font-size: 11px; color: #777; }
.import-stat.ok   { background: #e8f5e9; }
.import-stat.erro { background: #ffebee; }
.import-stat.total{ background: #e3f2fd; }

/* Tabela inline edit?vel de importa??o */
.inline-edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.inline-edit-table th {
  background: #1a1a2e;
  color: #fff;
  padding: 8px 10px;
  font-size: 11px;
  text-align: left;
  font-weight: 700;
  position: sticky; top: 0; z-index: 1;
}
.inline-edit-table td {
  padding: 4px;
  border-bottom: 1px solid #f0f0f0;
}
.inline-edit-table td input,
.inline-edit-table td select {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-family: var(--font);
  background: transparent;
  outline: none;
}
.inline-edit-table td input:focus,
.inline-edit-table td select:focus {
  border-color: var(--btn-comprar);
  background: #fff;
}
.inline-edit-table tr:hover td { background: #fafafa; }
.inline-edit-table tr.nova-linha td { background: #f0fff4; }

/* C?digo fonte de exporta??o */
.export-code {
  background: #1e1e2e;
  color: #a8ff78;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 16px;
  border-radius: 6px;
  max-height: 200px;
  overflow: auto;
  white-space: pre;
}

/* Chip de formato de arquivo */
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.file-chip.csv  { background: #e8f5e9; color: #2e7d32; }
.file-chip.json { background: #e3f2fd; color: #1565c0; }
.file-chip.xlsx { background: #fff3e0; color: #e65100; }

/* Barra lateral do admin - atualizada */
.admin-nav-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: auto;
}

/* Painel dividido no admin de imagens */
.img-mgr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.img-mgr-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.img-mgr-panel h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--btn-comprar);
  display: inline-block;
}

/* Produto form melhorado ? grid 3 colunas */
.prod-form-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}
.prod-form-fields { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 700px) {
  .img-mgr-layout  { grid-template-columns: 1fr; }
  .prod-form-grid  { grid-template-columns: 1fr; }
}

/* â”€â”€â”€ Modal Bem-Vindo (Welcome) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#modalBemVindo {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-welcome {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-width: 0;
  padding: 40px 32px;
  text-align: center;
  overflow-y: auto;
  animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-welcome-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin-top: 12px;
}
.modal-welcome-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.btn-welcome-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all .2s;
}
.btn-welcome-option:hover {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.btn-welcome-option strong {
  font-size: 15px;
  color: #333;
}
.btn-welcome-option span:last-child {
  font-size: 12px;
  color: #888;
}
.btn-welcome-option.profissional:hover {
  border-color: #1976d2;
}
.btn-welcome-option.cliente:hover {
  border-color: #43a047;
}

@media (max-width: 600px) {
  #modalBemVindo {
    justify-content: flex-start;
    padding: 12px 16px;
  }
  .modal-welcome {
    width: 100%;
    max-width: 358px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 28px 20px;
    border-radius: 14px;
  }
  .modal-welcome-header h2 { font-size: 20px; }
  .modal-welcome-options { margin-top: 20px; gap: 12px; }
  .btn-welcome-option { padding: 16px 12px; }
}

/* â”€â”€â”€ Formul?rio contato cliente final (carrinho) â”€â”€â”€â”€ */
.form-contato-cf {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.form-contato-cf .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font);
}
.form-contato-cf .form-input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,.05);
}


/* ===================================================== */
/* ADIÇÕES / UX (m?dulos Fiscal, Lotes, Consigna??o)     */
/* ===================================================== */
:root { --card-radius: 8px; }

/* Cards de resumo compactos */
.dashboard-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:18px; }
.dash-card { background:#fff; border:1px solid #ececec; border-radius:var(--card-radius); padding:9px 12px 9px 16px; box-shadow:var(--shadow-sm); display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:8px; align-items:center; min-height:60px; position:relative; overflow:hidden; }
.dash-card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--success); }
.dash-card .icon { font-size:18px; opacity:.85; grid-row:1 / span 2; }
.dash-card-num { font-size:19px; font-weight:800; line-height:1.1; color:#2b2b2b; }
.dash-card-label { font-size:11px; color:#888; }
.dash-card.amarelo .icon{color:var(--warning)} .dash-card.amarelo::before{background:var(--warning)}
.dash-card.azul .icon{color:var(--pix-color)} .dash-card.azul::before{background:var(--pix-color)}
.dash-card.verde .icon{color:var(--success)} .dash-card.verde::before{background:var(--success)}
.dash-card.roxo .icon{color:var(--cartao-color)} .dash-card.roxo::before{background:var(--cartao-color)}

/* Barra de busca/filtros alinhada */
.admin-search { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.admin-search .form-control, .admin-search .form-select, .admin-search .form-input { height:40px; padding:0 12px; font-size:13px; margin:0; }
.admin-search .btn { height:40px; }
.admin-layout .form-input { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:6px; font-size:14px; font-family:var(--font); background:#fafafa; outline:none; transition:border-color .15s; }
.admin-layout .form-input:focus { border-color:var(--success); background:#fff; }
.admin-card { background:#fff; border:1px solid #ececec; border-radius:var(--card-radius); box-shadow:var(--shadow-sm); padding:20px; margin:16px 0; }
.admin-card h3 { font-size:15px; }

/* Tabela admin: densidade, miniatura, a??es leves, coluna num?rica */
.admin-table td { padding:8px 14px; }
.admin-table tr:hover td { background:#f7faf7; }
.admin-table .td-img { width:42px; height:42px; border-radius:6px; overflow:hidden; background:#f1f1f1; display:flex; align-items:center; justify-content:center; }
.col-num { white-space:nowrap; text-align:right; }
.tbtn { background:#fff; border:1px solid #e2e2e2; border-radius:7px; width:32px; height:32px; color:#555; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:all .12s; }
.tbtn:hover { background:#f2f2f2; border-color:#cfcfcf; }
.tbtn .icon { font-size:18px; }
.tbtn-danger { color:#c62828; }
.tbtn-danger:hover { background:#ffebee; border-color:#ffcdd2; }

/* Cabe?alho fixo ao rolar (Estoque, Produtos, Validade/Lotes, Fiscal) */
#estPanelEstoque .admin-table-wrap, #estPanelValidade .admin-table-wrap, #estPanelConsignado .admin-table-wrap, #sec-produtos .admin-table-wrap, #sec-fiscal .admin-table-wrap { max-height:calc(100vh - 250px); overflow:auto; }
#estPanelEstoque .admin-table thead th, #estPanelValidade .admin-table thead th, #estPanelConsignado .admin-table thead th, #sec-produtos .admin-table thead th, #sec-fiscal .admin-table thead th { position:sticky; top:0; z-index:2; box-shadow:inset 0 -1px 0 #e0e0e0; }

/* Sub-abas do Estoque */
.est-subtab { display:inline-flex; align-items:center; gap:6px; background:none; border:none; border-bottom:3px solid transparent; padding:10px 16px; font-size:14px; font-weight:600; color:#777; cursor:pointer; margin-bottom:-1px; }
.est-subtab.active { color:#2e7d32; border-bottom-color:#2e7d32; }
.est-subtab .admin-nav-badge { margin:0; display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 6px; border-radius:9px; font-size:11px; }

/* Tamanho padr?o dos modais (responsivo) */
.modal { width:min(94vw, var(--modal-w, 640px)); max-width:none; max-height:92vh; }
.modal-sm { --modal-w:480px; } .modal-md { --modal-w:820px; } .modal-lg { --modal-w:1040px; } .modal-xl { --modal-w:1280px; }

/* ============================================================
   Padr?o "Revis?o/Edi??o de Pedido" (admin + vendedor)
   Cabe?alho em destaque, campos em grade e tabela que preenche
   o modal ? coluna Produto absorve a sobra, sem scroll cortando.
   ============================================================ */
.ped-info {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 16px; padding: 14px 16px; background: #f6f8f6;
  border: 1px solid #e6ece6; border-radius: 8px; font-size: 14px;
}
.ped-info .ped-info-l { line-height: 1.6; }
.ped-campos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-bottom: 16px; align-items: end;
}
.ped-campos .form-group { margin: 0; }

.pedido-itens { width: 100%; min-width: 640px; table-layout: auto; }
.pedido-itens th, .pedido-itens td { white-space: nowrap; }
.pedido-itens th:nth-child(2), .pedido-itens td:nth-child(2) { white-space: normal; width: 100%; min-width: 180px; }
.pedido-itens td input { width: 84px; }
.pedido-itens td:nth-child(5) input { width: 110px; }
.pedido-itens td:last-child { text-align: center; width: 1%; }

@media (max-width: 720px) {
  .ped-info { flex-direction: column; }
}

/* Legenda curta do atalho de consigna??o: s? aparece no mobile */
.hdr-short { display: none; }

/* Mobile: cabe?alho enxuto ? atalhos s? ?cone, nome e ?cone redundante ocultos */
@media (max-width: 768px) {
  .header .hdr-txt { display: none; }
  .header #nomeUsuario { display: none; }
  .header .user-menu > .icon { display: none; }
  .header .user-menu { gap: 6px; }

  /* Atalho "Minha Consigna??o": bot?o com legenda, do mesmo tamanho do "Sair" */
  .header #linkConsignacao {
    padding: 6px 12px; border: 1px solid #2e7d32; border-radius: 4px;
    font-size: 12px; color: #2e7d32; background: none; gap: 5px; margin-right: 0;
  }
  .header #linkConsignacao .icon { font-size: 16px; }
  .header #linkConsignacao .hdr-short { display: inline; }

  /* Logo pode encolher pra caber o bot?o com legenda (sem estourar a largura) */
  .header .logo { min-width: 0; }
  .header .logo-text { overflow: hidden; text-overflow: ellipsis; }
}



/* =====================================================
   REFINO DO TOPO PUBLICO
   ===================================================== */
.header {
  height: auto;
  background: #fffdfb;
  border-bottom: 1px solid var(--tema-borda);
  box-shadow: 0 4px 18px rgba(62, 47, 54, .08);
  overflow-x: clip;
}
.header-utility {
  background: var(--tema-suave);
  color: var(--tema-texto);
  border-bottom: 1px solid var(--tema-borda);
}
.header-utility-inner {
  max-width: 1400px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.header-utility a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tema-texto-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: .94;
}
.header-utility a:hover { opacity: 1; color: var(--tema-titulo); }
.header-utility .icon { font-size: 18px; color: var(--tema-realce); }
.header-inner {
  height: 76px;
  color: var(--tema-titulo);
  gap: 22px;
}
.header .logo {
  min-width: 150px;
  padding: 6px 0;
}
.header .logo-text {
  color: var(--tema-titulo);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .1px;
  line-height: 1.05;
}
.header-nav {
  gap: 14px;
  min-width: 0;
}
.dropdown-toggle {
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--tema-borda);
  border-radius: 999px;
  color: var(--tema-texto);
  background: var(--tema-suave-claro);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.dropdown-toggle:hover {
  background: var(--tema-suave);
  border-color: var(--tema-borda-forte);
}
.dropdown-menu {
  border: 1px solid var(--tema-borda);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(62,47,54,.12);
}
.search-form {
  height: 44px;
  max-width: 580px;
  border: 1px solid var(--tema-borda);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(62,47,54,.06);
}
.search-input {
  padding: 0 16px 0 18px;
  color: var(--tema-titulo);
  font-size: 14px;
}
.search-input::placeholder { color: var(--tema-placeholder); }
.search-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  color: var(--tema-primario);
  border-radius: 50%;
}
.search-btn:hover { color: var(--tema-texto-2); background: var(--tema-suave); }
.user-area { gap: 10px; }
.btn-entrar,
.btn-cart,
.btn-sair,
.user-menu a {
  min-height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.btn-entrar {
  padding: 0 18px;
  background: var(--tema-primario);
  color: #fff;
  box-shadow: 0 7px 16px var(--tema-sombra-cta);
}
.btn-entrar:hover { opacity: 1; background: var(--tema-primario-escuro); }
.btn-cart {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  color: var(--tema-primario);
  border: 1px solid var(--tema-borda);
  background: var(--tema-suave-claro);
}
.btn-cart:hover { background: var(--tema-suave); border-color: var(--tema-borda-forte); }
.cart-badge { background: var(--tema-primario); }
.user-menu {
  color: var(--tema-texto);
  gap: 10px;
}
.user-menu a {
  padding: 0 12px !important;
  margin-right: 0 !important;
  color: var(--tema-texto-3) !important;
  border: 1px solid var(--tema-borda);
  background: var(--tema-suave-claro);
}
.user-menu a:hover { background: var(--tema-suave); }
.btn-sair {
  padding: 0 14px;
  color: var(--tema-texto-3);
  border-color: var(--tema-borda);
  background: #fff;
}
.btn-sair:hover { background: var(--tema-suave); }
.btn-hamburger { color: var(--tema-texto-3); }
.login-notice {
  background: #fff8ee;
  border-top: 1px solid rgba(214,173,97,.18);
  border-bottom: 1px solid rgba(214,173,97,.28);
  padding: 10px 16px;
}
.login-notice-inner {
  min-height: 42px;
  gap: 14px;
}
.login-notice .icon { color: var(--tema-realce) !important; }
.login-notice-text strong { color: var(--tema-titulo); font-size: 14px; }
.login-notice-text span { color: var(--tema-texto-suave); }
.login-notice-actions .btn {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
}
.login-notice-actions .btn-primary {
  background: var(--tema-primario);
  color: #fff;
}
.login-notice-actions .btn-secondary {
  border-color: var(--tema-primario);
  color: var(--tema-primario);
  background: #fff;
}

@media (max-width: 900px) {
  .header-utility { display: none; }
  .header-inner { gap: 14px; }
  .header .logo { min-width: 112px; }
  .search-form { max-width: none; }
  .header .hdr-txt,
  .header #nomeUsuario { display: none; }
  .user-menu { gap: 6px; }
  .user-menu a { min-width: 40px; justify-content: center; }
}

@media (max-width: 768px) {
  .header-utility { display: none; }
  .header-inner { height: 64px; padding: 0 12px; }
  .header-nav { display: none; }
  .btn-entrar { min-height: 38px; width: 38px; padding: 0; justify-content: center; }
  .btn-entrar span:last-child { display: none; }
  .btn-cart { width: 38px; height: 38px; }
  .btn-hamburger { display: flex; }
  .login-notice-inner { align-items: flex-start; }
}

/* Refinamento da lateral de categorias */
.sidebar-cats {
  border: 1px solid var(--tema-borda);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(62,47,54,.06);
}
.sidebar-cats h3 {
  background: var(--tema-suave-claro);
  color: var(--tema-texto-2);
  border-bottom: 1px solid var(--tema-borda);
  font-size: 12px;
  letter-spacing: .08em;
}
.sidebar-cats ul li a,
.sidebar-cats ul li button {
  padding: 11px 16px;
  color: #4b4245;
  border-bottom: 1px solid #f1e8eb;
}
.sidebar-cats ul li a:hover,
.sidebar-cats ul li button:hover {
  background: var(--tema-suave-claro);
  color: var(--tema-primario);
}
.sidebar-cats ul li.active a,
.sidebar-cats ul li.active button {
  background: var(--tema-suave);
  border-left: 4px solid var(--tema-primario);
  color: var(--tema-texto-2);
  font-weight: 800;
}
/* =====================================================
   CORRECAO CATALOGO PUBLICO - largura e cards
   ===================================================== */
html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

.header,
.header-utility,
.banner-section,
.footer {
  max-width: 100vw;
}

.header-inner,
.header-utility-inner,
.footer-inner {
  width: min(100%, 1400px);
  min-width: 0;
}

.header-brandline,
.user-area,
.products-section,
.products-header,
.products-tools,
.ph-search,
.sort-dropdown {
  min-width: 0;
}

.page-content {
  display: grid;
  grid-template-columns: minmax(200px, var(--sidebar-w)) minmax(0, 1fr);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: clip;
}

.products-grid {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-items: stretch;
}

.product-card {
  min-width: 0;
}

.card-title,
.card-meta,
.card-preco,
.card-preco-pix,
.card-preco-cartao,
.card-desconto-hint,
.card-stock {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-stock {
  color: #666;
  font-size: 11px;
  text-align: center;
}

.catalog-empty {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--tema-borda);
  border-radius: 10px;
  padding: 34px 20px;
  text-align: center;
  color: var(--tema-texto-suave);
  box-shadow: var(--shadow-sm);
}

.catalog-empty .icon {
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--tema-realce);
}

.catalog-empty strong {
  display: block;
  color: var(--tema-titulo);
  margin-bottom: 4px;
}

.catalog-empty-error .icon {
  color: var(--danger);
}

@media (max-width: 900px) {
  .page-content {
    grid-template-columns: 1fr;
  }

  .sidebar-cats {
    display: none;
  }

  .products-header,
  .products-tools {
    align-items: stretch;
  }

  .products-tools {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .page-content {
    padding: 12px;
  }

  .products-tools {
    flex-direction: column;
  }

  .ph-search,
  .sort-dropdown,
  .sort-dropdown select {
    width: 100%;
    max-width: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Compatibilidade com a versao antiga em producao: banner por trilho flex, sem extrapolar no Edge.
   Alinhado ao container do site (1400px, igual header/conteudo) — artes 1400x400 sem corte. */
.banner-section {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ccc !important;
  contain: none !important;
  isolation: auto !important;
}
.banner-track-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  contain: none !important;
}
.banner-track {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  position: relative !important;
  overflow: visible !important;
  transition: transform .4s ease !important;
  box-sizing: content-box !important;
}
.banner-slide {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 0 0 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  max-width: none !important;
  height: 280px !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden !important;
}
.banner-slide img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.banner-dots {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.login-notice {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.login-notice-inner {
  width: min(100%, 1400px);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .banner-slide { height: 180px !important; }
}