/* =====================================================
   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;
  --btn-comprar:    #f2c226;
  --btn-comprar-txt:#212121;
  --link-color:     #f2c226;
  --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:      #1a73e8;
  --cartao-color:   #7b1fa2;
  --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);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--brand);
  min-height: 100vh;
  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;
  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;
  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; }

/* 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;
  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-shrink: 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;
  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: block;
  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-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; background: #ccc; }
.banner-track-wrapper {
  position: relative;
  overflow: hidden;
}
.banner-track {
  display: flex;
  transition: transform .4s ease;
}
.banner-slide {
  min-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;
  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; }

/* 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-fill, minmax(220px, 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;
}
.login-form-side {
  flex: 0 0 420px;
  max-width: 420px;
  padding: 48px 40px;
  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: calc(100vh - var(--header-h));
}
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  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; 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-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-detail { grid-template-columns: 1fr; }
  .login-page { flex-direction: column; }
  .login-form-side { flex: none; width: 100%; max-width: 100%; padding: 32px 20px; }
  .login-banner-side { padding: 24px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .admin-nav { display: flex; padding: 0; }
  .admin-nav-item { padding: 12px; flex-direction: column; gap: 4px; font-size: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .card-title { font-size: 12px; }
  .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;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-welcome {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.25);
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  text-align: center;
  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;
}

/* ─── 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);
}
