/* Migrated from header.php style block 1 */
/* ── HostGuru Nav ────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;}

/* ── Topbar single-row fix (always fresh – not cached) ── */
.hg-topbar .hg-topbar-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 36px !important;
  gap: 12px !important;
}
.hg-topbar .hg-topbar-inner > span {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 36px !important;
}
.hg-topbar-right {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
}

.hg-header{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  position:sticky;top:0;z-index:1000;
  transition:box-shadow .25s,border-color .25s;
}
.hg-header.scrolled{
  box-shadow:0 2px 16px rgba(0,0,0,.1);
  border-bottom-color:transparent;
}

.hg-navbar{display:flex;align-items:stretch;height:60px;}
.hg-nav-inner{
  display:flex;align-items:center;
  width:100%;position:relative;
  max-width:1280px;margin:0 auto;padding:0 24px;
  gap:0;
}

/* Logo */
.navbar-brand{
  margin-right:28px;flex-shrink:0;
  text-decoration:none;display:flex;align-items:center;
}

/* Nav list */
.navbar-nav{
  display:flex;align-items:stretch;list-style:none;
  margin:0;padding:0;height:60px;flex:1;
}
.navbar-nav .nav-item{position:static;display:flex;align-items:center;}
.navbar-nav .nav-link{
  display:flex;align-items:center;padding:0 14px;height:60px;
  font-size:14.5px;font-weight:600;color:#374151;
  text-decoration:none;white-space:nowrap;
  border-bottom:2px solid transparent;
  transition:color .15s,border-color .15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item:hover>.nav-link{
  color:#f57200;border-bottom-color:#f57200;
}

/* Nav link with price hint */
.navbar-nav .nav-link.nav-link-priced{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;}
.navbar-nav .nav-link-label{font-size:14.5px;font-weight:600;color:inherit;line-height:1.2;}
.navbar-nav .nav-link-price{font-size:10px;font-weight:600;color:#f57200;line-height:1;}
.navbar-nav .nav-item:hover>.nav-link-priced .nav-link-label{color:#f57200;}

/* Full-width mega dropdown */
.hg-dd{
  display:none;
  position:absolute;top:60px;left:0;right:0;width:100%;
  background:#fff;
  border-top:1px solid #f0f0f0;
  border-bottom:1px solid #f0f0f0;
  box-shadow:0 12px 40px rgba(0,0,0,.1);
  z-index:9999;
  padding:28px 0 24px;
}

/* Simple (non-mega) dropdown — narrow panel anchored below its nav item */
.nav-simple-dd{position:relative;}
.nav-simple-dd>.hg-dd{
  position:absolute!important;
  top:100%!important;
  left:0!important;right:auto!important;
  width:auto!important;
  min-width:240px;
  max-width:300px;
  padding:8px 0 12px;
  border-radius:0 0 12px 12px;
  border-top:2px solid #f57200;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
}
.nav-simple-dd .hg-dd-inner{flex-direction:column;padding:0;max-width:none;}
.nav-simple-dd .hg-dd-col{padding:0;border-right:none;min-width:0;flex:none;width:100%;}
.nav-simple-dd .hg-dd a{
  padding:9px 18px;
  font-size:14px;font-weight:600;
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:#374151!important;
}
.nav-simple-dd .hg-dd a .t{font-size:14px;font-weight:600;color:#374151;}
.nav-simple-dd .hg-dd a .m{font-size:12px;color:#9ca3af;}
.nav-simple-dd .hg-dd a:hover .t{color:#f57200;}


.navbar-nav .nav-item:hover>.hg-dd{display:block;}
.hg-dd-inner{display:flex;align-items:flex-start;max-width:1200px;margin:0 auto;padding:0 24px;}
.hg-dd-col{flex:1;padding:0 28px;border-right:1px solid #f3f4f6;}
.hg-dd-col:last-child{border-right:none;}
.hg-dd-head{font-size:11px;font-weight:800;color:#9ca3af;margin:0 0 14px;text-transform:uppercase;letter-spacing:.1em;}

.hg-dd a[href="#"],.hg-dd a[href=""]{pointer-events:none;cursor:default;text-decoration:none;display:block;margin-bottom:14px;}
.hg-dd a[href="#"] .t,.hg-dd a[href=""] .t{font-size:11px;font-weight:800;color:#9ca3af !important;text-transform:uppercase;letter-spacing:.1em;}

.hg-dd a{display:block;padding:8px 0;text-decoration:none;}
.hg-dd a .t{display:block;font-size:13.5px;font-weight:700;color:#f57200;margin-bottom:2px;transition:color .15s;}
.hg-dd a:hover .t{color:#d96000;}
.hg-dd a .m{display:block;font-size:12px;color:#6b7280;line-height:1.5;}
.hg-menu-price{display:inline;font-size:11px;color:#9ca3af;font-weight:500;}
.hg-menu-price strong{color:#f57200;font-weight:700;}

/* Right nav icons */
.hg-nav-right{
  margin-left:auto;display:flex;align-items:center;
  list-style:none;padding:0;gap:4px;
}
.hg-nav-right .nav-item{position:relative;display:flex;align-items:center;}
.hg-nav-right .nav-link{
  display:flex;align-items:center;padding:8px 10px;height:auto;
  color:#6b7280;text-decoration:none;border-radius:8px;
  transition:color .15s,background .15s;
}
.hg-nav-right .nav-link:hover{color:#f57200;}

/* Account mini dropdown */
.nav-item-acc{position:relative !important;}
.nav-item-acc .hg-dd{position:absolute !important;top:calc(100% + 8px) !important;left:auto !important;right:0 !important;width:190px !important;border-radius:12px;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);}
.nav-item-acc:hover>.hg-dd{display:block;}
.nav-item-acc .hg-dd a{padding:8px 12px;border-radius:8px;transition:background .15s;}
.nav-item-acc .hg-dd a:hover{background:#fff7ed;}

/* Cart badge */
#hg-cart-count{
  display:inline-flex;align-items:center;justify-content:center;
  background:#f57200;color:#fff;
  font-size:10px;font-weight:800;border-radius:50%;
  width:17px;height:17px;margin-left:3px;
}

/* Get Started CTA in nav */
.hg-nav-cta{
  display:inline-flex;align-items:center;gap:6px;
  background:#f57200;color:#fff !important;
  font-size:13px;font-weight:700;
  padding:7px 14px;border-radius:8px;
  text-decoration:none;white-space:nowrap;
  transition:background .2s,transform .15s;
  margin-left:8px;
}
.hg-nav-cta:hover{background:#d96000;transform:translateY(-1px);}

/* Dropdown chevron — shown on nav items that have a mega-menu child */
.navbar-nav .nav-item:has(> .hg-dd) > .nav-link::after{
  content:'';
  display:inline-block;
  width:14px;height:14px;margin-left:3px;flex-shrink:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23374151' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size:contain;background-repeat:no-repeat;
  transition:transform .2s,filter .15s;
  vertical-align:middle;
}
.navbar-nav .nav-item:has(> .hg-dd):hover > .nav-link::after{
  transform:rotate(180deg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23f57200' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.hg-topbar-btn { padding: 3px 8px !important; }

/* Mobile breakpoints */
@media (max-width: 767px) {
  .hg-topbar { display: none !important; }
}
@media (max-width: 991px) {
  /* Hide desktop nav list — mobile panel handles it separately */
  #hg-menubar { display: none !important; }
  .hg-nav-cta { display: none !important; }
  #hg-mobile-toggle-li { display: flex !important; }
  .hg-navbar { height: 56px; }
  /* Right icons: shrink-to-content and push right */
  .hg-nav-right { flex: 0 0 auto !important; margin-left: auto !important; }
  .hg-nav-right .nav-link { padding: 8px 8px; }
}

/* ── Mobile slide-in panel (lives in <body>, not inside header) ── */
#hg-mobile-panel {
  position: fixed;
  top: 0; right: -310px;
  width: 300px; height: 100vh;
  background: #fff;
  z-index: 99999; /* body context — safely above backdrop */
  overflow-y: auto;
  transition: right .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 28px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, sans-serif;
}
#hg-mobile-panel.open { right: 0; }
.hgmp-head {
  background: #f57200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; flex-shrink: 0;
  color: #fff; font-weight: 700; font-size: 15px;
}
.hgmp-head button {
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 4px; min-height: 0;
  display: flex; align-items: center;
}
.hgmp-body { flex: 1; overflow-y: auto; }
.hgmp-item { border-bottom: 1px solid #f0f0f0; }
.hgmp-row { display: flex; align-items: stretch; }
.hgmp-link {
  flex: 1; padding: 14px 20px;
  color: #222; font-weight: 600; font-size: 14px;
  text-decoration: none; display: flex; align-items: center;
}
.hgmp-link:hover { color: #f57200; }
.hgmp-toggle {
  background: none; border: none; border-left: 1px solid #f0f0f0;
  padding: 0 16px; cursor: pointer; color: #9ca3af;
  min-height: 0; display: flex; align-items: center;
  transition: color .18s, background .18s;
  flex-shrink: 0;
}
.hgmp-toggle:hover { background: #fff7ed; color: #f57200; }
.hgmp-toggle svg { transition: transform .22s; }
.hgmp-item.open .hgmp-toggle { color: #f57200; }
.hgmp-item.open .hgmp-toggle svg { transform: rotate(180deg); }
.hgmp-sub {
  overflow: hidden; max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
}
.hgmp-item.open .hgmp-sub { max-height: 800px; }
.hgmp-sub-link {
  display: block; padding: 10px 20px 10px 28px;
  color: #374151; text-decoration: none; font-size: 13.5px; font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
}
.hgmp-sub-link:last-child { border-bottom: none; }
.hgmp-sub-link:hover { color: #f57200; background: #fff7ed; }
.hgmp-sub-head {
  display: block; padding: 10px 20px 4px 28px;
  font-size: 10px; font-weight: 800; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .1em;
}
.hgmp-cta {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  flex-shrink: 0; border-top: 1px solid #f0f0f0;
}
.hgmp-cta-btn {
  display: block; text-align: center; padding: 12px;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  text-decoration: none;
}
.hgmp-cta-btn-primary { background: #f57200; color: #fff !important; }
.hgmp-cta-btn-outline { border: 1.5px solid #e5e7eb; color: #374151 !important; }

/* Backdrop */
#hg-mob-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 99998;
}
#hg-mob-backdrop.show { display: block; }
body.hg-menu-open { overflow: hidden; padding-right: var(--hg-sb-w, 0px); }
/* Reserve scrollbar width so page never narrows when panel opens */
html { scrollbar-gutter: stable; }
