#tarja-slide ul{display: flex !important; justify-content: center !important;align-items: center !important; flex-wrap: wrap !important; list-style-type: none !important;}

header {
    background: var(--cor-1);
    box-shadow: none;
}

.faixa-head {
    background: var(--cor-2);
    color: #000;
    font-weight: bold;
}

.menu-desktop .top-login .form_header_busca .input-group{
    border: none !important;
    padding: 0px 0px 0px 11px;
}

.show-on-hover button{
    color: white;
}

.show-on-hover button:hover{
    color: white !important;
}

.iconeHeader{
    filter: invert(0);
}

.menu-desktop .btn-default.btn-log {
    color: #fff;
}

.menu-desktop .btn-default.btn-log svg{
    filter: invert(1);
}

.badge{
    background-color: var(--cor-2) !important;
    color: #000 !important;
}

.menu-desktop #btn-cart a .badge{
    padding: 3px 5px !important;
}

.btn-busca{
    margin-right: 9px;
}

.navbar-nav>li>a{
    font-size: 13px;
    font-weight: bold;
}

.dept-icon-16{
    display: none;
}

ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias {
    width: 100% !important;
    left: 0 !important;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 4px !important;
    scrollbar-width: thin;
    scrollbar-color: #1E2D4C #f1f1f1;
}

ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias::-webkit-scrollbar {
    width: 4px;
}

ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias::-webkit-scrollbar-track {
    background: #f1f1f1;
}

ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias::-webkit-scrollbar-thumb {
    background: #1E2D4C;
    border-radius: 4px;
}

/* Sem bordas entre colunas */
ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias > li.col-md-3 {
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border-right: 1px solid #cbd5e1 !important;
}

ul.dropdown-menu.mega-dropdown-menu.dropdown-desktop.container.dropdown-todas-categorias > li.col-md-3:last-child {
    border-right: none !important;
}

#tarja-slide ul li{
    background-color: transparent;
}

#tarja-slide .first-line{
    color: black;
    font-size: 13px;
}

#tarja-slide .second-line{
    font-size: 11px;
}

.img-cat:hover {
    border: 1px solid var(--cor-1);
    opacity: 0.8;
}

.col-md-1.container-icone-celular {
    margin-top: 5px;
}

.newsletter button {
    background-color: var(--cor-2) !important;
    border-color: var(--cor-2) !important;
}

.newsletter button b {
    color: var(--cor-1) !important;
    text-transform: uppercase;
}

.footer-1-2 {
    background: var(--cor-2);
}

body{
    background-color: white !important;
}

.mega-menu{
    background: var(--cor-4);
}

/* MOBILE */

@media (max-width: 768px){
    .icone-burguer-mobile{fill: white;}
    .icone-sacola{stroke: white;}
    .logo-mobile{width: 45%;}
    .contador-carrinho{color: #000; background: var(--cor-2); height: 13px;}
    .container-busca-mobile{background-color: #f5f5f5;}
    .input-header{background-color: transparent !important;}
    .btn-busca{background: none !important;}
    .btn-busca{margin-right: 12px;}
    .col-md-1.container-icone-celular{margin-top: 0px; display: flex; justify-content: center;}
    form#newsletterForm{display: flex; width: 100%; justify-content: center;}
}

@media(max-width: 768px){

#tarja-slide {
    padding: 12px 10px;
}

#tarja-slide ul{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

#tarja-slide .col-xs-6{
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;

    padding: 0 !important;
}

#tarja-slide li{
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 14px 12px;
    min-height: 88px;
    box-shadow:
    0 4px 14px rgba(0,0,0,.06);
    border: 1px solid #f1f1f1;
}

#tarja-slide .icon{
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tarja-slide .icon svg{
    width: 30px !important;
    height: 30px;
}

#tarja-slide .text{
    line-height: 1.2;
}

#tarja-slide .first-line{
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 0px;
}

#tarja-slide .second-line{
    font-size: 12px;
    display: block;
}

}

@media(max-width: 375px){

    #tarja-slide {
        padding: 10px 8px;
    }

    #tarja-slide ul{
        gap: 8px !important;
    }

    #tarja-slide .col-xs-6{
        flex: 0 0 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
    }

    #tarja-slide li{
        gap: 7px;
        padding: 12px 8px;
        min-height: 96px;
    }

    #tarja-slide .icon{
        min-width: 24px;
    }

    #tarja-slide .icon svg{
        width: 24px !important;
        height: 24px !important;
    }

    #tarja-slide .first-line{
        font-size: 12px;
        line-height: 1.05;
    }

    #tarja-slide .second-line{
        font-size: 12px;
        line-height: 1.15;
    }
}

