:root{--sh-bg:#1a1a1a;--sh-panel:#1a1a1a;--sh-border:#3a3a3a;--sh-text:#f0f0f0;--sh-muted:#999;--sh-accent:#c0392b;--sh-accent-dim:#2a2a2a;--sh-card:#2d2d2d;--sh-radius:8px;--sh-max-w:1280px}
.site-header{position:sticky;top:0;left:0;right:0;z-index:1000;background:rgba(26,26,26,0.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--sh-border);font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
.site-header *{box-sizing:border-box}
.site-header .header-inner{display:flex;align-items:center;justify-content:space-between;max-width:var(--sh-max-w);margin:0 auto;padding:0 24px;height:64px}
.site-header .logo{display:flex;align-items:center;text-decoration:none;color:var(--sh-text);margin-left:-8px}
.site-header .logo img{height:52px}
.site-header nav{display:flex;gap:8px;align-items:center}
.site-header nav a,.site-header nav .shop-bike-btn{padding:8px 16px;border-radius:var(--sh-radius);font-size:0.9rem;font-weight:500;color:var(--sh-text);background:none;border:0;cursor:pointer;font-family:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:4px;transition:background .2s ease}
.site-header nav a:hover,.site-header nav .shop-bike-btn:hover{background:var(--sh-card)}
.site-header nav a.active,.site-header nav .shop-bike-btn[aria-expanded="true"]{background:var(--sh-card);color:var(--sh-accent)}
.site-header .right-group{display:flex;align-items:center;gap:8px}
.site-header .search-box{display:flex;align-items:center;background:#1a1a1a;border:1px solid var(--sh-border);border-radius:var(--sh-radius);padding:6px 10px}
.site-header .search-box input{background:none;border:0;color:var(--sh-text);outline:0;width:180px;font-size:0.9rem}
.site-header .cart-btn{background:var(--sh-accent);color:#fff;padding:8px 16px;border-radius:var(--sh-radius);font-weight:500;font-size:0.9rem;text-decoration:none;border:0;cursor:pointer}
.products-wrap{position:relative}
.products-panel{display:none;position:absolute;top:100%;left:0;background:var(--sh-panel);border:1px solid var(--sh-border);border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.6);z-index:1050;margin-top:4px;min-width:200px;padding:6px 0}
.products-panel.open{display:block}
.site-header nav .products-panel a{display:block;padding:10px 16px;color:#ddd;text-decoration:none;font-size:14px;font-weight:500;border-radius:0;background:none}
.site-header nav .products-panel a:hover{background:var(--sh-accent-dim);color:#fff}
.shop-bike-wrap{position:relative}
.shop-bike-panel{display:none;position:absolute;top:100%;left:0;background:var(--sh-panel);border:1px solid var(--sh-border);border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.6);z-index:1050;margin-top:4px;width:300px;padding:6px 0;max-height:70vh;overflow-y:auto}
.shop-bike-panel.open{display:block}
.shop-bike-panel .brand-row{border-bottom:1px solid #222}
.shop-bike-panel .brand-row:last-child{border-bottom:0}
.shop-bike-panel .brand-head{padding:10px 14px;cursor:pointer;font-size:14px;color:#ddd;font-weight:600;display:flex;align-items:center;gap:6px;user-select:none}
.shop-bike-panel .brand-head:hover{background:var(--sh-accent-dim);color:#fff}
.shop-bike-panel .brand-head .arrow{display:inline-block;color:var(--sh-accent);transition:transform .15s;font-size:12px}
.shop-bike-panel .brand-row.open .brand-head .arrow{transform:rotate(90deg)}
.shop-bike-panel .brand-head .brand-name{flex:1;text-align:left}
.shop-bike-panel .brand-head .count{color:#666;font-size:11px;font-weight:400}
.shop-bike-panel .brand-bikes{display:none;padding:4px 14px 10px 28px}
.shop-bike-panel .brand-row.open .brand-bikes{display:block}
.shop-bike-panel .brand-bikes a{display:block;padding:4px 8px;color:#bbb;font-size:12px;border-radius:4px;text-decoration:none}
.shop-bike-panel .brand-bikes a:hover{background:var(--sh-accent-dim);color:#fff}
.shop-bike-panel .brand-bikes a.bike-pending{color:#777}
@media(max-width:960px),(hover:none) and (pointer:coarse){
  .site-header .header-inner{height:auto!important;padding:6px 10px!important;gap:6px!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important}
  .site-header .header-inner nav{display:flex!important;position:static!important;background:none!important;border:0!important;padding:0 2px!important;order:3!important;flex-basis:100%!important;justify-content:flex-start!important;gap:2px!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:none!important;margin:0!important;white-space:nowrap!important}
  .site-header .header-inner nav::-webkit-scrollbar{display:none!important}
  .site-header .header-inner nav>*{flex-shrink:0!important;white-space:nowrap!important}
  .site-header nav a,.site-header nav .shop-bike-btn{padding:6px 8px!important;font-size:0.78rem!important;white-space:nowrap!important;flex-shrink:0!important}
  .site-header .logo img{height:32px!important}
  .site-header .right-group{margin-left:auto!important;gap:4px!important}
  .site-header .search-box{display:none!important}
  .site-header .cart-btn{padding:5px 10px!important;font-size:0.8rem!important}
  .shop-bike-panel{position:fixed!important;top:56px!important;left:8px!important;right:8px!important;width:auto!important;max-height:calc(100vh - 80px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;z-index:1200 !important;background:#1a1a1a !important}
  .products-panel{position:fixed!important;top:56px!important;left:8px!important;right:8px!important;width:auto!important}
}

/* legacy sticky guard — kill any legacy .header/.brand-nav sticky that competes with ours */
body>.header:not(.site-header){position:static!important;z-index:auto!important}
body>.brand-nav{position:static!important;z-index:auto!important}




/* mobile-hide-about-contact */
@media(max-width:600px) {
  .site-header .header-inner nav a[href$="about.html"],
  .site-header .header-inner nav a[href$="contact.html"],
  .site-header .header-inner nav a[href$="dealer-about.html"],
  .site-header .header-inner nav a[href$="dealer-contact.html"] {
    display:none !important;
  }
}


/* mobile-escape-stacking-context */
@media(max-width:960px), (hover:none) and (pointer:coarse) {
  .site-header { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
}


/* mobile-header-one-row */
@media(max-width:600px) {
  .site-header .header-inner {
    flex-wrap:nowrap !important;
    align-items:center !important;
    padding:6px 8px !important;
    gap:6px !important;
    height:auto !important;
  }
  .site-header .header-inner nav {
    order:unset !important;
    flex:1 1 auto !important;
    flex-basis:auto !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    gap:4px !important;
    overflow-x:auto !important;
    white-space:nowrap !important;
  }
  .site-header .header-inner nav a,
  .site-header .header-inner nav .shop-bike-btn {
    font-size:0.85rem !important;
    padding:5px 8px !important;
  }
  .site-header .logo img { height:30px !important; }
  .site-header .right-group { margin-left:0 !important; gap:4px !important; flex:0 0 auto !important; }
  .site-header .search-box { display:none !important; }
  .site-header .cart-btn {
    padding:6px 10px !important; font-size:0.8rem !important;
    white-space:nowrap !important; display:inline-flex !important;
    align-items:center !important; gap:4px !important; line-height:1 !important;
  }
}


/* dealer-mode-strip-mobile */
.dealer-mode-strip { white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
.dealer-mode-strip a { white-space:nowrap !important; }
@media(max-width:700px) {
  .dealer-mode-strip {
    position:static !important;
    font-size:11px !important;
    padding:5px 8px !important;
    gap:8px !important;
    height:auto !important;
  }
}
@media(max-width:400px) {
  .dealer-mode-strip { font-size:9px !important; letter-spacing:0 !important; padding:4px 6px !important; }
}


/* mobile-unstick-header */
@media(max-width:700px) {
  .site-header { position:static !important; top:auto !important; }
  body { padding-top:0 !important; }
}
