html,body {
    background-color: #f7f7f7;
    /*font-family: "Inter", sans-serif;*/
}

/*h1,h2,h3,h4,h5 {
    font-family: "Inter", sans-serif;
}*/

h3, h6 {
    font-weight: 600;
    color: #262626;
}

/*label,p {
    font-family: "Inter", sans-serif;
}*/

a { 
   text-decoration: none;
   font-weight: 600;
   /*font-family: "Inter", sans-serif;*/
}

.top-navbar {
    background-color: #0d6063;
}
.top-navbar .list-group {
    list-style: none;
}
.top-navbar .list-group li,
.top-navbar .list-group li .top-nav-link {
    color: #f9f9f9;
    text-decoration: none;
    padding: 6px 5px;
    font-size: 14px;
}

.navbar .nav-link {
    padding: 20px 12px !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    color: #000 !important;
}

.nav-btn {
    background-color: #dc2126;
    color: #fff !important;
    font-size: 14px !important;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 600;
}

/* Ajuste de Fluxo Mobile */
@media (max-width: 991px) {
    /* Container que envolve a logo */
    #mobile-logo-row {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        
        /* Transição combinada e suave */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        
        /* Fixamos a altura máxima para evitar cálculos lentos do browser */
        max-height: 60px; 
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 10px;
    }

    /* Estado Sticky: O que acontece quando rola */
    .is-sticky #mobile-logo-row {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transform: translateY(-20px); /* Move levemente para cima enquanto some */
        pointer-events: none; /* Desativa cliques assim que começa a sumir */
    }

    /* Estabilização da Busca e Hamburguer */
    .search-container-adjust, .custom-toggler {
        transition: transform 0.4s ease; /* Suaviza a subida deles */
    }

    /* Forçamos a Navbar a ter uma transição de padding para não dar tranco */
    .navbar {
        transition: padding 0.4s ease-in-out, background-color 0.3s ease;
    }
}

/* toogle navbar X */

.custom-toggler.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    width: 30px;
    height: 20px; /* Altura total do conjunto de linhas */
    position: relative;
    padding: 0;
    background: transparent;
    display: block; /* Garante visibilidade */
}


/* Estado inicial (Hambúrguer) */


.toggler-line:nth-child(1) { top: 0; }
.toggler-line:nth-child(2) { top: 9px; opacity: 1; transform: translateX(0); }
.toggler-line:nth-child(3) { top: 18px; }

/* Estado Aberto (X) - Somente quando NÃO tiver a classe .collapsed */
.custom-toggler:not(.collapsed) .toggler-line:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.custom-toggler:not(.collapsed) .toggler-line:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Força o reset se a tela for redimensionada para Desktop */
@media (min-width: 992px) {
    .custom-toggler .toggler-line {
        transform: none !important;
        opacity: 1 !important;
        top: inherit;
    }
}

/* o codigo abaixo está no front end blade pois é cor dinamica */
/*.toggler-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: {{ $catalog_settings_global->header_text_color ?? '#000000' }};
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}*/

/* end toogle*/

.logo-catalogo {
    width: 100%; 
    max-width: 200px; 
    max-height: 80px;
}

@media (max-width: 990px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 140px; 
    max-height: 80px;
}

}

@media (max-width: 920px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 130px; 
    max-height: 80px;
}

}

@media (max-width: 500px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 110px; 
    max-height: 80px;
}

}

@media (max-width: 400px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 150px; 
    max-height: 85px;
}

}

@media (max-width: 376px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 80px; 
    max-height: 80px;
}

}

@media (max-width: 360px) {

    .logo-catalogo {
    width: 100%; 
    max-width: 65px; 
    max-height: 80px;
}

}

/* =========================================
   CARROSSEL DE CATEGORIAS (SWIPER UX PREMIUM)
   ========================================= */
.category-item { 
    display: block; 
    text-align: center; 
    text-decoration: none !important; 
    color: inherit; 
    transition: transform 0.2s ease;
    width: 100%;
}
.category-item:hover { transform: translateY(-3px); }

.category-img-wrapper {
    /* Tamanho padrão fluido controlado com segurança no Mobile */
    width: 75px; 
    height: 75px;
    margin: 0 auto 0.5rem auto;
    border-radius: 50%;
    background-color: #fff;
    display: block; 
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.category-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%;
}

.category-placeholder { 
    width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #f8f9fa; 
    color: #94a3b8; 
    font-size: 0.65rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    border-radius: 50%;
}

/* Quebra de linha inteligente (Duas linhas perfeitas + Truncate) */
.category-name {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    width: 100%;
    line-height: 1.25;
    min-height: 2.5em; 
    padding: 0 2px;
}

