#reader { position: relative; }
        #reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
        #reader canvas.drawingBuffer { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
        :root {
            --primary:    #ffffff;
            --secondary:  #2c3e50;
            --header-bg:  #ffffff;
            --fonte:      'Poppins', 'Segoe UI', sans-serif;
            --bg-gray:    #f4f6f8;
            --green-price: #27ae60;
            --text-dark:  #333;
            --card-radius: 14px;
            --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
            --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
        }
        /* Custom SweetAlert2 Premium Styles */
        .swal2-popup {
            font-family: var(--fonte) !important;
            border-radius: var(--card-radius, 14px) !important;
        }
        .swal2-title, .swal2-content, .swal2-html-container {
            font-family: var(--fonte) !important;
        }
        .swal2-confirm, .swal2-deny, .swal2-cancel {
            font-family: var(--fonte) !important;
            border-radius: 8px !important;
            font-weight: 600 !important;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--fonte); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
        body { background-color: var(--bg-gray); padding-bottom: 120px; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
        
        /* Splash Screen Spinner */
        .splash-spinner {
            margin-top: 20px; width: 30px; height: 30px; 
            border: 3px solid rgba(255,255,255,0.3); 
            border-top: 3px solid white; border-radius: 50%; 
            animation: spin 1s linear infinite;
        }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* --- HEADER MODERNO --- */
        header {
            background-color: var(--header-bg);
            color: white;
            padding: 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.18);
            position: sticky; top: 0; z-index: 100;
        }
        .header-top {
            display: flex; justify-content: space-between;
            align-items: center;
            padding: 12px 15px 10px;
        }
        .header-brand {
            display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
        }
        .header-logo {
            width: 38px; height: 38px;
            border-radius: 10px;
            background: rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center;
            overflow: hidden; flex-shrink: 0;
            backdrop-filter: blur(6px);
            border: 1px solid rgba(255,255,255,0.25);
        }
        .header-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
        .header-logo .logo-initial { font-size: 18px; font-weight: 800; color: white; }
        .store-info h1 {
            font-size: 17px; font-weight: 800;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            line-height: 1.2;
        }
        .store-info .header-tagline {
            font-size: 11px; opacity: 0.75;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .info-line { font-size: 12px; opacity: 0.95; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
        .status-badge { padding: 5px 10px; border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 4px; flex-shrink: 0; transition: 0.3s; white-space: nowrap; }
        .status-open { background-color: rgba(39,174,96,0.9); color: white; backdrop-filter: blur(4px); }
        .status-closed { background-color: rgba(192,57,43,0.9); color: white; }
        /* Barra de info (horas + pedido min) */
        .header-info-bar {
            display: flex; gap: 16px;
            padding: 6px 15px 10px;
            border-top: 1px solid rgba(255,255,255,0.12);
        }
        .header-info-bar .info-line { margin: 0; font-size: 11px; }
        .search-container { padding: 0 15px 14px; }
        .search-input { width: 100%; padding: 11px 15px 11px 54px; border-radius: 25px; border: none; outline: none; font-size: 14px; font-family: var(--fonte); background-color: rgba(255,255,255,0.95); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: padding-left 0.2s ease; }
        .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #7f8c8d; font-size: 18px; pointer-events: none; transition: opacity 0.15s ease; }
        .search-wrapper { position: relative; }
        .login-alert { background-color: #fff3cd; color: #856404; padding: 12px 15px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffeeba; }
        .btn-auth { color: var(--primary); font-weight: 700; text-decoration: none; border: 1px solid var(--primary); padding: 6px 15px; border-radius: 20px; font-size: 12px; background: white; white-space: nowrap; }
        /* === LISTA DE SELE?O DE LOJAS (NOVO) === */
        .store-select-card {
            background: white;
            border: 1px solid #eee;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .store-select-card:hover {
            border-color: var(--primary);
            background-color: #fff9f9;
            transform: translateY(-2px);
        }
        .store-icon-box {
            width: 40px; height: 40px;
            background-color: #f0f0f0;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            color: var(--secondary);
        }
        .store-info-box h4 { margin: 0; font-size: 15px; color: var(--secondary); }
        .store-info-box p { margin: 2px 0 0 0; font-size: 12px; color: #666; }
        .store-status { font-size: 11px; font-weight: bold; margin-top: 4px; display: inline-block; padding: 2px 8px; border-radius: 10px; }
        .st-open { background: #d4edda; color: #155724; }
        .st-closed { background: #f8d7da; color: #721c24; }
        /* === BANNERS CENTRALIZADOS E RESPONSIVOS (INSERIDO AQUI) === */
        .ads-carousel-wrapper { 
            padding: 15px 0 5px 0; 
            overflow: hidden; 
            width: 100%;
        }
        .ads-carousel {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            scrollbar-width: none;
            /* Lógica de Snap e Suavidade */
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth; /* <--- O CSS cuida da suavidade agora */
            -webkit-overflow-scrolling: touch;
            padding: 0 15px;
            /* Fix para iOS renderizar melhor */
            transform: translateZ(0); 
            -webkit-transform: translateZ(0);
        }
        /* Centraliza se tiver poucos itens */
        .ads-carousel:has(.ad-banner:only-child) {
            justify-content: center;
        }
        .ad-banner { 
            width: 94vw; 
            max-width: 500px; 
            aspect-ratio: 2 / 1; 
            border-radius: 12px; 
            overflow: hidden; 
            position: relative; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
            flex-shrink: 0; 
            scroll-snap-align: center; 
            cursor: pointer;
            background-color: #eee;
            margin: 0 auto; 
        }
        .ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .ads-partners-wrapper { 
            padding: 5px 0 20px 0; 
            overflow: hidden; /* Esconde o que sai da tela */
            margin-top: 5px; 
            width: 100%;
            position: relative;
        }
        .ads-partners { 
            display: flex; 
            gap: 15px; /* Espaço entre logos */
            overflow-x: auto; /* Permite rolar com o dedo */
            white-space: nowrap; 
            padding-left: 15px; /* Espacinho inicial */
            padding-right: 15px;
            /* SESS??O EXTRA PARA IOS */
            -webkit-overflow-scrolling: touch; /* Física nativa do iPhone */
            scroll-behavior: auto; /* Remove suavização padrão que pode conflitar */
            /* Esconde a barra de rolagem (estética) */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
        }
        /* Esconde barra de rolagem no Chrome/Safari */
        .ads-partners::-webkit-scrollbar { display: none; }
        .ads-partners:hover {
            animation-play-state: paused;
        }
        .ad-partner { 
            width: 120px; 
            height: 60px; 
            border-radius: 8px; 
            overflow: hidden; 
            border: 1px solid #eee; 
            flex-shrink: 0; 
            cursor: pointer; 
            background: white; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
        }
        .ad-partner img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
        @keyframes scrollPartners {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } /* Move metade (pois vamos duplicar o conteúdo) */
        }
        /* === ESTILOS PARA BANNERS MEIO E RODAP?? === */
        /* === [AJUSTE] BANNER DO MEIO === */
        .ads-middle-wrapper { padding: 10px 15px; width: 100%; display: none; margin-bottom: 10px; }
        /* Garante que o banner do meio tenha espaço */
        .ad-middle { 
            width: 100%; 
            border-radius: 8px; 
            overflow: hidden; 
            cursor: pointer; 
            box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
            margin-bottom: 15px; /* Espaço abaixo dele */
        }
        .ad-middle img { 
            width: 100%; 
            height: auto; 
            display: block; 
            object-fit: cover; 
            max-height: 180px; /* Altura máxima para não ficar gigante */
        }
        /* === CARROSSEL DE FAIXAS (MEIO) === */
        .middle-carousel {
            display: flex;
            gap: 0;
            overflow-x: auto;
            scrollbar-width: none;
            /* Lógica de Snap e Suavidade */
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth; /* <--- O CSS cuida da suavidade agora */
            -webkit-overflow-scrolling: touch;
            border-radius: 8px;
            /* Fix para iOS renderizar melhor */
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        .middle-carousel::-webkit-scrollbar { display: none; }
        .ad-middle-slide {
            min-width: 100%; /* Ocupa 100% da largura visível */
            flex-shrink: 0;
            scroll-snap-align: center;
            cursor: pointer;
            position: relative;
            line-height: 0; /* Remove espaços fantasmas abaixo da imagem */
        }
        .ad-middle-slide img {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
            /* Ajuste a altura máxima se quiser padronizar */
            max-height: 200px; 
        }
        /* === BANNER RODAP?? (SCROLL INFINITO) === */
        .ads-footer-wrapper { 
            padding: 10px 15px 40px 15px; 
            width: 100%; 
            display: flex; /* Alinha lado a lado */
            gap: 12px; 
            /* Configurações de Scroll */
            overflow-x: auto; 
            white-space: nowrap;
            -webkit-overflow-scrolling: touch; /* Física iOS */
            /* Esconde barra de rolagem */
            scrollbar-width: none; 
            -ms-overflow-style: none;
        }
        .ads-footer-wrapper::-webkit-scrollbar { display: none; }
        .ad-footer { 
            min-width: 140px; 
            width: 40vw; 
            max-width: 200px;
            aspect-ratio: 9 / 16; 
            border-radius: 12px; 
            overflow: hidden; 
            cursor: pointer; 
            box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
            flex-shrink: 0; /* Impede que encolha */
            background: #eee;
        }
        .ad-footer img { width: 100%; height: 100%; object-fit: cover; display: block; }
        /* Status do Pedido Flutuante */
        .status-bar-float {
            position: fixed; bottom: 85px; left: 15px; right: 15px;
            background: white; color: var(--secondary); padding: 14px 20px;
            border-radius: 16px; display: none; justify-content: space-between;
            align-items: center; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
            z-index: 3400; border-left: 5px solid var(--primary);
            animation: slideUp 0.3s ease; cursor: pointer;
            transition: box-shadow 0.2s, transform 0.2s;
        }
        .status-bar-float:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.2); transform: translateY(-2px); }
        /* === CATEGORIAS === */
        .categories-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 14px 15px; scrollbar-width: none; background: white; border-bottom: 1px solid #f0f0f0; }
        .categories-scroll::-webkit-scrollbar { display: none; }
        .cat-chip {
            background: #f5f6fa; padding: 9px 18px; border-radius: 20px;
            white-space: nowrap; font-size: 13px; font-weight: 600;
            color: #666; border: 1.5px solid #eee; cursor: pointer;
            transition: all 0.2s; flex-shrink: 0; font-family: var(--fonte);
        }
        .cat-chip:hover { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, white); }
        .cat-chip.active {
            background: var(--primary); color: white;
            border-color: var(--primary);
            box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 35%, transparent);
        }
        /* === SE?ES E CARDS === */
        .section-container { margin-bottom: 10px; background: white; padding-bottom: 15px; border-bottom: 1px solid #eee; }
        .section-header { padding: 16px 15px 6px 15px; display: flex; justify-content: space-between; align-items: center; }
        .section-title { font-size: 16px; font-weight: 800; color: var(--secondary); letter-spacing: -0.3px; }
        .see-more { color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 2px; }
        .products-row { display: flex; gap: 12px; overflow-x: auto; padding: 8px 15px 5px; scrollbar-width: none; align-items: stretch; }
        .products-row::-webkit-scrollbar { display: none; }
        /* ============================================
           CARD DE PRODUTO  REDESIGN PREMIUM
           ============================================ */
        .product-card {
            background: white;
            border: 1px solid #eef0f4;
            border-radius: 16px;
            padding: 0;
            position: relative;
            display: flex;
            flex-direction: column;
            min-width: 148px;
            max-width: 148px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: transform 0.18s ease, box-shadow 0.18s ease;
            overflow: hidden;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .product-card:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
        .product-card:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
        /* Área de imagem  fundo sempre visível */
        .prod-img-box {
            height: 110px;
            min-height: 110px;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            position: relative;
            flex-shrink: 0;
        }
        .prod-img-box img {
            max-height: 88px;
            max-width: 88%;
            object-fit: contain;
            display: block;
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        .prod-img-box.loaded img { opacity: 1; }
        .prod-img-box .prod-no-img {
            font-size: 38px;
            color: #d1d5db;
        }
        /* Corpo do card */
        .prod-body {
            padding: 10px 10px 12px;
            display: flex;
            flex-direction: column;
            min-height: 80px;
        }
        .prod-title {
            font-size: 12px;
            color: #374151;
            line-height: 1.4;
            min-height: 34px;
            font-weight: 600;
            display: -webkit-box;
            -webkit-line-clamp: 2; line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 8px;
            flex-grow: 1;
            word-break: break-word;
        }
        /* Linha de preço */
        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: auto;
        }
        .price-stack { display: flex; flex-direction: column; gap: 1px; }
        .old-price  { font-size: 10px; color: #bbb; text-decoration: line-through; line-height: 1; }
        .current-price { font-size: 15px; font-weight: 800; color: var(--secondary); line-height: 1.1; }
        /* Badge promo */
        .promo-tag {
            position: absolute;
            top: 8px;
            left: 8px;
            background: var(--green-price);
            color: white;
            font-size: 9px;
            padding: 3px 8px;
            border-radius: 20px;
            font-weight: 800;
            z-index: 10;
            letter-spacing: 0.4px;
            box-shadow: 0 2px 6px rgba(39,174,96,0.35);
        }
        /* Contador de qty no card */
        .qty-on-card {
            display: none;
            background: var(--secondary);
            color: white;
            font-size: 10px;
            padding: 2px 7px;
            border-radius: 20px;
            font-weight: 700;
            margin-right: 4px;
            white-space: nowrap;
        }
        .qty-on-card.visible { display: block; }
        /* Botão + */
        .btn-add {
            background: var(--primary);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 45%, transparent);
            transition: transform 0.15s, box-shadow 0.15s;
            font-size: 22px;
            line-height: 1;
            font-weight: 300;
        }
        .btn-add:hover  { transform: scale(1.12); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 55%, transparent); }
        .btn-add:active { transform: scale(0.88); }
        .loading-skeleton { padding: 20px; text-align: center; color: #bbb; font-size: 14px; }
        /* === MODAIS E PAIN??IS === */
        .full-modal { 
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh; 
            background: #f8f9fa; 
            z-index: 3000; 
            display: none; flex-direction: column; 
            animation: slideInRight 0.3s ease; overflow: hidden; 
        }
        .screen-panel {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh; 
            background: #f8f9fa; 
            z-index: 4000; /* Padrão para telas secundárias */
            display: none; flex-direction: column; 
            animation: slideInRight 0.3s ease; overflow: hidden;
        }
        #screen-address-form {
            z-index: 5500 !important; /* Maior que 5000 (Checkout) */
        }
        @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
        .full-header, .screen-header { 
            background: white; padding: 15px 20px; 
            display: flex; align-items: center; justify-content: space-between; 
            border-bottom: 1px solid #f0f0f0; 
            box-shadow: 0 2px 10px rgba(0,0,0,0.03); 
            flex-shrink: 0; z-index: 10;
        }
        .full-header-left { display: flex; align-items: center; gap: 15px; flex: 1; }
        .full-title, .screen-title { font-size: 18px; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; }
        .btn-filter, .btn-screen-back { 
            background: #f5f5f5; border: none; cursor: pointer; 
            color: var(--secondary); display: flex; align-items: center; justify-content: center; 
            padding: 8px; border-radius: 50%; 
            transition: background 0.2s;
        }
        .btn-filter:active, .btn-screen-back:active { background: #e0e0e0; }
        .inner-search-box { padding: 10px 15px; background: white; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }
        .inner-search-wrapper { position: relative; }
        .inner-search-input { 
            width: 100%; padding: 12px 15px 12px 40px; 
            border-radius: 12px; border: 1px solid #e0e0e0; 
            outline: none; font-size: 14px; background-color: #fcfcfc; 
            transition: all 0.2s;
        }
        .inner-search-input:focus { background-color: white; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1); }
        .inner-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 20px; pointer-events: none; }
        .full-grid, .screen-body { 
            flex: 1; padding: 15px; 
            overflow-y: auto; -webkit-overflow-scrolling: touch; 
            padding-bottom: 180px; 
        }
        /* ============================================
           GRID VER TODOS  REDESIGN
           ============================================ */
        .full-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
        .full-grid .product-card {
            min-width: 0;
            max-width: 100%;
            width: 100%;
            min-height: 220px;
            border-radius: 18px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.07);
            border: 1px solid #eef0f4;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .full-grid .product-card .prod-img-box {
            height: 130px;
            min-height: 130px;
            border-radius: 0;
        }
        .full-grid .product-card .prod-title { font-size: 12.5px; -webkit-line-clamp: 2; line-clamp: 2; min-height: 36px; }
        .full-grid .product-card .current-price { font-size: 16px; }
        @keyframes cardFadeIn { from { opacity: 0.3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
        .bottom-sheet-overlay, .menu-overlay, .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 5000; display: none; }
        .bottom-sheet { background: white; width: 100%; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 20px; position: fixed; bottom: 0; animation: slideUpSheet 0.3s ease; max-height: 50vh; overflow-y: auto; z-index: 5100; }
        @keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .side-menu { position: fixed; top: 0; right: 0; width: 80%; height: 100%; background: white; z-index: 5100; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
        .side-menu.active { transform: translateX(0); }
        .side-menu-header { padding: 25px 20px; text-align: center; font-size: 20px; font-weight: 800; border-bottom: 1px solid #eee; color: var(--secondary); }
        .sheet-option, .side-item { padding: 12px 0; border-bottom: 1px solid #f5f5f5; color: #555; font-size: 14px; cursor: pointer; display: flex; align-items: center; }
        .side-item { padding: 15px 25px; font-size: 16px; gap: 15px; }
        .sheet-option { justify-content: space-between; }
        .sheet-option.active { color: var(--primary); font-weight: bold; }
        .side-menu-list { flex: 1; padding: 10px 0; overflow-y: auto; }
        .side-menu-footer { padding: 20px; border-top: 1px solid #eee; }
        .btn-logout-menu { width: 100%; padding: 12px; background: white; border: 1px solid var(--primary); color: var(--primary); font-weight: bold; border-radius: 8px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .cart-bar { 
            position: fixed; bottom: 85px; left: 15px; right: 15px; 
            background-color: var(--secondary); color: white; padding: 12px 20px; 
            border-radius: 16px; display: none; justify-content: space-between; 
            align-items: center; box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4); 
            z-index: 3500; 
            animation: slideUp 0.3s ease; cursor: pointer; 
            backdrop-filter: blur(5px);
        }
        .btn-view-bag { background-color: white; color: var(--primary); border: none; padding: 8px 16px; border-radius: 20px; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; text-transform: uppercase; }
        /* === BOTTOM NAV === */
        .bottom-nav {
            position: fixed; bottom: 0; left: 0; width: 100%;
            background: white;
            border-top: 1px solid #f0f0f0;
            display: flex; justify-content: space-around;
            padding: 8px 0 max(12px, env(safe-area-inset-bottom)) 0;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
            z-index: 4500;
        }
        .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: #95a5a6; flex: 1; transition: 0.2s; position: relative; }
        .nav-item.disabled { opacity: 0.4; pointer-events: none; }
        .nav-item.active .icon-box { background-color: var(--primary); width: 60px; }
        .nav-item.active .nav-icon { color: white; }
        .nav-item.active .nav-label { color: var(--primary); font-weight: 700; }
        .icon-box { width: 50px; height: 32px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; transition: all 0.2s; position: relative; }
        .nav-icon { font-size: 26px; }
        .nav-label { font-size: 11px; font-weight: 500; }
        /* Badge do carrinho na bottom nav */
        .nav-cart-badge {
            position: absolute; top: -4px; right: -4px;
            min-width: 18px; height: 18px;
            background: var(--primary); color: white;
            font-size: 10px; font-weight: 800;
            border-radius: 9px; padding: 0 4px;
            display: none; align-items: center; justify-content: center;
            border: 2px solid white;
            animation: popIn 0.2s cubic-bezier(0.68,-0.55,0.27,1.55);
        }
        .nav-cart-badge.show { display: flex; }
        @keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
        @keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
        @keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
        .modal-content { 
            background: #f4f6f8; 
            width: 100%; 
            height: 100%;
            height: 100dvh;
            border-radius: 0; 
            display: flex; 
            flex-direction: column; 
            overflow: hidden; 
            animation: slideUpModal 0.3s ease; 
        }
        @keyframes slideUpModal { from { transform: translateY(100%); } to { transform: translateY(0); } }
        /* === CABE??ALHO UNIFICADO DE TODOS OS MODAIS === */
        .modal-header {
            background: white;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #f0f0f0;
            flex-shrink: 0;
            min-height: 56px;
        }
        .modal-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--secondary);
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Botão de voltar/fechar  padrão único */
        .close-btn {
            width: 36px; height: 36px;
            border-radius: 50%;
            background: #f4f5f7;
            border: none;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            color: var(--secondary);
            transition: background 0.15s;
        }
        .close-btn:active { background: #e8eaed; transform: scale(0.93); }
        .close-btn .material-icons { font-size: 20px; }
        .modal-body { 
            flex: 1; 
            overflow-y: auto; 
            padding: 20px 15px; 
            -webkit-overflow-scrolling: touch;
        } 
        .cart-item { background: white; padding: 15px; border-radius: 12px; display: flex; flex-direction: column; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
        .cart-item-top { display: flex; align-items: center; width: 100%; margin-bottom: 10px; }
        .cart-item-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f0f0f0; padding-top: 10px; }
        .cart-img { width: 50px; height: 50px; object-fit: contain; margin-right: 15px; }
        .cart-details { flex: 1; }
        .cart-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
        .cart-price { font-size: 14px; color: var(--secondary); font-weight: bold; }
        .qty-control { display: flex; align-items: center; gap: 10px; background: #f0f0f0; padding: 5px 10px; border-radius: 20px; }
        .qty-btn { background: none; border: none; font-size: 16px; font-weight: bold; color: var(--secondary); cursor: pointer; width: 20px; display: flex; justify-content: center; }
        .qty-num { font-size: 14px; font-weight: bold; }
        .modal-footer { background: white; padding: 20px; border-top: 1px solid #eee; flex-shrink: 0; }
        .summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #555; font-size: 14px; align-items: center; }
        .summary-total { display: flex; justify-content: space-between; margin-top: 15px; font-size: 18px; font-weight: 800; color: var(--secondary); border-top: 1px dashed #ddd; padding-top: 15px; }
        .btn-confirm { background-color: var(--primary); color: white; width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; margin-top: 10px; cursor: pointer; transition: 0.2s; }
        .btn-confirm:disabled { background-color: #ccc; cursor: not-allowed; }
        .btn-outline { background-color: transparent; color: var(--secondary); border: 1px solid #ccc; width: 100%; padding: 15px; border-radius: 12px; font-size: 14px; font-weight: 700; margin-top: 15px; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
        .btn-outline:active { background-color: #f0f0f0; }
        .step-view { display: none; }
        .step-view.active { display: block; }
        .address-item { background: white; border: 1px solid #eee; border-radius: 12px; padding: 15px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.2s; position: relative; }
        .address-item.selected { border: 2px solid var(--primary); background-color: #fff9f9; }
        .address-info { flex: 1; }
        .address-tag { font-weight: bold; font-size: 14px; color: var(--secondary); margin-bottom: 2px;}
        .address-line { font-size: 13px; color: #666; }
        .btn-edit-addr { background: none; border: none; color: #999; padding: 5px; cursor: pointer; }
        .btn-add-addr { width: 100%; padding: 15px; background: white; border: 2px dashed #ddd; color: #666; border-radius: 12px; font-weight: 600; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .label-input { display: block; font-weight: 600; color: #4b5563; margin-bottom: 8px; margin-top: 15px; font-size: 14px; }
        .payment-select { width: 100%; padding: 15px; border: 2px solid #f1c40f; border-radius: 10px; font-size: 15px; background: white; outline: none; color: #2c3e50; }
        /* === SELETOR DE PAGAMENTO MODERNIZADO === */
        .pay-methods-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 6px;
        }
        .pay-card {
            border: 2px solid #e8eaed;
            border-radius: 14px;
            padding: 14px 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.18s ease;
            background: white;
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        .pay-card:active { transform: scale(0.96); }
        .pay-card.selected {
            border-color: var(--primary);
            background: #fff0f0;
            box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 220,50,50), 0.12);
        }
        .pay-card-icon {
            width: 38px; height: 38px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .pay-card-info { flex: 1; min-width: 0; }
        .pay-card-name { font-size: 13px; font-weight: 700; color: #2c3e50; line-height: 1.2; }
        .pay-card-desc { font-size: 10px; color: #999; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .pay-card-check {
            position: absolute; top: 8px; right: 8px;
            width: 18px; height: 18px;
            border-radius: 50%;
            background: var(--primary);
            display: none; align-items: center; justify-content: center;
        }
        .pay-card.selected .pay-card-check { display: flex; }
        .pay-card-check::after { content: ''; width: 8px; height: 5px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translateY(-1px); }
        /* === RECOMENDADOS === */
        .recomendados-section {
            margin-top: 20px;
        }
        .recomendados-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 12px;
        }
        .recomendados-title {
            font-size: 13px; font-weight: 800; color: #2c3e50;
            display: flex; align-items: center; gap: 6px;
        }
        .recomendados-scroll {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 4px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .recomendados-scroll::-webkit-scrollbar { display: none; }
        .rec-card {
            flex-shrink: 0;
            width: 130px;
            background: white;
            border-radius: 14px;
            border: 1.5px solid #eee;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
            position: relative;
        }
        .rec-card:active { transform: scale(0.96); }
        .rec-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
        .rec-card-img { width: 100%; height: 90px; object-fit: cover; background: #f4f5f7; display: flex; align-items: center; justify-content: center; }
        .rec-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
        .rec-card-body { padding: 8px; }
        .rec-card-name { font-size: 11px; font-weight: 700; color: #2c3e50; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .rec-card-price { font-size: 13px; font-weight: 800; color: var(--primary); margin-top: 4px; }
        .rec-card-add {
            position: absolute; bottom: 8px; right: 8px;
            width: 26px; height: 26px; border-radius: 50%;
            background: var(--primary); border: none;
            color: white; font-size: 18px; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; line-height: 1;
        }
        .rec-badge {
            position: absolute; top: 6px; left: 6px;
            background: #27ae60; color: white;
            font-size: 9px; font-weight: 800;
            padding: 2px 6px; border-radius: 20px;
            text-transform: uppercase; letter-spacing: .3px;
        }
        .change-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-top: 5px; font-size: 15px; }
        .btn-delete-addr { background: transparent; color: #c0392b; border: 1px solid #c0392b; padding: 10px; width: 100%; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 10px; }
        .map-wrapper { position: relative; width: 100%; height: 300px; margin-top: 15px; border-radius: 12px; overflow: hidden; border: 1px solid #ddd; background-color: #eee; z-index: 1; }
        #map { width: 100%; height: 100%; z-index: 0; }
        .center-marker { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 10; pointer-events: none; color: var(--primary); font-size: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.4); margin-top: -2px; }
        /* Caixa de cupom  responsiva iOS */
        .coupon-box { display: flex; gap: 10px; margin-bottom: 15px; }
        .coupon-box input { flex: 1; padding: 12px; border: 1px solid #ddd; border-radius: 8px; outline: none; font-size: 14px; min-width: 0; }
        .coupon-box button { background: var(--secondary); color: white; border: none; padding: 0 20px; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
        .coupon-box button:active { opacity: 0.8; }
        .summary-card { background: white; padding: 15px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #eee; }
        .sum-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #555; font-size: 14px; align-items: center; }
        .sum-row.discount { color: var(--green-price); font-weight: bold; display: none; }
        .sum-total { display: flex; justify-content: space-between; border-top: 1px dashed #ddd; padding-top: 10px; margin-top: 10px; font-weight: 800; font-size: 18px; color: var(--secondary); }
        .info-icon {
            display: inline-flex; align-items: center; justify-content: center;
            width: 16px; height: 16px; border-radius: 50%;
            background: #ccc; color: white; font-size: 10px; font-weight: bold;
            margin-left: 5px; cursor: pointer;
        }
        .msg-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); z-index: 9999;
            display: none; align-items: center; justify-content: center; padding: 20px;
        }
        .msg-content {
            background: white; padding: 25px; border-radius: 15px; text-align: center;
            max-width: 350px; animation: slideUpSheet 0.3s ease;
        }
        .msg-content h3 { color: var(--secondary); margin-bottom: 10px; font-size: 18px; }
        .msg-content p { color: #666; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
        .msg-content button {
            background: var(--primary); color: white; border: none; 
            padding: 10px 30px; border-radius: 20px; font-weight: bold; cursor: pointer;
        }
        .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; text-align: center; color: #999; }
        .empty-state-icon { font-size: 80px; color: #e0e0e0; margin-bottom: 20px; }
        .empty-state h3 { color: var(--secondary); margin-bottom: 10px; }
        .order-card { background: white; border-radius: 12px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #f0f0f0; transition: transform 0.1s; }
        .order-card:active { transform: scale(0.98); }
        .oc-top { padding: 15px; border-bottom: 1px solid #f9f9f9; display: flex; justify-content: space-between; align-items: center; }
        .oc-date { font-size: 12px; color: #888; font-weight: 500; }
        .oc-id { font-size: 13px; font-weight: 800; color: var(--secondary); background: #f4f6f8; padding: 4px 8px; border-radius: 6px; }
        .oc-body { padding: 15px; display: flex; justify-content: space-between; align-items: center; }
        .oc-status-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
        .oc-total { font-size: 16px; font-weight: 800; color: var(--text-dark); }
        .od-header { background: white; padding: 20px; margin-bottom: 10px; border-bottom: 1px solid #eee; }
        .od-status-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
        .od-status-icon { font-size: 24px; }
        .od-status-text { font-size: 18px; font-weight: 800; }
        .od-info-group { display: flex; gap: 15px; margin-top: 15px; font-size: 13px; color: #555; }
        .od-icon { color: var(--primary); font-size: 20px; min-width: 24px; }
        .od-text strong { display: block; color: var(--secondary); font-size: 14px; margin-bottom: 2px; }
        .od-items-container { background: white; padding: 0 15px; margin-bottom: 10px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
        .od-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f5f5f5; }
        .od-item:last-child { border-bottom: none; }
        .od-img { width: 50px; height: 50px; border-radius: 8px; border: 1px solid #eee; object-fit: contain; }
        .od-item-info { flex: 1; }
        .od-item-name { font-weight: 600; font-size: 14px; color: #333; line-height: 1.3; }
        .od-item-qty { font-size: 12px; color: #888; margin-top: 4px; }
        .od-item-total { font-weight: 700; font-size: 14px; color: var(--secondary); }
        .od-summary { background: white; padding: 20px; margin-bottom: 80px; }
        .od-row { display: flex; justify-content: space-between; font-size: 14px; color: #666; margin-bottom: 8px; }
        .od-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--secondary); margin-top: 15px; padding-top: 15px; border-top: 1px dashed #ddd; }
        /* Bloco de desconto por cupom */
        .od-coupon-block {
            display: flex; align-items: center; justify-content: space-between;
            background: linear-gradient(135deg, #f0fdf4, #dcfce7);
            border: 1.5px dashed #22c55e;
            border-radius: 12px;
            padding: 12px 14px;
            margin: 8px 0 10px;
            gap: 10px;
        }
        .od-coupon-left { display: flex; align-items: center; gap: 10px; }
        .od-coupon-icon { font-size: 22px; line-height: 1; }
        .od-coupon-info { display: flex; flex-direction: column; gap: 2px; }
        .od-coupon-label { font-size: 11px; color: #16a34a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        .od-coupon-code { font-size: 13px; font-weight: 800; color: #15803d; background: rgba(34,197,94,0.15); padding: 2px 8px; border-radius: 6px; display: inline-block; }
        .od-coupon-value { font-size: 16px; font-weight: 900; color: #16a34a; white-space: nowrap; }
        .btn-repeat-order { width: 100%; background: white; color: var(--primary); border: 2px solid var(--primary); padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: 0.2s; }
        .btn-repeat-order:active { background: var(--primary); color: white; }
        /* Opção 1: Sólido Moderno */
        .btn-cancel-order {
            width: 100%;
            /* Um vermelho vibrante, mas não agressivo demais */
            background-color: #ef4444; 
            color: white;
            border: none;
            /* Um pouco mais de preenchimento vertical para ficar imponente */
            padding: 16px; 
            /* Bordas arredondadas modernas */
            border-radius: 12px; 
            font-weight: 700;
            font-size: 15px;
            margin-top: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            /* Sombra suave vermelha para dar destaque */
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
            transition: all 0.2s ease;
        }
        /* Efeito ao passar o mouse (para desktop) ou tocar */
        .btn-cancel-order:hover, .btn-cancel-order:active {
            background-color: #dc2626; /* Vermelho ligeiramente mais escuro */
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
            transform: translateY(1px); /* Leve efeito de clique */
        }
        /* Ajuste também o texto pequeno abaixo dele para ficar mais harmônico */
        .od-summary p {
            text-align: center;
            color: #9ca3af; /* Cinza mais suave */
            font-size: 12px;
            margin-top: 12px;
            font-weight: 500;
        }
        .btn-whatsapp { 
            background-color: #25D366; color: white; text-decoration: none;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            padding: 15px; border-radius: 12px; font-weight: bold; font-size: 16px;
            box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
            margin-top: 20px; width: 100%; transition: transform 0.2s;
        }
        .btn-whatsapp:active { transform: scale(0.98); background-color: #128C7E; }
        .btn-instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            color: white; text-decoration: none;
            display: none;
            align-items: center; justify-content: center; gap: 10px;
            padding: 15px; border-radius: 12px; font-weight: bold; font-size: 16px;
            box-shadow: 0 4px 10px rgba(220, 39, 67, 0.3);
            margin-top: 15px; width: 100%; transition: transform 0.2s;
        }
        .btn-instagram:active { transform: scale(0.98); opacity: 0.9; }
        .settings-header { background: white; padding: 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #eee; }
        .settings-avatar { width: 50px; height: 50px; background: var(--bg-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-weight: bold; font-size: 20px; }
        .settings-user-info div:first-child { font-weight: bold; font-size: 16px; color: var(--secondary); }
        .settings-user-info div:last-child { font-size: 13px; color: #888; }
        .settings-section-title { font-size: 13px; font-weight: 700; color: #888; margin: 20px 15px 10px 15px; text-transform: uppercase; letter-spacing: 0.5px; }
        .settings-card { background: white; border-radius: 12px; margin: 0 15px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .settings-item { padding: 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.2s; }
        .settings-item:last-child { border-bottom: none; }
        .settings-item:active { background: #f9f9f9; }
        .st-left { display: flex; align-items: center; gap: 15px; font-size: 15px; color: #333; font-weight: 500; }
        .st-icon { color: var(--primary); opacity: 0.8; font-size: 22px; }
        .st-arrow { color: #ccc; font-size: 20px; }
        .btn-settings-logout { width: calc(100% - 30px); margin: 30px 15px; padding: 15px; background: #fff5f5; color: #c0392b; border: 1px solid #ffcccc; border-radius: 12px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
        /* === MODAL DE SUCESSO DO PEDIDO === */
        #modalOrderSuccess {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255,255,255,0.98); z-index: 10000;
            flex-direction: column; align-items: center; justify-content: center;
            padding: 30px; text-align: center; animation: fadeIn 0.5s ease;
            overflow-y: auto; /* Garante scroll em telas pequenas */
        }
        .success-icon-box {
            width: 80px; height: 80px; background: #d4edda; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 20px; animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }
        @keyframes popIn { 0% { transform: scale(0); } 100% { transform: scale(1); } }
        .success-title { font-size: 24px; font-weight: 800; color: #155724; margin-bottom: 10px; }
        .success-desc { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 20px; max-width: 400px; }
        .warning-box {
            background: #fff3cd; color: #856404; padding: 12px; border-radius: 8px;
            font-size: 13px; margin-bottom: 25px; border: 1px solid #ffeeba; max-width: 90%;
        }
        /* === MODAL DE ERROS AMIGÁVEIS E SUPORTE === */
        #modalErroSuporte {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(44, 62, 80, 0.85); z-index: 10000;
            flex-direction: column; align-items: center; justify-content: center;
            padding: 30px; text-align: center; animation: fadeIn 0.3s ease;
            backdrop-filter: blur(5px);
        }
        .erro-icon-box {
            width: 70px; height: 70px; background: #fff3cd; border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: #f39c12;
            margin-bottom: 20px; animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }
        .btn-enviar-suporte {
            background: #f39c12; color: white; border: none; width: 100%;
            padding: 14px; border-radius: 30px; font-weight: 800; font-size: 14px;
            cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
            margin-bottom: 15px; box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
            transition: transform 0.2s;
        }
        .btn-enviar-suporte:active { transform: scale(0.95); }
        .btn-ok-erro {
            background: transparent; color: #7f8c8d; border: 1px solid #ddd;
            width: 100%; padding: 12px; border-radius: 30px; font-weight: bold;
            font-size: 14px; cursor: pointer; transition: 0.2s;
        }
        .btn-success-action {
            width: 100%; max-width: 320px; padding: 14px; border-radius: 30px;
            font-weight: 800; font-size: 14px; cursor: pointer; border: none;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            margin-bottom: 12px; transition: transform 0.2s; text-decoration: none;
        }
        .btn-success-action:active { transform: scale(0.98); }
        .btn-my-orders { background: var(--secondary); color: white; box-shadow: 0 4px 10px rgba(44,62,80,0.3); }
        .btn-insta-success { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
        .btn-wpp-success { background: #25D366; color: white; }
        .divider-text { 
            display: flex; align-items: center; justify-content: center; width: 100%; max-width: 300px; margin: 20px 0; 
            font-size: 12px; color: #999; font-weight: 600; text-transform: uppercase;
        }
        .divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: #eee; margin: 0 10px; }
        /* ================= PWA INSTALL BANNER / PWA MODAL ================= */
        #pwaInstallBanner {
            position: fixed;
            bottom: 70px; left: 12px; right: 12px;
            max-width: 400px;
            background: #2c3e50;
            color: white;
            border-radius: 14px;
            padding: 14px 16px;
            z-index: 10000;
            box-shadow: 0 8px 30px rgba(0,0,0,0.35);
            display: flex;
            align-items: center;
            gap: 12px;
            opacity: 0;
            transform: translateY(120%);
            border: none;
        }
        /* ================= ORDER TOAST (BEAUTIFUL POPUP) ================= */
        #orderToast {
            position: fixed;
            top: 20px; left: 50%; transform: translateX(-50%) translateY(-150%);
            width: 90%; max-width: 400px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            padding: 16px;
            z-index: 10001;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-left: 5px solid var(--primary);
        }
        #orderToast.show { transform: translateX(-50%) translateY(0); }
        .toast-icon-container {
            width: 40px; height: 40px; border-radius: 50%; background: #fdf2f2;
            display: flex; justify-content: center; align-items: center; margin-right: 15px; flex-shrink:0;
        }
        .toast-icon-container .material-icons { color: var(--primary); font-size: 24px; }
        .toast-content { flex: 1; }
        .toast-title { font-weight: 700; font-size: 15px; color: #333; margin-bottom: 2px; }
        .toast-body { font-size: 13px; color: #666; line-height: 1.3; }
        .toast-close { background: none; border: none; font-size: 16px; color: #999; cursor: pointer; padding: 5px; }
        #modalLocation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f4f6f8;
            z-index: 20000 !important;
            display: none;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            padding: 0;
        }
    /* ============================================================
       CAPA DE CATEGORIA  aplica em TODOS os tamanhos de tela
       ============================================================ */
    .section-header.has-cat-cover {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 72px;
        padding: 0 !important;
        position: relative;
        overflow: hidden;
        border-bottom: none !important;
        border-radius: 12px 12px 0 0;
    }
    .section-header.has-cat-cover::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.05) 100%);
        pointer-events: none;
    }
    .cat-cover-inner {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        min-height: 72px;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .section-header.has-cat-cover .section-title {
        color: #fff;
        font-size: 16px;
        font-weight: 800 !important;
        text-shadow: 0 1px 5px rgba(0,0,0,0.4);
        letter-spacing: -0.2px;
        flex: 1;
    }
    .section-header.has-cat-cover .see-more {
        background: rgba(255,255,255,0.18) !important;
        color: #fff !important;
        border: 1.5px solid rgba(255,255,255,0.4) !important;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transition: background 0.2s;
        flex-shrink: 0;
    }
    .section-header.has-cat-cover .see-more:hover {
        background: rgba(255,255,255,0.32) !important;
    }
    /* Ocultar botão "Ver Todos" no mobile dentro de banners com imagem */
    @media (max-width: 767px) {
        .section-header.has-cat-cover .see-more {
            display: none !important;
        }
        .desktop-header-controls {
            display: none !important;
        }
    }
    .scroll-arrows-desktop { display: none !important; }

    /* ============================================================
       DESKTOP WEB LAYOUT   768px  (iFood-inspired redesign)
       ============================================================ */
    @media (min-width: 768px) {
        html { background: #f0f2f5; }
        body { background: #f0f2f5; }
        .bottom-nav { display: none !important; }
        .mobile-only { display: none !important; }
        /* CART BAR */
        .cart-bar {
            left: 50%; transform: translateX(-50%);
            width: auto; min-width: 360px; max-width: 520px;
            border-radius: 20px; padding: 14px 32px; bottom: 24px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.22);
        }
        /* HEADER */
        header {
            position: sticky; top: 0; z-index: 600;
            height: 68px;
            background: linear-gradient(120deg,
                color-mix(in srgb, var(--primary) 110%, #000) 0%,
                var(--primary) 50%,
                color-mix(in srgb, var(--primary) 85%, #1a0060) 100%);
            box-shadow: 0 4px 32px rgba(0,0,0,0.35);
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        /* Transforma em flex row único */
        header > .header-top,
        header > .header-info-bar,
        header > .search-container { display: none !important; }
        header {
            display: flex;
            align-items: center;
            gap: 0;
            padding: 0 28px;
            flex-wrap: nowrap;
        }
        /*  BRAND (logo + nome)  */
        header > .header-top {
            display: flex !important;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
            padding: 0 24px 0 0;
            margin-right: 4px;
            border-right: 1px solid rgba(255,255,255,0.18);
            height: 42px;
        }
        .header-logo {
            width: 46px; height: 46px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.25);
            overflow: hidden;
            flex-shrink: 0;
        }
        .header-logo img { width:100%; height:100%; object-fit:cover; }
        .store-info h1 {
            font-size: 17px; font-weight: 800;
            letter-spacing: -0.4px; color: #fff;
            white-space: nowrap;
        }
        .header-tagline { display: none !important; }
        /*  BADGE ABERTO  */
        #storeBadge {
            font-size: 12px; font-weight: 700;
            padding: 6px 14px; flex-shrink: 0;
            border-radius: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
            margin-left: 10px;
        }
        /*  INFO (min + horário)  */
        header > .header-info-bar {
            display: flex !important;
            flex-direction: row;
            align-items: center;
            gap: 18px;
            flex-shrink: 0;
            padding: 0 24px;
            border-right: 1px solid rgba(255,255,255,0.18);
            height: 42px;
            margin-left: 4px;
        }
        .info-line {
            font-size: 12px;
            color: rgba(255,255,255,0.82);
            display: flex; align-items: center; gap: 5px;
            white-space: nowrap;
        }
        .info-line .material-icons { font-size: 15px; opacity: 0.75; }
        .info-line strong { color: #fff; font-weight: 700; }
        /*  BUSCA (cresce e preenche)  */
        header > .search-container {
            display: flex !important;
            flex: 1 !important;
            max-width: 650px;
            margin-left: auto !important;
            margin-right: auto !important;
            padding: 0 15px !important;
            background: transparent !important;
            border: none !important;
            align-items: center;
        }
        /*  CONTROLES DESKTOP  */
        .desktop-header-controls {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-left: 20px;
        }
        .header-cat-dropdown { position: relative; }
        .btn-header-cat {
            display: flex; align-items: center; gap: 5px;
            background: rgba(255,255,255,0.15); color: #fff;
            border: none; padding: 10px 16px; border-radius: 20px;
            font-weight: 600; cursor: pointer; transition: 0.2s;
        }
        .btn-header-cat:hover { background: rgba(255,255,255,0.25); }
        .header-cat-list {
            position: absolute; top: 120%; right: 0;
            background: #fff; border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            min-width: 200px; padding: 10px 0;
            display: none; flex-direction: column; z-index: 999;
            max-height: 400px; overflow-y: auto;
        }
        .header-cat-list.show { display: flex; }
        .header-cat-item {
            padding: 10px 20px; font-size: 14px; color: #333;
            text-decoration: none; cursor: pointer;
            transition: 0.2s;
            display: flex; align-items: center; gap: 10px;
        }
        .header-cat-item img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
        .header-cat-item:hover { background: #f5f5f5; color: var(--primary); }
        .header-user-area {
            display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 500;
        }
        .header-user-area .btn-auth {
            background: #fff; color: var(--primary); padding: 8px 16px; border-radius: 20px; text-decoration: none; font-weight: 600; display: inline-block;
        }
        .header-user-area .btn-auth:hover { background: #f5f5f5; }
        .header-user-area .btn-logout {
            background: rgba(255,255,255,0.2); color: #fff; padding: 6px 12px; border-radius: 15px; text-decoration: none; font-size: 12px; cursor: pointer; border: none; font-weight: 600;
        }
        .header-user-area .btn-logout:hover { background: rgba(255,255,255,0.3); }
        .search-wrapper { width: 100%; position: relative; }
        #mainSearchInput {
            width: 100%; box-sizing: border-box;
            background: rgba(255,255,255,0.13);
            border: 1.5px solid rgba(255,255,255,0.28);
            border-radius: 14px;
            color: #fff;
            padding: 11px 20px 11px 54px; /* Aumentado padding esquerdo para espaar o cone */
            font-size: 14px; font-weight: 400;
            transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, padding-left 0.2s ease;
        }
        #mainSearchInput::placeholder { color: rgba(255,255,255,0.52); }
        #mainSearchInput:focus {
            background: rgba(255,255,255,0.22);
            border-color: rgba(255,255,255,0.65);
            outline: none;
            box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
        }
        .search-icon {
            color: rgba(255,255,255,0.55) !important;
            font-size: 20px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            left: 14px !important;
        }
        /* === LAYOUT: FULL-WIDTH (sem sidebar) === */
        #desktopLayout { display: block; width: 100%; min-height: calc(100vh - 68px); }
        /* Sidebar removido  ocultar chips de categoria no desktop */
        #desktopSidebar { display: none !important; }
        #catChips { display: none !important; }
        /* MAIN AREA  largura total com max-width confortável */
        #desktopMain { width: 100%; max-width: 1400px; margin: 0 auto; background: transparent; padding: 0 24px 80px; box-sizing: border-box; }
        /* Desktop size overrides for cat-cover header */
        .section-header.has-cat-cover { min-height: 90px; border-radius: 16px 16px 0 0; }
        .cat-cover-inner { min-height: 90px; padding: 0 22px; }
        .section-header.has-cat-cover .section-title { font-size: 20px !important; letter-spacing: -0.3px; }
        /* Banner: overflow-x:scroll (JS scrollLeft precisa disso) com scrollbar oculta */
        #desktopMain #adsTopContainer {
            padding: 20px 24px 0;
        }
        #desktopMain .ads-carousel {
            gap: 0 !important;
            padding: 0 !important;
            overflow-x: scroll !important;
            overflow-y: hidden !important;
            scrollbar-width: none !important;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            border-radius: 16px;
        }
        #desktopMain .ads-carousel::-webkit-scrollbar { display: none !important; }
        #desktopMain .ad-banner {
            min-width: 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            flex-shrink: 0 !important;
            aspect-ratio: 3 / 1;
            border-radius: 16px;
        }
        /* Parceiros: CSS animation infinita (JS loop desativado via early return) */
        #desktopMain #adsPartnersContainer { padding: 12px 0; overflow: hidden; }
        #desktopMain #adsPartnersContainer .ads-partners-wrapper { overflow: hidden; }
        #desktopMain .ads-partners {
            padding: 4px 0 !important;
            overflow-x: scroll !important;
            overflow-y: hidden !important;
            flex-wrap: nowrap !important;
            gap: 24px !important;
            animation: none !important;
            scrollbar-width: none !important;
        }
        #desktopMain .ads-partners::-webkit-scrollbar { display: none !important; }
        /* Banner topo: faixa reduzida no desktop */
        #desktopMain #adsTopContainer {
            padding: 16px 24px 0;
        }
        #desktopMain #adsTopContainer .ads-carousel {
            height: 220px;
            border-radius: 16px;
            overflow: hidden;
        }
        #desktopMain #adsTopContainer .ad-banner {
            height: 220px !important;
            border-radius: 16px;
            overflow: hidden;
        }
        #desktopMain #adsTopContainer .ad-banner img {
            width: 100%; height: 100%;
            object-fit: cover; object-position: center;
            border-radius: 16px;
        }
        /* === FAIXA HORIZONTAL DE CATEGORIAS (Desktop) === */
        #desktopCatStrip {
            display: flex; gap: 12px; overflow-x: auto;
            padding: 16px 24px 8px; scrollbar-width: none;
        }
        #desktopCatStrip::-webkit-scrollbar { display: none; }
        .dcat-card {
            flex-shrink: 0; width: 130px; height: 90px;
            border-radius: 14px; overflow: hidden; cursor: pointer;
            position: relative; box-shadow: 0 3px 12px rgba(0,0,0,.14);
            transition: transform .2s, box-shadow .2s;
            background: #ccc center/cover no-repeat;
        }
        .dcat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
        .dcat-card-overlay {
            position: absolute; bottom: 0; left: 0; right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,.65));
            padding: 6px 8px 7px;
        }
        .dcat-card-name {
            display: inline-block; color: #fff; font-weight: 800;
            font-size: 11px; letter-spacing: .3px; text-shadow: 0 1px 3px rgba(0,0,0,.5);
            background: var(--badge-color, #e63946);
            padding: 2px 7px; border-radius: 5px; line-height: 1.4;
        }
        #desktopMain #searchResults { padding: 0 24px 40px; }
        #desktopMain #adsFooterContainer { padding: 0 24px 20px; }
        #desktopMain .legal-footer { padding: 20px 24px 40px; }
        /* Section card on gray bg */
        #desktopMain .section-container { background: #fff; border-radius: 20px; margin-bottom: 20px !important; border-bottom: none !important; box-shadow: 0 2px 12px rgba(0,0,0,0.055); padding: 0 0 16px; overflow: hidden; }
        #desktopMain .section-header { padding: 18px 20px 10px !important; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; display: flex; align-items: center; }
        #desktopMain .section-title { font-size: 17px !important; font-weight: 800 !important; color: #1a1a2e !important; flex: 1; }
        #desktopMain .see-more { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); padding: 6px 14px; border-radius: 20px; transition: background 0.15s; flex-shrink: 0; margin-left: auto; }
        #desktopMain .see-more:hover { background: color-mix(in srgb, var(--primary) 18%, white); }
        /* PRODUCT GRID */
        .products-row { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 14px; overflow-x: visible !important; padding: 16px 20px !important; }
        .products-row > div:last-child:not(.product-card) { display: none !important; }
        .product-card { min-width: 0 !important; max-width: 100% !important; width: 100% !important; border-radius: 16px !important; box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important; border: 1px solid #eef0f4 !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
        .product-card:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important; }
        .product-card .prod-img-box { height: 175px !important; min-height: 175px !important; background: #f8f9fc !important; }
        .product-card .prod-img-box img { max-height: 145px !important; }
        .product-card .prod-body { padding: 12px 14px 14px !important; }
        .product-card .prod-title { font-size: 13px !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; min-height: 36px; }
        .product-card .current-price { font-size: 17px !important; font-weight: 900 !important; margin-top: 6px !important; }
        /* Hide userBar (Olá username) on desktop */
        #userBar { display: none !important; }
        /* Desktop status bar - centered, nicer */
        .status-bar-float {
            left: 50% !important; right: auto !important;
            transform: translateX(-50%);
            bottom: 28px !important;
            width: 420px;
            border-radius: 20px !important;
            box-shadow: 0 8px 40px rgba(0,0,0,0.18) !important;
            padding: 16px 24px !important;
        }
        .status-bar-float:hover { transform: translateX(-50%) translateY(-3px) !important; }
        /* Sidebar e info da loja  ocultos no desktop */
        .sidebar-store-info { display: none !important; }
        #searchTitleDesktop { display: none; margin: 20px 40px 10px; font-size: 22px; font-weight: 800; color: #1e3a8a; }
        @media (min-width: 1024px) {
            #searchTitleDesktop.show-title { display: block; }
            #searchResults.full-grid { grid-template-columns: repeat(6, 1fr) !important; padding: 15px 40px !important; gap: 20px !important; }
        }
        /* MODALS */
        #viewAllModal { position: fixed; top: 0; right: 0; width: 600px; height: 100vh; border-radius: 0; border-left: 1px solid #e5e7eb; box-shadow: -20px 0 60px rgba(0,0,0,0.14); }
        /* Ver Todos drawer: 2 colunas no desktop */
        .full-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
        .full-grid .product-card .prod-img-box { height: 130px !important; min-height: 130px !important; }
        .full-grid .product-card { padding-bottom: 0 !important; min-height: 270px !important; }
        .full-grid .product-card .prod-body { padding: 12px 14px 52px !important; }
        #checkoutModal { justify-content: flex-end; }
        #checkoutModal .modal-content { width: 500px; height: 100vh; position: fixed; right: 0; top: 0; border-radius: 0; border-left: 1px solid #e5e7eb; box-shadow: -20px 0 60px rgba(0,0,0,0.14); animation: none; }
        #modalLocation, #modalOrderSuccess { width: 500px !important; left: auto !important; right: 0 !important; border-left: 1px solid #e5e7eb; box-shadow: -20px 0 60px rgba(0,0,0,0.14), 0 0 0 9999px rgba(0,0,0,0.5) !important; animation: none !important; }
        .screen-panel { width: 500px; left: auto; right: 0; border-left: 1px solid #e5e7eb; box-shadow: -20px 0 60px rgba(0,0,0,0.14); animation: none; }
        .full-modal { width: 600px; left: auto; right: 0; border-left: 1px solid #e5e7eb; box-shadow: -20px 0 60px rgba(0,0,0,0.14); }
        /* Scrollbar para produtos recomendados no desktop */
        .recomendados-scroll { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; padding-bottom: 8px; }
        .recomendados-scroll::-webkit-scrollbar { display: block; height: 6px; }
        .recomendados-scroll::-webkit-scrollbar-track { background: transparent; }
        .recomendados-scroll::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }
        .scroll-arrows-desktop { display: flex !important; }
    }
    @media (min-width: 1100px) {
        .products-row { grid-template-columns: repeat(6, 1fr) !important; }
        #desktopMain { padding: 0 40px 80px; }
    }
    /* --- MODAL DETALHE DO PRODUTO --- */
    /* --- MODAL DETALHE DO PRODUTO (MOBILE - "NOVA PÁGINA") --- */
    .prod-detail-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: white; z-index: 10005; align-items: flex-start; justify-content: center;
        padding: 0; overflow-y: auto;
    }
    .prod-detail-modal {
        background: white; border-radius: 0; width: 100%; max-width: 100%; min-height: 100vh;
        display: flex; flex-direction: column; overflow: visible; position: relative;
        box-shadow: none; animation: slideInRight 0.3s ease;
    }
    @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
    @keyframes scaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .prod-detail-close {
        position: absolute; top: 15px; left: 15px; right: auto; background: rgba(255,255,255,0.9); border: none;
        border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center;
        justify-content: center; cursor: pointer; z-index: 10; font-size: 24px; color: #333;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .icon-desktop { display: none; }
    .icon-mobile { display: block; }
    .prod-detail-content {
        display: flex; flex-direction: column; padding: 0;
    }
    .prod-detail-top {
        display: flex; flex-direction: column;
    }
    @media (min-width: 768px) {
        /* Desktop: Popup Modal */
        .prod-detail-overlay {
            background: rgba(0,0,0,0.6); align-items: center; padding: 20px; overflow-y: hidden;
            backdrop-filter: blur(4px);
        }
        .prod-detail-modal {
            border-radius: 20px; max-width: 900px; min-height: auto; max-height: 90vh;
            overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: scaleUp 0.3s ease;
        }
        .prod-detail-close {
            top: 15px; left: auto; right: 15px; background: #f0f0f0; width: 36px; height: 36px;
            box-shadow: none;
        }
        .icon-desktop { display: block; }
        .icon-mobile { display: none; }
        .prod-detail-content { overflow-y: auto; }
        .prod-detail-top { flex-direction: row; }
    }
    .prod-detail-left {
        flex: 1; padding: 40px; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%); position: relative;
    }
    .prod-detail-img { width: 100%; max-width: 350px; max-height: 350px; object-fit: contain; mix-blend-mode: multiply; }
    .prod-detail-right {
        flex: 1; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center;
    }
    .prod-detail-title { font-size: 24px; font-weight: 800; color: #2c3e50; margin-bottom: 15px; line-height: 1.2; }
    .prod-detail-price { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
    .prod-detail-unit { font-size: 16px; color: #777; font-weight: 600; }
    .prod-detail-meta { font-size: 14px; color: #666; margin-bottom: 25px; line-height: 1.6; }
    .prod-detail-actions { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
    .prod-detail-btn-add {
        background: var(--primary); color: white; border: none; padding: 16px; border-radius: 12px;
        font-size: 18px; font-weight: 800; cursor: pointer; text-align: center; width: 100%;
        box-shadow: 0 4px 15px color-mix(in srgb, var(--primary) 40%, transparent); transition: transform 0.2s;
    }
    .prod-detail-btn-add:active { transform: scale(0.98); }
    .prod-detail-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .prod-quick-btn {
        flex: 1; min-width: 60px; background: color-mix(in srgb, var(--primary) 10%, white);
        color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
        padding: 10px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer;
        text-align: center; transition: all 0.2s;
    }
    .prod-quick-btn:hover { background: color-mix(in srgb, var(--primary) 20%, white); }
    .prod-quick-btn:active { background: var(--primary); color: white; }
    /* Similar Products */
    .prod-detail-similar {
        padding: 20px 30px 30px; border-top: 1px solid #eee; background: white;
    }
    .prod-detail-similar-title {
        font-size: 16px; font-weight: 800; color: #2c3e50; margin-bottom: 15px;
    }
    .prod-similar-scroll {
        display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px;
        scrollbar-width: thin; scrollbar-color: #ccc transparent;
    }
    .prod-similar-scroll::-webkit-scrollbar { height: 6px; }
    .prod-similar-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
    .prod-similar-scroll .product-card {
        min-width: 145px !important; max-width: 145px !important; width: 145px !important; margin: 0 !important; flex-shrink: 0;
    }
    /* Ajuste para alertas do SweetAlert aparecerem por cima da sacola lateral */
    .swal2-container { z-index: 99999 !important; }
        /* RICH FOOTER */
        .rich-footer { 
            background: #ffffff; 
            border-top: none; 
            padding: 40px 15px 90px 15px; 
            margin-top: 40px; 
            color: #555; 
            position: relative;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
            border-radius: 20px 20px 0 0;
        }
        .rich-footer::before {
            content: '';
            position: absolute;
            top: 0; left: 50%; transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 0 0 8px 8px;
            opacity: 0.8;
        }
        .rich-footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 25px; text-align: left; }
        .footer-col h4 { color: var(--secondary); font-size: 15px; margin-bottom: 12px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: 0.5px; }
        .footer-col p { font-size: 13px; line-height: 1.5; margin-bottom: 10px; color: #666; text-align: left; }
        .footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13px; color: #555; text-align: left; line-height: 1.4; }
        .footer-contact-item .material-icons { font-size: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
        .footer-social-icons-horizontal {
            display: flex;
            gap: 12px;
            margin-top: 15px;
        }
        .social-icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background-color: #e9ecef;
            color: #2c3e50;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 1px solid rgba(0,0,0,0.05);
        }
        .social-icon-btn svg {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            transition: stroke 0.3s ease, fill 0.3s ease;
        }
        .social-icon-btn:hover {
            background-color: var(--primary);
            color: #ffffff;
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        .footer-links-list { list-style: none; padding: 0; margin: 0; text-align: left; }
        .footer-links-list li { margin-bottom: 10px; }
        .footer-links-list button { 
            background: transparent; border: none; color: #555; font-size: 13px; font-weight: 500;
            cursor: pointer; text-decoration: none; transition: all 0.2s; padding: 0; text-align: left; 
            display: inline-flex; align-items: center; gap: 5px;
        }
        .footer-links-list button::before { content: ''; color: var(--primary); font-size: 18px; font-weight: bold; transition: transform 0.2s; }
        .footer-links-list button:hover { color: var(--primary); }
        .footer-links-list button:hover::before { transform: translateX(3px); }
        .footer-bottom { text-align: center; border-top: 1px solid #f0f0f0; margin-top: 30px; padding-top: 20px; font-size: 12px; color: #999; font-weight: 500; }
        .footer-brand-logo { max-height: 35px; margin-bottom: 10px; display: block; }
        @media (min-width: 768px) {
            .rich-footer { 
                padding: 60px 20px 60px 20px; margin-top: 60px; 
                box-shadow: 0 -15px 40px rgba(0,0,0,0.03); border-radius: 30px 30px 0 0;
            }
            .rich-footer-container { grid-template-columns: 2fr 1.2fr 1.2fr 1fr; gap: 40px; }
            .footer-col h4 { font-size: 17px; margin-bottom: 20px; }
            .footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
            .footer-contact-item { font-size: 14px; gap: 12px; margin-bottom: 15px; line-height: 1.5; }
            .footer-contact-item .material-icons { font-size: 20px; margin-top: 1px; }
            .footer-socials { gap: 10px; margin-top: 15px; }
            .footer-social-link-full { font-size: 14px; padding: 10px 16px; border-radius: 12px; gap: 10px; }
            .footer-social-link-full .material-icons, .footer-social-link-full svg { font-size: 20px; width: 20px; height: 20px; }
            .footer-links-list li { margin-bottom: 12px; }
            .footer-links-list button { font-size: 14px; }
            .footer-bottom { margin-top: 40px; padding-top: 25px; font-size: 13px; }
            .footer-brand-logo { max-height: 40px; margin-bottom: 15px; }
        }
        /* MODAIS LEGAIS */
        .legal-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
        .legal-modal-sheet { background: white; width: 100%; max-width: 600px; height: 85vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; animation: slideUpSheet 0.3s ease; }
        .legal-modal-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
        .legal-modal-title { font-size: 18px; font-weight: 800; color: var(--secondary); }
        .legal-modal-close { background: #f0f0f0; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; font-size: 18px; font-weight: bold; }
        .legal-modal-content { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; color: #444; line-height: 1.6; }
        .legal-modal-content h3 { color: var(--primary); font-size: 16px; margin: 15px 0 10px 0; }
        .legal-modal-content p { margin-bottom: 12px; }
        @keyframes slideUpBanner { from{transform:translateY(120%);opacity:0}to{transform:translateY(0);opacity:1} }
        #pwaInstallBanner.show { display:flex!important; animation:slideUpBanner 0.4s ease forwards; }

/* =================================================================
   ESTILIZAÇÃO DO MODO LANCHONETE (CARDÁPIO DE RESTAURANTE/PIZZARIA)
   ================================================================= */

/* 1. Categorias Sticky */
body.layout-lanchonete .categories-scroll {
    position: sticky !important;
    top: 152px !important; /* Altura do header mobile real */
    z-index: 90 !important;
    background: #ffffff !important;
    border-bottom: 2px solid #f3f4f6 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

@media (min-width: 768px) {
    body.layout-lanchonete .categories-scroll {
        top: 68px !important; /* Altura do header desktop */
    }
}

/* Margem de rolagem para categorias */
body.layout-lanchonete .section-container {
    scroll-margin-top: 220px !important;
}
@media (min-width: 768px) {
    body.layout-lanchonete .section-container {
        scroll-margin-top: 135px !important;
    }
}

/* 2. Lista de produtos corrida vertical (mobile) */
body.layout-lanchonete .products-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-x: visible !important;
    padding: 12px 15px !important;
}

/* Grid de produtos corrida (desktop) */
@media (min-width: 768px) {
    body.layout-lanchonete .products-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 16px 20px !important;
    }
    body.layout-lanchonete .products-row > div:last-child:not(.product-card) {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    body.layout-lanchonete .products-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 3. Card horizontal de produto (premium) - Apenas na listagem principal */
body.layout-lanchonete .products-row .product-card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 110px !important;
    border-radius: 12px !important;
    border: 1px solid #f3f4f6 !important;
    background: #ffffff !important;
    padding: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.layout-lanchonete .products-row .product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

/* Área de imagem compacta na direita */
body.layout-lanchonete .products-row .product-card .prod-img-box {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    border-radius: 8px !important;
    background: #f8f9fc !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    margin-left: 12px !important;
}

body.layout-lanchonete .products-row .product-card .prod-img-box img {
    max-height: 70px !important;
    max-width: 70px !important;
    object-fit: contain !important;
}

/* Corpo do card na esquerda */
body.layout-lanchonete .products-row .product-card .prod-body {
    flex: 1 !important;
    padding: 0 !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: left !important;
}

/* Título */
body.layout-lanchonete .products-row .product-card .prod-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 4px !important;
    min-height: unset !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* Preço e Botão */
body.layout-lanchonete .products-row .product-card .price-row {
    margin-top: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

body.layout-lanchonete .products-row .product-card .price-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

body.layout-lanchonete .products-row .product-card .old-price {
    font-size: 11px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
}

body.layout-lanchonete .products-row .product-card .current-price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--secondary) !important;
}

/* Badge de desconto posicionado na direita sobre a foto */
body.layout-lanchonete .products-row .product-card .promo-tag {
    top: 8px !important;
    left: auto !important;
    right: 8px !important;
    background: var(--green-price) !important;
    font-size: 9px !important;
    padding: 2px 6px !important;
    box-shadow: 0 2px 6px rgba(39,174,96,0.2) !important;
}

/* Badges e Botão de Adicionar */
body.layout-lanchonete .products-row .product-card .qty-on-card {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 6px !important;
    padding: 3px 7px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
}

/* Oculta o botão de adicionar direto no card no modo lanchonete para forçar o cliente a abrir os detalhes */
body.layout-lanchonete .products-row .product-card .btn-add {
    display: none !important;
}
