/* Custom styles for Kingdom Gifts Variety Market Place */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #d95230;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c73e22;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #44403C !important;
}

.nav-scrolled #navbar a:not(.nav-link):not(#menuBtn) {
    color: white !important;
}

/* Hero section */
#hero {
    scroll-margin-top: 0;
}

/* Product card hover effects */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
    
    .animate-bounce,
    .animate-pulse {
        animation: none;
    }
}

/* Mobile menu open state */
.mobile-menu-open {
    max-height: 320px !important;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(237, 188, 120, 0.3);
}

/* Button hover lift */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background-color: #F5E4B0;
}

/* Selection color */
::selection {
    background-color: #F3BBA8;
    color: #71251A;
}
