
        .topbar {
            display: flex;
            flex-wrap: wrap;         /* Quebra em telas menores */
            gap: 20px;
            align-items: center; /* Alinha verticalmente no centro, se precisar */
            background: #0b76d1; 
            color: #fff; 
            position: fixed; 
            width: 100%; 
            height: 68px;
            top: 0; 
            z-index: 1000;
            margin: 0;
            padding: 0;  
            justify-content: center;
        }
        .brand-container {
            width: 23%;
            height: 65px;
            text-align: center;
            padding: 0; 
            margin: 0;
        }
        .modern-search-container {
            width: 50%;
            max-width: 600px;
            z-index: 998;
            font-family: Arial, sans-serif;
        }

        .brand {
          cursor: pointer;
          display: inline-flex;
          align-items: center;
          gap: 8px; /* Espaço controlado entre logo e texto */
          user-select: none;
        }

        .brand-text {
          display: inline-flex;
          align-items: center;
          gap: 0; /* Remove qualquer gap extra */
          font-weight: bold;
          font-size: 2rem;
          color: #ffffff;
          white-space: nowrap;
        }

        /* Logo */
        .logo {
          display: inline-block;
          width: 45px;
          height: 45px;
          background: url('../img/favicon.png') no-repeat center;
          background-size: contain;
          margin-top: -10px;
          padding: 0px;
          border: none;

          /* Adicionando transição suave para o hover */
          transition: transform 0.1s;
        }

        /* Efeito de tremor ao passar o mouse */
        .logo:hover {
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
            20%, 40%, 60%, 80% { transform: translateX(2px); }
        }


        /* === ESTILO MODERNO TIPO GOOGLE === */


        .modern-search-form {
            width: 100%;
        }

        .modern-search-wrapper {
            position: relative;
            width: auto;
        }

        .modern-search-wrapper input {
            width: 100%;
            padding: 0.55rem 3rem 0.55rem 1rem;
            font-size: 15px;
            border: 1px solid #dfe1e5;
            border-radius: 24px;
            outline: none;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
            transition: box-shadow 0.2s, border 0.2s;
            box-sizing: border-box;
            background-color: #fff;
        }

        .modern-search-wrapper input:focus {
            border-color: #fff;
            box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28), 0 0 0 3px rgba(66, 133, 244, 0.1);
        }

        /* Botão circular com ícone SVG */
        .modern-search-btn {
            position: absolute;
            right: 2px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            background: #0b76d1;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, transform 0.1s;
            z-index: 5;
        }

        .modern-search-btn:hover {
            background: #555;
            transform: translateY(-50%) scale(1.05);
        }

        .modern-search-btn:active {
            transform: translateY(-50%) scale(0.98);
        }

        .modern-search-btn svg {
            width: 20px;
            height: 20px;
        }



       /* ====== BASE (comum aos dois modos) ====== */

       .custom-cat-container {
            width: 23%;
            text-align: center;
            z-index: 999;
        }

        .item-container {
            flex: 0 1 auto;          /* Não cresce nem encolhe além do conteúdo */
            min-width: 200px;        /* Evita ficar muito estreito */
            padding: 10px;
            box-sizing: border-box;
        }

        .custom-cat-box {
            display: inline-block;
            font-family: Arial, sans-serif;
            position: relative;
        }

        .custom-cat-title {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 5px;
            background: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 6px;
            transition: background 0.2s;
            user-select: none;
        }

        .custom-cat-title:hover {
            background: #e8e8e8;
        }

        .custom-cat-title img {
            width: 22px;
            height: 22px;
        }

        .custom-cat-title-name {
            font-weight: bold;
            font-size: 14px;
            color: #0b76d1;
        }

        /* Conteúdo (dropdown) */
        .custom-cat-content {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.1);
            width: max-content;
            min-width: 180px;
            padding: 10px 0;
            max-height: 70vh;
            overflow-y: auto;
            z-index: 1000;
            /* Animação suave */
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        }

        .custom-cat-item a {
            text-decoration: none;
            color: inherit;
        }

        /* Itens do menu */
        .custom-cat-link {
            display: flex;
            align-items: center;
            padding: 8px 14px;
            transition: background 0.2s;
            text-decoration: none;
            color: inherit;
        }
        .custom-cat-link:hover {
            background: #c0c0c0;
        }
        .custom-cat-link img {
            width: 26px;
            height: 26px;
            margin-right: 10px;
            border-radius: 4px;
        }
        .custom-cat-link span {
            font: bold 15px 'Arial Narrow', Arial, sans-serif;
            color: #333;
        }
        .custom-cat-link span:hover {
            color:#0b76d1;
        }
            
        /* Scrollbar */
        .custom-cat-content::-webkit-scrollbar {
            width: 6px;
        }
        .custom-cat-content::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }
        .custom-cat-content::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        /* ====== MODO DESKTOP (≥769px) ====== */
        @media (min-width: 769px) {
            .custom-cat-content {
                position: absolute;
                top: 100%;
                right: 0;
                left: auto;
                margin-top: -1px; /* evita gap */
            }

            .custom-cat-box:hover .custom-cat-content {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }

        /* ====== MODO MOBILE (≤768px) ====== */
        @media (max-width: 768px) {
            .custom-cat-container {
                width: 10%;
                text-align: center;
                z-index: 999;
             }    

             .item-container {
                flex: 0 1 auto;
                min-width: 100px;
                padding: 10px;
                box-sizing: border-box;
            }
            .custom-cat-title-name {
                    display: none;
                }

            .custom-cat-content {
            max-height: 60vh;
            box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        }
           
            .custom-cat-title {
                width: 37px;
                justify-content: space-between;
                border-radius: 6px;
            }

            .custom-cat-content {
                position: absolute;
                top: 100%;
                right: 0;
                left: auto;
                width: max-content;
                min-width: 180px;
                box-shadow: none;
                border-radius: 0 0 6px 6px;
                border-top: none;
                margin-top: -1px;
            }

            /* Abre com .active */
            .custom-cat-box.active .custom-cat-content {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }

        /* === RESPONSIVIDADE === */
        @media only screen and (max-width: 728px) and (min-width: 360px) { 

        .brand-container {
            width: 10%;
            text-align: center;
            padding: 0px 0px 0px 25px;
            margin-left: -40px;
        }
        .logo {
          width: 50px;
          height: 50px;
            margin-top: -5px;
            margin-left: 10px;
        }
        .modern-search-container {
            width: 50%;
            max-width: 500px;
            z-index: 998;
            font-family: Arial, sans-serif;
        }

        .item-container {
              flex: 0 1 auto;          /* Não cresce nem encolhe além do conteúdo */
              min-width: 100px;        /* Evita ficar muito estreito */
              padding: 10px;
              box-sizing: border-box;
        }

        .modern-search-container2 {
            left: 50%;
            transform: translateX(-50%);
            width: 85%;
            max-width: 250px;
            top: 17px;
        }

        .modern-search-wrapper input {
            padding: 0.5rem 2rem 0.5rem 1rem;
            font-size: 14px;
        }

        .modern-search-btn {
            width: 28px;
            height: 28px;
            right: 1px;
        }

        .modern-search-btn svg {
            width: 18px;
            height: 18px;
        }

    }
