/* Custom Styles for J & J Garden Mart */

/* Geometric Clip Paths */
.clip-triangle {
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .fixed,
    .bg-fixed {
        position: relative;
    }

    .shadow-hard,
    .shadow-hard-hover {
        box-shadow: none;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .bg-navy-900 {
        background-color: ButtonText;
    }

    .text-navy-900 {
        color: ButtonText;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: #fbbf24;
    color: #102a43;
}
