Fix hamburger icon: flex-direction column with gap for visible bars

This commit is contained in:
Jarvis Prime
2026-03-24 04:58:48 +00:00
parent 82813f2a5d
commit bcdfa5e236

View File

@@ -389,16 +389,16 @@ const isHome = currentPath === '/';
@media (max-width: 960px) {
.d-placing { width: 95%; padding: 0 10px; }
/* Priority+ nav: show first items, overflow rest into hamburger */
.d-header { position: relative; display: flex; align-items: center; }
.d-menu { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; }
.d-menu li { float: none; flex-shrink: 0; }
.d-menu .menu-item { font-size: 12px; padding: 4px 8px; }
.d-header { position: relative; display: flex; align-items: center; justify-content: space-between; }
.d-menu { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; overflow: hidden; }
.d-menu li { float: none; flex-shrink: 0; padding-right: 0; }
.d-menu .menu-item { font-size: 13px; padding: 6px 10px; }
/* Hide items that don't fit — show first 3 (Home, Products, Purchase) */
.d-menu li:nth-child(n+4) { display: none; }
.d-menu.open li:nth-child(n+4) { display: block; }
/* Hamburger button */
.hamburger { display: flex; cursor: pointer; padding: 8px; z-index: 101; flex-shrink: 0; }
.hamburger span { display: block; width: 18px; height: 2px; background: #bb983b; margin: 3px 0; }
.hamburger { display: flex; flex-direction: column; justify-content: center; cursor: pointer; padding: 10px; z-index: 101; flex-shrink: 0; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: #bb983b; border-radius: 1px; }
/* When open, show all items as dropdown below */
.d-menu.open { flex-wrap: wrap; position: absolute; top: 100%; left: 0; right: 0; background: #3a2c18; z-index: 100; padding: 0; box-shadow: 0 4px 8px rgba(0,0,0,0.3); overflow: visible; }
.d-menu.open li { width: 100%; }