                                                              :root {
                                                                 --primary-bg: #272727;
                                                                 --secondary-bg: #1e1e1e;
                                                                 --accent-color: #f1c40f;
                                                                 --text-light: #ffffff;
                                                                 --text-dark: #000000;
                                                                 --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                                                                 --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                                                             }
                                                             
                                                            
                                                             /* ===== MAIN NAVBAR ===== */
                                                             
                                                             .navbar {
                                                                 display: flex;
                                                                 justify-content: space-between;
                                                                 align-items: center;
                                                                 background-color: var(--primary-bg);
                                                                 padding: 0 30px;
                                                                 position: fixed;
                                                                 top: 0;
                                                                 left: 0;
                                                                 width: 100%;
                                                                 height: 60px;
                                                                 z-index: 1000;
                                                                 box-shadow: var(--shadow);
                                                                 border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                                                             }
                                                             
                                                             .navbar-logo-container {
                                                                 display: flex;
                                                                 align-items: center;
                                                                 gap: 12px;
                                                                 transition: var(--transition);
                                                             }
                                                             
                                                             .navbar-logo-container:hover {
                                                                 transform: translateY(-2px);
                                                             }
                                                             
                                                             .navbar-logo {
                                                                 height: 50px;
                                                                 width: auto;
                                                                 filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
                                                             }
                                                             
                                                             .navbar-name {
                                                                 color: white;
                                                                 font-size: 1.4rem;
                                                                 font-weight: 700;
                                                                 text-decoration: none;
                                                                 letter-spacing: 0.5px;
                                                                 text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
                                                             }
                                                             /* ===== SEARCH AREA ===== */
                                                             
                                                             .navbar-search-container {
                                                                 display: flex;
                                                                 align-items: center;
                                                                 flex-grow: 1;
                                                                 margin: 0 80px;
                                                                 gap: 40px;
                                                             }
                                                             
                                                             .navbar-search {
                                                                 flex-grow: 1;
                                                                 max-width: 650px;
                                                                 position: relative;
                                                             }
                                                             
                                                             .navbar-search input {
                                                                 width: 100%;
                                                                 padding: 12px 20px;
                                                                 border-radius: 30px;
                                                                 border: none;
                                                                 font-size: 0.95rem;
                                                                 outline: none;
                                                                 background-color: rgba(255, 255, 255, 0.1);
                                                                 color: var(--text-light);
                                                                 transition: var(--transition);
                                                                 box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
                                                             }
                                                             
                                                             .navbar-search input:focus {
                                                                 background-color: rgba(255, 255, 255, 0.15);
                                                                 box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.3);
                                                             }
                                                             
                                                             .navbar-search::after {
                                                                 content: "\f002";
                                                                 font-family: "Font Awesome 6 Free";
                                                                 font-weight: 900;
                                                                 position: absolute;
                                                                 right: 20px;
                                                                 top: 50%;
                                                                 transform: translateY(-50%);
                                                                 color: rgba(255, 255, 255, 0.6);
                                                             }
                                                             /* ===== DROPDOWN DE ATENDIMENTO ===== */
                                                             
                                                             .atendimento-dropdown {
                                                                 width: 300px;
                                                                 padding: 20px !important;
                                                                 right: 0;
                                                             }
                                                             
                                                             .atendimento-content {
                                                                 display: flex;
                                                                 flex-direction: column;
                                                                 gap: 15px;
                                                             }
                                                             
                                                             .atendimento-item {
                                                                 display: flex;
                                                                 gap: 12px;
                                                                 align-items: flex-start;
                                                             }
                                                             
                                                             .atendimento-item i {
                                                                 color: var(--accent-color);
                                                                 font-size: 0.9rem;
                                                                 margin-top: 3px;
                                                             }
                                                             
                                                             .atendimento-item div {
                                                                 display: flex;
                                                                 flex-direction: column;
                                                             }
                                                             
                                                             .atendimento-label {
                                                                 font-weight: 600;
                                                                 font-size: 0.85rem;
                                                                 color: var(--accent-color);
                                                                 margin-bottom: 2px;
                                                             }
                                                             
                                                             .atendimento-item span:not(.atendimento-label) {
                                                                 font-size: 0.85rem;
                                                                 color: var(--text-light);
                                                                 line-height: 1.4;
                                                             }
                                                             
                                                             .fale-conosco-btn {
                                                                 display: flex;
                                                                 align-items: center;
                                                                 justify-content: center;
                                                                 gap: 10px;
                                                                 background-color: var(--accent-color);
                                                                 color: var(--text-dark) !important;
                                                                 padding: 10px 15px;
                                                                 border-radius: 5px;
                                                                 text-align: center;
                                                                 font-weight: 600;
                                                                 font-size: 0.9rem;
                                                                 margin-top: 10px;
                                                                 transition: var(--transition);
                                                                 text-decoration: none !important;
                                                             }
                                                             
                                                             .fale-conosco-btn:hover {
                                                                 background-color: #25D366;
                                                                 color: white !important;
                                                                 transform: translateY(-2px);
                                                                 box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
                                                             }
                                                             
                                                             .fale-conosco-btn i {
                                                                 color: var(--text-dark);
                                                                 font-size: 1.1rem;
                                                             }
                                                             
                                                             .fale-conosco-btn:hover i {
                                                                 color: white;
                                                             }
                         
 .navbar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;

    margin-right: 10px;
}

