/* =====================================================================
   NEXUSGEAR — Gaming & Network e-commerce theme
   Dark neon / RTL / fully responsive. All colors are Customizer-driven
   through CSS custom properties injected by assets/js/app.js
   ===================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b14;
  --bg2: #0a1120;
  --surface: #101a2c;
  --surface2: #16233a;
  --surface3: #1c2c47;
  --line: rgba(124, 166, 216, .14);
  --line2: rgba(124, 166, 216, .26);
  --text: #eaf2ff;
  --muted: #90a6c4;
  --faint: #5f7697;
  --a1: #00e5ff;
  --a2: #ff3d81;
  --a3: #8b5cff;
  --ok: #00ffa3;
  --warn: #ffb020;
  --danger: #ff5a6a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .48);
  --glow: 0 0 34px rgba(0, 229, 255, .22);
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
svg { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(0, 229, 255, .10), transparent 70%),
    radial-gradient(760px 520px at 2% 24%, rgba(255, 61, 129, .075), transparent 70%),
    radial-gradient(900px 700px at 50% 110%, rgba(139, 92, 255, .07), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--a1); color: #04121b; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070c16; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--a1), var(--a3)); border-radius: 20px; border: 2px solid #070c16; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--a1); }
.center { text-align: center; }
.hidden { display: none !important; }
.nx-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(105deg, var(--a1), #37a8ff);
  color: #03121d; font-weight: 800; font-size: 14px; letter-spacing: .1px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  box-shadow: 0 10px 30px rgba(0, 229, 255, .22);
  white-space: nowrap;
}
.nx-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 229, 255, .36); filter: brightness(1.06); }
.nx-btn.pink { background: linear-gradient(105deg, var(--a2), #ff7a45); color: #1a0710; box-shadow: 0 10px 30px rgba(255, 61, 129, .22); }
.nx-btn.ghost { background: rgba(255, 255, 255, .035); border-color: var(--line2); color: var(--text); box-shadow: none; }
.nx-btn.ghost:hover { border-color: var(--a1); background: rgba(0, 229, 255, .08); }
.nx-btn.sm { padding: 9px 17px; font-size: 13px; border-radius: 10px; }
.nx-btn.block { width: 100%; }
.nx-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.nx-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(0, 229, 255, .10); border: 1px solid rgba(0, 229, 255, .28); color: var(--a1);
}
.nx-chip.pink { background: rgba(255, 61, 129, .1); border-color: rgba(255, 61, 129, .3); color: var(--a2); }
.nx-chip.orange { background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .3); color: var(--warn); }

/* ---------- topbar / ticker ---------- */
.nx-topbar {
  background: linear-gradient(90deg, rgba(0, 229, 255, .09), rgba(255, 61, 129, .09));
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  height: 38px; display: flex; align-items: center; overflow: hidden;
}
.nx-topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--max), calc(100% - 40px)); }
.nx-ticker { flex: 1; overflow: hidden; white-space: nowrap; }
.nx-ticker span { display: inline-block; padding-inline-start: 100%; animation: nx-marquee 28s linear infinite; }
@keyframes nx-marquee { to { transform: translateX(100%); } }
.nx-topbar-links { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
.nx-topbar-links a:hover { color: var(--a1); }
.nx-topbar-links b { color: var(--a1); font-weight: 700; }

/* ---------- header ---------- */
.nx-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 13, 24, .88); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nx-header-main { display: flex; align-items: center; gap: 22px; height: 78px; }
.nx-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nx-logo svg { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(0, 229, 255, .5)); }
.nx-logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.nx-logo-txt b { font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.nx-logo-txt small { font-size: 9.5px; color: var(--a1); letter-spacing: 3px; font-weight: 700; }
.nx-search { flex: 1; position: relative; max-width: 560px; }
.nx-search input {
  width: 100%; height: 46px; border-radius: 12px; padding: 0 46px 0 90px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--text);
  outline: none; transition: .2s;
}
.nx-search input:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(0, 229, 255, .12); background: rgba(255, 255, 255, .06); }
.nx-search input::placeholder { color: var(--faint); }
.nx-search .nx-search-ico { position: absolute; inset-inline-start: 16px; top: 13px; color: var(--muted); width: 20px; height: 20px; }
.nx-search .nx-search-go { position: absolute; inset-inline-end: 6px; top: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: rgba(0, 229, 255, .14); color: var(--a1); font-size: 12px; font-weight: 800; }
.nx-search .nx-search-go:hover { background: var(--a1); color: #04121b; }
.nx-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nx-iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); color: var(--text); transition: .2s;
}
.nx-iconbtn:hover { border-color: var(--a1); color: var(--a1); background: rgba(0, 229, 255, .08); }
.nx-iconbtn svg { width: 20px; height: 20px; }
.nx-badge {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--a2); color: #fff;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 12px rgba(255, 61, 129, .6);
}
.nx-nav { border-top: 1px solid var(--line); }
.nx-nav .wrap { display: flex; align-items: center; gap: 4px; height: 52px; }
.nx-nav a { padding: 8px 15px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: .2s; white-space: nowrap; }
.nx-nav a:hover, .nx-nav a.active { color: var(--text); background: rgba(0, 229, 255, .08); }
.nx-nav a.active { color: var(--a1); }
.nx-nav .nx-nav-hot { margin-inline-start: auto; color: var(--a2) !important; font-weight: 800; }
.nx-burger { display: none; }

