/* Reset básico para remover margens e paddings padrão do body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    width: 100%;
    height: 100vh; /* Limita a altura do body à viewport */
    overflow-x: hidden; /* Remove scroll horizontal */
    overflow-y: auto; /* Permite scroll vertical apenas se necessário */
    position: relative; /* Para posicionar elementos fixos */
    box-sizing: border-box; /* Garante que padding e border não aumentem o tamanho */
}

/* Garante que todos os elementos usem box-sizing para evitar overflow */
*, *:before, *:after {
    box-sizing: inherit;
}

/* ===== CORREÇÕES DO CABEÇALHO ===== */
.header {
    background-color: #f2f2f2;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.header .logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

/* ===== CORREÇÃO DOS ÍCONES DO CABEÇALHO ===== */
.header .icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    /* REMOVIDO: left: 30%; QUE ESTAVA CAUSANDO PROBLEMA */
}

.header .icon {
    height: 30px;
    width: 30px;
    cursor: pointer;
    display: block !important; /* FORÇAR VISIBILIDADE */
    opacity: 1 !important;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex !important; /* FORÇAR VISIBILIDADE */
    align-items: center;
    justify-content: center;
}

.category-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: block !important; /* FORÇAR VISIBILIDADE */
}

/* Estilo do contêiner do popup de categorias */
.category-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo preto semi-transparente */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Estilo do conteúdo do popup de categorias */
.category-wrapper {
    position: relative;
    width: 250px;
    max-height: 70vh;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    animation: lightRay 1.5s ease-in-out;
}

/* Estilo do título do popup de categorias */
.category-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-family: Arial, sans-serif;
}

/* Estilo da lista de categorias */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estilo de cada item da lista de categorias */
.category-list li {
    font-size: 0.9rem;
    padding: 10px 0;
    text-align: center;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.category-list li:hover {
    background-color: #f5f5f5;
}

/* Estilo do botão X para fechar o popup de categorias */
.category-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #dc3545;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-close-btn:hover {
    color: #c82333;
}

/* Animação de raio de luz para o popup de categorias */
@keyframes lightRay {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}











@media (min-width: 1025px) {
    .desktop-category-menu {
        display: flex !important;
        align-items: center;
        gap: 8px;
        flex: 1;
        justify-content: center;
        max-width: 60%;
        margin: 0 20px;
        overflow: visible; /* MUDANÇA IMPORTANTE */
    }
	
	#whatsapp-bubble {
  left: 76px !important;
}
    
    .visible-categories {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .category-btn {
        background: #008080;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.3s ease;
        min-width: fit-content;
    }
    
    .category-btn:hover {
        background: #0d6bb7;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(16, 131, 198, 0.3);
    }
    
    .more-categories {
        position: relative;
        display: inline-block;
    }
    
    .more-button {
        background: #FF9800;
        color: white;
        border: none;
        padding: 8px 15px; /* AUMENTADO */
        border-radius: 5px; /* MUDADO de 15px para 5px */
        font-size: 14px; /* AUMENTADO de 11px para 14px */
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .more-button:hover {
        background: #f57c00;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
    .dropdown-categories {
        position: absolute;
        top: calc(100% + 5px); /* ESPAÇAMENTO MELHOR */
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* SOMBRA MELHOR */
        z-index: 1001; /* Z-INDEX MAIOR */
        min-width: 200px;
        max-width: 300px;
        max-height: 400px;
        overflow-y: auto;
        display: none; /* INICIALMENTE OCULTO */
        opacity: 0;
        transform: translateY(-10px) scale(0.95); /* ANIMAÇÃO MELHOR */
        visibility: hidden;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* TRANSIÇÃO SUAVE */
    }
    
     .dropdown-categories.show {
        display: block;
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
    
    .dropdown-category-btn {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-category-btn:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .dropdown-category-btn:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    
    .dropdown-category-btn:hover {
        background-color: #f8f9fa;
        color: #008080;
        font-weight: 500;
    }
    
    .dropdown-category-btn:active {
        background-color: #e9ecef;
    }
}







/* Overlay para fechar dropdown quando clicar fora */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: transparent;
    display: none;
}

.dropdown-overlay.active {
    display: block;
}
/* Overlay para detectar cliques fora do dropdown */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: transparent;
    display: none;
    pointer-events: none;
}

.dropdown-overlay.active {
    display: block;
    pointer-events: all;
}

/* Scrollbar customizada para o dropdown */
.dropdown-categories::-webkit-scrollbar {
    width: 6px;
}

.dropdown-categories::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.dropdown-categories::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}

.dropdown-categories::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Garantir que o menu não seja cortado pelo overflow do header */
.header-content {
    overflow: visible !important;
}

.header {
    overflow: visible !important;
}

/* Animação de entrada do dropdown */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-categories.show {
    animation: dropdownSlideIn 0.25s ease-out;
}

/* Estilo do contêiner externo do popup do carrinho */
.cart-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#cart-popup.cart-popup[style*="display: flex"] {
    height: 100% !important; /* Garante que o height seja 100% quando o popup estiver visível */
}

