/* Tema escuro da loja. A cor personalizada continua nos botões e faixas. */

body.tema-escuro,
body.tema-escuro #main,
body.tema-escuro .body-estabelecimento {
  background: #121418 !important;
  color: #f3f4f6 !important;
}

body.tema-escuro .search-bar form,
body.tema-escuro .tv-search-app form,
body.tema-escuro .categoria .produto,
body.tema-escuro .categoria .novoproduto,
body.tema-escuro .novoproduto,
body.tema-escuro .tv-grid .produto,
body.tema-escuro .col-infinite .produto,
body.tema-escuro .produto-detalhes,
body.tema-escuro .produto .detalhes,
body.tema-escuro .categoria .produto .detalhes,
body.tema-escuro .sidebar,
body.tema-escuro .sidebar-content,
body.tema-escuro .sacola,
body.tema-escuro .sacola-table,
body.tema-escuro .modal-content,
body.tema-escuro .modal-lead-box,
body.tema-escuro .modal-variacao-box,
body.tema-escuro .tv-app-nav,
body.tema-escuro .tv-fab-menu,
body.tema-escuro .tv-cat-pill__circle,
body.tema-escuro .tv-modal-cats__chip,
body.tema-escuro .filter-select,
body.tema-escuro .fake-select,
body.tema-escuro .listagem,
body.tema-escuro .holder-interna {
  background: #1c1f26 !important;
  color: #f3f4f6 !important;
  border-color: #2e3340 !important;
}

body.tema-escuro #modalalerta .modal-header .close {
  color: #e8eaef !important;
  opacity: 0.9;
  text-shadow: none;
}

body.tema-escuro #modalalerta .modal-body span {
  color: #f3f4f6 !important;
}

body.tema-escuro #modalalerta .modal-body .alerta-icone-erro {
  border-color: #ff6d7b !important;
  color: #ff6d7b !important;
}

body.tema-escuro #modalalerta .modal-body .alerta-icone-sucesso {
  border-color: #55a630 !important;
  color: #55a630 !important;
}

body.tema-escuro .categoria .produto,
body.tema-escuro .categoria .novoproduto,
body.tema-escuro .novoproduto,
body.tema-escuro .tv-grid .produto {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body.tema-escuro .produto .nome,
body.tema-escuro .produto .nome span,
body.tema-escuro .produto .valor,
body.tema-escuro .produto .valor span,
body.tema-escuro .produto-detalhes .nome span,
body.tema-escuro .produto-detalhes .descricao,
body.tema-escuro .produto-detalhes .descricao span,
body.tema-escuro .categoria .produto .detalhes,
body.tema-escuro .categoria .produto .detalhes span,
body.tema-escuro .novoproduto,
body.tema-escuro .novoproduto span,
body.tema-escuro .sidebar,
body.tema-escuro .sidebar a,
body.tema-escuro .tv-app-nav__item,
body.tema-escuro .tv-app-nav__label,
body.tema-escuro .tv-cat-pill__txt,
body.tema-escuro .bread,
body.tema-escuro .bread a,
body.tema-escuro p,
body.tema-escuro label,
body.tema-escuro h1,
body.tema-escuro h2,
body.tema-escuro h3,
body.tema-escuro h4 {
  color: #f3f4f6;
}

body.tema-escuro .produto-detalhes .valor_anterior span,
body.tema-escuro .valor_anterior,
body.tema-escuro .text-muted {
  color: #9ca3af !important;
}

body.tema-escuro .formas-pagamento-titulo,
body.tema-escuro .formas-pagamento-titulo i {
  color: #f3f4f6 !important;
}

body.tema-escuro input,
body.tema-escuro select,
body.tema-escuro textarea {
  background: #0f1115 !important;
  color: #f3f4f6 !important;
  border-color: #3a4150 !important;
}

body.tema-escuro .tv-search-app input[type="text"],
body.tema-escuro .search-bar input[type="text"] {
  background: transparent !important;
  color: #f3f4f6 !important;
}

body.tema-escuro .tv-app-nav {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45) !important;
}

