/* ------------------------------------------------------------ */
/* CORREÇÃO FOOTER — ps_linklist — eBusiness Theme (Motocar)    */
/* Evita que os links apareçam colados (ex.: "Entrega•Legal")  */
/* ------------------------------------------------------------ */

.links .wrapper ul li {
  display: block !important;
  margin-bottom: 6px !important;
  line-height: 1.4em !important;
}

.links .wrapper ul {
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.links .wrapper ul li a {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
}

/* Correção de temas que forçam inline-block nos <li> */
.links ul li,
.block-links ul li {
  display: block !important;
}

/* Evita bullets colados ou símbolos estranhos */
.links ul li::marker {
  font-size: 0 !important;
}

/* ------------------------------------------------------------ */
/* LINHAS DE PRODUTO                                           */
/* ------------------------------------------------------------ */

.product .line {
  /* padrão: manter */
}

.product .line:empty {
  display: none !important;
}

.product .line + .line {
  display: none;
}

/* ------------------------------------------------------------ */
/* FORÇAR MENU ETS ACIMA DE TODO O CONTEÚDO                     */
/* ------------------------------------------------------------ */

#header,
.header_content,
.header-top,
.ets_mm_megamenu,
.ets_mm_megamenu_content,
.mm_menus_ul {
  position: relative;
  z-index: 9999 !important;
}

/* GARANTIR QUE O CONTEÚDO NÃO SOBE */
#wrapper,
.maincontent_v1,
#content-wrapper {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------ */
/* HOME – YOUTUBE SECTION                                      */
/* ------------------------------------------------------------ */

.home-youtube-section {
  clear: both;
  width: 100%;
  margin: 80px 0;
  position: relative;
  z-index: 2;
}

.home-youtube-section * {
  box-sizing: border-box;
}

.home-youtube-section .youtube-channel-widget {
  margin-top: 0;
}

/* ------------------------------------------------------------ */
/* BACKGROUND LATERAL APENAS                                   */
/* ------------------------------------------------------------ */

body {
  background:
    linear-gradient(
      rgba(0,0,0,0.55),
      rgba(0,0,0,0.55)
    ),
    url("/themes/ebusiness/assets/img/concessionario-bg.jpg")
    center top no-repeat fixed;
  background-size: cover;
}

#content-wrapper {
  background: #ffffff;
  padding: 30px;
}

.category-top-menu {
  background: #fff;
}

/* garante que o conteúdo fica acima do background */
#wrapper {
  position: relative;
  z-index: 2;
}

#wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  #wrapper {
    margin: 0;
    max-width: 100%;
  }
}

/* ------------------------------------------------------------ */
/* DARK BACKGROUND GLOBAL                                      */
/* ------------------------------------------------------------ */

body {
  background-color: #222222;
  color: #222222;
}

/* Texto geral */
body,
p,
span,
li,
label,
div {
  color: #ffffff;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
}

/* Links */
a {
  color: #ffffff;
}

a:hover {
  color: #cccccc;
}

/* ------------------------------------------------------------ */
/* CONTAINERS PRINCIPAIS                                       */
/* ------------------------------------------------------------ */

#wrapper,
#content,
.container,
.container-fluid {
  background-color: transparent;
}

/* Cards, boxes e módulos */
.block,
.card,
.product-miniature,
.thumbnail-container,
.box,
.panel {
  background-color: #222222;
  color: #222222;
}

/* Nome do produto */
.product-title,
.product-title a {
  color: #ffffff;
}

/* Preços */
.price,
.current-price,
.product-price {
  color: #ffffff;
}

/* Descrição */
.product-description,
.product-desc {
  color: #dddddd;
}

/* Botões */
.btn,
button,
input[type="submit"] {
  background-color: #d32f2f;
  color: #ffffff;
  border: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #b71c1c;
}

/* ------------------------------------------------------------ */
/* FUNDO GLOBAL - DARK MODE                                    */
/* ------------------------------------------------------------ */