.cart-ad {
    display: block; /* Garante que o elemento seja um bloco */
    margin: 0 auto; /* Centraliza horizontalmente */
    max-width: 100%; /* Evita que o anúncio ultrapasse o contêiner */
    text-align: center; /* Centraliza o conteúdo interno do anúncio, se aplicável */
}

/* Estilo do contêiner interno do popup do carrinho */
.cart-wrapper {
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Estilo do cabeçalho do popup do carrinho */
.cart-popup-header {
    background-color: #008080;
    color: #fff;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Estilo do título do cabeçalho do popup do carrinho */
.cart-popup-header h2 {
    font-size: 0.8rem;
    margin: 3px;
}

/* Estilo do conteúdo do popup do carrinho */
.cart-popup-content {
    background-color: #fff;
    padding: 15px;
    max-height: 220px;
    overflow-y: auto;
}

/* Estilo de cada item no carrinho */
.cart-popup-content .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* Estilo do texto dos itens no carrinho */
.cart-popup-content .cart-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

/* Linhas alternadas com cores diferentes no popup do carrinho */
.cart-popup-content p:nth-child(odd) {
    background-color: #f1f1f1;
}

.cart-popup-content p:nth-child(even) {
    background-color: #e8e8e8;
}

/* Estilo do rodapé do popup do carrinho */
.cart-popup-footer {
    background-color: #008080;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Estilo do total no rodapé do popup do carrinho */
.cart-total {
    margin: 0;
    font-size: 1rem;
}

/* Estilo do botão de fechar */
.close-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
}

/* Estilo do botão "Escolher Mais" */
.choose-more-button {
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 125px;
}

.choose-more-button:hover {
    text-decoration: underline;
}

/* Estilo do botão "Enviar Pedido" */
.send-order-button {
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 32%;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.send-order-button:hover {
    background-color: #006666;
}

/* Estilo do fundo do popup de detalhes do produto */
.product-details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#product-details-popup.product-details-popup[style*="display: flex"] {
    height: 100% !important; /* Garante que o height seja 100% quando o popup estiver visível */
}

/* Estilo do conteúdo do popup de detalhes do produto */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    max-height: 70vh; /* Limita a altura a 80% da viewport */
    overflow-y: auto; /* Adiciona rolagem vertical se necessário */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Melhora a aparência */
}

/* Imagem do popup */
.popup-image {
    width: 100%;
    max-height: 270px;
    object-fit: contain;
    margin-bottom: 0;
    position: relative; /* Necessário para o pseudo-elemento */
    background: none; /* Remove o fundo direto */
    transition: opacity 0.3s ease; /* Suaviza o carregamento */
    opacity: 0; /* Inicia invisível */
}

/* Pseudo-elemento para exibir o GIF enquanto carrega */
.popup-image:not([src*="/img/trevus.png"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/loading2.gif') no-repeat center center;
    background-size: 50%; /* Ajusta o tamanho do GIF */
    z-index: 1; /* Coloca o GIF acima do texto alt */
}

/* Quando a imagem termina de carregar */
.popup-image[loading="lazy"]:not([src*="/img/trevus.png"]) {
    opacity: 1; /* Torna visível quando carregado */
}

/* Remove o pseudo-elemento quando a imagem carrega */
.popup-image[loading="lazy"]:not([src*="/img/trevus.png"])::before {
    display: none; /* Remove o GIF após carregamento */
}

/* Estilo do título e descrição do popup de detalhes do produto */
.popup-content h2 {
    font-size: 1.0em;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Contêiner principal dos controles no popup de detalhes do produto */
.popup-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

/* Controles de quantidade no popup de detalhes do produto */
.popup-controls .quantity-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    top: 44px;
    transform: translateY(-50%);
}

/* Botões de quantidade no popup de detalhes do produto */
.popup-controls .quantity-button {
    width: 40px;
    height: 40px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.5em;
    cursor: pointer;
}

.popup-controls .quantity-button:hover {
    background-color: #005f5f;
}

/* Input de quantidade no popup de detalhes do produto */
.popup-controls .quantity-input {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Botões de ação no popup de detalhes do produto */
.popup-controls .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 27px;
    position: relative;
    left: -29px;
    bottom: 30px;
}

.popup-controls .action-buttons button {
    padding: 10px 20px;
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: 120px;
    text-align: center;
}

.popup-controls .action-buttons button:hover {
    background-color: #005f5f;
}

/* ===== CORREÇÃO DE ELEMENTOS CLICÁVEIS ===== */
.product-item,
.clickable,
.toggle-link {
    cursor: pointer;
    color: #008080;
}

.toggle-link {
    font-weight: bold;
    text-decoration: underline;
}

.toggle-link:hover {
    color: #005f5f;
}

/* CORREÇÃO - REMOVER SUBLINHADO DOS ELEMENTOS CLICÁVEIS */
.clickable {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit !important;
}

.clickable:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-item .clickable,
.product-item h3.clickable,
td.clickable {
    text-decoration: none !important;
    border-bottom: none !important;
}

.product-item .clickable:hover,
.product-item h3.clickable:hover,
td.clickable:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Container dos controles de quantidade na tabela */
.quantity-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Botões de + e - na tabela */ 
.quantity-container button {  
    width: 30px;
    height: 35px;
    background-color: #008080;
    color: white;
    font-size: 2.0em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-container button:hover {
    background-color: #005f5f;
}

/* Input de quantidade na tabela */
.quantity-input {
    width: 30px;
    height: 30px;
    font-size: 2.5em;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
}

/* Estilo para o botão flutuante do carrinho */
.cart-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #008080;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    border: none;
}

.cart-button img {
    width: 35px;
    height: 35px;
}

/* Estilo para o botão flutuante do WhatsApp */
#floating-whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 10px;
    z-index: 999;
    display: none;
}

.whatsapp-icon {
    width: 70px;
    height: 70px;
    transition: transform 0.2s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Estilo para o balão de boas-vindas do WhatsApp */
#whatsapp-bubble {
    position: fixed;
    bottom: 90px;
    right: 60px;
    background-color: #fff;
    color: #000;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-width: 250px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    cursor: pointer;
}

#whatsapp-bubble-text {
    white-space: pre-line;
}