/* Com imagem: fundo inline/preview; sem imagem: cor do lojista (.cover-sem-imagem em style.php) */
body.tema-escuro .cover:not(.cover-sem-imagem) {
  background-color: transparent !important;
}

body.tema-escuro .cover.cover-sem-imagem {
  background-image: none !important;
}

body.tema-escuro .cover img,
body.tema-escuro .avatar img,
body.tema-escuro .brand img {
  opacity: 1 !important;
  visibility: visible !important;
}

body.tema-escuro .botao-acao,
body.tema-escuro .footer-info,
body.tema-escuro .minitop,
body.tema-escuro .floatbar,
body.tema-escuro .sidebar .sidebar-header {
  color: #fff !important;
}

body.tema-escuro #installButton,
body.tema-escuro #showInstructionsButton,
body.tema-escuro #closePopupButton {
  background: #2a2e38 !important;
  color: #f3f4f6 !important;
  border: 1px solid #3a4150 !important;
}

body.tema-escuro #instructionsPopup,
body.tema-escuro #instructionsPopup .popup-content {
  background: #1c1f26 !important;
  color: #f3f4f6 !important;
}

body.tema-escuro .app-infos .info-badge {
  border-right-color: rgba(255, 255, 255, 0.16) !important;
}

/* Cabeçalho da loja: título, descrição e badges (template usa #333 / preto) */
body.tema-escuro .app-infos .title,
body.tema-escuro .app-infos .description {
  color: #f3f4f6 !important;
}

body.tema-escuro .app-infos .info-badge i {
  color: #ffffff !important;
}

body.tema-escuro .app-infos .info-badge span,
body.tema-escuro .app-infos .info-badge span a,
body.tema-escuro .app-infos .info-badge a {
  color: #ffffff !important;
  text-decoration: none;
}

