/* Custom styles for Bloom my Beauty */

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

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

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

::-webkit-scrollbar-thumb {
    background: #93bc93;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a9e6a;
}

/* Selection color */
::selection {
    background: #dce8dc;
    color: #1f311f;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(47, 77, 47, 0.08);
}

/* Mobile menu animation */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.close {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu hamburger animation */
#menuBtn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active #line2 {
    opacity: 0;
}

#menuBtn.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Product card hover */
.product-card:hover img {
    transform: scale(1.05);
}

/* Form focus states */
input:focus,
textarea:focus {
    outline: none;
}

input:focus ~ label,
textarea:focus ~ label {
    color: #4d7c4d;
}

/* Subtle fade-in for sections below fold */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Image loading placeholder */
img {
    background-color: #f0f4f0;
}

/* Thin line accent */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #bdd5bd, transparent);
}