/* FIM MOBILE */

.nav.navbar-nav.ul-todas-categorias > li:nth-child(n+6) {
    display: none !important;
}

.ul-todas-categorias .dropdown-header a{
    margin-bottom: 0px;
}

.mega-dropdown-menu .dropdown-header a{
    font-size: 13px;
}

.dropdown-todas-categorias .dept-title-l1 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* ===== MENU DEPARTAMENTOS - HIERARQUIA VISUAL ===== */

/* Nível 1 - links raiz do menu horizontal */
.menu-link-root {
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Nível 1 - título de seção (Suportes e Fixações, Tecnologia...) */
.dropdown-todas-categorias .dropdown-header a,
.dropdown-todas-categorias .dept-title-l1 {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: #1E2D4C !important;
    padding: 6px 0 4px 0 !important;
    display: block !important;
    border-bottom: none !important;
    margin-bottom: 2px !important;
}

/* Nível 2 - categoria pai (dept-link-l2) */
a.dept-link-l2 {
    display: block !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #1E2D4C !important;
    padding: 2px 0 !important;
    line-height: 1.3 !important;
}

a.dept-link-l2:hover {
    color: #2563eb !important;
    text-decoration: none !important;
}

/* Nível 3 - subcategorias (tag-l3) */
a.tag-l3 {
    display: block !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    color: #64748b !important;
    padding: 1px 0 1px 8px !important;
    line-height: 1.3 !important;
    border-left: none !important;
    margin-left: 0 !important;
}

a.tag-l3:hover {
    color: #1E2D4C !important;
    text-decoration: none !important;
}

/* ===== SUBMENU LATERAL (Suportes e Fixações, Tecnologia...) ===== */

/* Container do submenu - scroll + não sair da tela
   Posicionamento horizontal (left/right) é controlado via JS,
   calculado dinamicamente por item — ver script no layout.html
   (MENU DESKTOP — SUBMENU ALINHADO AO ITEM PAI) */
ul.dropdown-desktop.dropdown-menu.mega-dropdown-menu.sub-menu {
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-width: 260px !important;
    max-width: 360px !important;
    width: max-content !important;
    scrollbar-width: thin;
    scrollbar-color: #1E2D4C #f1f1f1;
}

ul.dropdown-desktop.dropdown-menu.mega-dropdown-menu.sub-menu::-webkit-scrollbar {
    width: 4px;
}
ul.dropdown-desktop.dropdown-menu.mega-dropdown-menu.sub-menu::-webkit-scrollbar-thumb {
    background: #1E2D4C;
    border-radius: 4px;
}

/* Categoria pai no submenu lateral - sem fundo, sem borda esquisita */
li.nivel-3-pai > a.menu-link-l2 {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #1E2D4C !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 7px 16px !important;
    border-left: none !important;
    background: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

li.nivel-3-pai > a.menu-link-l2:hover {
    background: #f8fafc !important;
    color: #2563eb !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Filhos dentro do nivel-3-pai */
li.nivel-3-pai ul li a {
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #475569 !important;
    padding: 5px 16px 5px 24px !important;
    background: none !important;
}

li.nivel-3-pai ul li a:hover {
    color: #1E2D4C !important;
    background: #f8fafc !important;
}


.dropdown-todas-categorias {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--cor-1) #f1f1f1;
}

.departamentos-busca {
    background: var(--cor-1);
    display: flex;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
}

label.animate.precos-buscar {
    padding: 10px;
    background: var(--cor-1) !important;
    border-left: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px){
    dropdown input ~ ul{max-height: 100px;}
    .ambiente-cadastro #numero.form-control,
  .ambiente-cadastro #estado.form-control{
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #toggle1 + label + .list-group a {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
}

.marcas-topicos-buscar{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.marcas-topicos-buscar h3{
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2;
    white-space: normal !important;
    overflow-wrap: break-word;
    flex: 1;
}

/* ================================================
   ITEM 1 — REMOVER APENAS O SLIDER DE PREÇO
   Mantém o bloco min/max, remove só o ui-slider
   ================================================ */
#range_recos_busca {
    display: none !important;
}

.item-drop{
    padding: 8px 12px;
}
.marcas-topicos-buscar h3{
    font-size: 13px !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-all !important;

}

.marcas-buscar {
    background: var(--cor-1) !important;
    border-color: var(--cor-1) !important;
    border-radius: 10px !important;
    display: flex !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

.marcas-topicos-buscar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.produtos-contador-busca h2 {
    font-size: 20px;
    margin: 0;
}

.produtos-contador-busca {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 10px 0px 10px 0px;
}


.marcas-buscar + .list-group {
    scrollbar-width: thin;
    scrollbar-color: var(--cor-1) #f3f3f3;
}

#toggle1 + label + .list-group::-webkit-scrollbar {
    width: 8px;   /* scroll vertical */
    height: 8px;  /* scroll horizontal */
}

#toggle1 + label + .list-group::-webkit-scrollbar-thumb {
    background: var(--cor-1);
    border-radius: 20px;
}

@media (max-width: 768px){

  #toggle1 + label + .list-group{
    position: fixed !important;
    top: 0 !important;
    left: -85vw !important;
    width: 80vw !important;
    max-width: 320px !important;
    height: 100vh !important;
    max-height: 100vh !important;

    overflow-y: auto !important;
    background: #fff !important;
    z-index: 99999 !important;

    margin: 0 !important;
    padding: 20px 12px !important;
    box-shadow: 3px 0 15px rgba(0,0,0,.25);
    transition: left .3s ease !important;
  }

  #toggle1:checked + label + .list-group{
    left: 0 !important;
  }

  .list-group-item{border: none !important;}
}

