/* Custom Styles for Irving Housewares */

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

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: #93e0b6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5ec78f;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #5ec78f;
    outline-offset: 2px;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Loading state for form */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Custom selection color */
::selection {
    background-color: #c3efd4;
    color: #0a4127;
}

/* Reduce motion for accessibility */
@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 {
    nav,
    #back-to-top,
    button {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .shadow-soft,
    .shadow-card,
    .shadow-xl {
        box-shadow: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .rounded-4xl {
        border-radius: 1.5rem;
    }
    
    .rounded-5xl {
        border-radius: 2rem;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-emerald-600 {
        background-color: ButtonText;
    }
    
    .text-emerald-600 {
        color: ButtonText;
    }
}

/* Dark mode support (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Could add dark mode styles here if needed */
}

/* Touch device optimizations */
@media (hover: none) {
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
    
    .group:hover .group-hover\\:scale-105 {
        transform: none;
    }
}
