:root {
    --brand-blue: #E0F7FA;
    --brand-blue-dark: #00838F;
    --brand-yellow: #FFEB3B;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--brand-blue);
    color: #374151;
}

h1, h2, h3, .brand-font {
    font-family: 'Fredoka', sans-serif;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Animação de Clique no Botão (Feedback) */
@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.animate-click {
    animation: clickPulse 0.2s ease-in-out;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-pop-up {
    animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Wave Header */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-container svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 60px;
}

.wave-container .shape-fill {
    fill: #E0F7FA;
}

/* Modal e Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #00838F; 
    border-radius: 4px;
}

#checkout-modal .checkout-step {
    animation: fadeIn 0.3s ease-in-out;
}

/* Mapa do Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}

/* Estilo do Toast (Notificação) */
#toast-notification {
    z-index: 9999 !important; /* Valor bem alto para passar o Header */
    top: 110px !important;    /* Ajusta a distância do topo para não ficar colado ao header */
}

/* Se estiver a usar o sistema de erro/sucesso do script.js */
.toast-notification.error {
    border-left-color: #ef4444 !important;
}

#toast-notification.error .text-green-500 {
    color: #ef4444 !important;
}

#toast-notification.error .bg-green-100 {
    background-color: #fee2e2 !important;
}
/* Animação de Sincronização (Giro Lento) */
@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

.animate-spin-slow { 
    animation: spin 3s linear infinite; 
}
/* ============================================================
   ESTILOS DO PDV (Ponto de Venda - Mesas)
   ============================================================ */

/* 1. Layout Principal do PDV */
#view-pos {
    height: calc(100vh - 60px); /* Desconta o header principal */
    display: none; /* Controlado pelo JS */
}

#view-pos.flex {
    display: flex !important;
}

/* 2. Barra Lateral de Categorias (Esquerda) */
#pos-category-sidebar .cat-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

#pos-category-sidebar .cat-btn:hover {
    background-color: #f1f5f9;
    color: var(--brand-blue-dark);
}

#pos-category-sidebar .cat-btn.active {
    background-color: #ecfeff;
    color: #0891b2;
    border-left-color: #0891b2;
}

/* 3. Grid de Produtos e Seções (Centro) */
.pos-section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center; /* CORREÇÃO AQUI: era items-center */
    gap: 0.5rem;
}

/* 4. Card de Produto e Efeito de "+" (Imagem 1 e 2) */
.product-card-pos {
    position: relative;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card-pos:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-blue-dark);
}

/* O "Overlay" do sinal de + */
.product-card-pos .add-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Escurece a imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.2s ease;
    border-radius: 12px;
}

.product-card-pos:hover .add-overlay {
    opacity: 1;
}

.product-card-pos .add-overlay i {
    color: white;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* 5. Barra Lateral de Pedidos / Checkout (Direita - Imagem 3) */
.order-sidebar {
    background: white;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho Laranja da Imagem 3 */
.order-header-orange {
    background-color: #f97316; /* Laranja da imagem */
    color: white;
    padding: 16px;
}

.order-status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Área de Itens da Comanda */
#pos-order-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Rodapé de Totais e Botões */
.order-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px;
}

.btn-pay {
    background-color: #2563eb;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-pay:hover {
    background-color: #1d4ed8;
}

.btn-cancel {
    border: 1px solid #fca5a5;
    color: #ef4444;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.btn-accept {
    background-color: #cbd5e1; /* Cinza desabilitado da imagem */
    color: #64748b;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
/* Animação de Voo para o Carrinho */
@keyframes flyToCart {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    40% {
        transform: translate(0, -80px) scale(1.6) rotate(15deg);
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.2) rotate(360deg);
        opacity: 0;
    }
}

.acai-flyer {
    position: absolute;
    width: 40px;
    height: 50px;
    pointer-events: none;
    z-index: 9999;
    animation: flyToCart 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Feedback visual no ícone do carrinho (Pulse) */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #00838F; }
    100% { transform: scale(1); }
}

.animate-cart-pulse {
    animation: cartPulse 0.4s ease-in-out;
}
/* Botão de Limpar Carrinho */
button[onclick="limparCarrinho()"] {
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

button[onclick="limparCarrinho()"]:hover {
    background: #ef4444;
    color: white !important;
}
/* Esconder barra de rolagem mas manter funcionalidade */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.animate-slide-up {
    animation: slideUp 0.3s ease-out forwards;
}
.is-app footer { display: none; }
.is-app .algum-botao-do-site { visibility: hidden; }
/* Se estiver usando CSS puro para a logo */
.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Faz ficar redondo */
    object-fit: cover;   /* Não deixa a imagem esticar */
    border: 3px solid white;
}
/* ============================================================
   MARKETING, BANNERS E CARROSSEL - VERSÃO FINAL CORRIGIDA
   ============================================================ */

/* 1. Container do Carrossel */
.carousel-container {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: visible !important; /* Essencial para a imagem subir no hover */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 40px 15px 20px 15px !important; /* Espaço superior para o efeito de pulo */
    
    /* Configuração de Trava (Snap) */
    scroll-snap-type: x mandatory;
    -webkit-scroll-snap-type: x mandatory;
    
    /* Esconde barra de rolagem */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 2. Card do Banner (Estrutura Pai) */
.banner-card {
    position: relative;
    flex: 0 0 300px; /* Largura fixa para não esticar no mobile */
    width: 300px;
    height: 180px;
    background-color: transparent; /* Deixa o fundo para a camada .banner-bg */
    transition: transform 0.3s ease;
    scroll-snap-align: center;
    -webkit-scroll-snap-align: center;
}

@media (min-width: 768px) {
    .banner-card {
        flex: 0 0 420px; /* Largura fixa no Desktop */
        width: 420px;
        height: 210px;
    }
}

/* 3. Camada de Fundo (Onde ficam os Gradientes do Tailwind) */
.banner-bg {
    position: absolute;
    inset: 0; /* Preenche todo o card */
    overflow: hidden; /* Mantém o brilho (shine) dentro do card */
    border-radius: 2rem;
    z-index: 1; /* Fica atrás do conteúdo e da imagem pop-out */
    box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.3);
}

/* 4. Conteúdo do Banner (Textos e Botões) */
.banner-card .relative.z-20 {
    position: relative;
    z-index: 20; /* Fica na frente do fundo */
    height: 100%;
}

/* 5. Imagem Pop-out (A que sobe no hover) */
.pop-out-image {
    position: absolute;
    z-index: 30; /* Fica na frente de TUDO */
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(10deg);
    pointer-events: none;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}

.banner-card:hover .pop-out-image {
    transform: scale(1.3) translateY(-45px) rotate(-5deg); /* Imagem sobe */
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.3));
}

