/* ============================================================
   MÓDULO: app/estabelecimento
   Gerado automaticamente — não editar manualmente por página
   ============================================================ */

/* === _layout/navigation e _layout/top (conteúdo original) === */
/* === Extraído de app/estabelecimento/_layout/navigation.php === */
.header-bar {
    position: relative;
    min-height: 46px;
    padding-right: 200px;
}

.header-bar .navbar {
    margin: 0;
    padding: 8px 0 8px 0;
    background: transparent;
    border: 0;
}

/* Nav da direita fixo */
.header-bar .navbar.pull-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}

/* Ícones lado a lado */
.header-bar .social {
    display: flex;
    padding: 8px 0 8px 0;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.header-bar .social a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    opacity: 0.9;
    line-height: 1;
}

.header-bar .social a:hover {
    opacity: 1;
}

/* Botão de status */
.status-loja {
    margin-right: 15px;
}

.verdedesktop {
    background: #1f9d2b;
    color: #fff;
    border: 0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: default;
}

.vermelhodesktop {
    background: #d6362b;
    color: #fff;
    border: 0;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: default;
}

@media (max-width: 767px) {
    .header-bar {
        padding-right: 0;
    }
}

/* === Extraído de app/estabelecimento/_layout/top.php === */
/* Correção para ícones ficarem na lateral e badges mais finos - FORÇANDO CSS */
.info-badges-desktop .info-badge {
    padding: 2px 6px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
}

.info-badges-desktop .info-badge i {
    margin-right: 5px !important;
    display: inline !important;
    vertical-align: middle !important;
}

.info-badges-desktop .info-badge span {
    display: inline !important;
    vertical-align: middle !important;
}

/* === estabelecimento/index === */
/* Extraido de categoria.php */
@media screen and (min-width: 80rem) {
        .grid_produtos {
            grid-template-columns: 1fr 1fr 1fr 1fr !important;
            gap: 25px !important;
        }

    }

/* Ícone Play */


                                                                            .produto .capa .playVideo::after {
                                                                                content: "";
                                                                                position: absolute;
                                                                                top: 50%;
                                                                                left: 50%;
                                                                                width: 0;
                                                                                height: 0;
                                                                                border-style: solid;
                                                                                border-width: 30px 0 30px 45px; /* Tamanho do trigulo */
                                                                                border-color: transparent transparent transparent #FFFFFF; /* Trigulo banco */
                                                                                transform: translate(-50%, -50%);
                                                                            }

                                                                            a .lni-play {
                                                                                color: transparent !important;
                                                                                text-decoration: none !important;
                                                                            }