/* ---------- hero ---------- */
.nx-hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: #080e1b;
}
.nx-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .95; }
.nx-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 9, 18, .96) 0%, rgba(5, 9, 18, .82) 42%, rgba(5, 9, 18, .18) 78%, rgba(5, 9, 18, .35) 100%); }
.nx-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: 530px; padding-block: 60px; }
.nx-hero-copy h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.3; margin: 14px 0 18px; font-weight: 900; letter-spacing: -1px; }
.nx-hero-copy h1 em { font-style: normal; background: linear-gradient(100deg, var(--a1), #7ee8ff 40%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nx-hero-copy p { color: var(--muted); font-size: 16px; max-width: 520px; margin: 0 0 28px; }
.nx-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.nx-hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.nx-hero-stats div { display: flex; flex-direction: column; }
.nx-hero-stats b { font-size: 24px; font-weight: 900; color: var(--a1); line-height: 1.2; }
.nx-hero-stats small { font-size: 11.5px; color: var(--faint); }
.nx-hero-visual { position: relative; display: grid; place-items: center; }
.nx-hero-orbit { width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(0, 229, 255, .28); display: grid; place-items: center; position: relative; }
.nx-hero-orbit::before, .nx-hero-orbit::after { content: ''; position: absolute; inset: 13%; border-radius: 50%; border: 1px dashed rgba(255, 61, 129, .22); animation: nx-spin 40s linear infinite; }
.nx-hero-orbit::after { inset: 27%; border-color: rgba(139, 92, 255, .28); animation: nx-spin 60s linear infinite reverse; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
.nx-hero-card {
  position: relative; z-index: 2; width: min(330px, 82%); padding: 22px;
  background: linear-gradient(150deg, rgba(18, 30, 50, .94), rgba(9, 15, 27, .94));
  border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); animation: nx-float 6s ease-in-out infinite;
}
@keyframes nx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.nx-hero-card img { width: 100%; border-radius: 14px; }
.nx-hero-card .nx-hero-card-title { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 700; }
.nx-hero-card .nx-hero-card-title span { color: var(--a1); }

/* ---------- trust strip ---------- */
.nx-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.nx-trust-item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .022); border: 1px solid var(--line); }
.nx-trust-item svg { width: 26px; height: 26px; color: var(--a1); flex-shrink: 0; }
.nx-trust-item b { display: block; font-size: 13px; }
.nx-trust-item small { color: var(--faint); font-size: 11.5px; }

/* ---------- section head ---------- */
.nx-section { padding-block: 66px; }
.nx-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.nx-section-head h2 { font-size: clamp(23px, 2.6vw, 32px); font-weight: 900; margin: 6px 0 0; letter-spacing: -.5px; }
.nx-section-head p { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; }
.nx-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--a1); font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.nx-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--a1); border-radius: 4px; }

/* ---------- categories ---------- */
.nx-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.nx-cat {
  position: relative; overflow: hidden; padding: 22px 18px 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface2), var(--bg2));
  border: 1px solid var(--line); transition: .28s; min-height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.nx-cat::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; top: -70px; inset-inline-end: -60px; background: var(--cat, var(--a1)); opacity: .16; filter: blur(20px); transition: .3s; }
