/* Custom CSS for Everyday Blooms - Modern Elegant Design */

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

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

/* Custom focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Image loading animation */
img {
    transition: opacity 0.3s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[src=""],
img:not([src]) {
    opacity: 0;
}

/* Button hover effects */
button,
a[role="button"] {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Form input styles - Modern minimal */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea,
select {
    transition: all 0.3s ease-in-out;
    background-color: transparent;
}

input::placeholder,
textarea::placeholder {
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.2;
}

/* Product card hover effect */
.product-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease-in-out;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Navbar scroll effect */
nav {
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

/* Smooth page transitions */
section {
    opacity: 1;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Scroll animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Elegant underline effect for links */
a {
    position: relative;
    text-decoration: none;
}

/* Smooth image zoom on hover */
.group img {
    will-change: transform;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

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

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

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

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Elegant selection color */
::selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
}