/* Centralização auxiliar para o Swiper se houver poucos itens cadastrados */
.categories-swiper.justify-content-center,
.categories-swiper.justify-content-center .swiper-wrapper {
    display: flex !important;
    justify-content: center !important;
}

/* Redução de 10px em ecrãs bem pequenos (até 400px de largura) */
@media (max-width: 400px) {
    .category-img-wrapper { 
        width: 65px; 
        height: 65px; 
    }
    .category-name {
        font-size: 0.70rem;
    }
}

/* Ajuste de crescimento focado em Computadores (PC) */
@media (min-width: 768px) {
    .category-img-wrapper { 
        width: 110px; 
        height: 110px; 
    }
    .category-name { 
        font-size: 0.90rem; 
    }
}

/* Cor customizada dos pontinhos de paginação */
.swiper-pagination-categories .swiper-pagination-bullet-active {
    background: #333 !important;
}

/* =========================================
   CUSTOMIZAÇÃO DA PAGINAÇÃO (MÁXIMO 2 PONTOS)
   ========================================= */
/* Alinha o container de paginação de forma limpa */
.swiper-pagination-categories.swiper-pagination-dynamic {
    width: 100% !important;
    transform: none !important;
    left: 0 !important;
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Estilo padrão e tamanho dos dois pontinhos */
.swiper-pagination-categories .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    opacity: 0.3 !important;
    background: #333 !important;
    transform: scale(1) !important; /* Remove o efeito de encolhimento do Swiper */
    display: inline-block !important;
}

/* Cor do pontinho quando estiver ativo */
.swiper-pagination-categories .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #333 !important;
}

/* ESCONDE QUALQUER PONTINHO EXTRA QUE O SWIPER TENTAR CRIAR NAS LATERAIS */
.swiper-pagination-categories .swiper-pagination-bullet:nth-child(n+3) {
    display: none !important;
}

/* =========================================
   REMOÇÃO ABSOLUTA DA PAGINAÇÃO DO CARROSSEL
   ========================================= */
.swiper-pagination-categories {
    display: none !important;
}

/*end swipper carousel*/


    /*para aparecer somente 2 linhas nos cards de produtos relacionados*/
    .product-title-grid {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Número de linhas que você quer mostrar */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 2.4em; /* Mantém a altura fixa para alinhar os cards (ajuste conforme a fonte) */
        line-height: 1.2em;
        white-space: normal; /* Sobrescreve o comportamento do truncate padrão */
    }


    /* Força o negrito a aparecer dentro da descrição do produto */
.lead b, .lead strong {
    font-weight: bold !important;
}

/* Aproveite para garantir que as listas também apareçam */
.lead ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
}



/* start share button botão compartilhar */
    
    /* Alinha o botão de compartilhar à direita do container pai */
    .container-share {
        display: flex;
        justify-content: flex-end; 
        width: 100%;
        padding: 1px 30px;
    }

    .btn-share {
        background-color: #737373; /* Cor sugestiva ou a do seu tema */
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 50%; /* Deixa o botão redondo */
        cursor: pointer;
        transition: transform 0.2s;
    }

    .btn-share:hover {
        transform: scale(1.1);
    }

    /* Estilo do Menu de Fallback */
    .share-menu {
        position: fixed;
        bottom: 80px; /* Um pouco acima do botão */
        right: 20px;
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        z-index: 9999;
        width: 200px;
    }

    .share-options a, .share-options button {
        display: flex;
        align-items: center;
        gap: 10px; /* Espaço entre ícone e texto */
        margin-bottom: 10px;
        text-decoration: none;
        color: #333;
        font-family: sans-serif;
        font-size: 14px;
        background: #f8f9fa;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #eee;
        width: 100%;
        cursor: pointer;
    }

    .link-whatsapp:hover { background: #e7f9ee; color: #25d366; }
    .btn-close { color: #888; border: none; background: none; width: 100%; cursor: pointer; font-size: 12px; }

/* end share button botão compartilhar */

    
    /* start imagens miniatura lightbox */

    /* Mantém a imagem principal com um tamanho máximo elegante */
    .main-product-img {
        max-height: 500px;
        object-fit: contain;
        background-color: #f8f9fa;
    }

    /* Cria um quadrado perfeito para as miniaturas */
    .thumb-wrapper {
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    .thumb-wrapper img {
        width: 100%;
        height: 100%;
       /* object-fit: cover;*/
    }
    .main-product-img {
        object-fit: contain;
        background: #fff;
    }
    .thumb-wrapper:hover {
        transform: scale(1.05);
        border-color: #4169E1;
    }

/* end imagens miniatura lightbox */

/* Customizando a barra de rolagem do dropdown (categorias da navbar) */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}
/*.dropdown-menu::-webkit-scrollbar-thumb {
    background-color: {{ $catalog_settings_global->header_text_color }};
    border-radius: 10px;
}*/
.dropdown-menu::-webkit-scrollbar-track {
    background: #bfbfbf;
}

/* Garante que o dropdown não quebre o sticky */
.dropdown-menu {
    position: absolute !important;
}

/* Evita o salto de layout que causa o tremor */
.div.sticky-top {
    transition: all 0.4s ease;
}

/* Exemplo: Negrito e borda inferior no link ativo */
.nav-link.active {
    font-weight: bold !important;
    border-bottom: 2px solid /*{{ $catalog_settings_global->header_text_color }}*/;
}

/* Cor de fundo para a categoria ativa dentro do dropdown */
.dropdown-item.active {
    /*background-color: {{ $catalog_settings_global->header_text_color }};*/
    color: #fff !important;
}


/* Força a cor branca e o fundo dinâmico quando a classe active estiver presente */
.dropdown-item.active {
    background-color: #4d4d4d/*{{ $catalog_settings_global->header_text_color }} !important*/;
    color: #ffffff !important;
}

@media (max-width: 991px) { /* Aplica apenas no modo mobile/responsivo */
    .nav-link.active {
        display: inline-block; /* Faz o elemento ter o tamanho do texto */
        width: auto;           /* Garante que não herde 100% */
        border-bottom: 2px solid; /*{{ $catalog_settings_global->header_text_color }};*/
        padding-bottom: 2px;   /* Ajusta a distância da borda para o texto */
    }

}

@media (max-width: 991px) {
    #mobile-logo-row {
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80px;
        opacity: 1;
        margin-bottom: 10px;
    }

    .is-sticky #mobile-logo-row {
        max-height: 0;
        opacity: 0;
        margin-bottom: 0 !important;
        transform: translateY(-10px);
    }

    /* Centralização Offcanvas */
    .offcanvas-body .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .offcanvas-body li a {
        font-weight: 600;
    }
}