.nx-cat:hover { transform: translateY(-6px); border-color: var(--cat, var(--a1)); box-shadow: 0 18px 42px rgba(0, 0, 0, .45); }
.nx-cat:hover::before { opacity: .34; }
.nx-cat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat, var(--a1)) 15%, transparent); border: 1px solid color-mix(in srgb, var(--cat, var(--a1)) 35%, transparent); color: var(--cat, var(--a1)); }
.nx-cat-ico svg { width: 25px; height: 25px; }
.nx-cat b { font-size: 15px; font-weight: 800; position: relative; }
.nx-cat small { color: var(--faint); font-size: 11.5px; position: relative; }

/* ---------- product grid / card ---------- */
.nx-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.nx-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--surface), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .26s, border-color .26s, box-shadow .26s;
}
.nx-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--a1) 45%, transparent); box-shadow: 0 22px 50px rgba(0, 0, 0, .5); }
.nx-card-media { position: relative; aspect-ratio: 1 / .86; overflow: hidden; background: #070c16; }
.nx-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nx-card:hover .nx-card-media img { transform: scale(1.07); }
.nx-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 11, 20, .7), transparent 55%); pointer-events: none; }
.nx-card-tags { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nx-tag { padding: 4px 10px; border-radius: 8px; font-size: 10.5px; font-weight: 800; backdrop-filter: blur(6px); }
.nx-tag.sale { background: rgba(255, 61, 129, .9); color: #fff; }
.nx-tag.new { background: rgba(0, 229, 255, .9); color: #04121b; }
.nx-tag.hot { background: rgba(255, 176, 32, .92); color: #1a1000; }
.nx-card-tools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateX(8px); transition: .25s; }
.nx-card:hover .nx-card-tools { opacity: 1; transform: none; }
.nx-card-tools button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(8, 14, 25, .85); color: var(--text); display: grid; place-items: center; transition: .2s; }
.nx-card-tools button:hover { color: var(--a1); border-color: var(--a1); }
.nx-card-tools button.on { color: var(--a2); border-color: var(--a2); }
.nx-card-tools svg { width: 16px; height: 16px; }
.nx-card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.nx-card-cat { font-size: 11px; color: var(--a1); font-weight: 700; }
.nx-card-title { font-size: 14px; font-weight: 700; line-height: 1.65; margin: 6px 0 8px; min-height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-card-title:hover { color: var(--a1); }
.nx-stars { display: inline-flex; align-items: center; gap: 3px; color: var(--warn); font-size: 12px; }
.nx-stars small { color: var(--faint); font-size: 11px; margin-inline-start: 4px; }
.nx-price { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.nx-price b { font-size: 17px; font-weight: 900; color: var(--text); white-space: nowrap; }
.nx-price b small { font-size: 11px; font-weight: 600; color: var(--muted); }
.nx-price del { font-size: 12px; color: var(--faint); display: block; }
.nx-price .nx-off { font-size: 10px; color: var(--a2); font-weight: 800; }
.nx-add { width: 38px; height: 38px; border-radius: 11px; border: 0; display: grid; place-items: center; background: linear-gradient(130deg, var(--a1), #2fa8ff); color: #04121b; flex-shrink: 0; transition: .2s; }
.nx-add:hover { transform: rotate(90deg) scale(1.08); box-shadow: var(--glow); }
.nx-add svg { width: 18px; height: 18px; }
.nx-soldout { background: rgba(255,255,255,.08); color: var(--faint); cursor: not-allowed; }
.nx-empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }
.nx-empty svg { width: 46px; height: 46px; color: var(--faint); margin: 0 auto 14px; }

/* ---------- flash sale ---------- */
.nx-flash { background: linear-gradient(110deg, rgba(255, 61, 129, .10), rgba(0, 229, 255, .06)); border-block: 1px solid var(--line); }
.nx-countdown { display: flex; gap: 8px; align-items: center; }
.nx-countdown div { min-width: 52px; text-align: center; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line2); }
.nx-countdown b { display: block; font-size: 19px; font-weight: 900; color: var(--a2); line-height: 1.2; }
.nx-countdown small { font-size: 9.5px; color: var(--faint); }

/* ---------- promo banners ---------- */
.nx-promos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.nx-promo { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 260px; display: flex; align-items: center; padding: 34px; }
.nx-promo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.nx-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 9, 18, .92), rgba(5, 9, 18, .35) 75%); }
.nx-promo > *:not(.nx-promo-bg) { position: relative; z-index: 2; }
.nx-promo h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; margin: 10px 0 8px; }
.nx-promo p { color: var(--muted); margin: 0 0 20px; max-width: 420px; }

