  .usuario-logado {
            text-align: center;
            padding: 10px;
            background-color: rgb(242, 223, 179);
            border-bottom: 1px solid rgb(18, 60, 102);
            font-size: 1.1em;
        }

        .usuario-logado strong {
            color: #007bff;
        }

        /* Estilos para a modal do carrinho - Desktop */
        #modalCarrinho .modal-dialog {
            display: flex;
            align-items: center;
            min-height: calc(100% - 1rem);
            max-width: 650px;
            margin: 0.5rem auto;
        }

        #modalCarrinho .modal-content {
            border-radius: 15px;
            width: 100%;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        #modalCarrinho .modal-header {
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        }

        #modalCarrinho .modal-body {
            padding: 1.5rem;
            max-height: 60vh;
            overflow-y: auto;
        }

        #modalCarrinho .table {
            margin-bottom: 0;
        }

        #modalCarrinho .table th {
            white-space: nowrap;
            font-weight: 600;
            background-color: #f8f9fa;
        }

        #itensCarrinho tr:hover {
            background-color: rgba(0, 123, 255, 0.05);
        }

        .btn-excluir-item {
            color: #dc3545;
            background: none;
            border: none;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .btn-excluir-item:hover {
            color: #fff;
            background-color: #dc3545;
        }

        .quantidade-item {
            width: 60px;
            text-align: center;
            margin: 0 auto;
            display: block;
        }

        #itensCarrinho tr td {
            vertical-align: middle;
            padding: 0.75rem;
        }

        #modalCarrinho .modal-footer {
            padding: 1rem 1.5rem;
            background-color: #f8f9fa;
            border-top: 1px solid #dee2e6;
        }


        .loading-message {
            text-align: center;
            padding: 40px;
            font-size: 1.2em;
            color: #6c757d;
        }

        .empty-message {
            text-align: center;
            padding: 30px;
            font-size: 1.3em;
            color: #dc3545;
            font-weight: bold;
            background-color: #f8f9fa;
            border-radius: 8px;
            margin: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .empty-message i {
            display: block;
            margin-bottom: 15px;
            color: #6c757d;
        }

        /* Estilos para tablets */
        @media (max-width: 991.98px) {
            #modalCarrinho .modal-dialog {
                max-width: 90%;
                margin: 0.5rem auto;
            }

            #modalCarrinho .modal-body {
                padding: 1rem;
            }

            .btn-excluir-item {
                padding: 0.2rem 0.4rem;
                font-size: 0.875rem;
            }
        }

        /* Estilos para celulares */
        @media (max-width: 767.98px) {
            #modalCarrinho .modal-dialog {
                max-width: 95%;
                margin: 0.25rem auto;
            }

            #modalCarrinho .modal-header,
            #modalCarrinho .modal-footer {
                padding: 0.75rem;
            }

            #modalCarrinho .modal-title {
                font-size: 1.1rem;
            }

            #modalCarrinho .table th,
            #modalCarrinho .table td {
                padding: 0.5rem;
                font-size: 0.85rem;
            }

            #modalCarrinho .table th:nth-child(2),
            #modalCarrinho .table td:nth-child(2),
            #modalCarrinho .table th:last-child,
            #modalCarrinho .table td:last-child {
                text-align: center;
            }

            .quantidade-item {
                width: 50px;
            }

            #itensCarrinho tr td:first-child {
                max-width: 120px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            #itensCarrinho tr td:first-child img {
                display: none;
            }

            .btn-excluir-item {
                padding: 0.15rem 0.3rem;
                font-size: 0.75rem;
            }

            #modalCarrinho .btn {
                padding: 0.375rem 0.75rem;
                font-size: 0.875rem;
            }
        }

        /* Estilos para celulares muito pequenos */
        @media (max-width: 575.98px) {
            #modalCarrinho .modal-dialog {
                max-width: 100%;
                margin: 0;
                min-height: 100vh;
            }

            #modalCarrinho .modal-content {
                border-radius: 0;
                min-height: 100vh;
            }

            #modalCarrinho .modal-body {
                max-height: none;
                flex-grow: 1;
            }

            #modalCarrinho .table {
                display: block;
                width: 100%;
                overflow-x: auto;
            }

            .quantidade-item {
                width: 45px;
            }
        }