/* Yasmin Deli Grocery — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #D4A855;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C08D3A;
}

/* Floating card animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1s;
}

.floating-card:nth-child(3) {
    animation-delay: -2s;
}

.floating-card:nth-child(4) {
    animation-delay: -3s;
}

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

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 249, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image hover */
.hero-image-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* Button focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C0603C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #F3BDB3;
    color: #5A3021;
}

/* Map container responsive */
iframe {
    max-width: 100%;
}

/* Product card hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