/* 6. Efeito de Brilho (Shine) */
@keyframes shine {
    0% { left: -100%; }
    100% { left: 125%; }
}

.shine-effect {
    position: absolute;
    top: 0; 
    height: 100%; 
    width: 50%; 
    z-index: 5;
    transform: skewX(-12deg);
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    left: -100%;
}

.banner-card:hover .shine-effect { 
    animation: shine 0.8s ease-in-out forwards; 
}

/* 7. Tracinhos Indicadores (Barra de Progresso) */
.indicator-bar {
    width: 30px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.indicator-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #0891b2; /* Cor Ciano */
    transition: width 0.1s linear;
}

/* Ativa a animação de encher quando o slide está ativo */
.indicator-bar.active .indicator-progress {
    width: 100%;
    transition: width 5s linear; /* Sincronizado com os 5s do seu JS */
}

/* 8. Estilo do Cupom (Dashboard/Notches) */
.ticket-notch {
    position: absolute;
    top: 50%; 
    width: 24px; 
    height: 24px;
    background-color: #f3f4f6; /* Cor do fundo do dashboard */
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.notch-left { left: -12px; }
.notch-right { right: -12px; }
/* Animação Lateral do Carrinho */
@keyframes slideRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.animate-slide-right {
    animation: slideRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card de Cupom Estilo iFood */
.coupon-card {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.coupon-card:hover {
    border-color: #0891b2;
    background: #ecfeff;
}

.coupon-card.active {
    border-color: #0891b2;
    background: #ecfeff;
    box-shadow: 0 0 0 1px #0891b2;
}

/* Detalhe de picote lateral do cupom */
.coupon-card::before, .coupon-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #f9fafb; /* cor do fundo da lista */
    border-radius: 50%;
    transform: translateY(-50%);
}
.coupon-card::before { left: -12px; border-right: 2px solid #f3f4f6; }
.coupon-card::after { right: -12px; border-left: 2px solid #f3f4f6; }
/* Padding para iPhones novos (área do sensor de gestos) */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Garante que o corpo do site não fique escondido atrás da barra */
body {
    padding-bottom: 80px; /* Altura aproximada da tab bar mobile */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}
/* Estilos para as Tags no Painel Admin */
.tag-selected { 
    background-color: #0891b2 !important; 
    color: white !important; 
    border-color: #0891b2 !important; 
    box-shadow: 0 4px 6px -1px rgba(8, 145, 178, 0.2);
}

.tag-default { 
    background-color: #f3f4f6 !important; 
    color: #4b5563 !important; 
    border-color: #e5e7eb !important; 
}

.tag-item {
    transition: all 0.2s ease;
    user-select: none;
}
/* =========================================
   PRELOADER ANIMADO (AÇAÍ)
   ========================================= */
:root {
    --cor-brand: #0891b2; /* Ajustado para o cyan-600 da sua marca */
    --cor-fundo: #e0f2f7; 
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--cor-fundo);
    z-index: 9999; /* Garante que fique por cima de tudo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animações dos elementos do SVG */
.cup-outline {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawOutline 2s ease-out forwards;
}

@keyframes drawOutline {
    to { stroke-dashoffset: 0; }
}

.layer-bottom {
    transform: translateY(100px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.5s forwards;
}

.layer-middle {
    transform: translateY(100px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.8s forwards;
}

.layer-top-fill {
    transform: translateY(100px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 2.1s forwards;
}

.swirl {
    transform: scale(0);
    transform-origin: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2.5s forwards;
}

.sprinkle {
    opacity: 0;
    transform: translateY(-20px);
    animation: dropIn 0.4s ease-out forwards;
}

.spoon {
    transform: translate(30px, -30px);
    opacity: 0;
    animation: spoonEntry 0.8s ease-out 3.5s forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes popIn {
    to { transform: scale(1); }
}

@keyframes dropIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spoonEntry {
    to { opacity: 1; transform: translate(0, 0); }
}

/* Texto de carregamento */
.loading-text {
    margin-top: 2rem;
    color: var(--cor-brand);
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

.fade-out-preloader {
    animation: fadeOutPreloader 0.5s forwards;
    pointer-events: none;
}

@keyframes fadeOutPreloader {
    to { opacity: 0; visibility: hidden; }
}
#toast-notification {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    border-left-width: 6px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Efeito elástico */
}