@media (max-width: 992px) {
    .icone-sacola {stroke: white;}
        .icone-burguer-mobile{fill: white;}

}

@media (max-width:768px){

  .fechar-filtro-mobile{
    display:none !important;
    border-left: none !important;
  }

  #toggle1:checked + label + .list-group .fechar-filtro-mobile{
    display:flex !important;
    position:sticky;
    top:0;
    margin-left:auto;
    width:35px;
    height:35px;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#000;
    font-size:26px;
    font-weight:bold;
    z-index:999999;
    cursor:pointer;
  }

}

@media (min-width: 769px){
     .fechar-filtro-mobile{
    display:none !important;
  }

}

@media (max-width:768px){

    /* remove limitação de altura */
    #toggle3 ~ .list-group{
        max-height: none !important;
    }

    /* painel lateral */
    #toggle3 + label + .list-group{
        position: fixed !important;

        top: 0 !important;
        left: -85vw !important;

        width: 80vw !important;
        max-width: 320px !important;

        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;

        overflow-y: auto !important;

        background: #fff !important;

        margin: 0 !important;
        padding: 15px !important;

        z-index: 99999 !important;

        transition: left .3s ease !important;

        box-shadow: 3px 0 15px rgba(0,0,0,.25);
    }

    /* abre o menu */
    #toggle3:checked + label + .list-group{
        left: 0 !important;
    }

    /* botão X */
    .fechar-filtro-mobile{
        display: none;
    }

    #toggle3:checked + label + .list-group .fechar-filtro-mobile{
        display: flex !important;

        position: sticky;
        top: 0;

        width: 35px;
        height: 35px;

        margin-left: auto;
        margin-bottom: 10px;

        align-items: center;
        justify-content: center;

        font-size: 28px;
        font-weight: bold;

        color: #000;
        background: #fff;

        cursor: pointer;

        z-index: 100000;
    }
}
/* ================================================
   ITEM 2 — REVERTIDO: TOGGLE2 E TOGGLE3 REMOVIDOS
   Cliente decidiu manter apenas o toggle1 (filtros)
   ================================================ */

/* ================================================
   FILTROS — BOTÃO TOGGLE1 LARGURA TOTAL
   Toggle2 (preço) e Toggle3 (marcas) removidos
   ================================================ */

/* Esconde toggle2 (preço) */
#toggle2,
label[for="toggle2"],
label.animate.precos-buscar,
label.precos-buscar,
.precos-buscar,
#toggle2 ~ ul {
    display: none !important;
}

/* Esconde toggle3 (marcas) */
#toggle3,
label[for="toggle3"],
label.animate.marcas-buscar,
label.marcas-buscar,
.marcas-buscar,
#toggle3 ~ ul,
#toggle3 ~ .list-group {
    display: none !important;
}

