/* ============================================
   Yun's Market — Custom Styles
   Classic & Elegant | Emerald + Cream
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #1a4327;
    color: #faf5eb;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out both;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Navbar --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    box-shadow: 0 1px 0 rgba(26, 67, 39, 0.08);
    backdrop-filter: blur(10px);
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #2a6d3c;
    transition: width 0.3s ease, left 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
    left: 0;
}

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

/* --- Buttons --- */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Map --- */
iframe {
    filter: saturate(0.7) contrast(1.05);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #5fa56e;
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}
