/* Nifty NJ — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0E6;
}
::-webkit-scrollbar-thumb {
    background: #C05640;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A04030;
}

/* Selection */
::selection {
    background: #C05640;
    color: #FFFFFF;
}

/* Nav Scroll State */
.nav-scrolled {
    box-shadow: 0 1px 20px rgba(44, 44, 44, 0.06);
}

/* Hero Image Grid */
.hero-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
}

/* Fade-in animation for scroll sections */
.fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .product-card:hover {
        transform: none;
    }
    .hero-img-grid img {
        transition: none;
    }
}

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

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

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
