/* Estilos Customizados para Do Campo à Mesa */
:root {
    --primary: #15803d;
    --primary-dark: #166534;
    --primary-light: #22c55e;
    --accent: #d97706;
    --bg-warm: #fafaf9;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar suave */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Utilitário para ocultar barra de rolagem mantendo a navegação ativa */
.scrollbar-none, .no-scrollbar {
    -ms-overflow-style: none !important; /* IE e Edge */
    scrollbar-width: none !important; /* Firefox */
}
.scrollbar-none::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari e Opera */
    width: 0 !important;
    height: 0 !important;
}

/* Animações da Sidebar / Drawer de Categorias */
.drawer-backdrop {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transições de cards */
.product-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(22, 101, 52, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animação suave para o Drawer do Carrinho */
.cart-drawer-backdrop {
    transition: opacity 0.3s ease-in-out;
}
.cart-drawer-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge pulsante */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.04); }
}
.pulse-badge {
    animation: pulse-subtle 2.5s infinite ease-in-out;
}

/* Toast de notificação */
#toast-container {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    background: #1e293b;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s ease-out;
    border-left: 4px solid #22c55e;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stepper de quantidade */
.qty-btn {
    user-select: none;
    touch-action: manipulation;
}

/* Efeito de destaque suave ao atualizar campos automaticamente */
@keyframes inputGlow {
    0% {
        background-color: #dcfce7;
        border-color: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
    }
    50% {
        background-color: #f0fdf4;
        border-color: #16a34a;
        box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
    }
    100% {
        background-color: inherit;
        border-color: inherit;
        box-shadow: none;
    }
}
.field-auto-highlight {
    animation: inputGlow 1.8s ease-in-out;
}

/* Leaflet Map isolation and styling */
.leaflet-map-container {
    isolation: isolate;
    position: relative;
    z-index: 1 !important;
}
.leaflet-map-container .leaflet-pane {
    z-index: 2 !important;
}
.leaflet-map-container .leaflet-top,
.leaflet-map-container .leaflet-bottom {
    z-index: 3 !important;
}
.leaflet-container {
    font-family: inherit;
}
.custom-store-pin, .custom-customer-pin {
    background: transparent !important;
    border: none !important;
}