@media (max-width: 768px) {
    /* Toggle1 ocupa largura total */
    .col-md-3.col-sm-12 {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 10px !important;
    }

    .col-md-3.col-sm-12 > dropdown.col-md-12.col-xs-4 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    .col-md-3.col-sm-12 > dropdown label.animate {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .col-md-3.col-sm-12 > dropdown .departamentos-busca {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
    }

    .col-md-3.col-sm-12 > dropdown .departamentos-busca svg {
        width: 26px !important;
        height: 26px !important;
    }

    /* Esconde toggle2 (2º dropdown) e toggle3 (3º dropdown) também aqui
       dentro da media query — a regra acima (.col-md-3.col-sm-12 > dropdown
       label.animate) tem especificidade maior que a regra global de
       display:none lá fora desta media query, então precisa ser repetida
       aqui com o mesmo nível de especificidade para realmente vencer.
       Usamos nth-child em vez de :has() para garantir suporte em
       qualquer navegador, já que sabemos a ordem real dos dropdowns
       (1º = toggle1/departamentos, 2º = toggle2/preço, 3º = toggle3/marcas) */
    .col-md-3.col-sm-12 > dropdown:nth-of-type(2),
    .col-md-3.col-sm-12 > dropdown:nth-of-type(3) {
        display: none !important;
    }
}

/* ================================================
   BOTÃO CARRINHO DOS PRODUTOS
   Inline style tem prioridade — usamos atributo
   seletor para sobrescrever
   ================================================ */
button.btn-carrinho,
button.btn-carrinho[style],
.produto button.btn-carrinho {
    background-color: var(--cor-1) !important;
    border-color: var(--cor-1) !important;
    color: #fff !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    transition: opacity 0.2s ease !important;
}

button.btn-carrinho:hover,
.produto button.btn-carrinho:hover {
    opacity: 0.85 !important;
    color: #fff !important;
}

button.btn-carrinho i,
button.btn-carrinho[style] i {
    color: #fff !important;
}

/* Botão carrinho — circular, levemente menor (32px) pra sobrar
   mais espaço horizontal pro texto do Comprar. A altura do
   WRAPPER continua 36px (definida em outra regra), então o
   alinhamento com o Comprar não muda, só o círculo em si fica
   um pouco mais compacto. */
.produto .btn-carrinho {
    background-color: var(--cor-1) !important;
    border-color: var(--cor-1) !important;
    color: #fff !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.produto .btn-carrinho i {
    font-size: 13px !important;
    color: #fff !important;
    margin: 0 !important;
}

/* Botão comprar — padding e fonte reduzidos pra sempre caber
   o texto "Comprar" sem cortar, mesmo em telas/cards estreitos.
   Sobrescreve o padding inline (6px 9px) que vem do HTML em
   alguns produtos (ex: Produtos Similares). */
.produto .btn-buy,
#similares .btn-buy {
    width: 100% !important;
    height: 36px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ================================================
   ITEM 5 — BLOQUEAR SCROLL HORIZONTAL NA PÁGINA DE PRODUTO
   ================================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .owl-carousel {
        touch-action: pan-y !important;
    }

    .img-produto,
    .img-produto img,
    .zoom-mobile {
        touch-action: pan-y !important;
        user-select: none !important;
    }
}
/* Caso padrão: sem seletor de quantidade (ex: #similares) —
   carrinho + comprar numa linha única. Já validado e funcionando. */
