/* Custom styles for Botanas La Michoacana */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Product card reveal animation (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .product-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
    }
    
    .product-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .product-card:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
    
    /* Floating accent card animation */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .floating-accent {
        animation: float 3s ease-in-out infinite;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(115, 39, 39, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdfbf5;
}

::-webkit-scrollbar-thumb {
    background: #b84545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #943030;
}

/* Selection color */
::selection {
    background: #f5bfbf;
    color: #5c2121;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #b84545;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Subtle hover lift for cards */
.bg-white.rounded-2xl {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-2xl:hover {
    transform: translateY(-4px);
}