body {
  background-color: #222222 !important;
  color: #ffffff;
}

/* Wrappers principais */
#wrapper,
#content-wrapper,
#main,
#content,
.page-content,
.page-wrapper {
  background-color: #222222 !important;
}

/* Containers Bootstrap */
.container,
.container-fluid {
  background-color: transparent !important;
}

/* Blocos e cards */
.block,
.card,
.box,
.panel,
.thumbnail-container {
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Produtos */
.product-miniature,
.product-container {
  background-color: #2a2a2a;
}

/* Footer e Header */
#header,
#footer {
  background-color: #222222 !important;
}

/* Font Awesome */
.fa,
.fa::before,
.fa::after,
i.fa {
  color: #ffffff !important;
}

.custom_service li i::after {
  border-color: #ffffff !important;
}

/* Ícones em blocos dark */
i[class^="fa"],
i[class*=" fa-"] {
  color: #ffffff !important;
}

/* ------------------------------------------------------------ */
/* CORRIGIR ELEMENTOS BRANCOS (eBusiness)                       */
/* ------------------------------------------------------------ */

h4.h1.products-section-title.text-uppercase::before {
  background-color: #ffffff !important;
}

.owl-prev::before,
.owl-next::before {
  background-color: #222222 !important;
  color: #ffffff !important;
}

.owl-prev::after,
.owl-next::after {
  background-color: #222222 !important;
  color: #ffffff !important;
}

.owl-prev.disabled::before,
.owl-next.disabled::before {
  background-color: #222222 !important;
  opacity: 0.4;
}

.products-section-title span {
  background-color: #222222 !important;
  color: #ffffff !important;
}

.thumbnail-container {
  background-color: #222222 !important;
}

#ybc-mnf-block,
#ybc-mnf-block * {
  background-color: #222222 !important;
}

.youtube-channel-widget {
  background-color: #222222 !important;
  color: #ffffff;
}

.youtube-channel-widget * {
  color: #ffffff;
}

.product-description {
  background-color: #222222 !important;
  color: #dddddd;
}

.ybc_block_slider *  ,
.ybc_block_latest *  ,
.ybc_blog_popular *   {
  background-color: #222222 !important;
  color: #ffffff;
}

.youtube-channel-widget h3 {
  color: #ffffff !important;
}

/* ------------------------------------------------------------ */
/* OUTROS BLOCOS                                               */
/* ------------------------------------------------------------ */

.slide-info {
  background-color: #2a2a2a !important;
  color: #ffffff;
}

.breadcrumb_wrapper {
  background-color: #2a2a2a !important;
  color: #ffffff;
}

.breadcrumb_wrapper a {
  color: #ffffff;
}

.breadcrumb_wrapper span,
.breadcrumb_wrapper li {
  color: #ffffff;
}

.category-top-menu {
  background-color: #2a2a2a !important;
}

.category-top-menu li,
.category-top-menu a {
  color: #ffffff !important;
}

.category-top-menu a:hover {
  color: #cccccc !important;
}