.navbar-logo {
    height: 40px; /* ajuste conforme o tamanho da logo */
    width: auto;
}
                                                            

/* Estilos da Barra de Pesquisa */
.navbar-search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
    position: relative;
}

.navbar-search {
    display: flex;
    position: relative;
    width: 100%;
}

#searchInput {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #4a90e2;
}

#searchButton {
    padding: 0 15px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #3a7bc8;
}

/* Dropdown de Resultados */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover, 
.search-suggestion.highlighted {
    background-color: #f8f9fa;
}

.search-suggestion .product-info {
    flex: 1;
}

.search-suggestion .product-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.search-suggestion .product-brand {
    font-size: 0.85em;
    color: #666;
}

.search-suggestion .product-price {
    font-weight: 600;
    color: #2a6496;
    white-space: nowrap;
    margin-left: 15px;
}

/* Loader */
.search-loader {
    padding: 15px;
    text-align: center;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-search-container {
        margin: 0 10px;
        order: 3;
        width: 100%;
        max-width: 100%;
    }
}

                                                             @keyframes fadeIn {
                                                                 from {
                                                                     opacity: 0;
                                                                     transform: translateY(-10px);
                                                                 }
                                                                 to {
                                                                     opacity: 1;
                                                                     transform: translateY(0);
                                                                 }
                                                             }
                                                             /* ===== NAV ICONS ===== */
                                                             
                                                             .navbar-icons {
                                                                 display: flex;
                                                                 align-items: center;
                                                                 gap: 15px;
                                                                 margin-left: auto;
                                                             }
                                                             
                                                             .navbar-icons a {
                                                                 color: var(--text-light);
                                                                 text-decoration: none;
                                                                 font-size: 0.9rem;
                                                                 padding: 8px 15px;
                                                                 border-radius: 5px;
                                                                 transition: var(--transition);
                                                                 font-weight: 600;
                                                             }
                                                             
                                                             .navbar-icons a:hover {
                                                                 background-color: #333;
                                                                 color: var(--accent-color);
                                                             }

                                                             
                                                             @keyframes pulse {
                                                                 0% {
                                                                     transform: scale(1);
                                                                     opacity: 1;
                                                                 }
                                                                 50% {
                                                                     transform: scale(1.1);
                                                                     opacity: 0.8;
                                                                 }
                                                                 100% {
                                                                     transform: scale(1);
                                                                     opacity: 1;
                                                                 }
                                                             }
                                                             /* ===== DROPDOWNS ===== */
                                                             
                                                             .dropdown {
                                                                 position: relative;
                                                                 display: inline-block;
                                                             }
                                                             
                                                             .dropdown-toggle {
                                                                 color: var(--text-light);
                                                                 text-decoration: none;
                                                                 font-size: 0.95rem;
                                                                 cursor: pointer;
                                                                 padding: 10px 15px;
                                                                 border-radius: 5px;
                                                                 display: flex;
                                                                 align-items: center;
                                                                 gap: 8px;
                                                                 font-weight: 600;
                                                                 transition: var(--transition);
                                                             }
                                                             
                                                             .dropdown-toggle:hover {
                                                                 background-color: rgba(241, 196, 15, 0.1);
                                                                 color: var(--accent-color);
                                                             }
                                                             
                                                             .dropdown-toggle i {
                                                                 font-size: 1rem;
                                                             }
                                                             
                                                             .dropdown-toggle::after {
                                                                 content: "▾";
                                                                 font-size: 0.9rem;
                                                                 margin-left: 5px;
                                                             }
                                                             
                                                             .dropdown-menu {
                                                                 display: none;
                                                                 position: absolute;
                                                                 background-color: var(--secondary-bg);
                                                                 min-width: 200px;
                                                                 box-shadow: var(--shadow);
                                                                 border-radius: 6px;
                                                                 padding: 8px 0;
                                                                 z-index: 1001;
                                                                 right: 0;
                                                                 border: 1px solid rgba(255, 255, 255, 0.05);
                                                             }
                                                             
                                                             .dropdown:hover .dropdown-menu {
                                                                 display: block;
                                                                 animation: fadeIn 0.3s ease-out;
                                                             }
                                                             
                                                             .dropdown-menu a {
                                                                 color: var(--text-light);
                                                                 padding: 10px 20px;
                                                                 text-decoration: none;
                                                                 display: block;
                                                                 font-size: 0.9rem;
                                                                 transition: var(--transition);
                                                             }
                                                             
                                                             .dropdown-menu a:hover {
                                                                 background-color: var(--accent-color);
                                                                 color: var(--text-dark);
                                                             }
                                                       
                                                             /* ===== BOTÃO DE COTAÇÃO ===== */
                                                             
                                                             .cotacao-link {
                                                                 display: inline-flex;
                                                                 align-items: center;
                                                                 gap: 10px;
                                                                 color: var(--text-dark);
                                                                 background: var(--accent-color);
                                                                 font-weight: 700;
                                                                 font-size: 0.9rem;
                                                                 text-decoration: none !important;
                                                                 padding: 10px 18px;
                                                                 border-radius: 5px;
                                                                 transition: var(--transition);
                                                                 box-shadow: 0 2px 8px rgba(241, 196, 15, 0.4);
                                                                 position: relative;
                                                             }
                                                             
                                                             .cotacao-link:hover {
                                                                 color: var(--text-light);
                                                                 transform: translateY(-2px);
                                                                 box-shadow: 0 4px 12px rgba(241, 196, 15, 0.5);
                                                             }
                                                             
                                                             .cotacao-link i {
                                                                 transition: var(--transition);
                                                             }
                                                             
                                                             .cotacao-link:hover i {
                                                                 color: var(--text-light);
                                                             }
            
                                                             @media (max-width: 1444px) {
                                                                 .navbar {
                                                                     display: flex;
                                                                     align-items: center;
                                                                     flex-wrap: nowrap;
                                                                     justify-content: space-between;
                                                                 }
                                                                 .cotacao-container {
                                                                     flex: 0 1 150px;
                                                                     font-size: 5px;
                                                                     /* Em vez de 2px para manter legível */
                                                                     height: 10px;
                                                                     line-height: 10px;
                                                                     padding: 0 10px;
                                                                     display: flex;
                                                                     align-items: center;
                                                                     justify-content: center;
                                                                 }
                                                                 .navbar-search {
                                                                     width: 350px;
                                                                     max-width: 100%;
                                                                 }
                                                                 .navbar-links {
                                                                     flex-shrink: 0;
                                                                     margin-left: auto;
                                                                     margin-right: 40px;
                                                                     max-width: 300px;
                                                                 }
                                                             }
                                                             
                                                             @media (max-width: 1025px) {
                                                                 .navbar-search {
                                                                     left: -40px;
                                                                     width: 200px;
                                                                     max-width: 100%;
                                                                 }
                                                             }
                                                             
                                                             @media (max-width: 1450px) {
                                                                 .cotacao-container {
                                                                     flex: 0 1 150px;
                                                                     font-size: 5px;
                                                                     /* Em vez de 2px para manter legível */
                                                                     height: 10px;
                                                                     line-height: 10px;
                                                                     padding: 0 10px;
                                                                     display: flex;
                                                                     align-items: center;
                                                                     justify-content: center;
                                                                 }
                                                                 .navbar-search {
                                                                     width: 270px;
                                                                     max-width: 100%;
                                                                 }
                                                             }
                                                             
                                                             @media (max-width: 1024px) {
                                                                 .navbar {
                                                                     display: none !important;
                                                                 }
                                                             }

