/* Custom styles for The Garden Shed */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5eb;
}
::-webkit-scrollbar-thumb {
    background: #d45228;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23d1d;
}

/* Selection color */
::selection {
    background: #d45228;
    color: white;
}

/* Hero scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Product card image hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

/* Ensure all images have proper aspect ratio */
img {
    max-width: 100%;
    height: auto;
}
