@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    --brand: #16a34a;
    --brand-dark: #14532d;
    --accent: #dc2626;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Hind Siliguri added for beautiful Bangla text support */
body { 
    font-family: 'Inter', 'Hind Siliguri', sans-serif; 
    background-color: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
    overflow-x: hidden; 
    -webkit-tap-highlight-color: transparent; 
}

a { text-decoration: none; color: inherit; transition: .3s; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; touch-action: manipulation; }

/* --- UTILITIES --- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
html { scroll-behavior: smooth; }

/* Category Scroll Snap for Mobile */
#categoryRow {
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 1rem;
    scroll-snap-type: x mandatory;
}
#categoryRow > button {
    scroll-snap-align: start;
}

/* --- CUSTOM SCROLLBAR --- */
#desktopSearchResults::-webkit-scrollbar,
#menuSearchResults::-webkit-scrollbar { width: 6px; }
#desktopSearchResults::-webkit-scrollbar-track,
#menuSearchResults::-webkit-scrollbar-track { background: #f1f1f1; }
#desktopSearchResults::-webkit-scrollbar-thumb,
#menuSearchResults::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
#desktopSearchResults::-webkit-scrollbar-thumb:hover,
#menuSearchResults::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* --- TOAST NOTIFICATION STYLES --- */
#toast-container { 
    position: fixed; 
    top: 80px; 
    right: 20px; 
    z-index: 99999; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; /* Allows clicking through empty space */
}

.toast-box { 
    min-width: 300px; 
    background: #fff; 
    color: #333; 
    padding: 12px 16px; 
    border-radius: 8px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    animation: slideIn 0.4s ease-out forwards; 
    border-left: 5px solid transparent; 
    transition: 0.4s; 
    pointer-events: auto;
}

/* Dynamic Border Colors */
.toast-box[style*="border-left: 5px solid #16a34a"] { border-left-color: var(--brand) !important; }
.toast-box[style*="border-left: 5px solid #dc2626"] { border-left-color: var(--accent) !important; }

@keyframes slideIn { 
    from { transform: translateX(120%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

.toast-close { 
    margin-left: auto; 
    cursor: pointer; 
    color: #999; 
    font-size: 18px; 
    transition: color 0.2s;
}
.toast-close:hover { color: #333; }