/* ── LOGO COLOR VARIANTS ── */
.logo-variant-1 .hm-logo-box { background: #323956; }
.logo-variant-1 .hm-logo-mouse { color: #f15025; }
.logo-variant-2 .hm-logo-box { background: #203541; }
.logo-variant-2 .hm-logo-mouse { color: #f1ae13; }
.logo-variant-3 .hm-logo-box { background: #00a8ff; }
.logo-variant-3 .hm-logo-mouse { color: #ffac33; }
.logo-variant-4 .hm-logo-box { background: linear-gradient(135deg,#4becb8,#018ee7); }
.logo-variant-4 .hm-logo-mouse { color: #fff; }

/* ── HEADER (no topbar) ── */
.hm-header {
  background: rgba(10,14,26,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 9999;
}
.hm-header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center;
  gap: 16px; height: 68px;
}
.hm-logo-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: #0066cc;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hm-logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hm-logo-text-wrap { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1; }
.hm-logo-text-wrap .hit { color: #fff; }
.hm-logo-text-wrap .mouse { color: #f97316; }

/* ── SEARCH ── */
.hm-search-wrap { flex: 1; position: relative; }
.hm-search-form {
  display: flex; width: 100%; height: 44px;
  background: #1e2a3a; border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 50px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hm-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}
.hm-search-cat {
  background: transparent; border: none;
  border-right: 1px solid rgba(255,255,255,.1);
  color: var(--text2); padding: 0 14px;
  font-size: 12px; min-width: 130px;
  cursor: pointer; outline: none; font-family: var(--font-body);
}
.hm-search-cat option { background: #1a2235; }
.hm-search-input {
  flex: 1; background: transparent; border: none;
  color: var(--text); padding: 0 14px; font-size: 14px; outline: none;
  font-family: var(--font-body);
}
.hm-search-input::placeholder { color: var(--text2); }
.hm-search-btn {
  background: linear-gradient(135deg, #00d4ff, #0ea5e9);
  color: #000; border: none; padding: 0 22px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); transition: opacity .2s;
}
.hm-search-btn:hover { opacity: .85; }

/* Live search dropdown */
.hm-search-dropdown {
  display: none; position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: #111827; border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 99999; overflow: hidden; max-height: 400px;
}
.hm-search-dropdown.open { display: block; }
.hm-search-section-title {
  font-size: 10px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 16px 6px;
}
.hm-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; cursor: pointer; transition: background .15s;
  text-decoration: none; color: var(--text);
}
.hm-search-item:hover { background: rgba(0,212,255,.08); }
.hm-search-item-img {
  width: 40px; height: 40px; border-radius: 6px;
  object-fit: cover; background: #1e2a3a; flex-shrink: 0;
}
.hm-search-item-name { font-size: 13px; color: var(--text); }
.hm-search-item-price { font-size: 12px; color: var(--accent); font-weight: 600; }
.hm-search-cat-item {
  display: block; padding: 8px 16px;
  font-size: 13px; color: var(--text2); cursor: pointer;
  transition: color .15s, background .15s; text-decoration: none;
}
.hm-search-cat-item:hover { color: var(--accent); background: rgba(0,212,255,.06); }
.hm-search-cat-item strong { color: var(--accent); }
.hm-search-all-link {
  display: block; text-align: center; padding: 11px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  border-top: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.hm-search-all-link:hover { background: rgba(0,212,255,.06); }

/* ── HEADER ACTIONS ── */
.hm-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hm-theme-toggle {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px; padding: 5px 12px; cursor: pointer;
  color: var(--text2); font-size: 11px; font-weight: 600;
  transition: all .2s; font-family: var(--font-body);
}
.hm-theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.hm-act {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; color: var(--text2); font-size: 11px;
  border-radius: 8px; transition: color .2s, background .2s;
  position: relative; text-decoration: none;
}
.hm-act:hover { color: var(--accent); background: rgba(0,212,255,.06); }
.hm-act svg { width: 22px; height: 22px; }
.hm-cart-count {
  position: absolute; top: 2px; right: 4px;
  background: #f97316; color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 10px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.hm-mob-toggle {
  display: none; background: none; border: none;
  color: var(--text); padding: 8px; cursor: pointer;
}
.hm-mob-toggle svg { width: 24px; height: 24px; display: block; }

/* ── NAV ── */
.hm-nav {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 9998;
}
.hm-nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none;
}
.hm-nav-inner::-webkit-scrollbar { display: none; }
.hm-nav-item { position: relative; }
.hm-nav-item > a {
  display: flex; align-items: center; gap: 5px;
  color: var(--text2); padding: 0 14px; height: 46px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: color .2s, background .2s; text-decoration: none;
}
.hm-nav-item:hover > a { color: var(--accent); background: rgba(0,212,255,.06); }
.hm-nav-deals > a { color: #f97316 !important; font-weight: 700; }
.hm-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,.12); border: none;
  border-right: 1px solid var(--border);
  color: #fff; padding: 0 18px; height: 46px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap; transition: background .2s;
}
.hm-menu-btn:hover { background: rgba(0,212,255,.22); }
.hm-mega {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  z-index: 10000; min-width: 200px; padding: 6px 0;
}
.hm-nav-item:hover .hm-mega { display: block; }
.hm-mega a {
  display: block; padding: 9px 18px; font-size: 13px; color: var(--text2);
  transition: color .15s, background .15s, padding-left .15s;
  border-left: 2px solid transparent; text-decoration: none;
}
.hm-mega a:hover { color: var(--accent); background: rgba(0,212,255,.06); padding-left: 22px; border-left-color: var(--accent); }

/* ── FULL MENU PANEL (Newegg style) ── */
.hm-full-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 99998; }
.hm-full-menu-overlay.open { display: block; }
.hm-full-menu {
  display: none; position: fixed; top: 0; left: 0; bottom: 0;
  width: 290px; background: var(--bg2);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 40px rgba(0,0,0,.5);
  z-index: 99999; overflow-y: auto; padding-top: 52px;
}
.hm-full-menu.open { display: block; }
.hm-menu-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(135deg,#00d4ff,#7c3aed);
  padding: 12px 16px; font-weight: 700; color: #000; font-size: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.hm-menu-close {
  background: rgba(0,0,0,.15); border: none; color: #000;
  width: 26px; height: 26px; border-radius: 50%; font-size: 14px;
  cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hm-menu-parent {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background .15s;
}
.hm-menu-parent:hover { background: rgba(0,212,255,.06); }
.hm-menu-parent-link { font-weight: 700; color: var(--text); font-size: 13px; text-decoration: none; flex: 1; }
.hm-menu-parent-link:hover { color: var(--accent); }
.hm-menu-arrow { color: var(--text2); font-size: 11px; transition: transform .2s; margin-left: 8px; flex-shrink: 0; }
.hm-menu-children { display: none; background: rgba(0,0,0,.12); border-bottom: 1px solid var(--border); }
.hm-menu-children a {
  display: block; padding: 8px 16px 8px 34px;
  color: var(--text2); font-size: 12px; text-decoration: none;
  transition: color .15s, padding-left .15s; border-left: 2px solid transparent;
}
.hm-menu-children a:hover { color: var(--accent); padding-left: 38px; border-left-color: var(--accent); }

/* ── BANNER / SLIDER ── */
.hm-banner {
  position: relative; overflow: hidden;
  background: #060b18; height: 460px;
}
@media(max-width:768px){ .hm-banner { height: 300px; } }
.hm-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .8s ease-in-out;
  display: flex; align-items: center;
}
.hm-slide.active { opacity: 1; z-index: 2; }
.hm-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45);
}
.hm-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,11,24,.92) 0%, rgba(6,11,24,.5) 50%, transparent 100%);
}
.hm-slide-content {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%;
}
.hm-slide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,255,.15); border: 1px solid rgba(0,212,255,.35);
  color: var(--accent); padding: 4px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.hm-slide-title {
  font-family: var(--font-head); font-size: clamp(24px,3.5vw,46px);
  font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 10px;
  max-width: 520px;
}
.hm-slide-desc { color: #94a3b8; font-size: 15px; margin-bottom: 24px; max-width: 420px; line-height: 1.6; }
.hm-slide-price { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.hm-slide-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#00d4ff,#0ea5e9);
  color: #000; padding: 13px 30px; border-radius: 50px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.hm-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,.3); color: #000; }
.hm-banner-nav {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.hm-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.3); cursor: pointer;
  transition: all .2s; border: none;
}
.hm-banner-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }
.hm-banner-prev, .hm-banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; font-size: 18px;
  transition: background .2s; backdrop-filter: blur(4px);
}
.hm-banner-prev { left: 20px; }
.hm-banner-next { right: 20px; }
.hm-banner-prev:hover, .hm-banner-next:hover { background: rgba(0,212,255,.25); }

/* MOBILE */
@media(max-width:900px){
  .hm-header-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .hm-search-wrap { order: 4; flex: 0 0 100%; }
  .hm-search-cat { display: none; }
  .hm-mob-toggle { display: block; }
  .hm-theme-toggle span:last-child { display: none; }
  .hm-act span { display: none; }
  .hm-act { padding: 8px; }
  .hm-act svg { width: 26px; height: 26px; }
  .hm-nav { display: none; }
  .hm-nav.mob-open { display: block; position: fixed; inset: 0; overflow-y: auto; z-index: 99990; padding-top: 56px; }
}
@media(max-width:480px){
  .hm-slide-content { padding: 0 20px; }
  .hm-banner { height: 260px; }
}
