:root { --brand-green: #009e60; --brand-green-dark: #007a4b; --brand-red: #e74c3c; --bg-dark: #121212; --bg-card: #1e1e1e; --text-light: #f8f9fa; }
        * { -webkit-tap-highlight-color: transparent; }
        body { 
            background-color: var(--bg-dark); 
            font-family: 'Poppins', sans-serif; 
            color: var(--text-light); 
            overscroll-behavior-y: none;
            padding-top: env(safe-area-inset-top);
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
            min-height: 100vh;
        }
        
        /* HERO */
        .hero-section { 
            background: linear-gradient(to bottom, rgba(0,0,0,0.4), var(--bg-dark)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); 
            background-size: cover; 
            background-position: center; 
            min-height: 50vh; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            text-align: center; 
            padding-top: max(20px, env(safe-area-inset-top));
            padding-bottom: 20px;
        }
        .hero-logo { 
            width: 100px; 
            height: 100px; 
            border-radius: 50%; 
            border: 3px solid var(--brand-green); 
            background: rgba(0,0,0,0.7); 
            margin-bottom: 15px; 
            backdrop-filter: blur(5px); 
            box-shadow: 0 0 20px rgba(0, 158, 96, 0.3);
        }
        .hero-title { 
            font-weight: 800; 
            font-size: 2rem; 
            text-transform: uppercase; 
            text-shadow: 2px 2px 15px rgba(0,0,0,0.8); 
            margin-bottom: 15px; 
            line-height: 1.1; 
        }
        .status-badge { 
            background: <?php echo $status_cor_fundo; ?>; 
            border: 1px solid <?php echo $status_borda; ?>; 
            color: #fff; 
            padding: 10px 20px; 
            border-radius: 30px; 
            font-size: 0.85rem; 
            display: inline-flex; 
            align-items: center; 
            gap: 8px; 
            backdrop-filter: blur(4px); 
            font-weight: 600; 
            margin-bottom: 1.5rem; 
        }
        
        /* SEÇÕES DIFERENCIADAS */
        .section-header { 
            background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
            padding: 12px 15px; 
            border-radius: 12px; 
            margin-bottom: 15px; 
            margin-top: 15px;
            display: flex; 
            align-items: center; 
            gap: 10px; 
            border-left: 5px solid var(--brand-green);
            backdrop-filter: blur(10px);
        }
        .section-title { font-weight: 800; font-size: 1.2rem; color: #fff; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
        
        /* CARDS */
        .pizza-card { 
            background-color: var(--bg-card); 
            border-radius: 16px; 
            overflow: hidden; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
            border: 1px solid rgba(255,255,255,0.05); 
            display: flex; 
            flex-direction: column; 
            height: 100%; 
            cursor: pointer; 
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .pizza-card:hover { 
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        }
        .pizza-card:active { 
            transform: scale(0.96); 
        }
        .card-img-wrapper { 
            height: 140px; 
            position: relative;
            overflow: hidden;
        }
        .card-img-top { 
            width: 100%; 
            height: 100%; 
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .discount-tag { 
            position: absolute; 
            top: 8px; 
            left: 8px; 
            background: var(--brand-red); 
            color: white; 
            font-weight: 800; 
            font-size: 0.65rem; 
            padding: 3px 8px; 
            border-radius: 6px; 
            z-index: 10; 
        }
        .card-body { 
            padding: 12px; 
            flex-grow: 1; 
            display: flex; 
            flex-direction: column; 
        }
        .card-title { 
            font-size: 0.95rem; 
            font-weight: 700; 
            margin-bottom: 4px; 
            color: white; 
            line-height: 1.2; 
        }
        .card-desc { 
            font-size: 0.7rem; 
            color: #aaa; 
            line-height: 1.3; 
            margin-bottom: 10px; 
            display: -webkit-box; 
            -webkit-line-clamp: 2; 
            -webkit-box-orient: vertical; 
            overflow: hidden; 
            flex-grow: 1; 
        }
        .price-new { 
            font-size: 1rem; 
            font-weight: 700; 
            color: var(--brand-green); 
        }
        .price-old { 
            font-size: 0.7rem; 
            text-decoration: line-through; 
            color: #666; 
            display: block; 
        }
        .btn-add { 
            background: var(--brand-green); 
            color: white; 
            border: none; 
            border-radius: 10px; 
            padding: 8px; 
            font-weight: 600; 
            width: 100%; 
            font-size: 0.8rem; 
            transition: all 0.2s ease;
        }
        .btn-add:hover {
            background: var(--brand-green-dark);
            transform: translateY(-2px);
        }

        /* BARRA DO CARRINHO */
        .cart-bar { 
            position: fixed; 
            bottom: max(20px, env(safe-area-inset-bottom));
            left: 50%; 
            transform: translateX(-50%); 
            width: 90%; 
            max-width: 500px; 
            background-color: var(--brand-green); 
            color: white; 
            border-radius: 50px; 
            padding: 15px 25px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
            display: none; 
            justify-content: space-between; 
            align-items: center; 
            z-index: 1050; 
            cursor: pointer; 
            transition: all 0.3s; 
        }
        .cart-count { 
            background: white; 
            color: var(--brand-green); 
            font-weight: 800; 
            width: 26px; 
            height: 26px; 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-size: 0.8rem; 
            margin-right: 10px; 
        }

        /* MODAL RESPONSIVO */
        .modal-content-dark { 
            background-color: #1c1c1e; 
            color: white; 
            border: none; 
            display: flex; 
            flex-direction: column; 
            border-radius: 20px;
            max-height: 90vh;
            min-height: 40vh;
        }
        .form-control-app { 
            background-color: #2c2c2e !important; 
            border: 1px solid #3a3a3c !important; 
            color: #ffffff !important; 
            padding: 14px; 
            border-radius: 12px; 
            font-size: 16px; 
        }
        .modal-header { 
            border-bottom: 1px solid rgba(255,255,255,0.1); 
            flex-shrink: 0; 
            padding-top: 1rem;
            padding-bottom: 0.5rem;
            position: sticky;
            top: 0;
            background-color: #1c1c1e;
            z-index: 1;
            padding-top: max(1rem, env(safe-area-inset-top));
        }
        .modal-footer { 
            border-top: 1px solid rgba(255,255,255,0.1); 
            flex-shrink: 0; 
            padding-top: 1rem;
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
            position: sticky;
            bottom: 0;
            background-color: #1c1c1e;
            z-index: 1;
        }
        .modal-body { 
            overflow-y: auto; 
            flex-grow: 1; 
            -webkit-overflow-scrolling: touch;
            max-height: calc(90vh - 200px);
        }
        
        .adicional-item { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 12px; 
            border-bottom: 1px solid rgba(255,255,255,0.05); 
            border-radius: 10px;
            margin-bottom: 5px;
        }
        .adicional-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        .form-check-input:checked { 
            background-color: var(--brand-green); 
            border-color: var(--brand-green); 
        }
        
        /* CARRINHO ITEM */
        .cart-item { 
            border-bottom: 1px solid rgba(255,255,255,0.1); 
            padding: 12px 0; 
        }
        .cart-item-name { 
            font-weight: 700; 
            color: white; 
            margin-bottom: 4px; 
            font-size: 0.95rem;
        }
        .cart-item-extras { 
            font-size: 0.8rem; 
            color: #aaa; 
            margin-bottom: 2px;
            padding-left: 10px;
        }
        .cart-item-extras-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 2px;
        }
        .cart-item-extras-item span:first-child {
            color: #ccc;
        }
        .cart-item-extras-item span:last-child {
            color: var(--brand-green);
            font-weight: 600;
        }
        .cart-item-obs { 
            font-size: 0.8rem; 
            color: #ffc107; 
            font-style: italic;
            margin-top: 4px;
        }
        .cart-item-price { 
            color: var(--brand-green); 
            font-weight: 700; 
            font-size: 0.9rem;
            text-align: right;
        }
        .btn-remove { 
            color: #ff6b6b; 
            background: none; 
            border: none; 
            font-size: 1rem; 
            padding: 5px;
            margin-top: 5px;
        }
        
        /* RESUMO DO PEDIDO */
        .resumo-linha {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 0.9rem;
        }
        .resumo-total {
            display: flex;
            justify-content: space-between;
            padding: 12px 0 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--brand-green);
        }
        
        /* ENTREGA SWITCH */
        .entrega-switch {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: rgba(255,255,255,0.05);
            border-radius: 12px;
            margin-bottom: 15px;
        }
        .entrega-label {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .entrega-valor {
            color: var(--brand-green);
            font-weight: 600;
        }
        .form-switch .form-check-input {
            width: 3em;
            height: 1.5em;
        }
        
        /* SISTEMA DE NOTIFICAÇÃO */
        .toast-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            min-width: 300px;
            max-width: 90%;
            background: #1c1c1e;
            border-left: 5px solid var(--brand-green);
            border-radius: 10px;
            padding: 15px 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            display: none;
            align-items: center;
            justify-content: space-between;
            animation: slideInRight 0.3s ease;
        }
        
        .toast-notification.error {
            border-left-color: #dc3545;
        }
        
        .toast-notification.warning {
            border-left-color: #ffc107;
        }
        
        .toast-notification.info {
            border-left-color: #0dcaf0;
        }
        
        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes slideOutRight {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }
        
        .toast-content {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-grow: 1;
        }
        
        .toast-icon {
            font-size: 1.5rem;
        }
        
        .toast-message {
            flex-grow: 1;
        }
        
        .toast-title {
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 3px;
        }
        
        .toast-text {
            font-size: 0.85rem;
            opacity: 0.8;
        }
        
        .toast-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 5px;
        }
        
        /* MODAL DE CONFIRMAÇÃO PERSONALIZADO */
        .custom-confirm-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .custom-confirm-box {
            background: #1c1c1e;
            border-radius: 20px;
            padding: 25px;
            max-width: 400px;
            width: 100%;
            text-align: center;
            animation: popIn 0.3s ease;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        }
        
        @keyframes popIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .confirm-icon {
            font-size: 3rem;
            color: var(--brand-green);
            margin-bottom: 15px;
        }
        
        .confirm-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: white;
        }
        
        .confirm-message {
            font-size: 0.95rem;
            opacity: 0.8;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        
        .confirm-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        
        .confirm-btn {
            padding: 12px 25px;
            border-radius: 10px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            flex: 1;
        }
        
        .confirm-btn.cancel {
            background: rgba(255,255,255,0.1);
            color: white;
        }
        
        .confirm-btn.cancel:hover {
            background: rgba(255,255,255,0.2);
        }
        
        .confirm-btn.ok {
            background: var(--brand-green);
            color: white;
        }
        
        .confirm-btn.ok:hover {
            background: var(--brand-green-dark);
            transform: translateY(-2px);
        }
        
        

        /* Seção de Pagamento */
        .pagamento-section {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .pagamento-option {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }
        
        .pagamento-option:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .pagamento-option.active {
            background: rgba(0, 158, 96, 0.15);
            border-color: var(--brand-green);
        }
        
        .pagamento-icon {
            font-size: 1.5rem;
            margin-right: 12px;
            width: 40px;
            text-align: center;
        }
        
        .pagamento-info {
            flex-grow: 1;
        }
        
        .pagamento-title {
            font-weight: 600;
            font-size: 0.9rem;
            color: white;
        }
        
        .pagamento-desc {
            font-size: 0.75rem;
            color: #aaa;
            margin-top: 2px;
        }
        
        /* Campo de Troco */
        .troco-section {
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 8px;
            padding: 12px;
            margin-top: 10px;
            display: none;
        }
        
        .troco-label {
            font-size: 0.85rem;
            color: #ffc107;
            margin-bottom: 8px;
            display: block;
        }
        
        .troco-result {
            background: rgba(0, 158, 96, 0.1);
            border: 1px solid rgba(0, 158, 96, 0.3);
            border-radius: 8px;
            padding: 10px;
            margin-top: 10px;
            display: none;
        }
        
        .troco-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        
        .troco-total {
            font-weight: 700;
            color: var(--brand-green);
            font-size: 1rem;
            margin-top: 5px;
            padding-top: 5px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        /* Input específico para valor */
        .valor-input {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            border-radius: 8px;
            padding: 12px;
            font-size: 16px;
            width: 100%;
            text-align: center;
            font-weight: 600;
        }
        
        .valor-input:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--brand-green);
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 158, 96, 0.2);
        }
        
        /* AJUSTES MOBILE */
        @media (max-width: 768px) {
            .hero-logo { width: 90px; height: 90px; } 
            .hero-title { font-size: 1.8rem; }
            .card-img-wrapper { height: 120px; }
            .card-body { padding: 10px; }
            .card-title { font-size: 0.9rem; }
            .btn-add { font-size: 0.75rem; padding: 7px; }
            .section-header { padding: 10px 12px; }
            .section-title { font-size: 1.1rem; }
            
            .modal-dialog-bottom-sheet { 
                position: fixed; 
                bottom: 0; 
                margin: 0; 
                width: 100%; 
                max-width: 100%; 
                height: auto; 
                max-height: 90vh;
                display: flex; 
                align-items: flex-end;
            }
            .modal-content-bottom-sheet { 
                border-radius: 20px 20px 0 0; 
                max-height: 100%;
                padding-bottom: env(safe-area-inset-bottom); 
                width: 100%;
            }
            .modal-body {
                max-height: calc(90vh - 180px);
            }
            
            .toast-notification {
                top: max(20px, env(safe-area-inset-top));
                left: 20px;
                right: 20px;
                max-width: 100%;
            }
            
            .custom-confirm-box {
                margin: 20px;
            }
            
            .confirm-buttons {
                flex-direction: column;
            }
        }
        
        @media (min-width: 769px) {
            .modal-dialog-bottom-sheet {
                max-width: 500px;
                margin: 1.75rem auto;
            }
            .modal-content-bottom-sheet {
                border-radius: 20px;
            }
        }
        
        .modal-drag-handle { 
            width: 40px; 
            height: 5px; 
            background: #48484a; 
            border-radius: 100px; 
            margin: 8px auto 12px; 
            flex-shrink: 0; 
        }
        
        /* Estado vazio */
        .empty-cart {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }
        .empty-cart i {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        /* Footer */
        .social-icons a { 
            color: white; 
            font-size: 1.5rem; 
            margin: 0 10px; 
            opacity: 0.8; 
        }
        .footer-text { 
            color: #666; 
            font-size: 0.8rem; 
            margin-bottom: 5px; 
        }
        .dev-link { 
            color: var(--brand-green); 
            text-decoration: none; 
            font-weight: 600; 
        }
        .site-footer { 
            background-color: #0a0a0a; 
            padding: 40px 0; 
            text-align: center; 
            border-top: 1px solid rgba(255,255,255,0.05); 
            margin-top: 40px; 
        }
        
        /* Animações */
        .modal.fade .modal-dialog-bottom-sheet {
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }
        .modal.show .modal-dialog-bottom-sheet {
            transform: translateY(0);
        }
        
        /* Grid responsivo */
        .row {
            --bs-gutter-x: 0.75rem;
            --bs-gutter-y: 0.75rem;
        }
        
        /* Ajuste para inputs em iOS */
        input, textarea {
            font-size: 16px !important; /* Evita zoom automático no iOS */
        }