Priority+ nav: show key items inline, overflow rest to hamburger

This commit is contained in:
Jarvis Prime
2026-03-24 04:39:30 +00:00
parent bab7f9af3c
commit 2dd58a0fc7

View File

@@ -388,15 +388,21 @@ const isHome = currentPath === '/';
/* === RESPONSIVE HELPERS === */ /* === RESPONSIVE HELPERS === */
@media (max-width: 960px) { @media (max-width: 960px) {
.d-placing { width: 95%; padding: 0 10px; } .d-placing { width: 95%; padding: 0 10px; }
/* Hamburger menu */ /* Priority+ nav: show first items, overflow rest into hamburger */
.hamburger { display: block; cursor: pointer; padding: 8px; position: absolute; right: 10px; top: 8px; z-index: 101; } .d-header { position: relative; display: flex; align-items: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: #bb983b; margin: 5px 0; transition: 0.3s; } .d-menu { display: flex; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; }
.d-header { position: relative; } .d-menu li { float: none; flex-shrink: 0; }
.d-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #3a2c18; z-index: 100; padding: 10px 0; box-shadow: 0 4px 8px rgba(0,0,0,0.3); } .d-menu .menu-item { font-size: 12px; padding: 4px 8px; }
.d-menu.open { display: flex; } /* Hide items that don't fit — show first 4 (Home, Products, Purchase, Support) */
.d-menu li { float: none; padding: 0; margin: 0; } .d-menu li:nth-child(n+5) { display: none; }
.d-menu .menu-item { display: block; padding: 10px 20px; font-size: 14px; border-bottom: 1px solid #4a3c28; } .d-menu.open li:nth-child(n+5) { display: block; }
.d-menu .menu-item:hover { background: #4a3c28; } /* 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; }
/* 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%; }
.d-menu.open .menu-item { display: block; padding: 10px 20px; font-size: 14px; border-bottom: 1px solid #4a3c28; }
.d-menu .with-dropdown .dropdown { display: none; } .d-menu .with-dropdown .dropdown { display: none; }
.d-logo { display: none; } .d-logo { display: none; }
.d-footer .left, .d-footer .right { float: none; width: 100%; } .d-footer .left, .d-footer .right { float: none; width: 100%; }