body.tema-escuro .clearline {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.tema-escuro .grudado,
body.tema-escuro .sceneElement,
body.tema-escuro .categoria,
body.tema-escuro .container.nopadd {
  background: transparent;
  color: #f3f4f6;
}

/* Busca mobile / desktop */
body.tema-escuro .search-bar-mobile form,
body.tema-escuro .search-bar form {
  background: #1c1f26 !important;
  border: 1px solid #3a4150 !important;
}

body.tema-escuro .search-bar-mobile button i,
body.tema-escuro .search-bar button i {
  color: #d1d5db !important;
}

body.tema-escuro input::placeholder,
body.tema-escuro textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

/* Vitrine moderna: pills, modais e cards (modern-vitrine.css fixa tons claros) */
body.tema-escuro a.tv-cat-pill,
body.tema-escuro a.tv-cat-pill:hover,
body.tema-escuro .tv-infinite-menu.tv-cat-pill-row a.tv-cat-pill,
body.tema-escuro .tv-infinite-menu.tv-cat-pill-row a.tv-cat-pill:hover,
body.tema-escuro .tv-modal-cats__grid a {
  color: #e5e7eb !important;
}

body.tema-escuro .tv-cat-pill__txt,
body.tema-escuro .tv-cat-pill.active .tv-cat-pill__txt {
  color: #f3f4f6 !important;
}

body.tema-escuro .tv-modal-cats,
body.tema-escuro .tv-modal-cats__sheet {
  background: #1c1f26 !important;
  color: #f3f4f6 !important;
}

body.tema-escuro .tv-modal-cats__grid--lista .tv-modal-cats__chip {
  background: #2a2e38 !important;
  color: #e8eaef !important;
  border: 1px solid #3a4150 !important;
}

body.tema-escuro .categoria .title,
body.tema-escuro .categoria .titulo,
body.tema-escuro .categoria .title-categoria,
body.tema-escuro .categoria h2,
body.tema-escuro .categoria h3,
body.tema-escuro .categoria .vertudo,
body.tema-escuro .categoria .vertudo i,
body.tema-escuro .col-infinite-last .vertudo,
body.tema-escuro .col-infinite-last .vertudo i {
  color: #ffffff !important;
}

body.tema-escuro #main.body-estabelecimento .categoria .produtos .row.tv-grid .produto .nome,
body.tema-escuro .categoria .produto .nome,
body.tema-escuro .categoria .produto .nome span {
  color: #f3f4f6 !important;
}

body.tema-escuro #main.body-estabelecimento .categoria .produtos .row.tv-grid .produto .valor,
body.tema-escuro .categoria .produto .valor,
body.tema-escuro .categoria .produto .valor span {
  color: #93c5fd !important;
}

body.tema-escuro #main.body-estabelecimento .categoria .produtos .row.tv-grid .produto .apenas,
body.tema-escuro .categoria .produto .apenas {
  color: #e5e7eb !important;
}

body.tema-escuro .categoria .produto .detalhes,
body.tema-escuro .categoria .produto .detalhes span,
body.tema-escuro .categoria .produto .detalhes i {
  color: #fff !important;
}

body.tema-escuro .tv-app-nav__item:not(.tv-app-nav__item--active) .tv-app-nav__label,
body.tema-escuro .tv-app-nav__item:not(.tv-app-nav__item--active) i {
  color: #e5e7eb !important;
}

body.tema-escuro .tv-app-nav__item--active .tv-app-nav__label,
body.tema-escuro .tv-app-nav__item--active i {
  color: #f3f4f6 !important;
}

/* Menu lateral (Sidr) e páginas internas */
body.tema-escuro #sidr,
body.tema-escuro .sidr {
  background: #1c1f26 !important;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5) !important;
}

body.tema-escuro #sidr ul li a,
body.tema-escuro #sidr ul li span,
body.tema-escuro .sidr ul li a {
  color: #e8eaef !important;
  border-color: #2e3340 !important;
}

body.tema-escuro .fake-select,
body.tema-escuro .filter-select {
  color: #f3f4f6 !important;
}

body.tema-escuro .sacola-table td,
body.tema-escuro .sacola-table th,
body.tema-escuro .listagem a {
  color: #e8eaef !important;
}

/* Sacola: nomes são links — default.css fixa a { color: #333 } */
body.tema-escuro .sacola-table a,
body.tema-escuro .sacola-table a:hover,
body.tema-escuro .sacola-table a:active,
body.tema-escuro .sacola-table a:focus,
body.tema-escuro .sacola-table .nome,
body.tema-escuro .sacola-table tr td.td-nome .nome,
body.tema-escuro .sacola-table tr td.td-nome span {
  color: #f3f4f6 !important;
}

body.tema-escuro .sacola-table .td-detalhes span {
  color: #e5e7eb !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Sacola: .rowtitle fica fora de .sacola; .title-icon span vem com #333 do template */
body.tema-escuro .rowtitle .title-icon span {
  color: #f3f4f6 !important;
}

/* Ícone home no bread — style.php força a cor da loja com !important */
body.tema-escuro .rowtitle .bread i {
  color: #f3f4f6 !important;
}

/* Sacola vazia + subtotal: template.css usa rgba(0,0,0,.6) / herança #333 */
body.tema-escuro .sacola .nulled,
body.tema-escuro .sacola-null .nulled,
body.tema-escuro .sacola-table .nulled,
body.tema-escuro .listing-table .nulled {
  color: #f3f4f6 !important;
}

@media (max-width: 991px) {
  body.tema-escuro .sacola .rowtitle {
    background: transparent !important;
  }
}

body.tema-escuro .purchase-notification,
body.tema-escuro .notification-popup {
  background: #1c1f26 !important;
  color: #f3f4f6 !important;
  border: 1px solid #3a4150 !important;
}

/* Toast “acabou de comprar” (estilos inline em index.php) */
body.tema-escuro #notificationToast .notification-content {
  background: #1c1f26 !important;
  border: 1px solid #3a4150 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55) !important;
}

body.tema-escuro #notificationToast .notification-icon {
  background: #2a2e38 !important;
  color: #4ade80 !important;
}