/* ---------- brands / newsletter ---------- */
.nx-brands { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.nx-brand { display: grid; place-items: center; height: 76px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font-weight: 900; font-size: 15px; letter-spacing: 1px; transition: .25s; }
.nx-brand:hover { color: var(--a1); border-color: var(--a1); background: rgba(0, 229, 255, .06); }
.nx-newsletter { border: 1px solid var(--line2); border-radius: 26px; padding: 40px; background: linear-gradient(120deg, rgba(0, 229, 255, .07), rgba(139, 92, 255, .08)); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.nx-newsletter h3 { font-size: 26px; font-weight: 900; margin: 0 0 6px; }
.nx-news-form { display: flex; gap: 8px; background: rgba(6, 11, 20, .7); padding: 7px; border-radius: 14px; border: 1px solid var(--line2); }
.nx-news-form input { flex: 1; border: 0; background: transparent; color: var(--text); outline: none; padding: 0 14px; }

/* ---------- blog cards ---------- */
.nx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nx-post { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: .25s; }
.nx-post:hover { transform: translateY(-5px); border-color: var(--a1); }
.nx-post-art { height: 160px; background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(139,92,255,.22)); position: relative; display: grid; place-items: center; }
.nx-post-art svg { width: 54px; height: 54px; color: rgba(255,255,255,.35); }
.nx-post-body { padding: 18px; }
.nx-post-body small { color: var(--a1); font-size: 11px; }
.nx-post-body h4 { margin: 8px 0; font-size: 15px; line-height: 1.6; }
.nx-post-body p { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ---------- footer ---------- */
.nx-footer { background: #060a13; border-top: 1px solid var(--line); padding-top: 60px; margin-top: 20px; }
.nx-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; padding-bottom: 44px; }
.nx-footer h4 { font-size: 15px; margin: 0 0 18px; font-weight: 800; }
.nx-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nx-footer ul a { color: var(--muted); font-size: 13px; transition: .2s; }
.nx-footer ul a:hover { color: var(--a1); padding-inline-start: 5px; }
.nx-footer-about { color: var(--muted); font-size: 13px; max-width: 340px; }
.nx-footer-contact { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.nx-footer-contact b { color: var(--a1); }
.nx-social { display: flex; gap: 9px; margin-top: 18px; }
.nx-social a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .2s; }
.nx-social a:hover { color: #04121b; background: var(--a1); border-color: var(--a1); }
.nx-social svg { width: 18px; height: 18px; }
.nx-footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12px; }
.nx-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-payments span { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line2); font-size: 10.5px; }

/* ---------- breadcrumb / page head ---------- */
.nx-pagehead { padding: 34px 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0, 229, 255, .045), transparent); }
.nx-pagehead h1 { font-size: 30px; font-weight: 900; margin: 0 0 8px; }
.nx-crumb { color: var(--faint); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nx-crumb a:hover { color: var(--a1); }
.nx-crumb span { color: var(--a1); }

/* ---------- shop layout / filters ---------- */
.nx-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 28px; align-items: start; }
.nx-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 150px; }
.nx-filters h4 { margin: 0 0 14px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nx-filters h4 svg { width: 17px; height: 17px; color: var(--a1); }
.nx-filter-group { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.nx-filter-group > b { font-size: 12.5px; display: block; margin-bottom: 10px; }
.nx-filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.nx-filter-opt:hover, .nx-filter-opt.on { color: var(--a1); }
.nx-filter-opt input { accent-color: var(--a1); }
.nx-filter-opt small { color: var(--faint); font-size: 11px; }
.nx-range { width: 100%; accent-color: var(--a1); }
.nx-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.nx-shop-bar span { color: var(--muted); font-size: 12.5px; }
.nx-sort { background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 14px; font-size: 12.5px; outline: none; }
.nx-sort option { background: #101a2c; }
.nx-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.nx-pill { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.025); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: .2s; }
.nx-pill:hover, .nx-pill.on { color: #04121b; background: var(--a1); border-color: var(--a1); font-weight: 800; }
.nx-pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.nx-pager button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--muted); }
.nx-pager button.on, .nx-pager button:hover { background: var(--a1); border-color: var(--a1); color: #04121b; font-weight: 800; }

/* ---------- product detail ---------- */
.nx-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 36px; align-items: start; }
.nx-gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.nx-gallery-main { border-radius: 14px; overflow: hidden; background: #070c16; aspect-ratio: 1/.9; }
.nx-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.nx-gallery-thumbs { display: flex; gap: 9px; margin-top: 12px; }
.nx-gallery-thumbs button { width: 72px; height: 68px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: #070c16; padding: 0; }
.nx-gallery-thumbs button.on { border-color: var(--a1); box-shadow: 0 0 0 2px rgba(0,229,255,.25); }
.nx-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nx-pdp h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; line-height: 1.45; margin: 10px 0 12px; }
.nx-pdp-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-bottom: 18px; }
.nx-pdp-price { padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(0, 229, 255, .055); border: 1px solid var(--line2); margin-bottom: 20px; }
.nx-pdp-price b { font-size: 28px; font-weight: 900; color: var(--a1); }
.nx-pdp-price b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.nx-pdp-price del { color: var(--faint); margin-inline-start: 12px; }
.nx-pdp-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nx-qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 11px; overflow: hidden; height: 46px; }
.nx-qty button { width: 36px; height: 100%; border: 0; background: rgba(255,255,255,.04); color: var(--text); font-size: 18px; }
.nx-qty button:hover { color: var(--a1); }
.nx-qty span { min-width: 36px; text-align: center; font-weight: 800; }
.nx-specs { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.nx-specs h3 { margin: 0; padding: 15px 18px; background: rgba(255,255,255,.03); font-size: 14px; border-bottom: 1px solid var(--line); }
.nx-specs table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nx-specs td { padding: 11px 18px; border-bottom: 1px solid var(--line); }
.nx-specs tr:last-child td { border-bottom: 0; }
.nx-specs td:first-child { color: var(--muted); width: 40%; }
.nx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 34px 0 18px; }
.nx-tab { padding: 10px 18px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; border-bottom: 2px solid transparent; }
.nx-tab.on { color: var(--a1); border-color: var(--a1); }
.nx-tab-body { color: var(--muted); font-size: 13.5px; line-height: 2; }

