.site-header{position:sticky;top:0;z-index:1050;background:#101820;border-bottom:1px solid rgba(255,255,255,.09)}
.site-header .header-container{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-header .logo{display:flex;align-items:center;gap:10px;color:#f8b33c;text-decoration:none;font-weight:900;white-space:nowrap}
.site-header .logo img{width:44px;height:44px;object-fit:contain}
.desktop-nav{flex:1;min-width:0}
.desktop-nav .nav-links{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,28px);list-style:none}
.desktop-nav .nav-links a{color:#e8ece9;text-decoration:none;font-size:.88rem;white-space:nowrap}
.desktop-nav .nav-links a:hover{color:#f8b33c}
.desktop-nav .dropdown{position:relative}
.desktop-nav .dropdown-content{display:none;position:absolute;top:100%;right:0;min-width:190px;max-height:60vh;overflow:auto;padding:8px;margin:8px 0 0;background:#17232c;border:1px solid rgba(255,255,255,.12);border-radius:9px;box-shadow:0 12px 30px rgba(0,0,0,.3);list-style:none}
.desktop-nav .dropdown:hover .dropdown-content,.desktop-nav .dropdown:focus-within .dropdown-content{display:block}
.desktop-nav .dropdown-content a{display:block;padding:9px 11px;border-radius:6px}
.desktop-nav .dropdown-content a:hover{background:rgba(255,255,255,.06)}
.header-actions{display:flex;align-items:center;gap:8px}
.header-actions .auth-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border-radius:7px;text-decoration:none;font:inherit;font-size:.78rem;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff}
.header-actions .auth-btn.signup{background:#f8a106;border-color:#f8a106;color:#151a1d}
.header-cart-link{color:#fff;text-decoration:none;white-space:nowrap}
.hamburger-menu{display:none;width:42px;height:40px;padding:9px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:transparent}
.hamburger-menu span{display:block;width:100%;height:2px;margin:4px 0;background:#fff}
.product-search-shell{position:relative;z-index:900}
.product-search-bar{position:relative}
.product-search-form{display:flex;gap:8px}
.product-search-input{width:100%;min-width:0}
.product-search-form button{border:0;border-radius:8px;padding:0 18px;background:#f8a106;color:#111;font-weight:800}
.overlay{position:fixed;inset:0;z-index:1150;background:rgba(0,0,0,.62);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.overlay.active{opacity:1;visibility:visible}
.mobile-menu{position:fixed;top:0;right:0;bottom:0;z-index:1200;width:min(88vw,370px);padding:24px 20px;background:#111b22;border-left:1px solid rgba(255,255,255,.12);overflow-y:auto;transform:translateX(105%);visibility:hidden;transition:transform .22s ease,visibility .22s}
.mobile-menu.active{transform:translateX(0);visibility:visible}
.close-menu{display:block;margin-right:auto;width:40px;height:40px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:transparent;color:#fff;font-size:1.6rem}
.mobile-brand{display:block;margin:20px 0;color:#f8b33c;font-size:1.3rem;font-weight:900;text-decoration:none}
.mobile-nav-links{display:grid;gap:4px;list-style:none;margin:0;padding:0}
.mobile-nav-links a{display:block;padding:11px 10px;border-radius:7px;color:#e8ece9;text-decoration:none}
.mobile-nav-links a:hover{background:rgba(255,255,255,.06);color:#f8b33c}
.mobile-category-link a{padding-right:24px!important;color:#b9c3c6!important;font-size:.9rem}
.mobile-account-link{display:block;margin-top:20px;padding:12px;border-radius:8px;background:#f8a106;color:#111;text-align:center;text-decoration:none;font-weight:800}
.bottom-nav{display:none}
body.menu-open{overflow:hidden}
.site-toast{position:fixed;right:50%;bottom:24px;z-index:3000;transform:translate(50%,20px);opacity:0;visibility:hidden;max-width:min(90vw,480px);padding:12px 18px;border-radius:9px;background:#1b2b34;border:1px solid rgba(248,161,6,.55);color:#fff;transition:opacity .2s,transform .2s,visibility .2s}
.site-toast.visible{opacity:1;visibility:visible;transform:translate(50%,0)}
.site-footer{background:#0b1217;color:#e8ece9;border-top:1px solid rgba(255,255,255,.1)}
.site-footer .footer-container{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:35px;padding-block:42px}
.site-footer h2{font-size:1rem;margin-bottom:14px}
.site-footer .footer-about{max-width:440px;color:#aeb9bd;line-height:2;margin-top:12px}
.site-footer .footer-logo{font-size:1.3rem;font-weight:900;color:#f8b33c;text-decoration:none}
.site-footer .footer-links{list-style:none;display:grid;gap:10px}
.site-footer .footer-links a,.site-footer .footer-bottom a{color:#aeb9bd;text-decoration:none}
.site-footer .footer-links a:hover,.site-footer .footer-bottom a:hover{color:#f8b33c}
.site-footer .footer-bottom{display:flex;justify-content:space-between;gap:15px;padding:16px 0;border-top:1px solid rgba(255,255,255,.1);font-size:.8rem;color:#aeb9bd}
@media(max-width:900px){.desktop-nav{display:none}.hamburger-menu{display:block}.header-actions .auth-btn{display:none}}
@media(max-width:680px){.site-header .header-container{min-height:66px;padding-inline:14px}.site-header .logo img{width:38px;height:38px}.header-cart-link{font-size:.75rem}.bottom-nav{position:fixed;right:0;left:0;bottom:0;z-index:1100;display:flex;justify-content:space-around;gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#0b1217;border-top:1px solid rgba(255,255,255,.12)}.bottom-nav .nav-item{flex:1;display:grid;place-items:center;min-height:38px;color:#d9e0df;text-decoration:none;font-size:.72rem}.site-footer .footer-container{grid-template-columns:1fr;gap:24px}.site-footer .footer-bottom{flex-direction:column}.site-toast{bottom:75px}}


/* Phase 6: stable shared storefront header on narrow screens */
.site-header{padding:0!important}
.site-header .header-container{width:100%;min-width:0;min-height:72px;padding-inline:clamp(12px,2.2vw,24px);gap:14px}
.site-header .logo{flex:0 1 auto;min-width:0;flex-direction:row!important;align-items:center;gap:8px;font-size:.98rem;line-height:1.2}
.site-header .logo img{display:block;flex:none;width:42px;height:42px;object-fit:contain}
.site-header .logo span{display:block;white-space:nowrap}
.site-header .header-actions{flex:0 0 auto;min-width:0;gap:8px}
.site-header .header-cart-link{white-space:nowrap}
.site-header .hamburger-menu{flex:none;display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:40px;height:40px;padding:9px}
.site-header .hamburger-menu span{width:100%;height:2px;margin:0;border-radius:2px}
.site-header .desktop-nav{min-width:0}
.site-header .desktop-nav .nav-links{padding:0;margin:0}
.site-header .desktop-nav .nav-links>li{flex:none}
.site-header .desktop-nav .nav-links a{white-space:nowrap}
.product-search-shell{min-width:0}
.product-search-bar{width:100%;min-width:0}
.product-search-form{min-width:0}
.product-search-form button{flex:none;min-height:42px}
@media(max-width:900px){
 .site-header .header-container{min-height:62px}
 .site-header .desktop-nav{display:none!important}
 .site-header .hamburger-menu{display:flex!important}
 .site-header .header-actions .auth-btn{display:none!important}
 .site-header .logo img{width:38px;height:38px}
}
@media(max-width:680px){
 .site-header .header-container{min-height:58px;padding-inline:12px;gap:8px}
 .site-header .logo{font-size:.82rem;gap:6px}
 .site-header .logo img{width:34px;height:34px}
 .site-header .header-actions{gap:6px}
 .site-header .header-cart-link{min-height:34px;padding:6px 8px;font-size:.68rem;gap:5px}
 .site-header .header-cart-link .cart-badge{min-width:18px;height:18px;font-size:.65rem}
 .site-header .hamburger-menu{width:36px;height:36px}
 .product-search-bar{padding:9px 12px}
 .product-search-input{min-height:40px;padding:8px 11px;font-size:.82rem}
 .product-search-form button{min-height:40px;padding-inline:13px;font-size:.78rem}
 .mobile-menu{width:min(86vw,340px);padding:18px 16px}
 .mobile-brand{margin:12px 0 16px}
 .mobile-nav-links a{padding:10px;border-radius:8px}
 .bottom-nav{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 .bottom-nav .nav-item{min-width:0;min-height:36px;font-size:.68rem}
}
@media(max-width:360px){
 .site-header .logo{font-size:.75rem}
 .site-header .logo img{width:31px;height:31px}
 .site-header .header-cart-link{font-size:.64rem;padding-inline:6px}
 .site-header .hamburger-menu{width:34px;height:34px}
}


/* Phase 6: mobile-first navigation refinement */
.site-header{border-bottom:0}
.site-header .header-cart-link{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 10px;border:1px solid rgba(255,255,255,.16);border-radius:10px;color:#f5f7f7;text-decoration:none}
.site-header .cart-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.site-header .cart-badge{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border:2px solid #101820;border-radius:20px;background:#f8a106;color:#111820;font-size:10px;font-weight:900;line-height:1}
.product-search-shell{background:#101820;padding:0 0 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.product-search-shell .product-search-bar{padding-top:0}
.bottom-nav{display:none}
.bottom-nav .nav-item{position:relative;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:5px 2px;color:#9ca9af;text-decoration:none;font-size:10px;font-weight:600;line-height:1.3;border-radius:10px;transition:color .18s,background .18s}
.bottom-nav .nav-item svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav .nav-item.is-active{color:#ffc04b;background:rgba(248,161,6,.09)}
.bottom-nav .nav-item.is-active svg{stroke-width:1.9}
.bottom-nav .bottom-cart-badge{position:absolute;top:1px;right:calc(50% - 22px);display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border:2px solid #0b1217;border-radius:20px;background:#f8a106;color:#111820;font-size:9px;font-weight:900;line-height:1}
.mobile-menu-caption{margin:8px 0 12px;color:#8d9ba1;font-size:.75rem}
.mobile-menu .mobile-nav-links{padding-bottom:24px}
@media(max-width:680px){
 .site-header{position:sticky;top:0;z-index:1050;background:#101820}
 .site-header .header-container{min-height:56px;padding-inline:12px;gap:8px}
 .site-header .logo{font-size:.82rem;gap:6px}
 .site-header .logo img{width:34px;height:34px}
 .site-header .header-cart-link{display:none!important}
 .site-header .header-actions{margin-inline-start:auto}
 .site-header .hamburger-menu{width:36px;height:36px}
 .product-search-shell{padding:0 0 9px;margin:0;background:#101820}
 .product-search-bar{padding:0 12px}
 .product-search-form{gap:6px}
 .product-search-input{min-height:39px;border-radius:9px}
 .product-search-form button{min-height:39px;border-radius:9px}
 .bottom-nav{position:fixed!important;right:0;left:0;bottom:0;z-index:1300;display:flex!important;align-items:stretch;justify-content:space-around;gap:2px;padding:5px 7px calc(5px + env(safe-area-inset-bottom));background:rgba(11,18,23,.97);border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -8px 24px rgba(0,0,0,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
 .bottom-nav .nav-item{min-height:48px;font-size:9px}
 body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 .site-toast{bottom:calc(72px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 .bottom-nav{padding-inline:4px;gap:0}
 .bottom-nav .nav-item{font-size:8px;gap:3px}
 .bottom-nav .nav-item svg{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){
 .bottom-nav .nav-item{transition:none}
}

@media(max-width:680px){
 .product-search-shell .product-search-bar{height:auto;min-height:0;padding:0 12px 0!important;margin:0!important}
 .product-search-shell .product-search-form{height:42px;min-height:42px;margin:0!important;padding:0!important;align-items:stretch}
 .product-search-shell .product-search-input{height:42px;min-height:42px;margin:0!important}
 .product-search-shell .product-search-form button{height:42px;min-height:42px;margin:0!important}
 .mobile-menu .mobile-logout-link{display:block;width:100%;padding:11px 10px;border:0;border-radius:7px;background:transparent;color:#e8ece9;text-align:right;font:inherit;font-size:.9rem;cursor:pointer}
 .mobile-menu .mobile-logout-link:hover{background:rgba(255,255,255,.06);color:#f8b33c}
}


/* Phase 6: remove the mobile top offset and pin the dynamic navigation to the viewport edge */
@media(max-width:680px){
 html,body{margin-top:0!important;padding-top:0!important}
 #main-content{margin-top:0!important}
 .site-header{margin-top:0!important;top:0!important}
 .product-search-shell{margin-top:0!important}
 .bottom-nav{position:fixed!important;right:0!important;left:0!important;bottom:0!important;transform:none!important;visibility:visible!important}
 body{padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
}

@media(max-width:680px){.bottom-nav{top:auto!important;bottom:0!important}}

@media(max-width:768px){body{padding-top:0!important}.site-header{margin-top:0!important;top:0!important}}

@media(max-width:768px){html{overflow-x:clip!important}}
