/* ----- reset & base ----- */ /* ----- animations ----- */ /* ----- top banner ----- */ /* ----- header / navbar ----- */ /* ----- HAMBURGER BUTTON (mobile) ----- */ /* ----- MEGA MENU (desktop) ----- */ /* Mega dropdown - with edge protection for large screens */ /* Different widths for variety */ /* Edge alignment for first and last nav items (large screens) */ /* Keep them visible on hover with correct transform */ /* ----- HERO SLIDER (unchanged) ----- */ /* ----- layout: filters + products (unchanged) ----- */ /* ----- RESPONSIVE DESIGN (mobile) ----- */ /* Show hamburger, hide nav-menu initially with smooth animation */ display: flex; /* keep flex, but hide via max-height/opacity */ padding: 0 16px; /* horizontal padding only, vertical is handled by max-height */ visibility: hidden; /* hide from screen readers when collapsed */ max-height: 2000px; /* large enough to show all content */ padding: 16px; /* restore padding when open */ flex-wrap: wrap; /* allow wrapping so dropdown goes below */ /* Mega dropdown on mobile: full width below, smooth accordion */ max-height: 800px; /* enough for dropdown content */ /* Reset hover transforms on mobile */ /* Adjust navbar layout */ // Price range display // Apply filter demo // Add to cart simulation // Search demo // Sort demo // HERO SLIDER // HAMBURGER MENU TOGGLE (mobile) with smooth animation // Change icon between bars and times // Also close any open dropdowns when closing menu // On mobile, clicking a nav-item toggles its dropdown (accordion) and closes others // Only for mobile view (max-width 768px) // Prevent closing when clicking inside dropdown // If this item is already active, we just close it // Close all other active items first // Then open this one // Close menu when clicking outside (optional) // Also close any open dropdowns