/* ============================================================
   NEXORA — Component Library
   ============================================================ */

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 8px 30px rgba(46, 107, 255, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::after { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(46, 107, 255, .5), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-glass {
  background: rgba(158, 180, 224, .08);
  border: 1px solid var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-glass:hover {
  background: rgba(158, 180, 224, .14);
  border-color: rgba(158, 180, 224, .4);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.btn-line:hover { color: var(--ink); border-color: var(--accent-2); box-shadow: 0 0 24px rgba(46,107,255,.2); }

.btn-white {
  background: #0c1222;
  color: #fff;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(12,18,34,.35); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: .45; pointer-events: none; }

/* Icon-only buttons */
.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ink-2);
  transition: all .35s var(--ease);
}
.icon-btn:hover {
  color: var(--ink);
  background: rgba(158, 180, 224, .08);
  border-color: var(--line);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 2px 10px rgba(46,107,255,.5);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.icon-btn .count.on { transform: scale(1); }

/* ============ Chips / badges ============ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(158, 180, 224, .05);
  color: var(--ink-2);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-2); background: rgba(158,180,224,.09); }
.chip.on {
  color: #fff; border-color: transparent;
  background: var(--grad-accent);
  box-shadow: 0 6px 24px rgba(46,107,255,.35);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-new      { background: rgba(60, 197, 255, .16); color: #7fd9ff; border: 1px solid rgba(60,197,255,.35); }
.badge-best     { background: rgba(46, 107, 255, .18); color: #9db8ff; border: 1px solid rgba(46,107,255,.4); }
.badge-limited  { background: rgba(255, 180, 84, .14); color: #ffcf8e; border: 1px solid rgba(255,180,84,.35); }
.badge-premium  { background: rgba(201, 207, 221, .12); color: #e6eaf3; border: 1px solid rgba(201,207,221,.3); }
.badge-ai       { background: linear-gradient(110deg, rgba(46,107,255,.25), rgba(60,197,255,.2)); color: #b8dcff; border: 1px solid rgba(96,160,255,.4); }
.badge-pro      { background: rgba(52, 211, 162, .13); color: #8ceec9; border: 1px solid rgba(52,211,162,.32); }
.badge-deal     { background: rgba(255, 100, 115, .13); color: #ffa3ac; border: 1px solid rgba(255,100,115,.3); }

/* ============ Glass panel ============ */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Animated-border card (glow tracking via --mx/--my set in JS) */
.spot-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 23, 42, .6), rgba(9, 14, 27, .8));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spot-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(93, 141, 255, .14), transparent 45%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.spot-card:hover::before { opacity: 1; }

/* ============ Product card ============ */
.p-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 23, 42, .55), rgba(9, 14, 27, .85));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.p-card:hover {
  transform: translateY(-8px);
  border-color: rgba(93, 141, 255, .45);
  box-shadow: 0 30px 70px rgba(2, 6, 18, .7), 0 0 0 1px rgba(93,141,255,.18), 0 0 60px rgba(46,107,255,.12);
}

.p-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0f1c;
}
.p-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.p-card:hover .p-media img { transform: scale(1.07); }
.p-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(135% 110% at 50% 42%, transparent 40%, rgba(4, 6, 12, .55) 88%),
    linear-gradient(180deg, transparent 55%, rgba(4, 6, 12, .55));
  pointer-events: none;
}

.p-badges {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}

