/* Custom styles — extends beyond Tailwind */

/* Base reset tweaks */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Selection color */
::selection {
    background: rgba(61, 102, 61, 0.15);
    color: var(--forest-800);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--forest-600);
    outline-offset: 2px;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest-600);
    transition: width 0.25s ease;
}

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

/* Form focus states */
input:focus,
textarea:focus {
    background: #fff;
}

/* Subtle image hover overlay */
.product-card .product-img {
    will-change: transform;
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, var(--forest-50) 0%, var(--forest-100) 50%, var(--forest-50) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #menuOverlay, button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .hero-gradient {
        background: var(--forest-700) !important;
    }
}