.navbar-search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.navbar-search {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #00000069;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.search-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover, .search-suggestion.highlighted {
    background-color: #f5f5f5;
}

.search-suggestion small {
    color: #666;
    font-size: 0.8em;
    margin-left: 5px;
}
/* ===== BOTÃO DE IMPORTAÇÃO ===== */




@media (max-width: 1025px) {
    .navbar-search {
        left: -40px;
        width: 200px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .navbar {
        display: none !important;
    }
}
.lista-categorias {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-categorias > li.dropdown {
    position: relative;
    cursor: pointer;
}

.lista-categorias > li.dropdown > ul.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    list-style: none;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 1000;
}

.lista-categorias > li.dropdown:hover > ul.dropdown-menu {
    display: block;
}

/* opcional: estilizar os links do dropdown */
.dropdown-menu li a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
}

.dropdown-menu li a:hover {
    background-color: #eee;
}

/* ===== Bottom Navbar (Mobile Only) ===== */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: none; /* só aparece em mobile */
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 1001;
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #f1c40f; /* amarelo destaque estilo Mercado Livre */
}

.bottom-nav-item.central {
    width: 60px;               /* largura */
    height: 60px;              /* altura igual à largura */
    min-width: 60px;           /* garante largura mínima */
    min-height: 60px;          /* garante altura mínima */
    max-width: 60px;           /* limita o tamanho máximo */
    max-height: 60px;          /* limita o tamanho máximo */
    border-radius: 50%;        /* círculo perfeito */
    background: #f1c40f;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    font-size: 1.2rem;
    transform: translateY(-10px);
    padding: 0;                /* remove padding extra */
    line-height: 1;            /* evita distorção de texto */
    text-align: center;
    box-sizing: border-box;    /* evita que borda/padding aumente o tamanho */
}