/* hover quick-actions rail */
.p-actions {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: flex; flex-direction: column; gap: 8px;
}
.p-actions .icon-btn {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(7, 11, 20, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateX(12px);
  transition: all .4s var(--ease);
}
.p-card:hover .p-actions .icon-btn,
.p-actions .icon-btn:focus-visible,
.p-actions .icon-btn.active { opacity: 1; transform: none; }
.p-actions .icon-btn:nth-child(2) { transition-delay: .05s; }
.p-actions .icon-btn:nth-child(3) { transition-delay: .1s; }
.p-actions .icon-btn:hover { border-color: var(--accent-2); color: #fff; box-shadow: 0 0 20px rgba(46,107,255,.35); }
.p-actions .icon-btn.active { color: var(--cyan); border-color: rgba(60,197,255,.5); }
.p-actions .icon-btn.active.heart { color: #ff7b88; border-color: rgba(255,100,115,.5); }

.p-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.p-brand {
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.p-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.p-name a::after { content: ""; position: absolute; inset: 0; } /* stretch link */

.p-rating { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.stars { display: inline-flex; gap: 2px; color: #ffc861; }
.stars svg { width: 13px; height: 13px; }
.stars .off { color: #2a3550; }

.p-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.stock-dot.low { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.p-price { display: flex; flex-direction: column; }
.p-price .now { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.p-price .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.p-price .mo { font-size: 12px; color: var(--accent-2); }

.p-cart {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(46, 107, 255, .14);
  border: 1px solid rgba(46, 107, 255, .35);
  color: var(--accent-2);
  transition: all .4s var(--ease);
}
.p-cart svg { width: 20px; height: 20px; }
.p-cart:hover {
  background: var(--grad-accent); color: #fff; border-color: transparent;
  box-shadow: 0 8px 28px rgba(46,107,255,.45);
  transform: translateY(-2px);
}
.p-cart.added { background: var(--good); border-color: transparent; color: #04240f; }

/* product grid */
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}

/* ============ Header ============ */
#nx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }

.top-strip {
  position: relative; z-index: 60;
  background: linear-gradient(90deg, #0a1226, #10204a 50%, #0a1226);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  overflow: hidden;
  max-height: 90px;
  transition: max-height .5s var(--ease), opacity .5s var(--ease);
}
.top-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0; }
.top-strip strong { color: #cfe0ff; font-weight: 600; }
.top-strip .spark { color: var(--cyan); }
#nx-header.scrolled .top-strip { max-height: 0; opacity: 0; }

.site-head {
  position: relative;
  transition: background .5s var(--ease), border-color .5s var(--ease),
              backdrop-filter .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(5, 8, 16, .78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-1);
}
.site-head .bar {
  display: flex; align-items: center; gap: 26px;
  height: var(--head-h);
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 58px; width: auto; filter: drop-shadow(0 0 14px rgba(46,107,255,.4)); }

.nav-main { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-main > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-2);
  border-radius: 10px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.active { color: var(--ink); background: rgba(158,180,224,.07); }
.nav-link svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.head-actions { display: flex; align-items: center; gap: 4px; flex: none; }

.search-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 8px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(158, 180, 224, .05);
  color: var(--ink-3);
  font-size: 13.5px;
  transition: all .35s var(--ease);
}
.search-pill:hover { border-color: var(--line-2); color: var(--ink-2); background: rgba(158,180,224,.09); }
.search-pill kbd {
  font-family: var(--font-display); font-size: 11px;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(158, 180, 224, .1);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.search-pill svg { width: 15px; height: 15px; }

/* Mega menu / dropdowns */
.mega, .drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow-2);
  z-index: 55;
}
li:hover > .mega, li:focus-within > .mega,
li:hover > .drop, li:focus-within > .drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega { width: min(960px, calc(100vw - 48px)); padding: 28px; }
.mega-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.mega h4 {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px; font-weight: 600;
}
.mega-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega-cat {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 12px;
  font-size: 13.5px; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.mega-cat img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.mega-cat:hover { background: rgba(158,180,224,.08); color: var(--ink); transform: translateX(3px); }
.mega-list li a {
  display: block; padding: 7px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.mega-list li a:hover { color: var(--ink); background: rgba(158,180,224,.08); transform: translateX(3px); }
.mega-promo {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  isolation: isolate;
}
.mega-promo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.mega-promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(4,6,12,.9));
}
.mega-promo strong { font-family: var(--font-display); font-size: 16px; }
.mega-promo span { font-size: 12.5px; color: var(--ink-2); }

.drop { padding: 10px; width: 240px; }
.drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.drop a:hover { background: rgba(158,180,224,.08); color: var(--ink); }
.drop a img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }

/* ============ Mobile nav ============ */
.burger { display: none; }
.m-nav-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 90;
  width: min(400px, 92vw);
  background: rgba(7, 10, 20, .97);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(102%);
  transition: transform .55s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.m-nav-drawer.open { transform: none; }
.m-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.m-nav-head img { height: 30px; }
.m-nav-body { padding: 14px 22px 30px; display: flex; flex-direction: column; gap: 2px; }
.m-nav-body > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  border-bottom: 1px solid rgba(158,180,224,.07);
  color: var(--ink);
  transition: all .3s;
}
.m-nav-body > a:hover { color: var(--accent-2); padding-left: 8px; }
.m-nav-body > a svg { width: 16px; height: 16px; color: var(--ink-3); }
.m-nav-sub { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 8px; font-weight: 600; }

/* Bottom tab bar — mobile app feel */
.tab-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: none;
  align-items: stretch; justify-content: space-around;
  background: rgba(8, 12, 23, .9);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--shadow-2);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tab-bar a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 6px 4px;
  font-size: 10.5px; font-weight: 500;
  color: var(--ink-3);
  border-radius: 14px;
  transition: color .3s;
}
.tab-bar a svg { width: 21px; height: 21px; }
.tab-bar a.active, .tab-bar a:hover { color: var(--accent-2); }
.tab-bar a .count {
  position: absolute; top: 0; right: calc(50% - 20px);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--grad-accent);
  color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}

/* ============ Footer ============ */
.site-foot {
  position: relative;
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 107, 255, .1), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overflow: hidden;
}
.site-foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("../Images/backgrounds/circuit.webp");
  background-size: 1100px; background-position: center bottom;
  opacity: .05; mix-blend-mode: screen;
}
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(50px, 6vw, 84px) 0 40px;
}
.foot-brand img { height: 74px; margin-bottom: 18px; filter: drop-shadow(0 0 16px rgba(46,107,255,.35)); }
.foot-brand p { font-size: 14px; color: var(--ink-2); max-width: 34ch; }
.foot-social { display: flex; gap: 8px; margin-top: 20px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: all .35s var(--ease);
}
.foot-social a:hover { color: #fff; border-color: var(--accent-2); box-shadow: 0 0 18px rgba(46,107,255,.3); transform: translateY(-3px); }
.foot-social svg { width: 17px; height: 17px; }
.foot-col h4 {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 18px; font-weight: 600;
}
.foot-col a {
  display: block; padding: 5px 0;
  font-size: 14px; color: var(--ink-2);
  transition: all .3s;
}
.foot-col a:hover { color: var(--accent-2); padding-left: 5px; }
.foot-news p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.foot-news form { display: flex; gap: 8px; }
.foot-news input {
  flex: 1; min-width: 0;
  height: 46px; padding: 0 16px;
  border-radius: 13px;
  background: rgba(158, 180, 224, .06);
  border: 1px solid var(--line);
  color: var(--ink); font-size: 14px;
  transition: border-color .3s;
}
.foot-news input::placeholder { color: var(--ink-3); }
.foot-news input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,107,255,.15); }
.foot-news .btn { padding: 0 18px; height: 46px; border-radius: 13px; }

