:root {
    --nav-height: 3.25rem;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

.soft-shadow {
    box-shadow: 0 10px 30px -5px rgba(249, 115, 22, 0.1);
}

.orange-gradient {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.rounded-custom {
    border-radius: 2rem;
}

.rounded-l-custom {
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
}

.vector-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.626 10.5H5.374C2.406 10.5 0 12.906 0 15.874v28.252C0 47.094 2.406 49.5 5.374 49.5h49.252c2.968 0 5.374-2.406 5.374-5.374V15.874c0-2.968-2.406-5.374-5.374-5.374zM30 40.5c-5.799 0-10.5-4.701-10.5-10.5S24.201 19.5 30 19.5 40.5 24.201 40.5 30 35.799 40.5 30 40.5z' fill='%23f97316' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.logo-float {
    animation: float 3s ease-in-out infinite;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #fff7ed;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #fdba74;
    border-radius: 10px;
}

.mobile-menu-open {
    overflow: hidden;
}

#mobile-menu:not(.translate-x-full) {
    visibility: visible;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    background: #f97316;
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
}

/* Barra superior compacta */
.nav-compact {
    height: var(--nav-height);
}

.nav-compact > div {
    height: 100%;
}

/* Botões flutuantes com safe-area */
.fab-whatsapp {
    position: fixed;
    z-index: 50;
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(1rem, env(safe-area-inset-left));
}

.fab-carrinho {
    position: fixed;
    z-index: 50;
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
}

/* Espaço no rodapé para não cobrir conteúdo */
.footer-safe {
    padding-bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4rem));
}

/* Touch-friendly */
button, a {
    touch-action: manipulation;
}

/* Mobile: desativa animações pesadas */
@media (max-width: 768px) {
    .logo-float {
        animation: none;
    }

    #notificacao {
        top: calc(var(--nav-height) + 0.75rem);
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Só aplica hover em dispositivos com mouse */
@media (hover: hover) {
    .hover-scale:hover {
        transform: scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-float {
        animation: none;
    }

    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}