
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
            background-color: #1a1a2e;
            padding: 20px 15px 0 15px; 
            min-height: 100vh;
            color: #fff;
            display: flex;
            flex-direction: column;
        }

        /* Cabeçalho de fora a fora e mais compacto */
        .catalogo-header {
            position: relative; 
            background-color: rgba(0, 0, 0, 0.55); 
            padding: 20px 20px 25px 20px; 
            margin-top: -20px; 
            margin-left: -15px; 
            margin-right: -15px; 
            margin-bottom: 25px;
            border-bottom: 4px solid #ffcc00; 
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
        }

        /* Botão Exportar Revista */
        .btn-imprimir {
            position: absolute;
            top: 20px;
            right: 25px;
            background-color: #ffcc00;
            color: #111;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            font-size: 0.9em;
            font-weight: 800;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            text-transform: uppercase;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: all 0.2s;
            z-index: 10;
        }

        .btn-imprimir i {
            font-size: 1.2em;
            color: #d32f2f; 
        }

        .btn-imprimir:hover { 
            background-color: #fff; 
            transform: translateY(-2px);
        }

        .header-top-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-bottom: 18px; 
            max-width: 800px; 
            margin-left: auto;
            margin-right: auto;
        }

        .logo-distribuidora {
            max-width: 120px;
            filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.4));
        }

        .header-text {
            text-align: left;
        }

        .header-text h1 {
            font-size: 1.6em;
            color: #ffcc00;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0 0 2px 0; 
        }

        .header-text p {
            color: #a0a0b0;
            font-size: 0.95em;
            margin: 0;
        }

        @media (max-width: 768px) {
            .btn-imprimir {
                position: relative;
                top: 0;
                right: 0;
                margin: 0 auto 15px auto;
                width: max-content;
            }
        }

        @media (max-width: 480px) {
            .catalogo-header {
                padding: 15px 15px 20px 15px;
            }
            .header-top-row {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            .header-text {
                text-align: center;
            }
        }

        .search-box {
            position: relative;
            width: 100%;
            max-width: 800px; 
            margin-left: auto;
            margin-right: auto;
        }

        .search-box input {
            width: 100%;
            padding: 12px 20px 12px 45px;
            border-radius: 6px;
            border: 2px solid #333;
            background-color: #111;
            color: #fff;
            font-size: 1em;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            border-color: #ffcc00;
            box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
        }

        .search-box i {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #ffcc00;
            font-size: 1.1em;
        }

        /* Grid de Produtos */
        .vitrine-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            max-width: 1400px;
            margin: 0 auto 50px auto;
            width: 100%;
            flex-grow: 1;
        }

        /* Cards */
        .vitrine-card {
            background-color: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
            position: relative;
            border-bottom: 5px solid #ffcc00;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .vitrine-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        }

        /* BADGE DE QUANTIDADE NO CARD */
        .badge-qtd {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #ffcc00;
            color: #111;
            font-weight: 900;
            font-size: 1.1em;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: none; 
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            z-index: 10;
            border: 2px solid #fff;
        }

        .imagem-container {
            width: 100%;
            height: 220px;
            overflow: hidden;
            background-color: #f4f4f4;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            cursor: zoom-in;
            position: relative; 
        }

        .imagem-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
        }

        .vitrine-card:hover .imagem-container img {
            transform: scale(1.1) rotate(-1deg);
        }

        .info-produto {
            padding: 20px;
            text-align: left;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .tags {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        
        .tag {
            background-color: #222;
            color: #ffcc00;
            font-size: 0.7em;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .info-produto h3 {
            margin: 0 0 10px;
            color: #111;
            font-size: 1.1em;
            line-height: 1.3;
            height: 46px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .info-produto .preco {
            color: #111;
            font-size: 1.5em;
            font-weight: 900;
            margin-top: auto;
        }

        .info-produto .preco span {
            font-size: 0.55em;
            color: #666;
            font-weight: normal;
        }

        /* Botões do Carrinho */
        .acoes-carrinho {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .btn-comprar {
            background-color: #ffcc00;
            color: #111;
            border: none;
            padding: 14px;
            border-radius: 4px;
            font-weight: 900;
            font-size: 1em;
            cursor: pointer;
            flex: 1;
            text-transform: uppercase;
            box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
            transition: all 0.2s ease; 
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-comprar:hover { background-color: #e6b800; }
        .btn-comprar:active { transform: scale(0.97); }

        .btn-remover {
            background-color: #333;
            color: #ffcc00;
            border: none;
            border-radius: 4px;
            width: 50px;
            cursor: pointer;
            font-size: 1.1em;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .btn-remover:hover {
            background-color: #ff4757;
            color: white;
        }

        .btn-remover:active { transform: scale(0.95); }

        /* Rodapé / Footer */
        footer {
            background-color: #111;
            color: #fff;
            padding: 40px 5% 120px 5%; 
            margin: 0 -15px; 
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 40px;
            border-top: 2px solid #333;
        }

        .footer-col {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
        }

        .footer-col h4 {
            font-size: 1.3em;
            margin-bottom: 20px;
            color: #fff;
            font-weight: 600;
        }

        .footer-info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
            font-size: 1.05em;
            color: #ccc;
        }

        .footer-info i {
            font-size: 1.4em;
            color: #fff;
            width: 25px;
            text-align: center;
        }

        .footer-divider {
            border: none;
            border-top: 1px solid #333;
            margin: 20px 0;
            width: 80%;
        }

        /* Formas de pagamento */
        .payment-icons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 35px;
        }

        .payment-card {
            background: #fff;
            color: #111;
            width: 45px;
            height: 30px;
            border-radius: 4px;
            font-size: 1.6em;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .payment-card.pix { color: #32BCAD; font-size: 1.3em; }
        .payment-card.boleto { font-size: 1em; font-weight: bold; }

        /* Selos de Segurança */
        .security-badges {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
        }

        .badge {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #000;
            padding: 10px 15px;
            border-radius: 6px;
            border: 1px solid #333;
            font-size: 0.9em;
            color: #ddd;
            font-weight: bold;
        }

        .badge i.fa-google { color: #34A853; font-size: 1.3em; }
        .badge i.fa-shield-halved { color: #f39c12; font-size: 1.3em; }

        /* Barra Flutuante */
        .barra-carrinho {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #111;
            border-top: 4px solid #ffcc00;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 5%;
            box-sizing: border-box;
            z-index: 1000;
            box-shadow: 0 -8px 25px rgba(0,0,0,0.6);
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
            padding-bottom: calc(18px + env(safe-area-inset-bottom));
        }

        .barra-carrinho.ativa {
            transform: translateY(0);
        }

        .resumo-carrinho {
            font-size: 1.05em;
            font-weight: 600;
        }

        .resumo-carrinho span {
            color: #ffcc00;
            font-weight: 900;
        }

        .acoes-barra {
            display: flex;
            gap: 10px;
        }

        .btn-zerar {
            background-color: #ff4757;
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 6px;
            font-size: 1.1em;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-zerar:hover {
            background-color: #ff6b81;
        }

        .btn-finalizar {
            background-color: #25D366;
            color: white;
            border: none;
            padding: 12px 22px;
            border-radius: 6px;
            font-size: 1em;
            font-weight: bold;
            cursor: pointer;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s;
        }

        .btn-finalizar:hover {
            background-color: #128C7E;
        }
        
        @media (max-width: 500px) {
            .resumo-carrinho {
                font-size: 0.9em;
            }
            .btn-finalizar {
                font-size: 0.85em;
                padding: 10px 15px;
            }
            .btn-zerar {
                padding: 10px 12px;
                font-size: 1em;
            }
        }

        .sem-resultados {
            text-align: center;
            color: #a0a0b0;
            grid-column: 1 / -1;
            padding: 40px;
            display: none;
        }

        /* MODAL DE ZOOM DE IMAGEM */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.5);
            object-fit: contain;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #ffcc00;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 2001;
            transition: 0.3s;
        }

        .close-modal:hover {
            color: #fff;
        }

        /* TOAST DE NOTIFICAÇÃO */
        .toast-notificacao {
            visibility: hidden;
            min-width: 250px;
            background-color: #222;
            color: #fff;
            text-align: center;
            border-radius: 8px;
            padding: 16px;
            position: fixed;
            z-index: 3000;
            left: 50%;
            transform: translateX(-50%);
            top: 10px; 
            font-size: 1em;
            font-weight: 600;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            border-left: 5px solid #25D366;
            opacity: 0;
            transition: opacity 0.4s, top 0.4s;
        }

        .toast-notificacao i {
            color: #25D366;
            margin-right: 8px;
            font-size: 1.2em;
        }

        .toast-notificacao.mostrar {
            visibility: visible;
            opacity: 1;
            top: 40px; 
        }

        /* Elemento exclusivo para impressão (Rodapé do PDF) */
        .rodape-impresso {
            display: none;
        }

        /* =========================================================
           MÁGICA DE IMPRESSÃO: VISUAL PREMIUM DE REVISTA (PDF) 
           ========================================================= */
        @media print {
            @page {
                size: A4 portrait;
                margin: 12mm 15mm; 
            }

            body {
                background-color: #fff !important; 
                color: #333 !important;
                padding: 0 !important;
                -webkit-print-color-adjust: exact !important; /* Força impressão das cores de fundo */
                print-color-adjust: exact !important;
                margin-bottom: 50px !important; /* Espaço para o rodapé impresso */
            }

            /* Ocultar tudo que é interativo */
            .search-box, .barra-carrinho, .acoes-carrinho, footer, .badge-qtd, .btn-imprimir, .toast-notificacao {
                display: none !important;
            }

            /* CABEÇALHO DO PDF (Mantém cor da marca) */
            .catalogo-header {
                background-color: #1a1a2e !important; 
                padding: 20px 30px !important;
                margin: 0 0 30px 0 !important;
                border: none !important;
                border-bottom: 6px solid #ffcc00 !important;
                border-radius: 8px !important;
                box-shadow: none !important;
            }

            .header-top-row {
                justify-content: flex-start !important; /* Alinhado à esquerda no PDF */
                margin-bottom: 0 !important;
                gap: 30px !important;
            }

            .header-text h1 {
                color: #ffcc00 !important;
                font-size: 22pt !important;
                margin-bottom: 4px !important;
            }

            .header-text p {
                color: #eee !important;
                font-size: 11pt !important;
            }

            .logo-distribuidora {
                max-width: 140px !important;
                filter: none !important;
            }

            /* GRID DE PRODUTOS NO PDF (3 colunas perfeitas) */
            .vitrine-grid {
                display: grid !important;
                grid-template-columns: repeat(3, 1fr) !important;
                gap: 20px !important;
                max-width: 100% !important;
                margin: 0 !important;
            }

            /* ESTILO DOS CARDS NO PDF */
            .vitrine-card {
                border: 1px solid #e0e0e0 !important;
                border-bottom: 5px solid #1a1a2e !important; /* Detalhe azul escuro na base */
                background-color: #fafafa !important;
                box-shadow: none !important;
                page-break-inside: avoid !important; /* Não quebra o card no meio da folha */
                break-inside: avoid !important;
                transform: none !important;
            }

            .imagem-container {
                height: 180px !important;
                background-color: #fff !important;
                border-bottom: 1px solid #eee !important;
                padding: 15px !important;
            }

            .info-produto {
                padding: 15px !important;
                text-align: center !important; /* Centralizado fica mais elegante no papel */
            }

            .tags {
                justify-content: center !important;
                margin-bottom: 10px !important;
            }
            
            .tag {
                background-color: #ffcc00 !important;
                color: #111 !important;
                border: none !important;
                padding: 4px 10px !important;
                font-size: 8pt !important;
            }

            .info-produto h3 {
                font-size: 11pt !important;
                color: #222 !important;
                min-height: 2.8em !important;
                margin-bottom: 12px !important;
                font-weight: 700 !important;
            }

            /* Preço com fundo em destaque no PDF */
            .info-produto .preco {
                font-size: 16pt !important;
                color: #1a1a2e !important;
                background-color: #ffcc00 !important;
                padding: 5px 12px !important;
                border-radius: 4px !important;
                display: inline-block !important;
                margin: 0 auto !important;
            }

            .info-produto .preco span {
                color: #111 !important;
            }

            /* RODAPÉ EXCLUSIVO DO PDF */
            .rodape-impresso {
                display: block !important;
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100% !important;
                text-align: center !important;
                font-size: 10pt !important;
                color: #555 !important;
                padding: 10px 0 !important;
                border-top: 1px solid #ddd !important;
                background-color: #fff !important;
                font-weight: bold !important;
            }
        }