.title_block,
.title_blog,
.title_block *,
h4.title_blog,
h4.title_block,
h4.h1.products-section-title {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

.block_content,
.content_block,
.block_content *,
.content_block * {
  background-color: #2a2a2a !important;
  color: #ffffff;
}

.block_content input,
.content_block input {
  background-color: #222222;
  color: #ffffff;
  border: 1px solid #444;
}

.featured-posts,
.featured-posts h4,
.featured-posts-header {
  background-color: #2a2a2a;
  color: #ffffff;
}

.category-top-menu li {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

.category-top-menu li a {
  color: #ffffff !important;
}

.category-top-menu li:hover {
  background-color: #333333 !important;
}

nav.pagination {
  background-color: #2a2a2a !important;
  color: #ffffff;
}

nav.pagination,
nav.pagination * {
  color: #ffffff !important;
}

nav.pagination ul li {
  background-color: #2a2a2a !important;
}

nav.pagination a {
  color: #ffffff !important;
  background-color: #2a2a2a !important;
  border: 1px solid #444;
}

nav.pagination a:hover {
  background-color: #333333 !important;
}

nav.pagination .current,
nav.pagination .active a {
  background-color: #444444 !important;
  color: #ffffff !important;
  border-color: #ffffff;
}

.product-miniature,
article.product-miniature {
  background-color: #222222 !important;
  margin-bottom: 0 !important;
}

.products.row {
  background-color: #222222 !important;
  row-gap: 30px;
}

article.product-miniature,
article.product-miniature.js-product-miniature,
article.product-miniature.js-product-miniature.reviews-loaded {
  background-color: #222222 !important;
}

.category-top-menu span,
.block_content span,
.sidebar span {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

.category-top-menu a span {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

.ybc_block_popular,
.ybc_blog_free,
.ybc_block_slider {
  background-color: #2a2a2a !important;
  color: #222222;
}

.ybc_block_popular *,
.ybc_blog_latest *,
.ybc_block_slider * {
  background-color: transparent !important;
  color: #222222;
}










/* Título "PRODUTOS POPULARES" – fundo correto */
h4.h1.products-section-title.text-uppercase {
    background-color: #222222 !important;
}
/* Bloco Blog Latest (home) – fundo igual a #222222 */
.block.ybc_block_latest.ybc_block_slider {
    background-color: #222222 !important;
}
/* Capa da imagem do produto – fundo correto */
.product-cover,
.product-cover--zoom {
    background-color: #222222 !important;
}
/* Tab ativa (Descrição, etc.) */
a.nav-link.active {
    background-color: #222222 !important;
    color: #ffffff !important;
    border-color: #444 !important;
}
/* Fundo das imagens do produto */
.product-cover img {
    background-color: #222222 !important;
}
/* Fundo dos cards de imagem dos produtos */
.product-thumbnail,
.thumbnail-container,
.thumbnail-container img {
    background-color: #222222 !important;
}
.thumbnail-container::before,
.product-thumbnail::before {
    background-color: transparent !important;
}


/* ===============================
   HEADER FIXO / STICKY
   =============================== */

/* Fundo quando fica sticky */
.ets_mm_megamenu.sticky_enabled,
.ets_mm_megamenu.transition_floating {
    background-color: #222222 !important;
}

/* Container interno do header sticky */
.ets_mm_megamenu.sticky_enabled .container,
.ets_mm_megamenu.transition_floating .container {
    background-color: transparent !important;
}

/* Links do menu no estado sticky */
.ets_mm_megamenu.sticky_enabled a,
.ets_mm_megamenu.transition_floating a {
    color: #ffffff !important;
}

/* Ícones (lupa, setas, etc.) */
.ets_mm_megamenu.sticky_enabled i,
.ets_mm_megamenu.transition_floating i {
    color: #ffffff !important;
}
/* Títulos dos posts (blog cards) */
a.ybc_title_block {
    color: #ffffff !important;
}
/* Descrição dos artigos do blog */
.blog_description {
    color: #ffffff !important;
}
/* Texto dos conteúdos do blog (descrições e parágrafos) */
.ybc_blog_free p,
.ybc_blog_free li,
.ybc_blog_free span,
.ybc_blog_free div {
    color: #ffffff !important;
}
/* TEXTO DO DROPDOWN DO MEGAMENU (ETS) */
.ets_mm_megamenu .ets_mm_categories a,
.ets_mm_megamenu .ets_mm_categories li,
.ets_mm_megamenu .ets_mm_block_content a,
.ets_mm_megamenu .ets_mm_block_content span {
    color: #222222 !important;
}






/* ================================
   MENU MOBILE – ETS MEGAMENU
   ================================ */

/* Fundo do menu mobile */
ul.mm_menus_ul,
ul.mm_menus_ul.active {
    background-color: #222222 !important;
}

/* Texto dos itens */
ul.mm_menus_ul li,
ul.mm_menus_ul li a {
    color: #ffffff !important;
}

/* Header do menu mobile (MENU / BACK) */
.ets_mm_megamenu .mm_mobile_header,
.ets_mm_megamenu .mm_mobile_header * {
    background-color: #222222 !important;
    color: #ffffff !important;
}

/* Setas ( > ) e ícones */
ul.mm_menus_ul .arrow,
ul.mm_menus_ul .arrow::before,
ul.mm_menus_ul .arrow::after {
    color: #ffffff !important;
}

/* Hover / active */
ul.mm_menus_ul li:hover,
ul.mm_menus_ul li.active {
    background-color: #2a2a2a !important;
}
/* =========================================
   DESATIVAR QUICK VIEW NO MOBILE
   ========================================= */
@media (max-width: 991px) {
  .quick-view,
  a.quick-view {
    display: none !important;
  }
}
@media (max-width: 991px) {
    .select-title {
        background-color: #222222 !important;
        color: #ffffff !important;
        border: 1px solid #444;
    }

    .select-title i {
        color: #ffffff !important;
    }
}
/* FIX posição do select-title (mobile) */
a.select-title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}
a.select-title {
    display: inline-flex;
    margin-left: auto;
}
/* Blog – bloco SEARCH */
.block.ybc_block_search.ybc_blog_free_ltr_mode {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Texto e links dentro do search */
.block.ybc_block_search.ybc_blog_free_ltr_mode *,
.block.ybc_block_search.ybc_blog_free_ltr_mode a {
    color: #ffffff !important;
}

/* Input do search */
.block.ybc_block_search.ybc_blog_free_ltr_mode input {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

/* Ícone da lupa */
.block.ybc_block_search.ybc_blog_free_ltr_mode i {
    color: #ffffff !important;
}

/* Blog – bloco TAGS */
.block.ybc_block_tag.ybc_blog_free_ltr_mode {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Conteúdo interno */
.block.ybc_block_tag.ybc_blog_free_ltr_mode *,
.block.ybc_block_tag.ybc_blog_free_ltr_mode a {
    color: #ffffff !important;
}

/* Tags individuais (se existirem) */
.block.ybc_block_tag.ybc_blog_free_ltr_mode a:hover {
    color: #cccccc !important;
}

/* Blog – bloco GALLERY */
.block.ybc_blog_free_ltr_mode.ybc_block_gallery.page_blog_gallery.ybc_block_default {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Conteúdo interno */
.block.ybc_blog_free_ltr_mode.ybc_block_gallery * {
    color: #ffffff !important;
}

/* Título "BLOG GALLERY +" */
.block.ybc_blog_free_ltr_mode.ybc_block_gallery h4,
.block.ybc_blog_free_ltr_mode.ybc_block_gallery .title_block {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Thumbnails da galeria */
.block.ybc_blog_free_ltr_mode.ybc_block_gallery img {
    background-color: #222222 !important;
}
/* =====================================================
   FIX BUG ETS MEGAMENU – COLUNA ESCURA AO HOVER
   ===================================================== */

/* remover fundo escuro do hover da coluna */
.ets_mm_megamenu_content .mm_columns_ul > li:hover,
.ets_mm_megamenu_content .mm_blocks_li:hover,
.ets_mm_megamenu_content .ets_mm_block:hover {
    background-color: transparent !important;
}

/* garantir que nenhuma coluna cria overlay */
.ets_mm_megamenu_content .mm_columns_ul > li {
    background-color: transparent !important;
}







div.image_item_product {
    background-color: #222222 !important;
}


/* FIX – Tabs / Nav links com texto branco */
a.nav-link {
    color: #ffffff !important;
}

/* Hover opcional */
a.nav-link:hover {
    color: #ec4249 !important; /* vermelho Motocar */
}
.quickview .modal-content {
    background-color: #222222 !important;
    color: #ffffff;
}
.quickview,
.quickview p,
.quickview span,
.quickview li,
.quickview label,
.quickview div {
    color: #ffffff !important;
}
.quickview .product-cover,
.quickview .product-cover img,
.quickview .thumbnail-container {
    background-color: #222222 !important;
}
.quickview .product-title,
.quickview .current-price,
.quickview .product-description {
    color: #ffffff !important;
}
.modal-backdrop.in {
    background-color: rgba(0,0,0,0.8);
}
/* FIX fundo da linha (partilhar / separador) */
div.line.clearfix {
    background-color: #222222 !important;
}
/* FIX – títulos h1 no dark mode */
h1,
h1.h1 {
    color: #ffffff !important;
}





/* COLUNA DO LOGO */
#_desktop_logo {
    display: flex;
    align-items: center; /* centra verticalmente */
}
/* LOGO */
#_desktop_logo img.logo {
    height: 50px !important;   /* ajusta aqui */
    width: auto !important;
    max-height: none !important;
}
/* ROW DO HEADER */
#header .row {
    min-height: 80px;
    align-items: center;
}
/* LOGO NO STICKY */
.ets_mm_megamenu.sticky_enabled #_desktop_logo img.logo,
.ets_mm_megamenu.transition_floating #_desktop_logo img.logo {
    height: 52px !important; /* ligeiramente menor */
}
/* =========================================
   ETS MEGAMENU – HOVER APENAS TEXTO VERMELHO
   (sem background)
   ========================================= */

/* REMOVE QUALQUER FUNDO NO HOVER */
.ets_mm_megamenu li:hover,
.ets_mm_megamenu li:hover > a,
.ets_mm_megamenu .ets_mm_categories li:hover,
.ets_mm_megamenu .ets_mm_categories li:hover > a {
    background-color: transparent !important;
}

/* TEXTO NORMAL */
.ets_mm_megamenu a {
    color: #222222;
}

/* HOVER = SÓ TEXTO VERMELHO */
.ets_mm_megamenu a:hover {
    color: #ec4249 !important;
}

/* GARANTE QUE NÃO EXISTEM OVERLAYS / PSEUDOS */
.ets_mm_megamenu li::before,
.ets_mm_megamenu li::after {
    display: none !important;
}
/* Override fundo do detalhe do blog (ybc_blog) */
body .ybc-blog-wrapper-detail {
  background-color: #2a2a2a !important;
}





/* Inputs e textarea do formulário de comentários */
body .ybc-blog-form-comment input,
body .ybc-blog-form-comment textarea {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid #555 !important;
}
body .ybc-blog-form-comment ::placeholder {
  color: #aaaaaa !important;
  opacity: 1;
}
body .ybc-blog-form-comment input,
body .ybc-blog-form-comment textarea {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}
body .ybc-blog-form-comment button,
body .ybc-blog-form-comment input[type="submit"] {
  background-color: #d32f2f;
  color: #ffffff;
  border: none;
}
/* Estado: utilizador não autenticado (Log in to post comments) */
body .ybc-blog-form-comment textarea,
body .ybc-blog-form-comment textarea[disabled],
body .ybc-blog-form-comment .ybc-blog-comment-login,
body .ybc-blog-form-comment .ybc-blog-comment-require-login,
body .ybc-blog-form-comment .alert {
  background-color: #1c1c1c !important;
  color: #cccccc !important;
  border: 1px solid #444 !important;
}
body .ybc-blog-form-comment {
  padding: 20px 30px;
  background: transparent !important;
}

body .ybc-blog-form-comment textarea {
  min-height: 80px;
  resize: none;
}
body .ybc-blog-form-comment {
  color: #bbbbbb !important;
}
/* === YBC BLOG – NORMALIZAÇÃO COMPLETA DO BLOCO DE COMENTÁRIOS === */

/* Container geral dos comentários */
body .ybc-blog-wrapper-comment {
  background: transparent !important;
}

/* Header "LEAVE A COMMENT" */
body .ybc-blog-comment-title {
  background-color: #1c1c1c !important;
  color: #ffffff !important;
  border-bottom: 1px solid #333;
}

/* Área do formulário */
body .ybc-blog-form-comment {
  background-color: transparent !important;
}

/* Estado: utilizador não autenticado */
body .ybc-blog-form-comment textarea,
body .ybc-blog-form-comment textarea[disabled],
body .ybc-blog-form-comment .ybc-blog-comment-login,
body .ybc-blog-form-comment .ybc-blog-comment-require-login,
body .ybc-blog-form-comment .alert {
  background-color: #1a1a1a !important;
  color: #bbbbbb !important;
  border: 1px solid #333 !important;
}

/* Inputs normais (quando logado) */
body .ybc-blog-form-comment input,
body .ybc-blog-form-comment textarea {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}

/* Placeholder em dark mode */
body .ybc-blog-form-comment ::placeholder {
  color: #888888 !important;
  opacity: 1;
}

/* Botão */
body .ybc-blog-form-comment button,
body .ybc-blog-form-comment input[type="submit"] {
  background-color: #d32f2f;
  color: #ffffff;
  border: none;
}

/* Remover fundos residuais de wrappers internos */
body .ybc-blog-wrapper-comment *,
body .ybc-blog-form-comment * {
  background-image: none !important;
}
/* === YBC BLOG – WRAPPER DE COMENTÁRIOS (AZUL PRINCIPAL) === */
body .ybc-blog-wrapper-comment {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}

/* Header "LEAVE A COMMENT" */
body .ybc-blog-wrapper-comment .ybc-blog-comment-title {
  background: #1c1c1c !important;
  color: #ffffff !important;
  border-bottom: 1px solid #333;
}

/* Área interna do formulário */
body .ybc-blog-wrapper-comment .ybc-blog-form-comment {
  background: transparent !important;
}

/* Bloco "Log in to post comments" */
body .ybc-blog-wrapper-comment textarea,
body .ybc-blog-wrapper-comment textarea[disabled],
body .ybc-blog-wrapper-comment .alert,
body .ybc-blog-wrapper-comment .form-control {
  background-color: #1a1a1a !important;
  color: #bbbbbb !important;
  border: 1px solid #333 !important;
}

/* Garantia: remover QUALQUER azul herdado */
body .ybc-blog-wrapper-comment * {
  background-image: none !important;
}
/* === YBC BLOG – COMENTÁRIOS EM DARK MODE (#222222) === */
body .ybc-blog-wrapper-comment {
  background-color: #222222 !important;
  background: #222222 !important;
  color: #bbbbbb !important;
}

/* Header "LEAVE A COMMENT" */
body .ybc-blog-wrapper-comment .ybc-blog-comment-title {
  background-color: #222222 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #333;
}

/* Área do formulário */
body .ybc-blog-wrapper-comment .ybc-blog-form-comment {
  background-color: #2a2a2a !important;
  color: #bbbbbb !important;
}

/* Bloco "Log in to post comments" */
body .ybc-blog-wrapper-comment textarea,
body .ybc-blog-wrapper-comment textarea[disabled],
body .ybc-blog-wrapper-comment .alert,
body .ybc-blog-wrapper-comment .form-control {
  background-color: #2a2a2a !important;
  color: #bbbbbb !important;
  border: 1px solid #444 !important;
}

/* Garantir que NADA herda azul */
body .ybc-blog-wrapper-comment *,
body .ybc-blog-wrapper-comment *::before,
body .ybc-blog-wrapper-comment *::after {
  background-image: none !important;
}

/* === FORÇAR HEADER TRANSPARENTE EM TODAS AS PÁGINAS === */

body header,
body header.header_v1,
body header.header_v1 .header-top,
body header.header_v1 .header-nav,
body header.header_v1 .header_content,
body header.header_v1 .header-top .container,
body header.header_v1 .header-nav .container {
  background: transparent !important;
  background-color: transparent !important;
}
ul.mm_menus_ul,
ul.mm_menus_ul.mm-active,
ul.mm_menus_ul.is-sticky {
    background: transparent !important;
}