/* ---------- cart / checkout ---------- */
.nx-cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 24px; padding-top: 30px; align-items: start; }
.nx-cart-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nx-cart-row { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.nx-cart-row:last-child { border-bottom: 0; }
.nx-cart-row img { width: 90px; height: 82px; object-fit: cover; border-radius: 10px; }
.nx-cart-row b { font-size: 13.5px; display: block; line-height: 1.6; }
.nx-cart-row small { color: var(--faint); font-size: 11.5px; }
.nx-cart-row .nx-del { border: 0; background: transparent; color: var(--faint); padding: 6px; }
.nx-cart-row .nx-del:hover { color: var(--danger); }
.nx-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 150px; }
.nx-summary h3 { margin: 0 0 16px; font-size: 16px; }
.nx-summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.nx-summary-line b { color: var(--text); }
.nx-summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-size: 17px; font-weight: 900; }
.nx-summary-total b { color: var(--a1); font-size: 22px; }
.nx-coupon { display: flex; gap: 8px; margin: 16px 0; }
.nx-coupon input { flex: 1; min-width: 0; }
.nx-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.nx-field label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nx-input, .nx-select, .nx-textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px; background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line2); color: var(--text); outline: none; transition: .2s; font-size: 13.5px;
}
.nx-input:focus, .nx-select:focus, .nx-textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(0,229,255,.1); }
.nx-textarea { min-height: 100px; resize: vertical; }
.nx-select option { background: #101a2c; }
.nx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nx-radio { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 11px; margin-bottom: 9px; cursor: pointer; font-size: 13px; }
.nx-radio:has(input:checked) { border-color: var(--a1); background: rgba(0,229,255,.06); }
.nx-radio input { accent-color: var(--a1); }
.nx-order-ok { text-align: center; padding: 70px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nx-order-ok svg { width: 72px; height: 72px; color: var(--ok); margin: 0 auto 18px; }
.nx-order-ok h2 { font-size: 26px; margin: 0 0 10px; }

/* ---------- static content pages ---------- */
.nx-content { max-width: 860px; padding-block: 40px; color: var(--muted); line-height: 2.1; }
.nx-content h2, .nx-content h3 { color: var(--text); margin-top: 30px; }
.nx-content h2 { font-size: 22px; }
.nx-content h3 { font-size: 17px; }
.nx-content p { margin: 0 0 14px; }
.nx-faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.nx-faq-item > button { width: 100%; text-align: start; padding: 16px 18px; background: rgba(255,255,255,.025); border: 0; color: var(--text); font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.nx-faq-item > div { padding: 0 18px 16px; color: var(--muted); font-size: 13.5px; }
.nx-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.nx-info-card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.nx-info-card svg { width: 28px; height: 28px; color: var(--a1); margin-bottom: 10px; }
.nx-info-card b { display: block; margin-bottom: 4px; }

/* ---------- drawer / modal / toast ---------- */
.nx-overlay { position: fixed; inset: 0; background: rgba(2, 5, 11, .72); backdrop-filter: blur(4px); z-index: 90; opacity: 0; pointer-events: none; transition: .25s; }
.nx-overlay.open { opacity: 1; pointer-events: auto; }
.nx-drawer { position: fixed; top: 0; left: 0; right: auto; height: 100vh; width: min(420px, 100%); background: #0a1120; border-inline-start: 1px solid var(--line2); z-index: 95; transform: translateX(-105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; display: flex; flex-direction: column; }
.nx-drawer.open { transform: none; visibility: visible; }
.nx-drawer-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.nx-drawer-head h3 { margin: 0; font-size: 16px; }
.nx-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.nx-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.nx-mini-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nx-mini-row img { width: 62px; height: 58px; object-fit: cover; border-radius: 9px; }
.nx-mini-row b { font-size: 12.5px; display: block; line-height: 1.5; }
.nx-mini-row small { color: var(--a1); font-size: 12px; }
.nx-close { border: 0; background: rgba(255,255,255,.05); color: var(--text); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.nx-close:hover { color: var(--a2); }
.nx-modal { position: fixed; z-index: 100; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.96); width: min(860px, calc(100% - 32px)); max-height: 86vh; overflow: auto; background: #0a1120; border: 1px solid var(--line2); border-radius: 22px; padding: 24px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.nx-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.nx-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.nx-toast-wrap { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.nx-toast { min-width: 240px; padding: 12px 16px; border-radius: 12px; background: #101d31; border: 1px solid var(--a1); color: var(--text); font-size: 13px; box-shadow: var(--shadow); animation: nx-in .3s ease; display: flex; gap: 9px; align-items: center; }
.nx-toast.err { border-color: var(--danger); }
@keyframes nx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nx-top { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 70; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: #101a2c; color: var(--a1); display: none; place-items: center; }
.nx-top.show { display: grid; }
.nx-fade { animation: nx-fade .35s ease both; }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .nx-cats { grid-template-columns: repeat(3, 1fr); }
  .nx-products { grid-template-columns: repeat(3, 1fr); }
  .nx-brands { grid-template-columns: repeat(4, 1fr); }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nx-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .nx-hero-visual { display: none; }
  .nx-shop-layout { grid-template-columns: 1fr; }
  .nx-filters { position: static; }
  .nx-pdp, .nx-cart-layout, .nx-newsletter { grid-template-columns: 1fr; }
  .nx-summary { position: static; }
  .nx-promos { grid-template-columns: 1fr; }
  .nx-trust { grid-template-columns: repeat(2, 1fr); }
  .nx-posts { grid-template-columns: 1fr 1fr; }
  .nx-burger { display: grid; }
  .nx-nav .wrap { flex-wrap: wrap; height: auto; padding-block: 8px; }
  .nx-nav a:not(.nx-nav-hot) { display: none; }
  .nx-nav.open a:not(.nx-nav-hot) { display: block; }
  .nx-nav.open .wrap { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .nx-header-main { height: auto; padding-block: 12px; flex-wrap: wrap; gap: 12px; }
  .nx-search { order: 3; flex-basis: 100%; max-width: none; }
  .nx-topbar-links { display: none; }
  .nx-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nx-card-body { padding: 12px; }
  .nx-card-title { font-size: 12.5px; min-height: 42px; }
  .nx-price b { font-size: 14px; }
  .nx-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nx-brands { grid-template-columns: repeat(2, 1fr); }
  .nx-footer-grid, .nx-posts, .nx-info-grid, .nx-grid2 { grid-template-columns: 1fr; }
  .nx-trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nx-trust-item { padding: 10px; gap: 8px; }
  .nx-trust-item b { font-size: 11.5px; }
  .nx-trust-item small { font-size: 10px; }
  .nx-section { padding-block: 44px; }
  .nx-newsletter { padding: 24px; }
  .nx-cart-row { grid-template-columns: 66px 1fr auto; gap: 10px; }
  .nx-cart-row img { width: 66px; height: 62px; }
  .nx-cart-row > .nx-cart-price { display: none; }
  .nx-promo { padding: 24px; min-height: 210px; }
}