#whatsapp-bubble-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffba7e;
    color: #F20B0B;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

#whatsapp-bubble-close:hover {
    background: #f0f0f0;
}

/* Estilo para o botão de compartilhamento */
.share-button-cell {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0;
    cursor: pointer;
}

.share-button-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none !important;
    outline: none !important;
}

/* BANNER RESPONSIVO - CORRIGIDO PARA FULL WIDTH */
.banner-section {
    position: relative;
    width: 100%;
    margin: 70px auto 0;
    overflow: hidden;
}

/* Mobile: Banner full-width responsivo */
@media (max-width: 1023px) {
    .banner-container {
        width: 100vw;
        height: 120px;
        margin-left: calc(-50vw + 50%);
        overflow: hidden;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }
    
    .banner-image {
        width: 100%;
        height: 120px;
        object-fit: cover;
        object-position: center;
    }
}

/* Desktop: Banner responsivo com limitações */
@media (min-width: 1024px) {
    .banner-container {
        width: 100%;
        max-width: 1200px;
        height: 320px !important;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
	#searchContainer {
  max-width: 70% !important;
    }
    .icons {
         margin-right: 6%;
    }
     #app-logo {
         margin-left: 5%;
    }
    
    .banner-image {
        width: 100%;
        height: 320px !important;
        object-fit: cover;
        object-position: center;
    }
}
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.banner-prev {
    left: 10px;
    display: none !important;
}

.banner-next {
    right: 10px;
    display: none !important;
}

/* Contêiner principal da página */
#product-container {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 120px);
    overflow-x: hidden;
    padding: 0 0 120px; /* Espaço para footer */
}

/* Tabela */
table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Estilo para os cabeçalhos da tabela */
th {
    font-family: Arial, sans-serif; /* Mesma fonte para uniformidade */
    font-size: 0.8em; /* Tamanho uniforme */
    font-weight: 600; /* Peso uniforme (semibold) */
    padding: 5px;
    text-align: center; /* Alinhamento uniforme */
    vertical-align: middle;
    border-bottom: 1px solid #ccc;
    background-color: #008080; /* Cor de fundo do cabeçalho */
    color: white; /* Cor do texto */
}

/* Ajuste das colunas */
th:nth-child(1), td:nth-child(1) {
    width: 35%;
}

th:nth-child(2), td:nth-child(2) {
    width: 45%;
}

th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4),
th:nth-child(5), td:nth-child(5) {
    width: 30%;
}

th:nth-child(4), td:nth-child(4) {
    width: 15%;
}

/* Imagens nas tabelas */
td img {
    width: 67px;
    height: 67px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 2px;
    display: block;
    margin: 0 auto;
    position: relative; /* Necessário para o pseudo-elemento */
    background: none; /* Remove o fundo direto */
    transition: opacity 0.3s ease; /* Suaviza o carregamento */
    opacity: 0; /* Inicia invisível */
}

/* Pseudo-elemento para exibir o GIF enquanto carrega */
td img:not([src*="/img/trevus.png"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/loading2.gif') no-repeat center center;
    background-size: 50%; /* Ajusta o tamanho do GIF */
    z-index: 1; /* Coloca o GIF acima do texto alt */
}

/* Quando a imagem termina de carregar */
td img[loading="lazy"]:not([src*="/img/trevus.png"]) {
    opacity: 1; /* Torna visível quando carregado */
}

/* Remove o pseudo-elemento quando a imagem carrega */
td img[loading="lazy"]:not([src*="/img/trevus.png"])::before {
    display: none; /* Remove o GIF após carregamento */
}

/* Estilos para as seções de produtos */
#featured-section,
#normal-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 10px;
}

