/* Additional custom styles for Sweet Crumbs Bakery */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #D4A574;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #C9956C;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #F5E6D3 0%, #FDF6E3 50%, #F5E6D3 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, footer, button, form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}