.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(14, 14, 17, 0.55);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .mobile-nav {
  background: rgba(245, 245, 245, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav a:hover {
  color: var(--gold);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== NAV (glassmorphism) ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 17, 0.45);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06); /* top sheen */
  transition:
    background 0.4s,
    box-shadow 0.3s,
    border-color 0.3s;
}
[data-theme="light"] #header {
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#header.scrolled {
  background: rgba(14, 14, 17, 0.65);
  box-shadow:
    0 2px 0 rgba(201, 162, 39, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="light"] #header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 2px 0 rgba(201, 162, 39, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-right: 48px;
}
.logo-emblem {
  width: 46px;
  height: 46px;
  position: relative;
  flex-shrink: 0;
}
.logo-emblem svg {
  width: 100%;
  height: 100%;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-wordmark .lw1 {
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  line-height: 1;
}
.logo-wordmark .lw2 {
  font-size: 8px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: stretch;
  height: 72px;
  flex: 1;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  height: 37%;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
  user-select: none;
}
[data-theme="light"] .nav-link {
  color: var(--header-links-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover .nav-link {
  color: var(--text);
}
.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-chevron {
  width: 8px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.25s,
    stroke 0.2s;
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  stroke: var(--gold);
}

/* Mega Menu */
.mega {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.97);
  transform-origin: top center;
  background: rgba(12, 12, 15, 0.97);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 16px 16px;
  min-width: 520px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.22s;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 162, 39, 0.1) inset;
}
[data-theme="light"] .mega {
  background: rgba(242, 240, 236, 0.98);
}
.mega.wide {
  min-width: 820px;
}
.nav-item:hover .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0) scale(1);
  transition:
    opacity 0.22s,
    transform 0.22s,
    visibility 0s;
}

.mega-inner {
  padding: 24px 28px 28px;
}
.mega.wide .mega-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
}

.mega-panel {
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.08), transparent);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-panel-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.mega-panel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1.3;
}
.mega-panel-link:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--text);
}
.mpd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}
.mega-panel-link:hover .mpd {
  opacity: 1;
}

.mega-cols-wrap {
  padding: 20px 22px;
}
.mega-cols {
  display: grid;
  gap: 20px;
}
.mega-cols.c2 {
  grid-template-columns: 1fr 1fr;
}
.mega-cols.c3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.mega-col-head {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-lnk {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  margin: 1px -8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  transition:
    color 0.15s,
    background 0.15s;
  white-space: nowrap;
}
.mega-lnk::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.mega-lnk:hover {
  color: var(--text);
  background: rgba(201, 162, 39, 0.08);
}
.mega-lnk:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.btn-nav-cta:hover {
  background: var(--gold);
  color: #000;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--text2);
  display: none;
}
.theme-toggle:hover svg {
  fill: var(--gold);
}
[data-theme="dark"] .icon-sun,
[data-theme="light"] .icon-moon {
  display: block;
}
[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .btn-nav-cta {
  background: var(--gold);
  color: var(--iron4);
}

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: 0.3s;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container {
    padding: 0 40px;
  }
  .nav-inner {
    padding: 0 24px;
  }
}
@media (max-width: 1024px) {
  .product-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card.featured {
    flex-direction: column;
  }
  .product-card.featured .card-image {
    width: 100%;
    height: 240px;
  }
  .product-card.featured .card-specs {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .nav-links,
  .btn-nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .product-grid.cols-3,
  .product-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .cta-buttons {
    flex-direction: row;
  }
  .modal-specs-grid {
    grid-template-columns: 1fr;
  }
  .modal-features ul {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .cat-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-actions {
    flex-direction: column;
  }
}