/* Estilos para as tabelas das seções */
#featured-section table,
#normal-section table {
    width: 100%;
    border-collapse: collapse;
}

/* Estilos para as linhas das tabelas */
#featured-section table tbody tr,
#normal-section table tbody tr {
    background-color: #ffffff;
}

/* Linhas pares com um tom de branco mais escuro */
#featured-section table tbody tr:nth-child(even),
#normal-section table tbody tr:nth-child(even) {
    background-color: #00805603;
}

/* Estilos para as células das tabelas */
#featured-section table td,
#normal-section table td {
    padding: 4px;
    text-align: center;
    font-size: 0.7rem;
    color: #008080 !important;
}

/* Ajuste da célula que contém a imagem */
#featured-section table td:first-child,
#normal-section table td:first-child {
    width: 67px;
    height: 67px;
    padding: 0;
}

/* Imagens nas células das seções de produtos */
#featured-section table td img,
#normal-section table td img {
    width: 75px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative; /* Necessário para o pseudo-elemento */
    background: none; /* Remove o fundo direto */
    transition: opacity 0.3s ease; /* Suaviza o carregamento */
    opacity: 0; /* Inicia invisível */
}

/* Pseudo-elemento para exibir o GIF enquanto carrega */
#featured-section table td img:not([src*="/img/trevus.png"])::before,
#normal-section table td img:not([src*="/img/trevus.png"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/loading2.gif') no-repeat center center;
    background-size: 50%; /* Ajusta o tamanho do GIF */
    z-index: 1; /* Coloca o GIF acima do texto alt */
}

/* Quando a imagem termina de carregar */
#featured-section table td img[loading="lazy"]:not([src*="/img/trevus.png"]),
#normal-section table td img[loading="lazy"]:not([src*="/img/trevus.png"]) {
    opacity: 1; /* Torna visível quando carregado */
}

/* Remove o pseudo-elemento quando a imagem carrega */
#featured-section table td img[loading="lazy"]:not([src*="/img/trevus.png"])::before,
#normal-section table td img[loading="lazy"]:not([src*="/img/trevus.png"])::before {
    display: none; /* Remove o GIF após carregamento */
}

/* Estilos para os títulos das seções */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: #333;
    font-family: Arial, sans-serif;
}

.section-title::after {
    content: '';
    display: block;
    width: 120%;
    height: 3px;
    background-color: #25D366;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Rodapé fixo */
.footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    width: 100%;
    background-color: #008080;
    color: white;
    padding: 10px;
    z-index: 100;
    border-radius: 13px;
    text-align: center;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    margin: 0;
}

/* Barra inferior fixa */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 5px 0;
    z-index: 100;
}

/* Container principal do popup de formulário */
.form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#form-popup {
    height: 100% !important;
    /* outros estilos */
}

/* Conteúdo do popup de formulário */
.form-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100% !important;
    max-width: 400px;
    text-align: center;
    position: fixed; /* Alterado para fixed para suportar arrastar */
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza inicialmente */
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease; /* Transição suave para o movimento */
    max-height: 90vh;
    overflow-y: auto;
	margin: 0 !important;
}

/* Botão de fechar do popup de formulário */
.form-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #fff;
    background: #e88e8e;
    cursor: pointer;
    border-radius: 20px;
    width: 35px;
    height: 35px;
    z-index: 99;
    border: none;
}