/* Animação do Botão Hambúrguer */
.custom-toggler:not(.collapsed) .toggler-line:nth-child(1) { top: 9px; transform: rotate(45deg); }
.custom-toggler:not(.collapsed) .toggler-line:nth-child(2) { opacity: 0; }
.custom-toggler:not(.collapsed) .toggler-line:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Ajuste de hover para os itens do dropdown no Offcanvas */
.offcanvas-body .dropdown-item:active, 
.offcanvas-body .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
}

/* Garante que o separador (border-top) respeite uma opacidade suave */
.offcanvas-header.border-bottom, 
.nav-item.border-top {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Estilo fixo para os itens de dropdown no Offcanvas */
.custom-offcanvas-dropdown {
    background-color: #f2f2f2 !important; /* Cinza bem claro */
    border-radius: 8px;
    margin: 5px 10px;
    padding: 10px 0;
    /* Garante que o dropdown comece escondido e só apareça no clique */
    display: none; 
}

/* Quando o dropdown é ativado pelo Bootstrap */
.custom-offcanvas-dropdown.show {
    display: block !important;
}

.custom-offcanvas-dropdown .dropdown-item {
    color: #333333 !important; /* Cinza bem escuro */
    font-weight: 500;
}

.custom-offcanvas-dropdown .dropdown-item:hover,
.custom-offcanvas-dropdown .dropdown-item:active {
    background-color: #e6e6e6 !important;
    color: #000 !important;
}

/* Corrige o espaçamento do form de logout para centralizar o botão */
.custom-offcanvas-dropdown form {
    display: block;
    width: 100%;
}

/* Estilização da Barra de Scroll para os Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px; /* Largura da barra */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); /* Fundo da trilha (bem clarinho) */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #bbb; /* Cor da barra (cinza médio/escuro) */
    border-radius: 10px;
    border: 2px solid transparent; /* Cria um respiro interno */
    background-clip: content-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #999; /* Escurece um pouco ao passar o mouse */
}

/* Firefox (Suporte básico) */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #bbb rgba(0, 0, 0, 0.05);
}

/* Ajuste de contraste para o item ativo no Dropdown (PC e Mobile) */
.dropdown-item.active, 
.dropdown-menu .dropdown-item:active {
    color: #ffffff !important; /* Força a fonte branca */
    background-color: #6c757d !important; /* Cinza padrão do Bootstrap (ajuste se desejar outro) */
}

/* Caso queira um ajuste específico para o seu Offcanvas (onde o fundo é cinza claro) */
.custom-offcanvas-dropdown .dropdown-item.active {
    color: #ffffff !important;
    background-color: #495057 !important; /* Um cinza um pouco mais forte para destacar bem o branco */
}

/* Garante que ícones dentro do link ativo também fiquem brancos */
.dropdown-item.active i {
    color: #ffffff !important;
}