* {box-sizing: border-box;}
    
        .open-button {
            background-color: #555;
            color: white;
            padding: 16px 20px;
            border: none;
            cursor: pointer;
            opacity: 0.8;
            position: fixed;
            bottom: 23px;
            left: 28px;
            width: 280px;
        }

        .form-popup {
            display: none;
            position: fixed;
            bottom: 0;
            left: 15px;
            border: 3px solid #f1f1f1;
            z-index: 9;
        }

        .form-container {
            max-width: 300px;
            padding: 10px;
            background-color: white;
        }

        .form-container input[type=text], .form-container input[type=password], .form-container input[type=number] {
            width: 100%;
            padding: 15px;
            margin: 5px 0 22px 0;
            border: none;
            background: #f1f1f1;
        }

        .form-container input[type=text]:focus, .form-container input[type=password]:focus {
            background-color: #ddd;
            outline: none;
        }

        .form-container .btn {
            background-color: #4CAF50;
            color: white;
            padding: 16px 20px;
            border: none;
            cursor: pointer;
            width: 100%;
            margin-bottom:10px;
            opacity: 0.8;
        }

        .form-container .cancel {
            background-color: red;
        }

        .form-container .btn:hover, .open-button:hover {
            opacity: 1;
        }

        #subirTopo {
            text-decoration: none;
            background: rgba(30,156,161,.9);
            bottom: 30px;
            right: 30px;
            color: #fff;
            text-align: center;
            cursor: pointer;
            padding: 15px;
            font-size: 15px;
            font-weight: bold;
            text-transform: uppercase;
            position: fixed;
            border: 0;
            font-family: sans-serif;
            opacity: .8;
            z-index: 1;
        }

        #subirTopo:hover {
            opacity:1;
        }

        .navbar .container-fluid {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .icones-esquerda,
        .icones-direita {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-central {
            flex-shrink: 0;
            text-align: center;
        }
        
        body { background: rgb(255, 255, 255) !important; }

        @media (max-width: 768px) {
            .navbar .container-fluid {
                flex-direction: column;
                align-items: center;
                text-align: center;
                width: 100%;
                margin-bottom: 17px;
            }

            .logo-central {
                order: 1;
                margin-bottom: -10px;
            }

            .icones-esquerda {
                order: 2;
                display: flex;
                flex-direction: column; 
                align-items: flex-start; 
                width: 100%;
                padding-left: 0px;
                margin-top: 15px;
                margin-bottom: -25px;
            }

            .icones-grupo {
                margin-bottom: -10px;
                display: flex;
                flex-direction: row;
                justify-content: center;
                gap: 5px; 
            }

            
            .icones-direita {
                order: 3;
                display: flex;
                justify-content: flex-end;
                width: 100%;
                padding-right: 15px;
                margin-top: -30px;
                
                margin-left: 0 !important;
            }

            .navbar .d-flex.align-items-center {
                flex-direction: row !important;
                justify-content: center;
                gap: 15px;
                margin-top: 10px;
                width: 100%;
            }

            .navbar .d-flex.align-items-center a,
            .navbar .d-flex.align-items-center .me-3 {
                margin-right: 0 !important;
            }

            .text-right.me-3 {
                text-align: center !important;
            }

            .nav-btn {
                display: none !important;
            }

            .categorias-wrapper {
                padding: 10px 40px;
            }
            #menuCategorias {
                width: 100%;
                box-sizing: border-box;
            }
            .categoria-btn {
                padding: 6px 12px; 
                font-size: 12px;
            }

            .form-pesquisa .row {
                flex-direction: column;
                max-width: 100%;
            }
            .input-pesquisa,
            .btn-pesquisa {
                max-width: 100%;
                width: 100%;
                margin-bottom: 10px;
            }

            .form-row {
                flex-direction: column;
                line-height: normal !important;
                display: grid !important;
                gap: 20px !important; 

            }

            .product-image {
                padding: 0 !important;
                margin: 0 !important;
                line-height: normal !important;
            }

            .product-image img {
                width: 100%;
                height: auto !important;
                object-fit: cover;
            }

            .product-image label {
                display: block;
                margin-top: 10px !important;
                margin-bottom: 0 !important;
                min-height: unset !important;
                height: auto !important;
                line-height: 1.4;
                font-size: 13px;
            }

            .product-details {
                font-size: 18px;
                font-family: Arial, sans-serif;
                color: #212529;
                margin-bottom: 0 !important;
                padding-bottom: 0 !important;             
                gap: 0;
                height: 20px;
            }

            .quantity-line {
                font-weight: bold;
                display: flex;
                align-items: center;    
                gap: 10px;             
                margin-bottom: 0 !important;
            }


            .quantity-wrapper { display: inline-flex !important; }

            .qtd-input {
                width: 70px; 
                font-size: 16px;
                height: 35px;
                font-size: 17px;
                border-radius: 8px;
                border: 0px;
            }
            
            .btn-qtd {
                padding: 6px 8px; 
                font-size: 17px;
                color: black;
                border-radius: 8px;
                height: 35px;
                border: 0px;
                width: 30px;
            }

            .btn-qtd:hover {
                border: 0px;
            }

            .unit {
                font-weight: bold;
            }

            .price-line {
                font-size: 18px;
                font-weight: bold;
                display: flex;
                align-items: center;
                gap: 65px;
                margin-top: 20px;
                margin-bottom: 0 !important;
            }

            .price {
                font-size: 18px;
                font-weight: bold;
                color: green;
                margin-bottom: 0 !important;
            }

        }

        .form-popup {
            display: none;
            position: fixed; 
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .form-container {
            background-color: white;
            padding: 30px 40px 40px 40px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
            width: 300px;
            position: relative;
            
        }

        .form-container .btn-close {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            font-weight: bold;
            font-size: 20px;
            color: red;
            cursor: pointer;
            line-height: 1;
        }

        .form-container h3 {
            text-align: center;
            font-size: 45px;
            margin: 15px 0 20px 0;
            font-weight: bold;
            letter-spacing: 1px;
        }


        .form-container label {
            font-weight: 600;
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
        }

        .form-container input[type=text],
        .form-container input[type=password] {
            width: 100%;
            padding: 8px 10px;
            font-size: 16px;
            margin-bottom: 20px;
            border-radius: 4px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }

        .form-container button[type=submit] {
            width: 100%;
            padding: 10px 0;
            font-size: 18px;
            font-weight: bold;
            border: none;
            border-radius: 4px;
        }

        .categorias-wrapper {
            position: relative;
            background-color: #fff;
            padding: 10px 50px; 
            box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
            z-index: 1000;
        }

        .categorias-wrapper.fixed {
            position: fixed;
            top: 0px;
            left: 0;
            right: 0;
            z-index: 99;
        }

        #menuCategorias {
            display: flex;
            overflow-x: auto;
            white-space: nowrap;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch; 
            padding-bottom: 6px;
            touch-action: pan-x;
            gap: 6px;
        }

        #menuCategorias::-webkit-scrollbar {
            display: none; 
        }

        .categoria-btn {
            flex: 0 0 auto;
            background-color: #fff;
            color: #000;
            border: 1px solid #ccc;
            border-radius: 12px;
            padding: 8px 14px;
            margin: 0 6px;
            font-weight: bold;
            font-size: 13px;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.3s, color 0.3s;
        }

        .categoria-btn:hover {
            background-color: #f2f2f2;
            color: #000;
        }

        .categoria-btn.active, .categoria-btn.ativa {
            background-color: #f40606;
            color: #fff;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: #ddd;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 18px;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.3s;
            z-index: 1010;
        }

        .nav-btn:hover {
            background-color: #bbb;
        }

        #prevBtn { left: 10px; }
        #nextBtn { right: 10px; }
        
        .form-pesquisa {
            display: flex;
            justify-content: center;
        }
        .form-pesquisa .row {
            width: 100%;
            max-width: 700px; 
            display: flex;
            justify-content: center;
            gap: 10px; 
        }

        .input-pesquisa {
            border-radius: 12px;
            padding: 10px 15px;
            font-size: 1rem;
            flex-grow: 1; 
            max-width: 400px;
        }
        .btn-pesquisa {
            border-radius: 12px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 1rem;
        }

        .animacao {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            animation: piscar 1s infinite alternate;
        }

        @keyframes piscar {
            0% {
            opacity: 0.4;
            box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 20px currentColor;
            background-color: currentColor; 
            }
            100% {
            opacity: 1;
            box-shadow: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 80px currentColor;
            background-color: currentColor; 
            }
        }

        form.needs-validation {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            font-family: Arial, sans-serif;
        }

        form.needs-validation h4 {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .form-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px !important;
        }

        .form-row .product-image {
            flex: 1 1 350px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .form-row .product-image img {
            width: 100%;
            max-width: 400px; 
            height: 250px;          
            object-fit: cover;
            border-radius: 8px;
            display: block;
        }

        .form-row .product-details {
            font-weight: bold;
            flex: 0 0 150px;
            gap: 10px;
        }
        .product-details span {
            font-weight: 600;
            display: block;
            margin-top: 8px;
        }
        .price {
            font-weight: bold;
            color: green;
        }

        .form-row .product-observation {
            flex: 1 1 300px;
        }
        .product-observation textarea {
            width: 100%;
            resize: none;
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 8px;
            font-size: 14px;
        }

        .form-actions {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }
        .form-actions .btn {
            flex: 1;
            font-size: 16px;
            padding: 12px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
        }
        .btn-primary {
            background: #2563eb;
            color: white;
        }
        .btn-primary:hover {
            background: #1e4fc5;
        }
        .btn-secondary {
            background: #9ca3af;
            color: white;
        }
        .btn-secondary:hover {
            background: #7d8186;
        }


        a.limpar {
            color: red;
            font-size: 14px;
            display: inline-block;
            margin-top: 6px;
            text-decoration: none;
        }
        
        a.limpar:hover {
            text-decoration: underline;
        }

        .product-image {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .product-image img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }



         .quantity-wrapper{ display: inline-flex !important; }

            .qtd-input {
                width: 70px; 
                font-size: 16px;
                height: 35px;
                font-size: 17px;
                border-radius: 8px;
                border: 0px;
            }
            
            .btn-qtd {
                padding: 6px 8px; 
                font-size: 17px;
                color: black;
                border-radius: 8px;
                height: 35px;
                border: 0px;
                width: 30px;
                margin: 2px;
            }

            .btn-qtd:hover {
                border: 0px;
            }

            .unit {
                font-weight: bold;
            }

        .price {
                font-size: 18px;
                font-weight: bold;
                color: green;
                margin-bottom: 0 !important;
        }