body.tema-escuro #notificationToast .notification-message,
body.tema-escuro #notificationToast .notification-message strong,
body.tema-escuro #notificationToast .notification-product {
  color: #ffffff !important;
}

body.tema-escuro #notificationToast .notification-close,
body.tema-escuro #notificationToast .notification-close i {
  color: #e5e7eb !important;
}

body.tema-escuro #notificationToast .notification-progress {
  background: #3a4150 !important;
}

/* Desktop: menu e rótulos do topo (template.css usa #333 / #262222) */
@media (min-width: 992px) {
  body.tema-escuro .header .top {
    background: #121418 !important;
  }

  body.tema-escuro .brand span,
  body.tema-escuro .brand a span {
    color: #ffffff !important;
  }

  body.tema-escuro .holder-shop-bag span,
  body.tema-escuro .holder-shop-bag .cash {
    color: #ffffff !important;
  }

  body.tema-escuro .holder-shop-bag > a i,
  body.tema-escuro .holder-shop-bag i.icone {
    color: #ffffff !important;
  }

  body.tema-escuro .navigator,
  body.tema-escuro .naver {
    background: #121418 !important;
    border-top-color: #2e3340 !important;
    border-bottom-color: #2e3340 !important;
  }

  body.tema-escuro .naver .navbar a,
  body.tema-escuro .naver .navbar span,
  body.tema-escuro .naver .navbar a:hover,
  body.tema-escuro .naver .navbar a:active,
  body.tema-escuro .naver .navbar a:focus,
  body.tema-escuro .naver .navbar .active a,
  body.tema-escuro .naver .navbar span:hover,
  body.tema-escuro .naver .navbar span:active,
  body.tema-escuro .naver .navbar span:focus,
  body.tema-escuro .naver .navbar .active span {
    color: #ffffff !important;
  }

  body.tema-escuro .naver .navbar a:hover,
  body.tema-escuro .naver .navbar a:active,
  body.tema-escuro .naver .navbar a:focus,
  body.tema-escuro .naver .navbar .active a {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  body.tema-escuro .navbar-nav > li > .dropdown-menu {
    background: #1c1f26 !important;
    border-color: #3a4150 !important;
  }

  body.tema-escuro .navbar-nav > li > .dropdown-menu a,
  body.tema-escuro .navbar-nav > li > .dropdown-menu a:hover {
    color: #ffffff !important;
    border-bottom-color: #2e3340 !important;
  }

  body.tema-escuro .navbar-nav > li > .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  body.tema-escuro .naver .navbar .social a i {
    color: #ffffff !important;
  }
}

/* Cor preta da loja: ícones do menu (Ofertas, Informações…) — texto branco, ícone vinha preto */
body.tema-escuro.cor-loja-preta .naver .navbar a i,
body.tema-escuro.cor-loja-preta .naver .navbar span i,
body.tema-escuro.cor-loja-preta .naver .navbar .icon-right,
body.tema-escuro.cor-loja-preta .bread i,
body.tema-escuro.cor-loja-preta .title-line i,
body.tema-escuro.cor-loja-preta .search-bar button i,
body.tema-escuro.cor-loja-preta .search-bar-mobile button i,
body.tema-escuro.cor-loja-preta .campo-numero i,
body.tema-escuro.cor-loja-preta .funcionamento-mobile i,
body.tema-escuro.cor-loja-preta .categoria .vertudo i,
body.tema-escuro.cor-loja-preta .user-menu i,
body.tema-escuro.cor-loja-preta .holder-shop-bag i,
body.tema-escuro.cor-loja-preta .header .naver .navbar .social a i {
  color: #ffffff !important;
}

body.tema-escuro.cor-loja-preta .naver .navbar-nav > li i,
body.tema-escuro.cor-loja-preta .naver .navbar i.lni,
body.tema-escuro.cor-loja-preta .search-bar i.lni,
body.tema-escuro.cor-loja-preta .app-infos .info-badge i.lni,
body.tema-escuro.cor-loja-preta .minitop .info-badge i.lni {
  color: #ffffff !important;
}

/* Cabeçalho / rodapé: fundo = cor do lojista (style.php); só ajusta texto/ícones no dark */
body.tema-escuro .header .top,
body.tema-escuro .minitop,
body.tema-escuro .header-interna,
body.tema-escuro .locked-bar .minitop {
  color: #ffffff !important;
}

body.tema-escuro .header .top .user-menu i,
body.tema-escuro .header .top .shop-bag i,
body.tema-escuro .header .top .holder-shop-bag i,
body.tema-escuro .header-interna .title,
body.tema-escuro .header-interna .title span {
  color: #ffffff !important;
}

/* “Alterar” no checkout/pedido — fora do .header-interna; default.css fixa a { #333 } */
body.tema-escuro a.back-button,
body.tema-escuro a.back-button span,
body.tema-escuro .back-button,
body.tema-escuro .back-button span,
body.tema-escuro .back-button:hover,
body.tema-escuro .back-button:focus,
body.tema-escuro .back-button:active,
body.tema-escuro .back-button i {
  color: #ffffff !important;
}

body.tema-escuro .back-button {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Rodapé / endereço */
body.tema-escuro .footer .footer-info,
body.tema-escuro .footer .footer-info span {
  color: #ffffff !important;
}

/* Checkout: título “Resumo do pedido” legível no escuro */
body.tema-escuro .titler .title-line,
body.tema-escuro .titlerzero .title-line,
body.tema-escuro .holder-interna .title-line span,
body.tema-escuro .titler .title-line span,
body.tema-escuro .titlerzero .title-line span {
  color: #f3f4f6 !important;
  border-bottom-color: #3a4150 !important;
}

/* Recibo / resumo — sempre papel claro + texto preto (não herdar branco do body) */
body.tema-escuro .comprovante,
body.tema-escuro .comprovante .content {
  background: #fef9da !important;
  color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  text-align: left !important;
}

body.tema-escuro .comprovante .content,
body.tema-escuro .comprovante .content * {
  color: #111111 !important;
}

body.tema-escuro .comprovante-parent .alerta-comprovante {
  color: #e5e7eb !important;
}

/* PIX / QR na loja (obrigado, pagamento) */
body.tema-escuro .custom-qr-code + p,
body.tema-escuro .header-interna ~ .container p,
body.tema-escuro .line-botoes p,
body.tema-escuro .pagamento-area p,
body.tema-escuro .pagamento-area span,
body.tema-escuro .strupper {
  color: #f3f4f6 !important;
}

body.tema-escuro .footer .social a,
body.tema-escuro .footer .social a i {
  color: #ffffff !important;
}

/* Logo Crafts no rodapé (desktop — .copyright) */
body.tema-escuro .footer .copyright {
  background: #121418 !important;
}

body.tema-escuro .footer .copyright .watermark img {
  opacity: 0.92 !important;
  filter: brightness(1.15) !important;
}

/* Textos secundários na vitrine → branco ou quase branco */
body.tema-escuro .tv-cat-pill__txt,
body.tema-escuro .paginacao a,
body.tema-escuro .paginacao span {
  color: #f3f4f6 !important;
}

/* Página do produto: faixa fixa Total + Comprar (modern-vitrine.css usa fundo branco) */
@media (max-width: 991px) {
  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar {
    background: #1c1f26 !important;
    border: 1px solid #3a4150 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
  }

  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .subtotal,
  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .subtotal strong,
  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .subtotal span {
    color: #f3f4f6 !important;
  }

  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .sacola-adicionar,
  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .botao-acao {
    color: #ffffff !important;
  }

  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .botao-acao i,
  body.tema-escuro.has-tv-app-nav .single-produto #the_form .line.botoes.subtotal-adicionar .botao-acao span {
    color: #ffffff !important;
  }
}

@media (max-width: 767px) {
  body.tema-escuro input,
  body.tema-escuro select,
  body.tema-escuro textarea {
    font-size: 16px !important;
  }
}
