
        * { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --primary: #ff6b6b;
            --secondary: #4ecdc4;
            --dark: #2d3436;
            --light: #f8f9fa;
            --shadow: rgba(0,0,0,0.1);
            --transition: 0.3s ease;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }

        /* NAVEGAÇÃO COM ANIMAÇÃO APARECER/DESAPARECER (DESKTOP) */
        nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            background: white;
            box-shadow: 0 2px 20px var(--shadow);
            padding: 1rem 2rem;
            z-index: 1000;
            transform: translateY(-100%);
            opacity: 0;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        nav.visible { transform: translateY(0); opacity: 1; }

        nav .container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        nav .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
        }

        nav .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        nav .nav-links a, nav .nav-links button {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: color var(--transition);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
        }
        nav .nav-links a:hover, nav .nav-links button:hover { color: var(--primary); }

        #userInfo { display: flex; align-items: center; gap: 1rem; }

        #cartBtn {
            position: relative;
            background: var(--primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: transform var(--transition);
        }
        #cartBtn:hover { transform: translateY(-2px); }

        #cartCount {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--secondary);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
        }

        /* HERO */
        .hero {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 6rem 2rem 4rem;
            text-align: center;
        }
        .hero h1 { font-size: 3rem; margin-bottom: 1rem; }
        .hero p { font-size: 1.2rem; opacity: 0.9; }

        /* PRODUTOS */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .category { margin: 3rem 0; }
        .category h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
            border-bottom: 3px solid var(--primary);
            display: inline-block;
            padding-bottom: 0.5rem;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 2rem;
        }

        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px var(--shadow);
            transition: transform var(--transition), box-shadow var(--transition);
        }
        .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow); }

        /* =========================================================
           IMAGEM NO CARD
           - Padrão (pizzas/salgados etc): object-fit: cover
           - BOLOS: object-fit: contain (SEM CORTAR)
        ========================================================= */
        .product-media {
            width: 100%;
            height: clamp(240px, 22vw, 360px);
            background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(78,205,196,0.12));
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;         /* padrão: preenche sem distorcer, mas pode recortar */
            object-position: center;
        }

        /* Correção solicitada: BOLOS sem cortar */
        .product-media.fit-contain .product-img {
            object-fit: contain;       /* mostra a imagem inteira */
            background: #fff;          /* evita "transparência" feia */
        }

        .product-info { padding: 1.75rem; }

        .product-name {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .product-desc {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .product-price {
            font-size: 1.25rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 0.25rem;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .product-price small {
            color: #666;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .product-total {
            color: var(--dark);
            font-weight: 700;
            margin-bottom: 0.9rem;
            font-size: 1.05rem;
        }

        /* Tamanhos da pizza */
        .pizza-sizes {
            background: #fafafa;
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 0.75rem;
            margin: 0.75rem 0 0.9rem;
        }

        .pizza-sizes .label {
            font-weight: 700;
            margin-bottom: 0.35rem;
            color: #555;
            font-size: 0.9rem;
        }

        .pizza-sizes .options {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.35rem;
            font-size: 0.95rem;
        }

        .pizza-sizes label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.35rem 0.45rem;
            border-radius: 8px;
            transition: background var(--transition);
        }
        .pizza-sizes label:hover { background: rgba(78,205,196,0.12); }
        .pizza-sizes .left { display: flex; align-items: center; gap: 0.5rem; }
        .pizza-sizes input[type="radio"] { transform: scale(1.05); }
        .pizza-price { font-weight: 800; color: var(--primary); }

        .product-controls { display: flex; align-items: center; gap: 1rem; }

        .quantity-control { display: flex; align-items: center; gap: 0.5rem; }

        .quantity-control button {
            width: 32px; height: 32px;
            border: 2px solid var(--primary);
            background: white;
            color: var(--primary);
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            transition: all var(--transition);
        }
        .quantity-control button:hover { background: var(--primary); color: white; }

        .quantity-control span { min-width: 30px; text-align: center; font-weight: 600; }

        .add-btn {
            flex: 1;
            background: var(--secondary);
            color: white;
            border: none;
            padding: 0.7rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all var(--transition);
        }
        .add-btn:hover { background: #3db8b0; transform: scale(1.05); }
        .add-btn.added-ok { background: #27ae60 !important; }

        /* CARRINHO DRAWER */
        #cartDrawer {
            position: fixed;
            top: 0; right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -2px 0 20px var(--shadow);
            transition: right 0.3s ease;
            z-index: 2000;
            display: flex;
            flex-direction: column;
        }
        #cartDrawer.open { right: 0; }

        .cart-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1999;
            display: none;
        }
        .cart-overlay.active { display: block; }

        .cart-header {
            padding: 1.5rem;
            background: var(--primary);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .cart-header h2 { font-size: 1.5rem; }

        #closeCart {
            background: none; border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }

        .cart-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }

        .cart-item-info { flex: 1; }

        .cart-item-name {
            font-weight: 700;
            margin-bottom: 0.15rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

        .cart-thumb {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: cover;
            display: inline-block;
            flex: 0 0 auto;
        }

        .cart-item-sub { color: #666; font-size: 0.9rem; margin-bottom: 0.35rem; }
        .cart-item-price { color: var(--primary); font-weight: 700; }

        .cart-item-remove {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 0.3rem 0.7rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.85rem;
        }

        .cart-footer { padding: 1.5rem; border-top: 2px solid #eee; }

        #cartObservations {
            width: 100%;
            padding: 0.7rem;
            border: 2px solid #ddd;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-family: inherit;
            resize: vertical;
        }

        .cart-total {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
        }

        #finalizeBtn {
            width: 100%;
            background: #25D366;
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            font-size: 1.05rem;
            transition: background var(--transition);
        }
        #finalizeBtn:hover { background: #20ba5a; }

        .empty-cart { text-align: center; padding: 3rem 1rem; color: #999; }

        /* MODAL DE EXTRATO */
        #extractModal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        #extractModal.active { display: flex; }

        .extract-content {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            max-width: 720px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .extract-content h2 {
            color: var(--primary);
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .extract-section { margin-bottom: 1.5rem; }

        .extract-section h3 {
            color: var(--secondary);
            margin-bottom: 0.7rem;
            font-size: 1.1rem;
        }

        .extract-block {
            background: var(--light);
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid #eee;
        }

        .extract-item {
            display: grid;
            grid-template-columns: 36px 1fr 80px 110px 110px;
            gap: 0.5rem;
            padding: 0.35rem 0;
            border-bottom: 1px dashed #ddd;
            align-items: center;
            font-size: 0.95rem;
        }
        .extract-item:last-child { border-bottom: none; }

        .extract-total {
            font-size: 1.2rem;
            font-weight: 800;
            padding: 1rem;
            background: var(--primary);
            color: white;
            border-radius: 8px;
            margin: 1rem 0;
            display: flex;
            justify-content: space-between;
        }

        #qrcodeBox {
            text-align: center;
            padding: 1rem;
            background: var(--light);
            border-radius: 8px;
            margin: 1rem 0;
            border: 1px solid #eee;
        }
        #qrcodeEl { display: inline-block; }

        .copy-paste {
            width: 100%;
            padding: 0.7rem;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }

        .pix-proof {
            margin-top: 0.6rem;
            padding: 0.65rem 0.8rem;
            border-radius: 12px;
            background: rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.06);
        }

        .extract-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }

        .extract-actions button {
            flex: 1;
            padding: 0.8rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 700;
            transition: all var(--transition);
        }

        #whatsappBtn { background: #25D366; color: white; }
        #closeExtractBtn { background: #95a5a6; color: white; }

        /* MENU HAMBURGUER */
        #mobileMenuBtn {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--primary);
            padding: 0.5rem;
        }

        /* MOBILE & TABLET */
        @media (max-width: 1024px) {
            nav { transform: translateY(0); opacity: 1; } /* sempre visível em touch */
            nav .container { padding: 0; }

            #mobileMenuBtn { display: block; }

            nav .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                background: white;
                flex-direction: column;
                padding: 2rem 1.5rem;
                box-shadow: -2px 0 20px var(--shadow);
                transition: right 0.3s ease;
                z-index: 2001;
                overflow-y: auto;
            }

            nav.mobile-open .nav-links { right: 0; }

            nav .nav-links a, nav .nav-links button {
                width: 100%;
                padding: 1rem;
                text-align: left;
                border-bottom: 1px solid #eee;
            }

            #userInfo {
                width: 100%;
                flex-direction: column;
                gap: 0.5rem;
                border-bottom: 1px solid #eee;
                padding-bottom: 1rem;
            }

            #cartBtn { width: 100%; margin-top: 1rem; }

            .hero { padding: 5rem 1.5rem 3rem; }
            .hero h1 { font-size: 2rem; }
            .hero p { font-size: 1rem; }

            .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }

            .product-card { max-width: 560px; margin: 0 auto; }
            .product-media { height: 280px; }

            #cartDrawer { width: 100%; right: -100%; }
            .extract-content { max-width: 95%; padding: 1.5rem; }

            .extract-item { grid-template-columns: 28px 1fr 70px 90px 90px; font-size: 0.9rem; }

            .footer-grid { grid-template-columns: 1fr; }
            .map-embed { height: 280px; }
        }

        @media (max-width: 480px) {
            .hero h1 { font-size: 1.5rem; }
            .category h2 { font-size: 1.5rem; }
            nav .logo { font-size: 1.2rem; }
        }

        /* OVERLAY PARA MENU MOBILE */
        .menu-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            display: none;
        }
        .menu-overlay.active { display: block; }

        /* FOOTER */
        footer {
            margin-top: 3rem;
            background: #111;
            color: #eee;
            padding: 2.5rem 1.5rem;
        }

        footer .footer-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 2rem;
            align-items: start;
        }

        .footer-title {
            color: white;
            font-size: 1.25rem;
            font-weight: 800;
            margin-bottom: 0.75rem;
        }

        .footer-info p { margin: 0.25rem 0; color: #cfcfcf; }
        .footer-info strong { color: white; }

        .footer-badges {
            margin-top: 1rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .badge {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.12);
            padding: 0.35rem 0.6rem;
            border-radius: 999px;
            font-size: 0.85rem;
            color: #eee;
        }

        .map-embed {
            width: 100%;
            height: 320px;
            border: 0;
            border-radius: 12px;
            overflow: hidden;
        }

        .footer-bottom {
            margin-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.12);
            padding-top: 1rem;
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
            color: #bdbdbd;
            font-size: 0.9rem;
        }

        /* MODAL CADASTRO/LOGIN */
        #authModal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 3500;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        #authModal.active { display: flex; }

        .auth-content {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            max-width: 720px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
        }

        .auth-content h2 {
            color: var(--primary);
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .auth-hint {
            text-align: center;
            color: #666;
            margin-bottom: 1.25rem;
        }

        .auth-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .auth-grid label {
            display: block;
            font-weight: 700;
            color: #444;
            font-size: 0.95rem;
        }

        .auth-grid input {
            width: 100%;
            margin-top: 0.35rem;
            padding: 0.75rem;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
        }
        .auth-grid input:focus { border-color: var(--secondary); }

        .auth-actions {
            display: flex;
            gap: 1rem;
            margin-top: 1.25rem;
        }
        .auth-actions button {
            flex: 1;
            padding: 0.9rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 800;
            transition: all var(--transition);
        }
        #authSaveBtn { background: var(--secondary); color: white; }
        #authSaveBtn:hover { background: #3db8b0; }

        #authCancelBtn { background: #95a5a6; color: white; }
        #authCancelBtn:hover { filter: brightness(0.95); }

        @media (max-width: 640px) {
            .auth-grid { grid-template-columns: 1fr; }
            .auth-content { padding: 1.5rem; }
        }