.foot-base {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}
.pay-badges { display: flex; gap: 8px; }
.pay-badges span {
  padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-2);
}

/* ============ Drawer (cart) ============ */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 4, 10, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
  width: min(460px, 94vw);
  display: flex; flex-direction: column;
  background: rgba(8, 12, 23, .97);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(104%);
  transition: transform .55s var(--ease);
  box-shadow: var(--shadow-2);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.drawer-head h3 .badge { font-size: 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; }

.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(158,180,224,.07);
  animation: nxRise .5s var(--ease) both;
}
.cart-line img {
  width: 84px; height: 84px; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
}
.cart-line .n { font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-line .v { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cart-line .p { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; margin-top: 6px; }
.cart-line .remove {
  color: var(--ink-3); font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .3s;
}
.cart-line .remove:hover { color: var(--danger); }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.qty button {
  width: 30px; height: 30px;
  color: var(--ink-2); font-size: 15px;
  transition: all .25s;
}
.qty button:hover { background: rgba(158,180,224,.1); color: #fff; }
.qty span { min-width: 30px; text-align: center; font-size: 13.5px; font-weight: 600; }

.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.sum-row.total { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); padding-top: 10px; }
.sum-row.total span:last-child { color: #fff; }

.upsell {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(93, 141, 255, .4);
  background: rgba(46, 107, 255, .07);
  font-size: 13px; color: var(--ink-2);
}
.upsell svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.upsell strong { color: var(--ink); }

/* Empty states */
.empty-state { text-align: center; padding: 40px 20px 30px; }
.empty-state img {
  width: min(240px, 60%); margin: 0 auto 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.empty-state h4 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }

/* ============ Modals ============ */
.modal-wrap {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: min(12vh, 120px) 20px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.modal-wrap.open { opacity: 1; visibility: visible; }
.modal-wrap::before {
  content: ""; position: fixed; inset: 0;
  background: rgba(2, 4, 10, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal {
  position: relative;
  width: 100%;
  background: rgba(10, 15, 28, .97);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2), 0 0 80px rgba(46,107,255,.1);
  transform: translateY(26px) scale(.97);
  transition: transform .5s var(--ease);
}
.modal-wrap.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(158,180,224,.08);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .3s;
}
.modal-close:hover { color: #fff; background: rgba(255,100,115,.18); border-color: rgba(255,100,115,.4); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

/* Search / command palette */
.modal.search-modal { max-width: 680px; overflow: hidden; }
.search-input-row {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.search-input-row svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.search-input-row input {
  flex: 1; background: none; border: 0; outline: none;
  font-size: 17px; color: var(--ink);
  font-family: var(--font-display);
}
.search-input-row input::placeholder { color: var(--ink-3); }
.search-input-row kbd {
  font-size: 11px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--ink-3);
}
.search-body { max-height: min(56vh, 520px); overflow-y: auto; padding: 16px 12px 18px; }
.search-sec-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  padding: 12px 14px 8px;
}
.search-item {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  padding: 10px 14px; border-radius: 13px;
  transition: background .25s;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}
.search-item:hover, .search-item.sel { background: rgba(46, 107, 255, .12); color: var(--ink); }
.search-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.search-item .si-n { font-weight: 600; color: var(--ink); font-size: 14px; }
.search-item .si-s { font-size: 12px; color: var(--ink-3); }
.search-item .si-p { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent-2); }
.search-item svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* Quick view */
.modal.qv-modal { max-width: 920px; overflow: hidden; }
.qv-grid { display: grid; grid-template-columns: 1.05fr 1fr; }
.qv-media { position: relative; min-height: 100%; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.qv-body { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 14px; }

/* ============ Toasts ============ */
.toast-stack {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 120;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  border-radius: 99px;
  background: rgba(10, 15, 28, .95);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-2), 0 0 30px rgba(46,107,255,.12);
  font-size: 14px; font-weight: 500;
  animation: nxRise .45s var(--ease) both;
}
.toast svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.toast.ok svg { color: var(--good); }
.toast.out { opacity: 0; transform: translateY(12px); transition: all .4s var(--ease); }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 50px; padding: 0 16px;
  border-radius: 13px;
  background: rgba(158, 180, 224, .05);
  border: 1px solid var(--line);
  color: var(--ink); font-size: 14.5px;
  transition: border-color .3s, box-shadow .3s, background .3s;
  width: 100%;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a7b1c6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: var(--bg-2); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, .16);
  background: rgba(158, 180, 224, .08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Radio card */
.opt-card {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(158, 180, 224, .04);
  cursor: pointer;
  transition: all .35s var(--ease);
  font-size: 14px;
}
.opt-card:hover { border-color: var(--line-2); background: rgba(158,180,224,.07); }
.opt-card.on {
  border-color: var(--accent);
  background: rgba(46, 107, 255, .1);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(46,107,255,.15);
}
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .oc-t { font-weight: 600; color: var(--ink); }
.opt-card .oc-s { font-size: 12.5px; color: var(--ink-3); }
.opt-card .oc-p { margin-left: auto; font-family: var(--font-display); font-weight: 700; }

/* Color swatches */
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid var(--line-2);
  outline-offset: 3px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.swatch.on { outline-color: var(--accent-2); outline-width: 2px; transform: scale(1.1); }

/* ============ Tables ============ */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid rgba(158,180,224,.08);
}
.spec-table th { color: var(--ink-3); font-weight: 500; width: 34%; }
.spec-table td { color: var(--ink); }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(158,180,224,.03); }

/* ============ Accordion ============ */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  transition: background .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-size: 20px; color: var(--accent-2);
  transition: transform .35s var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc summary:hover { background: rgba(158,180,224,.04); }
.acc .acc-body { padding: 0 22px 20px; color: var(--ink-2); font-size: 14.5px; }

/* ============ Concierge widget ============ */
.concierge {
  position: fixed; right: 22px; bottom: 22px; z-index: 75;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.concierge-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 12px 40px rgba(46, 107, 255, .5), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: nxTickerGlow 4s ease-in-out infinite;
}
.concierge-btn:hover { transform: translateY(-4px) scale(1.05); }
.concierge-btn svg { width: 25px; height: 25px; }
.concierge-panel {
  width: min(360px, calc(100vw - 44px));
  border-radius: var(--r-lg);
  background: rgba(9, 14, 27, .97);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(.97);
  transform-origin: bottom right;
  transition: all .45s var(--ease);
}
.concierge-panel.open { opacity: 1; visibility: visible; transform: none; }
.concierge-head {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 20px;
  background: linear-gradient(120deg, rgba(46,107,255,.2), rgba(60,197,255,.1));
  border-bottom: 1px solid var(--line);
}
.concierge-head img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line-2); }
.concierge-head .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.concierge-head .s { font-size: 12px; color: var(--good); display: flex; align-items: center; gap: 6px; }
.concierge-head .s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.concierge-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; }
.concierge-body .msg {
  padding: 12px 15px; border-radius: 16px 16px 16px 5px;
  background: rgba(158, 180, 224, .08);
  font-size: 13.5px; color: var(--ink-2);
  max-width: 90%;
  animation: nxRise .5s var(--ease) both;
}
.concierge-body .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.concierge-body .quick button {
  padding: 8px 14px; border-radius: 99px;
  border: 1px solid rgba(93,141,255,.4);
  background: rgba(46,107,255,.08);
  color: var(--accent-2); font-size: 12.5px; font-weight: 500;
  transition: all .3s;
}
.concierge-body .quick button:hover { background: rgba(46,107,255,.2); color: #fff; }

/* ============ Stat counters ============ */
.stat-row { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

/* ============ Marquee ============ */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: nxMarquee var(--speed, 46s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============ Page hero (interior pages) ============ */
.page-hero {
  position: relative;
  padding: calc(var(--head-h) + clamp(60px, 9vw, 110px)) 0 clamp(44px, 6vw, 80px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../Images/backgrounds/gradients.webp") center / cover no-repeat;
  opacity: .12;
}
.page-hero .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 18px;
}
.page-hero .crumbs a:hover { color: var(--accent-2); }
.page-hero .crumbs span { opacity: .5; }

/* Banner hero w/ image */
.banner-hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.banner-hero > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.banner-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4,6,12,.92) 25%, rgba(4,6,12,.35) 70%, rgba(4,6,12,.15));
}
.banner-hero .inner { padding: clamp(28px, 5vw, 56px); max-width: 640px; }

/* ============ Misc ============ */
.divider-glow {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(93,141,255,.5), transparent);
}
.tag-tiny {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 600;
  color: var(--accent-2);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 13px; color: var(--cyan); }
.link-arrow svg { width: 16px; height: 16px; }

/* Responsive helpers */
@media (max-width: 1080px) {
  .nav-main { display: none; }
  .burger { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .tab-bar { display: flex; }
  body { padding-bottom: 84px; }
  .concierge { bottom: 96px; }
  .search-pill span, .search-pill kbd { display: none; }
  .search-pill { padding: 0; width: 42px; justify-content: center; border: 0; background: none; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { min-height: 260px; position: relative; }
  .qv-media img { position: relative; height: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* header slims down — compare & account live in pages / tab bar on mobile */
  .head-actions a[href="compare.html"], .head-actions a[href="account.html"] { display: none; }
  .top-strip { font-size: 11.5px; }
  .logo img { height: 46px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .p-body { padding: 14px 14px 16px; }
  .p-name { font-size: 14.5px; }
  .p-price .now { font-size: 17px; }
  .p-cart { width: 40px; height: 40px; border-radius: 12px; }
  .wrap { width: calc(100% - 32px); }
}