.produto .botoes-area {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Caso com seletor de quantidade (vitrine, categoria, busca, marca) —
   quantidade ocupa a linha de cima sozinha; carrinho + comprar
   ficam juntos na linha de baixo */
.produto .botoes-area:has(input),
.produto .botoes-area:has(.card-qty-wrap) {
    flex-wrap: wrap !important;
}
/* Fallback para Android sem suporte a :has() */
.produto .botoes-area .card-qty-wrap ~ div {
    flex: 1 1 auto !important;
}
.produto .botoes-area .card-qty-wrap {
    flex: 1 1 100% !important;
    order: -1;
}

/* ================================================
   FIX — BOTAO "COMPRAR" CORTANDO TEXTO ("Compra" em vez de
   "Comprar") EM TELAS MUITO ESTREITAS (ex: Galaxy S8+, 360px)
   Carrinho (44px fixo) + gap deixavam pouco espaco pro texto
   do botao Comprar no card de 2 colunas. Em telas a partir de
   ~390px sobra espaco e funciona; abaixo disso quebra. Reduzimos
   levemente o botao do carrinho, o gap e o padding do texto so
   nessa faixa estreita, sem afetar o layout nas telas maiores.
   ================================================ */
@media (max-width: 400px) {
    .produto .btn-carrinho {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
    }

    .produto .botoes-area {
        gap: 4px !important;
    }

    .produto .botoes-area .btn-buy {
        font-size: 11px !important;
        padding: 0 4px !important;
    }
}

/* Reseta o grid do Bootstrap nos filhos diretos,
   independente da classe col-md-X que o backend mandar */
.produto .botoes-area > div {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    padding: 0 !important;
}
/* Bootstrap define flex-basis/max-width via .col-xs-12 (ou
   col-md-12), que em alguns templates de card (home) embrulha
   carrinho e comprar em divs SEPARADOS (na categoria os dois
   ficam no mesmo wrapper). O reset acima neutraliza isso
   tambem para max-width/flex-basis, nao so width — sem essa
   linha extra, cada botao insistia em ocupar 100% da linha e
   empilhava verticalmente em vez de ficar lado a lado. As
   regras especificas mais abaixo (:has(.btn-carrinho) e
   :has(.btn-buy)) tem mais especificidade e continuam
   vencendo este reset generico normalmente. */

/* Container do seletor de quantidade (- 1 +) — ocupa a linha toda,
   força quebra antes do que vem depois */
.produto .botoes-area > div:has(input) {
    flex: 1 1 100% !important;
}

/* Container do botão carrinho — pequeno e fixo,
   identificado pela classe real do botão, não por first-child.
   Altura fixa em 36px (mesma do Comprar), em vez de "stretch",
   pra garantir tamanho idêntico independente do que mais
   estiver na linha. */
.produto .botoes-area > div:has(.btn-carrinho) {
    flex: 0 0 38px !important;
    margin-left: 2px !important;
    height: 36px !important;
    align-self: center !important;
}

/* Container do botão Comprar — ocupa o espaço restante,
   identificado pela classe real do link, não por last-child.
   IMPORTANTE: flex-basis precisa ser 0%, NAO "auto". O
   algoritmo de quebra de linha do flexbox decide se um item
   cabe na linha usando o flex-basis ANTES de considerar o
   encolhimento — com "auto" (que vira o tamanho do texto
   "Comprar", ~103px), o navegador quebra a linha achando que
   nao cabe, mesmo o botao podendo encolher. Com 0% ele sempre
   cabe na linha, e o flex-grow:1 preenche o espaço sobrando.
   Altura fixa em 36px, igual ao carrinho. */
.produto .botoes-area > div:has(.btn-buy) {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    height: 36px !important;
    align-self: center !important;
}

/* Garante que os botões internos preencham a coluna toda,
   com altura fixa de 36px (nao mais 100% relativo ao pai,
   que podia variar) — assim carrinho e comprar sempre saem
   exatamente do mesmo tamanho */
.produto .botoes-area > div > a,
.produto .botoes-area > div > button {
    width: 100% !important;
    height: 36px !important;
    box-sizing: border-box !important;
}

/* Texto do Comprar não pode quebrar nem estourar quando o espaço fica curto */
.produto .botoes-area .btn-buy {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ================================================
   CONTORNO — .review-summary mobile (Avaliações dos Clientes)
   O arquivo real detalhes-produto.css é servido por um CDN
   externo (DigitalOcean Spaces) ao qual não temos acesso de
   edição. Como este arquivo (estrutura_geral.css) carrega
   DEPOIS do CDN no <head>, a regra abaixo sobrescreve aqui,
   reduzindo o aperto visual no mobile sem precisar editar a
   origem real. Resolver acesso ao CDN é item separado.
   ================================================ */
@media (max-width: 768px) {
    .review-summary {
        gap: 6px !important;
        font-size: 12px !important;
        flex-wrap: wrap !important;
        padding: 8px 0 !important;
    }

    .review-summary-note {
        font-size: 11px !important;
    }
}

/* ================================================
   FIX — CARDS DESALINHADOS (TODAS AS TELAS, TODAS AS PÁGINAS
   COM VITRINE: HOME/DESTAQUES, CATEGORIA, BUSCA)
   Um script JS aplica height inline (ex: style="height: 481px")
   nos cards .produto.custom-estilo para tentar igualar a altura
   dos cards de uma mesma linha. O cálculo desse JS não é
   confiável em todas as larguras de tela/dispositivo — em vários
   casos ele erra o agrupamento ou não recalcula a tempo, deixando
   alturas inconsistentes (botão "Comprar" em posições diferentes,
   ou um espaço vazio enorme sobrando no card).

   A estrutura HTML que envolve os cards MUDA dependendo da
   página:
   - Home/Destaques: .row.centro > .col-md-12 > .col-md-3.col-xs-6
   - Categoria/Busca: .row (ex: #target_buscar_resultado) > .col-md-4.col-xs-6  (sem wrapper no meio)

   Por isso usamos :has() para pegar QUALQUER elemento que seja
   pai direto de uma coluna de produto, independente de ter ou
   não um wrapper no meio, e independente da página. Removemos
   o limite de @media (max-width:768px) porque o mesmo bug do
   JS acontece em qualquer largura de tela — só ficava mais
   visível no mobile porque lá o card é mais estreito.
   ================================================ */

/* Pai direto da coluna de produto (seja .row ou um .col-md-12
   no meio) — vira flex e estica todas as colunas da mesma linha
   pra mesma altura */
.row:has(> .col-md-3.col-xs-6 .produto.custom-estilo),
.row:has(> .col-md-4.col-xs-6 .produto.custom-estilo),
.col-md-12:has(> .col-md-3.col-xs-6 .produto.custom-estilo),
.col-md-12:has(> .col-md-4.col-xs-6 .produto.custom-estilo) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

/* A coluna em si precisa ser flex pra repassar a altura esticada
   pelo pai pro card que está dentro dela */
.col-md-3.col-xs-6:has(.produto.custom-estilo),
.col-md-4.col-xs-6:has(.produto.custom-estilo) {
    display: flex !important;
    flex-direction: column !important;
}

/* Anula o height inline forçado pelo JS e deixa o card ocupar
   100% da altura que a coluna (já esticada) está oferecendo */
.produto.custom-estilo {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.produto.custom-estilo .conteudo-produto {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.produto.custom-estilo .preco-prod,
.produto.custom-estilo .parcelas,
.produto.custom-estilo .pix-boleto-info {
    flex-shrink: 0 !important;
}

/* Empurra a área de botões pro rodapé do card, mesmo com
   títulos/preços de tamanhos diferentes acima */
.produto.custom-estilo .botoes-area {
    margin-top: auto !important;
}

/* Fallback para navegadores sem suporte a :has() (Android antigo).
   Sem :has() a regra fica mais abrangente — efeito colateral
   aceitável: linhas/colunas sem produto dentro simplesmente não
   têm cards para desalinhar, então não muda nada visualmente. */
@supports not selector(:has(a)) {
    .row.centro,
    #target_buscar_resultado,
    .col-md-12 {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .col-md-3.col-xs-6,
    .col-md-4.col-xs-6 {
        display: flex !important;
        flex-direction: column !important;
    }
}
/* ================================================
   FIX FINAL — SELETOR DE QUANTIDADE (- 1 +) CENTRALIZADO
   E DO MESMO TAMANHO DOS BOTOES, SEM COLAR NAS BORDAS
   ================================================ */
.produto .card-qty-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.produto .botoes-area > div:has(.card-qty-wrap) {
    width: 100% !important;
    flex-basis: 100% !important;
    display: flex !important;
    margin-bottom: 8px !important;
}

.produto .card-qty-wrap .card-qty-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.produto .card-qty-wrap .card-qty-input {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    font-size: 14px !important;
    line-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    background-color: #fff !important;
    opacity: 1 !important;
}
/* ================================================
   FIX — "OU R$ X NO PIX" EM POSIÇÃO DIFERENTE ENTRE CARDS
   O bloco de PARCELAS ("em até 3x sem juros..." vs "À vista
   R$ X") varia de 1 pra 2 linhas dependendo do produto — esse
   é o principal culpado por empurrar o "OU... no PIX" pra
   alturas diferentes em cada card. Reservamos altura fixa pra
   ele (cobrindo o caso de 2 linhas), e também pro título e
   bloco de preço, pra manter tudo na mesma posição vertical
   independente do conteúdo de cada produto.
   ================================================ */
.produto.custom-estilo .parcelas {
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.produto.custom-estilo .conteudo-produto > .row.vertical-align {
    min-height: 40px !important;
    display: flex !important;
    align-items: flex-start !important;
}

.produto.custom-estilo .preco-prod {
    min-height: 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.product-gallery .zoom {
    min-height: 395px;
}

@media (max-width: 768px){

  .spec-tabs{
    display:flex;
    flex-wrap:wrap;
    justify-content: center;
  }

  .spec-tabs .spec-tab{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  .nav-tabs>li{
    width: auto;
  }

  .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover{
    border: none !important;
  }
}

div#product-internal-code {
    display: none;
}

@media(max-width: 768px){
    .col-md-12.col-xs-12.coluna-btn-carrinho {
    display: none;
}
}