html {
    scroll-padding-top: 90px; /* Ensures section titles are visible when navigated to */
}

body {
    font-family: 'Inter', sans-serif;
    /*padding-top: 80px;*/
}

header {
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Class to trigger when menu is open */
#mobile-menu-sidebar.open .nav-item {
    animation: slideInFromLeft 0.5s ease forwards;
}

/* Staggered Delays */
#mobile-menu-sidebar.open .nav-item:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu-sidebar.open .nav-item:nth-child(2) { animation-delay: 0.2s; }
#mobile-menu-sidebar.open .nav-item:nth-child(3) { animation-delay: 0.3s; }
#mobile-menu-sidebar.open .nav-item:nth-child(4) { animation-delay: 0.4s; }

.animate-pop {
    opacity: 0; /* Hidden initially */
    animation: pop 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48) forwards;
}
@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0); /* Returns to neutral so hover can take over */
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-gradient {
    background: linear-gradient(135deg, #e6f4ea 0%, #ffffff 100%);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Center Toast Styles */
.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    pointer-events: none; /* Prevents blocking clicks while fading */
    opacity: 0;
}

/* Centered Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.success-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
/* Apply blur to your main content when modal is open */
body.modal-open #main-content-wrapper {
    filter: blur(5px);
    pointer-events: none; /* Prevent clicking background items */
    transition: filter 0.3s ease;
}
.modal-overlay {
    /* Use this to center the modal relative to the viewport if needed */
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#cart-badge {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* The starting state: invisible and slightly moved down */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

/* The active state: fully visible and in original position */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Apply this to your stylesheet */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Forces everything to stay in one row */
}

h1[data-i18n="sanitaryNepal"] {
    white-space: nowrap; /* Prevents text wrapping */
    font-size: clamp(1rem, 4vw, 1.5rem); /* Responsive font size */
}

/* Ensure the flag icon doesn't look distorted */
#lang-flag {
    aspect-ratio: 1 / 1;
}
.nav-link.bg-green-600 {
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounce-short {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-bounce-short {
    animation: bounce-short 0.3s ease-in-out;
}

/* Hide scrollbars for the quick-picks we made earlier */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