@media screen and (min-width: 80rem) {
            .grid_produtos {
                grid-template-columns: 1fr 1fr 1fr 1fr !important;
                gap: 25px !important;
            }

        }

        /* Otimizações de Performance */

        /* Loading skeleton para imagens */
        .image-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        /* Lazy loading images */
        img[data-src] {
            opacity: 0;
            transition: opacity 0.3s;
        }

        img.loaded {
            opacity: 1;
        }

        /* Otimizações de layout */
        .produto .capa {
            will-change: transform;
            contain: layout style paint;
        }

        /* Preload critical resources */
        .critical-image {
            loading: eager;
        }

        /* Prevent layout shifts */
        .produto .capa {
            aspect-ratio: 1;
            min-height: 200px;
        }

        .avatar img, .cover img {
            loading: eager;
        }

        /* Compress and optimize animations */
        .produto {
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        /* ================================================ */
        /* OTIMIZAÇÕES ESPECÍFICAS PARA LAYOUT LISTA */
        /* ================================================ */
        .novalistagem .novoproduto .capa {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            background: #f8f9fa;
            aspect-ratio: 1;
            min-height: 120px;
            max-height: 150px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .novalistagem .novoproduto .capa img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center;
            border-radius: 12px;
            transition: all 0.3s ease;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
            filter: none !important;
            -webkit-filter: none !important;
            backface-visibility: hidden;
            transform: translateZ(0);
        }

        .novalistagem .novoproduto .capa img:hover {
            transform: scale(1.05);
        }

        /* Otimizações para imagens lazy no layout lista */
        .novalistagem .lazy-image {
            opacity: 0;
            transition: opacity 0.4s ease-in-out !important;
        }

        .novalistagem .lazy-image.loaded {
            opacity: 1;
        }

        /* Prevenção de blur e melhor qualidade */
        .novalistagem img {
            -webkit-backface-visibility: hidden;
            -moz-backface-visibility: hidden;
            -ms-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-perspective: 1000;
            -moz-perspective: 1000;
            -ms-perspective: 1000;
            perspective: 1000;
            image-rendering: optimizeQuality;
            -ms-interpolation-mode: bicubic;
        }

        /* Layout do produto na lista */
        .novalistagem .novoproduto {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
        }

        .novalistagem .novoproduto:hover {
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

        /* Responsividade para o layout lista */
        @media (max-width: 768px) {
            .novalistagem .novoproduto .capa {
                min-height: 100px;
                max-height: 120px;
            }

            .novalistagem .novoproduto {
                padding: 12px;
                margin-bottom: 12px;
            }
        }

        /* ================================================ */
        /* SISTEMA DE NOTIFICAÇÕES ALEATÓRIAS */
        /* ================================================ */
        .notification-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            z-index: 9999;
            min-width: 300px;
            max-width: 400px;
            opacity: 0;
            transform: translateX(400px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .notification-toast.show {
            opacity: 1;
            transform: translateX(0);
        }

        .notification-content {
            display: flex;
            align-items: center;
            padding: 15px;
            gap: 12px;
        }

        .notification-icon {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: #ffffff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .notification-text {
            flex: 1;
            line-height: 1.4;
        }

        .notification-message {
            font-size: 14px;
            color: #34495e;
            margin-bottom: 2px;
        }

        .notification-message strong {
            color: var(--app-cor, #2c3e50);
            font-weight: 600;
        }

        .notification-product {
            font-size: 13px;
            color: #7f8c8d;
            font-weight: 600;
        }

        .notification-close {
            color: #bdc3c7;
            cursor: pointer;
            padding: 5px;
            border-radius: 50%;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .notification-close:hover {
            background: #ecf0f1;
            color: #e74c3c;
        }

        .notification-progress {
            height: 3px;
            background: #ecf0f1;
            position: relative;
            overflow: hidden;
        }

        .notification-progress::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background: linear-gradient(135deg, var(--app-cor, #2c3e50), #2980b9);
            width: 0%;
            animation: notificationProgress 8s linear;
        }

        .notification-toast.show .notification-progress::after {
            animation: notificationProgress 8s linear;
        }

        @keyframes notificationProgress {
            from {
                width: 0%;
            }
            to {
                width: 100%;
            }
        }

        /* Responsividade para mobile */
        @media (max-width: 768px) {
            .notification-toast {
                top: 10px;
                right: 5px;
                left: 5px;
                min-width: auto;
                max-width: none;
                transform: translateY(-100px);
            }

            .notification-toast.show {
                transform: translateY(0);
            }

            .notification-content {
                padding: 12px;
            }

            .notification-icon {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }
        }

        /* ================================================ */
        /* OCULTAR SETAS DE SCROLL */
        /* ================================================ */
        /* Ocultar scrollbar no div de categorias */
        div[style*="overflow-y: scroll; display: flex"] {
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }

        div[style*="overflow-y: scroll; display: flex"]::-webkit-scrollbar {
            width: 0; /* Remove scrollbar space */
            background: transparent; /* Optional: just make scrollbar invisible */
            display: none; /* Chrome/Safari/Webkit */
        }

        div[style*="overflow-y: scroll; display: flex"]::-webkit-scrollbar-thumb {
            background: transparent;
            display: none;
        }

        div[style*="overflow-y: scroll; display: flex"]::-webkit-scrollbar-track {
            background: transparent;
            display: none;
        }

/* Estilos para os botões de instalação PWA */
                        .pwa-container {
                            display: flex;
                            justify-content: center;
                            gap: 10px;
                            margin: 15px 0;
                            flex-wrap: wrap;
                        }

                        .pwa-button {
                            background: linear-gradient(135deg, #4CAF50, #45a049);
                            color: white;
                            border: none;
                            padding: 12px 20px;
                            border-radius: 8px;
                            cursor: pointer;
                            font-size: 14px;
                            font-weight: 600;
                            transition: all 0.3s ease;
                            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                            display: flex;
                            align-items: center;
                            gap: 8px;
                            min-width: 140px;
                            justify-content: center;
                        }

                        .pwa-button.ios {
                            background: linear-gradient(135deg, #007AFF, #005bb5);
                        }

                        .pwa-button:hover {
                            transform: translateY(-2px);
                            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
                        }

                        .pwa-button:active {
                            transform: translateY(0);
                        }

                        .pwa-button i {
                            font-size: 18px;
                        }

                        /* Popup para instruções iOS */
                        .popup-overlay {
                            position: fixed;
                            top: 0;
                            left: 0;
                            width: 100%;
                            height: 100%;
                            background: rgba(0, 0, 0, 0.5);
                            z-index: 9999;
                            display: none;
                            justify-content: center;
                            align-items: center;
                        }

                        .popup-content {
                            background: white;
                            padding: 30px;
                            border-radius: 12px;
                            max-width: 90%;
                            max-height: 80%;
                            overflow-y: auto;
                            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
                            margin: 20px;
                        }

                        .popup-content h2 {
                            color: #333;
                            margin-bottom: 20px;
                            text-align: center;
                        }

                        .popup-content ol {
                            padding-left: 20px;
                            line-height: 1.6;
                        }

                        .popup-content li {
                            margin-bottom: 10px;
                            font-size: 16px;
                        }

                        .close-button {
                            background: #f44336;
                            color: white;
                            border: none;
                            padding: 10px 20px;
                            border-radius: 6px;
                            cursor: pointer;
                            margin-top: 20px;
                            width: 100%;
                            font-size: 16px;
                            font-weight: 600;
                        }

                        .close-button:hover {
                            background: #d32f2f;
                        }

                        @media (max-width: 768px) {
                            .pwa-container {
                                flex-direction: row;
                                justify-content: center;
                                align-items: center;
                                gap: 8px;
                            }

                            .pwa-button {
                                flex: 1;
                                max-width: 45%;
                                min-width: 120px;
                                font-size: 12px;
                                padding: 10px 8px;
                            }

                            .pwa-button i {
                                font-size: 16px;
                            }
                        }

                        #installButton, #showInstructionsButton {
                            display: none;
                        }

/* MOBILE-FIRST: faixa rolável */
                        .categories-list {
                            display: flex;
                            overflow-x: auto;
                            gap: 16px;
                            margin-top: 30px;
                            padding-bottom: 8px; /* espaço pro dedo */
                            -webkit-overflow-scrolling: touch;
                            scrollbar-width: thin;
                        }

                        /* (Opcional) esconder trilho no mobile WebKit */
                        .categories-list::-webkit-scrollbar {
                            height: 6px;
                        }

                        .categories-list::-webkit-scrollbar-thumb {
                            border-radius: 6px;
                        }

                        .category-item {
                            flex: 0 0 auto; /* não quebrar, rolar */
                            width: 120px; /* largura do "card" no mobile */
                            display: grid;
                            place-items: center;
                            text-align: center;
                            text-decoration: none;
                            box-sizing: border-box;
                        }

                        .category-item span {
                            white-space: normal; /* pode quebrar o nome */
                            word-break: break-word;
                        }

                        .category-item img {
                            width: 60px;
                            height: 60px;
                            border-radius: 100%;
                            object-fit: cover;
                        }

                        .category-item.active {
                            outline: 2px solid #31363822;
                            border-radius: 12px;
                        }

                        /* DESKTOP: vira grid com 6 colunas e SEM scroll */
                        @media (min-width: 992px) {
                            .categories-list {
                                display: grid;
                                overflow: visible;
                                grid-template-columns:repeat(10, 1fr);
                                gap: 5px;
                                padding-bottom: 0;
                            }

                            .category-item {
                                width: auto;
                            }
                        }

/* Ícone Play */


                                                                    .produto .capa .playVideo::after {
                                                                        content: "";
                                                                        position: absolute;
                                                                        top: 50%;
                                                                        left: 50%;
                                                                        width: 0;
                                                                        height: 0;
                                                                        border-style: solid;
                                                                        border-width: 30px 0 30px 45px; /* Tamanho do trigulo */
                                                                        border-color: transparent transparent transparent #FFFFFF; /* Trigulo banco */
                                                                        transform: translate(-50%, -50%);
                                                                    }

                                                                    a .lni-play {
                                                                        color: transparent !important;
                                                                        text-decoration: none !important;
                                                                    }

/* Estilos do Banner de Cookies */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            color: #333;
            padding: 12px 15px;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            border-top: 1px solid #e0e0e0;
            z-index: 10000;
            animation: slideUp 0.3s ease-out;
        }

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .cookie-text {
            flex: 1;
            min-width: 200px;
        }

        .cookie-text h4 {
            margin: 0 0 4px 0;
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        .cookie-text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.4;
            color: #666;
        }

        .cookie-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .cookie-btn {
            padding: 8px 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            background: white;
            color: #333;
            min-width: 70px;
            text-align: center;
        }

        .cookie-btn.accept {
            background: #f8f9fa;
            border-color: #28a745;
            color: #28a745;
        }

        .cookie-btn.accept:hover {
            background: #28a745;
            color: white;
        }

        .cookie-btn.reject {
            background: #f8f9fa;
            border-color: #dc3545;
            color: #dc3545;
        }

        .cookie-btn.reject:hover {
            background: #dc3545;
            color: white;
        }

        /* Modal de Configurações */
        .cookie-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10001;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .cookie-modal-content {
            background: white;
            border-radius: 12px;
            max-width: 600px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .cookie-modal-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .cookie-modal-header h3 {
            margin: 0;
            color: #2c3e50;
        }

        .cookie-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cookie-close:hover {
            color: #e74c3c;
        }

        .cookie-modal-body {
            padding: 20px;
        }

        .cookie-category {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #eee;
            border-radius: 8px;
        }

        .cookie-toggle {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .cookie-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .cookie-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .cookie-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 24px;
        }

        .cookie-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .cookie-slider {
            background-color: #2ecc71;
        }

        input:checked + .cookie-slider:before {
            transform: translateX(26px);
        }

        input:disabled + .cookie-slider {
            background-color: #95a5a6;
            cursor: not-allowed;
        }

        .cookie-info h4 {
            margin: 0 0 5px 0;
            color: #2c3e50;
            font-size: 16px;
        }

        .cookie-info p {
            margin: 0;
            color: #7f8c8d;
            font-size: 14px;
            line-height: 1.4;
        }

        .cookie-modal-footer {
            padding: 20px;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        /* Animações */
        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        /* Responsivo */
        @media (max-width: 768px) {
            .cookie-banner {
                padding: 10px 12px;
            }

            .cookie-content {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }

            .cookie-text {
                min-width: auto;
            }

            .cookie-text h4 {
                font-size: 13px;
            }

            .cookie-text p {
                font-size: 11px;
            }

            .cookie-buttons {
                justify-content: center;
                width: 100%;
                gap: 6px;
            }

            .cookie-btn {
                flex: 1;
                min-width: 60px;
                font-size: 11px;
                padding: 6px 12px;
            }
        }


/* Extraido de pedido_delivery.php */
.input-error {
        border: 2px solid red !important;
        background-color: #ffe6e6;
    }


/* Extraido de pedido_delivery_frete.php */
.input-error {
        border: 2px solid red !important;
        background-color: #ffe6e6;
    }


/* Extraido de produto.php */
/* Ícone Play */


                                                    .produto .capa .playVideo::after {
                                                        content: "";
                                                        position: absolute;
                                                        top: 50%;
                                                        left: 50%;
                                                        width: 0;
                                                        height: 0;
                                                        border-style: solid;
                                                        border-width: 30px 0 30px 45px; /* Tamanho do trigulo */
                                                        border-color: transparent transparent transparent #FFFFFF; /* Trigulo banco */
                                                        transform: translate(-50%, -50%);
                                                    }

                                                    a .lni-play {
                                                        color: transparent !important;
                                                        text-decoration: none !important;
                                                    }


/* getnet e pagseguro têm estilos próprios em seus arquivos */