/* Inputs e selects do popup de formulário */
.form-popup input,
.form-popup select {
    width: 85%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

/* Botão de finalizar do popup de formulário */
.form-finalizar-button {
    background-color: #008080;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
}

/* Botão desativado do popup de formulário */
.form-finalizar-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Estilização do Popup de Sucesso */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.success-popup-content {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.success-logo {
    width: 100px;
    margin-bottom: 20px;
}

.success-title {
    color: #28a745;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-close-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.success-close-button:hover {
    background-color: #218838;
}

/* Estilos para mensagens temporárias */
.temporary-message {
    position: fixed;
    top: 60px;
    right: 20px;
    background-color: #1083c6;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 10000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* RESPONSIVIDADE - MOBILE E DESKTOP */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* ÁREA DE ANÚNCIOS CONDICIONAIS */
.adsense-container {
    display: none; /* Oculto por padrão */
    width: 100%;
    max-width: 728px;
    margin: 20px auto;
    text-align: center;
    grid-column: 1 / -1; /* Ocupar toda a largura da grid */
    order: -1; /* Aparecer antes dos produtos */
}

.adsense-container.show-ads {
    display: block; /* Mostrar quando necessário */
}

.popup-ad {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

@media (max-width: 1023px) {
    .adsense-container {
        display: none !important; /* Nunca mostrar no mobile */
    }
}

/* ===== DESKTOP - GRADE DE 5 COLUNAS E BOTÕES HORIZONTAIS ===== */
@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
	#scroll-to-top {
  height: 80px !important;
}
    
    /* Ocultar tabelas no desktop */
    table.mobile-only {
        display: none !important;
    }
    
    /* GRADE DE PRODUTOS - 5 COLUNAS FORÇADAS */
    .product-grid-section {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* FORÇAR 5 COLUNAS */
        gap: 15px;
        padding: 20px;
        max-width: 1400px; /* Aumentar largura máxima */
        margin: 0 auto;
    }
    
    .product-item {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: center;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 350px; /* Altura mínima consistente */
    }
    
    .product-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .product-item img {
        width: 100%;
        height: auto; /* Altura fixa para imagens */
        object-fit: cover;
        cursor: pointer;
        margin-bottom: 10px;
    }
    
    .product-item h3 {
        font-size: 13px;
        margin: 8px 0;
        cursor: pointer;
        color: #333;
        font-weight: 600;
        line-height: 1.3;
        height: 40px; /* Altura fixa para títulos */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-item .price {
        font-size: 16px;
        font-weight: bold;
        color: #25D366;
        margin: 8px 0;
    }
    
    /* BOTÕES HORIZONTAIS PARA DESKTOP */
    .product-item .quantity-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 10px 0;
    }
    
    .product-item .quantity-container .change-quantity-button {
        width: 30px;
        height: 30px;
        border: 2px solid #008080;
        background-color: #008080;
        color: white;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-item .quantity-container .change-quantity-button:hover {
        background-color: #006666;
        transform: scale(1.05);
    }
    
    .product-item .quantity-container .quantity-input {
        width: 50px;
        height: 30px;
        text-align: center;
        border: 2px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        margin: 0 2px;
    }
    
    .product-item .subtotal {
        font-weight: bold;
        color: #333;
        margin-top: 5px;
        font-size: 14px;
    }
}

/* Botão Voltar ao Topo */
.scroll-to-top-button {
    position: fixed;
    bottom: 130px;
    left: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #25D366;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.scroll-to-top-button:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.scroll-to-top-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Botões específicos para o popup e outras funcionalidades */
.change-popup-quantity-button,
.btn-popup-mais,
.btn-popup-menos,
.add-to-list-button,
.close-popup-button {
    background-color: #008080;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.change-popup-quantity-button:hover,
.btn-popup-mais:hover,
.btn-popup-menos:hover,
.add-to-list-button:hover,
.close-popup-button:hover {
    background-color: #006666;
}

/* CORREÇÃO DOS BOTÕES DE QUANTIDADE */
.change-quantity-button {
    background-color: #008080 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.change-quantity-button:hover {
    background-color: #006666 !important;
}

/* Scrollbar personalizada para dropdown */
.dropdown-categories::-webkit-scrollbar {
    width: 6px;
}

.dropdown-categories::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-categories::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.dropdown-categories::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== RESPONSIVIDADE FINAL ===== */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Grade mobile mantém tabela */
    .product-grid-section {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
    
    .desktop-category-menu {
        display: flex !important;
    }
}

/* ADICIONE ESTE CSS NO FINAL DO SEU style.css PARA FORÇAR 5 COLUNAS */

@media (min-width: 1024px) {
    /* FORÇAR GRID DE 5 COLUNAS - MÁXIMA PRIORIDADE */
    #featured-container.product-grid-section,
    #normal-container.product-grid-section,
    .product-grid-section {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 15px !important;
        padding: 20px !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* CADA PRODUTO OCUPA APENAS 1 COLUNA */
    .product-grid-section .product-item {
        grid-column: span 1 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border: 1px solid #ddd !important;
        padding: 12px !important;
        text-align: center !important;
        background-color: #fff !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        transition: transform 0.2s ease !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        min-height: 350px !important;
    }
    
    /* ANÚNCIOS OCUPAM TODA A LARGURA */
    .product-grid-section .adsense-container {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 20px 0 !important;
        order: -1 !important;
    }
    
    /* DEBUGGING - REMOVER APÓS TESTAR */
    .product-grid-section {
        background-color: rgb(255, 255, 255) !important;
    }
    
    .product-item {
        border: 2px solid blue !important;
        background-color: rgba(0, 0, 255, 0.1) !important;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

#cart-ad {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

#form-ad {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}
#product-details-ad {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

#success-ad {
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}
/* ================================
   POPUP DESKTOP - PRODUTOS
================================ */

.desktop-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.desktop-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.desktop-popup-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.desktop-popup-overlay.active .desktop-popup-content {
    transform: scale(1);
}

.desktop-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

.desktop-popup-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.desktop-popup-body {
    display: flex;
    min-height: 400px;
}

.desktop-popup-image {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.desktop-popup-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.desktop-popup-info {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.desktop-popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.desktop-popup-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.desktop-popup-price {
    font-size: 32px;
    font-weight: bold;
    color: #0d6bb7;
    margin: 0 0 30px 0;
}

.desktop-popup-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 30px 0;
}

.desktop-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.desktop-qty-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

#desktop-quantity {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    background: #f8f9fa;
}

.desktop-popup-buy-btn {
    background: linear-gradient(135deg, #0d6bb7, #1083c6);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 131, 198, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-popup-buy-btn:hover {
    background: linear-gradient(135deg, #0a5a8f, #0d6bb7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 131, 198, 0.4);
}

.desktop-popup-buy-btn:active {
    transform: translateY(0);
}

/* Responsivo - Esconder popup desktop no mobile */
@media (max-width: 768px) {
    .desktop-popup-overlay {
        display: none !important;
    }
}

/* Ajustes para telas menores de desktop */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-popup-content {
        max-width: 700px;
    }
    
    .desktop-popup-body {
        min-height: 350px;
    }
    
    .desktop-popup-info {
        padding: 30px 25px;
    }
    
    .desktop-popup-title {
        font-size: 22px;
    }
    
    .desktop-popup-price {
        font-size: 28px;
    }
}
/* ==========================================
   TREVUS MARKETING CAROUSELS & FIXED BANNER
   MOVIMENTO DISCRETO - SEM TONTURA
   ========================================== */

/* Seção do carrossel */
.trevus-marketing-carousel {
    margin: 20px 0;
    padding: 0 15px;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.trevus-carousel-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    background: linear-gradient(45deg, #008080, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container do carrossel - SEM BOTÕES */
.trevus-carousel-container {
    position: relative;
    display: block;
    width: 100%;
}

.trevus-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    max-width: 100%;
}

.trevus-carousel-track {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 128, 128, 0.18);
    width: max-content;
    cursor: grab;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: manipulation;
    will-change: transform;
    backface-visibility: hidden;
}

.trevus-carousel-track::-webkit-scrollbar {
    display: none;
}

.trevus-carousel-track:hover,
.trevus-carousel-track:active {
    cursor: grabbing;
}

/* REMOVER BOTÕES COMPLETAMENTE */
.trevus-carousel-btn {
    display: none !important;
}

/* ==========================================
   CARDS DO CARROSSEL - TAMANHOS FIXOS PARA MOVIMENTO DISCRETO
   ========================================== */

.trevus-carousel-card {
    min-height: 350px !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    text-align: center !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    width: 250px !important; /* LARGURA FIXA DESKTOP */
    min-width: 250px !important;
    max-width: 250px !important;
    flex-shrink: 0 !important; /* IMPEDE COMPRESSÃO */
}

.trevus-carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #008080;
}

/* IMAGEM - ALTURA FIXA */
.trevus-card-image {
    width: 100%;
    height: auto; /* ALTURA FIXA */
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 3px;
}

.trevus-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.trevus-card-image:hover img {
    transform: scale(1.05);
}

/* CONTEÚDO */
.trevus-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

/* TÍTULO - ALTURA FIXA */
.trevus-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #008080;
    cursor: pointer;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.trevus-card-title:hover {
    color: #008080;
}

/* PREÇO */
.trevus-card-price {
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #25D366;
    min-height: 0; /* ALTURA MÍNIMA PARA CONSISTÊNCIA */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trevus-old-price {
    display: block;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.trevus-new-price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #25D366;
}

.trevus-profit {
    display: block;
    font-size: 12px;
    color: #007bff;
    font-weight: bold;
    margin-top: 3px;
}

/* CONTROLES */
.trevus-card-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 5px 0;
}

/* BOTÕES */
.trevus-qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #008080;
    background-color: #008080;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.trevus-qty-btn:hover {
    background-color: #006666;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.trevus-qty-btn:active {
    transform: scale(0.95);
}

/* INPUT */
.trevus-qty-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin: 0 3px;
    background: white;
}

.trevus-qty-input:focus {
    border-color: #008080;
    outline: none;
}

/* SUBTOTAL */
.trevus-card-subtotal {
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-top: 10px;
    min-height: 24px;
}

.trevus-card-subtotal .subtotal-value {
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

/* Banner fixo */
.trevus-fixed-banner-section {
    margin: 30px 0;
    padding: 0 15px;
}

.trevus-fixed-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.trevus-fixed-banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.trevus-fixed-banner-image:hover {
    transform: scale(1.02);
}

/* ==========================================
   RESPONSIVIDADE MOBILE
   ========================================== */

@media (max-width: 768px) {
    .trevus-marketing-carousel {
        padding: 0;
        margin: 15px 0;
    }
    
    .trevus-carousel-title {
        font-size: 20px;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    
    .trevus-carousel-wrapper {
        border-radius: 0;
        box-shadow: none;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .trevus-carousel-track {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px 15px;
    }
    
    .trevus-carousel-track::-webkit-scrollbar {
        display: none;
    }
    
    /* CARDS MOBILE - TAMANHOS FIXOS */
    .trevus-carousel-card {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        min-height: 320px;
        scroll-snap-align: start;
        flex-shrink: 0 !important;
    }
    
    .trevus-card-image {
        height: 140px; /* ALTURA FIXA MOBILE */
    }
    
    .trevus-card-content {
        padding: 0px;
    }
    
    .trevus-card-title {
        font-size: 13px;
        height: 65px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }
    
    .trevus-card-price {
        font-size: 14px;
        margin-bottom: 0px;
        min-height: 10px;
    }
    
    .trevus-new-price {
        font-size: 16px;
    }
    
    .trevus-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .trevus-qty-input {
        width: 50px;
        height: 32px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    .trevus-card-subtotal {
        font-size: 14px;
    }
    
    /* Banner fixo mobile */
    .trevus-fixed-banner-section {
        margin: 20px 0;
        padding: 0;
    }
    
    .trevus-fixed-banner-container {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    /* Gradiente de fade nas bordas */
    .trevus-carousel-wrapper.moving::before,
    .trevus-carousel-wrapper.moving::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        z-index: 10;
        pointer-events: none;
    }
    
    .trevus-carousel-wrapper.moving::before {
        left: 0;
        background: linear-gradient(to right, rgba(248,249,250,1), rgba(248,249,250,0));
    }
    
    .trevus-carousel-wrapper.moving::after {
        right: 0;
        background: linear-gradient(to left, rgba(248,249,250,1), rgba(248,249,250,0));
    }
}

/* ==========================================
   ANIMAÇÕES REMOVIDAS (SEM MOVIMENTO CONTÍNUO)
   ========================================== */

/* REMOVIDO: @keyframes autoScroll */
/* REMOVIDO: animações contínuas */

/* Animações de entrada suaves */
@keyframes trevusSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trevus-marketing-carousel {
    animation: trevusSlideIn 0.6s ease-out;
}

.trevus-fixed-banner-section {
    animation: trevusSlideIn 0.8s ease-out;
}

/* ==========================================
   MELHORIAS DE PERFORMANCE
   ========================================== */

/* Garantir que o carrossel não interfira com outros elementos */
.trevus-carousel-track * {
    box-sizing: border-box;
}

/* Garantir que os clones sejam exatamente iguais aos originais */
.trevus-carousel-card.carousel-clone {
    opacity: 1;
    pointer-events: auto;
}

/* Otimização de performance */
.trevus-carousel-track {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* ESTILOS PARA PREÇOS PROMOCIONAIS FALSOS */
.trevus-fake-price {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.trevus-promo-price {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.trevus-discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    margin-top: 3px;
}

/* ✅ MELHORIA PARA INTERAÇÃO TOUCH */
.trevus-carousel-track {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trevus-carousel-track::-webkit-scrollbar {
    display: none;
}

.trevus-carousel-track.dragging,
.trevus-carousel-track.dragging * {
    pointer-events: none;
    user-select: none;
}

.trevus-carousel-track.dragging .trevus-carousel-card {
    pointer-events: none;
}

.trevus-carousel-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* ✅ PERMITIR CLIQUES EM BOTÕES MESMO DURANTE DRAG */
.trevus-carousel-card button,
.trevus-carousel-card input,
.trevus-carousel-card a {
    pointer-events: auto !important;
}
/* ✅ CSS PARA SETAS DO CARROSSEL (APENAS DESKTOP) */
.trevus-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 128, 128, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.trevus-carousel-btn:hover {
    background: rgba(0, 128, 128, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.trevus-carousel-prev {
    left: 10px;
}

.trevus-carousel-next {
    right: 10px;
}

/* ✅ MOSTRAR SETAS APENAS NO DESKTOP */
@media (min-width: 769px) {
    .trevus-carousel-btn {
        display: flex !important;
    }
}

/* ✅ OCULTAR SETAS NO MOBILE */
@media (max-width: 768px) {
    .trevus-carousel-btn {
        display: none !important;
    }
}

/* ✅ MELHORAR INTERAÇÃO TOUCH */
.trevus-carousel-track {
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trevus-carousel-track::-webkit-scrollbar {
    display: none;
}

.trevus-carousel-track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.trevus-carousel-track.dragging * {
    pointer-events: none;
    user-select: none;
}

.trevus-carousel-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* ✅ OCULTAR SETAS NO MOBILE */
@media (max-width: 768px) {
    .trevus-carousel-btn {
        display: none !important;
    }
    
    .trevus-carousel-container {
        position: relative;
    }
}

/* ✅ BOTÕES MOBILE TEMPORÁRIOS */
.mobile-carousel-prev,
.mobile-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 128, 128, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 15;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mobile-carousel-prev {
    left: 10px;
}

.mobile-carousel-next {
    right: 10px;
}

@media (min-width: 769px) {
    .mobile-carousel-prev,
    .mobile-carousel-next {
        display: none !important;
    }
}
/* ========================================
   CARROSSEL DE MARCAS - DESIGN MODERNO
   ======================================== */

#brands-carousel-section {
    padding: 10px 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 10px 0;
	display: none !important;
}

.brands-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.brands-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 0;
}

.brands-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ========================================
   CARD DE MARCA - MODERNO COM HOVER
   ======================================== */

.brand-card.modern {
    /* ✅ TAMANHO FIXO PARA TODOS OS CARDS */
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 220px;
    min-height: 120px;
    max-height: 120px;
    
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    
    /* ✅ GARANTIR ALINHAMENTO */
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card.modern:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.brand-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Logo Container */
.brand-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* ✅ MAIS PADDING PARA NÃO ENCOSTAR NAS BORDAS */
    background: white;
    position: relative;
}

.brand-logo {
    /* ✅ GARANTIR QUE LOGO FIQUE CENTRALIZADA E DO MESMO TAMANHO */
    width: 100%;
    height: 100%;
    max-width: 160px; /* ✅ LIMITE MÁXIMO */
    max-height: 160px; /* ✅ LIMITE MÁXIMO */
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.brand-card.modern:hover .brand-logo {
    transform: scale(0.9);
    filter: brightness(0.8);
}

/* Overlay com nome (aparece no hover) */
.brand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgb(29, 61, 180), #fff);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.brand-card.modern:hover .brand-overlay {
    transform: translateY(0);
}

.brand-name {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.brand-card.modern:hover .brand-name {
    opacity: 1;
    transform: translateY(0);
}

.brand-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 5px 0 0 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
}

.brand-card.modern:hover .brand-count {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .brand-card.modern {
        /* ✅ TAMANHO FIXO PARA MOBILE */
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
    
    .brand-logo {
        max-width: 120px;
        max-height: 120px;
    }
    
    .brand-logo-container {
        padding: 20px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .brand-count {
        font-size: 12px;
    }
}

/* ========================================
   ANIMAÇÃO DE CARREGAMENTO
   ======================================== */

.brand-card.modern {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.brand-card.modern:nth-child(1) { animation-delay: 0.1s; }
.brand-card.modern:nth-child(2) { animation-delay: 0.2s; }
.brand-card.modern:nth-child(3) { animation-delay: 0.3s; }
.brand-card.modern:nth-child(4) { animation-delay: 0.4s; }
.brand-card.modern:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   EFEITO DE BRILHO NO HOVER
   ======================================== */

.brand-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
    z-index: 1;
}

.brand-card.modern:hover::before {
    left: 100%;
}
/* 🖼️ Sistema de múltiplas imagens - Hover effect */
.product-item img {
    transition: opacity 0.3s ease-in-out;
}

.product-item img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product-item:hover img.hover-image {
    opacity: 1;
}

.product-item {
    position: relative;
}

/* 🖼️ Hover fix - container direto */
.product-item > div:hover img.hover-image,
.product-item:hover img.hover-image {
    opacity: 1 !important;
}

.product-item img.main-image {
    display: block;
}

/* 🎠 Slider de imagens no popup */
.image-slider-container {
    width: 100% !important;
    max-width: 100% !important;
}

.slider-image-wrapper {
    padding-bottom: 100% !important;
    position: relative !important;
}

.slider-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.slider-btn {
    z-index: 100 !important;
    cursor: pointer !important;
}

.slider-dots {
    margin-top: 10px !important;
    text-align: center !important;
}

/* 🖼️ Fix hover - esconder segunda imagem por padrão */
.product-item img.hover-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    pointer-events: none !important;
}

.product-item:hover img.hover-image {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.product-item > div {
    position: relative !important;
}

/* 🖼️ Sistema de hover para segunda imagem */
.product-item > div:first-child {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
}

.product-item img.main-image {
    display: block !important;
    width: 100% !important;
    transition: opacity 0.3s ease-in-out !important;
}

.product-item img.hover-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
    pointer-events: none !important;
}

.product-item:hover img.hover-image {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 🖼️ HOVER FIX - Força absoluta */
.product-item > div[style*="position: relative"] {
    position: relative !important;
}

.product-item img.main-image {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
}

.product-item img.hover-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

.product-item:hover img.hover-image {
    opacity: 1 !important;
}

/* 🎠 SLIDER FIX */
.image-slider-container {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.slider-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    position: relative !important;
}

.slider-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* 🎠 SLIDER FIX FINAL - Tamanho correto */
.image-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.slider-image-wrapper {
    width: 100% !important;
    padding-bottom: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.slider-image-wrapper img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.slider-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

.slider-prev {
    left: 10px !important;
}

.slider-next {
    right: 10px !important;
}

/* 🎠 FORÇAR SLIDER POPUP - Ocupar todo espaço */
#desktop-slider-container .image-slider-container {
    max-width: 100% !important;
    width: 100% !important;
}

#desktop-slider-container .slider-image-wrapper {
    width: 100% !important;
    padding-bottom: 100% !important;
}

#mobile-slider-container .image-slider-container {
    max-width: 100% !important;
    width: 100% !important;
}

#mobile-slider-container .slider-image-wrapper {
    width: 100% !important;
    padding-bottom: 100% !important;
}

/* 🖼️ Container do popup - flex para centralizar */
.desktop-popup-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 20px !important;
}

/* 🎠 POPUP DESKTOP - Slider ocupar todo espaço disponível */
.desktop-popup-image {
    flex: 1 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#desktop-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

#desktop-slider-container .image-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

#desktop-slider-container .slider-image-wrapper {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    position: relative !important;
}