/* Mostrar só em telas até 1024px */
@media (max-width: 1024px) {
    .bottom-navbar { display: flex; }
}
.mobile-cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-cart-modal[aria-hidden="false"] {
    display: flex;
}

.mobile-cart-content {
    background: #fff;
    width: 95vw;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

/* Reutiliza estilos do desktop */
.cart-header, .cart-items, .cart-footer { margin-bottom: 0.5rem; }
.cart-close-btn { cursor: pointer; background: none; border: none; font-size: 1.2rem; }
.cart-item { display: grid; grid-template-columns: 50px 2fr 1fr auto auto auto; gap: 0.4rem; font-size: 0.75rem; }
.cart-item-image img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.quantity-input { width: 40px; text-align: center; }
.view-cart-btn { text-align: center; font-size: 0.85rem; }

/* Badge de quantidade do carrinho */
.mobile-cart-badge {
    position: absolute;          /* posição relativa ao botão */
    top: 0;                      /* canto superior */
    right: 0;                    /* canto direito */
    transform: translate(25%, -25%); /* deslocamento para fora do círculo */
    background-color: #ff3b30;   /* vermelho para destaque */
    color: #fff;                 /* texto branco */
    font-size: 0.7rem;           /* tamanho do texto */
    font-weight: bold;
    width: 18px;                  /* largura do círculo */
    height: 18px;                 /* altura do círculo */
    border-radius: 50%;           /* círculo perfeito */
    display: flex;                /* centraliza o número */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none;         /* evita interferência em clique */
}
.bottom-nav-item.central {
    position: relative; /* necessário para o badge */
}
/* ===============================
   BOTÃO CALCULAR RESISTOR
   =============================== */
.btnn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Estilo específico para a navbar */
.btn-navbar-resistor {
    background-color: #ff6f0000; /* Laranja vibrante */
    color: #ffffff;
    border-color: #ff6f0000;
}

.btn-navbar-resistor svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

/* Efeito hover */
.btn-navbar-resistor:hover {
    background-color: #ff8f3300;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-navbar-resistor:hover svg {
    transform: rotate(20deg);
}

/* Efeito active/click */
.btn-navbar-resistor:active {
    background-color: #e65c0000;
    transform: translateY(0);
}

/* Responsividade - mobile */
@media (max-width: 768px) {
    .btn-navbar-resistor {
        padding: 6px 12px;
        font-size: 13px;
    }
    .btn-navbar-resistor svg {
        width: 14px;
        height: 14px;
    }
}
/* ===== ESTILOS ESPECÍFICOS PARA O BOTÃO DE LOGOUT ===== */
.user-menu .logout-btn {
    background: none !important;
    border: none !important;
    color: var(--text-light) !important;
    font: inherit !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    transition: var(--transition) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
}

.user-menu .logout-btn:hover {
    background: rgba(241, 196, 15, 0.1) !important;
    color: var(--accent-color) !important;
}

.user-menu .logout-btn i {
    width: 20px !important;
    text-align: center !important;
    color: inherit !important;
}

.user-menu form {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Garantir que o formulário não tenha estilos indesejados */
.user-menu form {
    display: block !important;
    background: none !important;
    border: none !important;
}

/* Remover qualquer estilo de botão genérico que possa estar afetando */
.user-menu button,
.user-menu input[type="submit"],
.user-menu input[type="button"] {
    background: none !important;
    border: none !important;
    color: ivory !important;
    font: inherit !important;
    cursor: pointer !important;
    padding: 12px 20px !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}