/* neXus Hairpin — Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:    #050d1c;
  --bg2:   #091628;
  --bg3:   #0f1f38;
  --line:  #1c3055;
  --text:  #e8eef8;
  --muted: #6080aa;
  --blue:  #3282F6;
  --blue-dim: #1f6be0;
  --gold:  #c9a424;
  --gold-dim: #a8871c;
  --white: #e8eef8;
  /* kept as --orange for backwards compat in old refs */
  --orange: #3282F6;
  --orange-dim: #1f6be0;
  --font-head: 'Orbitron', sans-serif;
 /* --font-body: 'Exo 2', sans-serif;*/
  --font-body: 'Orbitron', sans-serif;
}
html { 
  font-size: 16px; 
  scroll-behavior: smooth; 
  /* Remove height: 100% and overflow-x here */
  width: 100%;
}

body {
  /* Remove min-height: 100% */
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  /* Force a single scrollbar on the Y axis and hide the X axis */
  overflow-x: hidden; 
  overflow-y: auto; 
  position: relative;
  padding-top: 140px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,13,28,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: auto; /* Allow height to expand for stacked links */
  min-height: 68px;
}
.nav-logo {
  flex-shrink: 0; /* Prevents logo from disappearing */
  padding: 10px 0;
}

.nav-logo img {
  height: 44px; /* Maintains your preferred height */
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Keeps the logo white */
  max-width: 180px; /* Limits width on mobile so it doesn't crowd the hamburger/cart */
}
.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800; font-size: 18px; letter-spacing: 0.06em;
  color: var(--white);
}
/* Ensure the nav-links don't push the logo off-screen */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px; 
  list-style: none;
  margin: 0 16px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  display: block;
  transition: color 0.15s;
}

.nav-links a.active {
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 2px solid var(--gold); }
.nav-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold); color: #050d1c;
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 2px;
  transition: background 0.15s;
}
.nav-cart-btn:hover { background: var(--gold-dim); }
.nav-cart-count {
  background: #050d1c; color: var(--gold);
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* TICKER */
/* Ensure the ticker is never hidden */
.ticker {
  display: block !important; 
  width: 100%;
  overflow: hidden;
  background: var(--gold);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.ticker-inner {
  display: flex !important;
  width: max-content;
  /* Add the line below to trigger the scroll */
  animation: ticker 30s linear infinite; 
}

.ticker span {
  font-family: var(--font-head); 
  font-weight: 600;
  font-size: 10px; 
  letter-spacing: 0.18em; 
  text-transform: uppercase;
  color: #050d1c; 
  padding: 10px 32px; /* Added vertical padding to ensure height */
  display: inline-block;
}
.ticker span::after { content: '·'; margin-left: 32px; color: rgba(5,13,28,0.5); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* HERO */
.hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 80px 32px;
  max-width: 1400px; margin: 0 auto;
  position: relative;
}
.hero-content { max-width: 700px; }
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 600;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 24px;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 480px; margin-bottom: 40px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px;
  transition: all 0.15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dim); }
.btn-outline { border: 1px solid var(--line); color: var(--muted); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: #050d1c; }
.btn-gold:hover { background: var(--gold-dim); }

/* SECTION TITLES */
.section { padding: 100px 32px; max-width: 1400px; margin: 0 auto; }
.section-label {
  font-family: var(--font-head); font-weight: 600;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1; text-transform: uppercase;
  color: var(--white); margin-bottom: 40px;
}
.section-divider { width: 100%; height: 1px; background: var(--line); margin: 0; }

/* PRODUCT CARD */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures cards in the same row align vertically */
  }
.product-card:hover { border-color: var(--blue); }
.product-card-img {
  aspect-ratio: 4/3;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card-img .placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: #2a4060;
  font-family: monospace; font-size: 11px; text-align: center;
  padding: 20px;
}
.product-card-img .ph-icon {
  width: 60px; height: 60px;
  border: 1px dashed #1c3055;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #050d1c;
  font-family: var(--font-head); font-weight: 700;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
}
.product-card-body {
    flex-grow: 1; /* Pushes the footer/price to the bottom of the card */
    display: flex;
    flex-direction: column;
  }

.product-cat {
  font-family: var(--font-head); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 16px; text-transform: uppercase;
  color: var(--white); margin-bottom: 6px;
  line-height: 1.2;
}
.product-tagline { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

.product-footer {
    margin-top: auto; /* Anchors price and button to the bottom */
  }


.product-price {
  font-family: var(--font-head); font-weight: 700;
  font-size: 20px; color: var(--white);
}
.add-to-cart {
  background: var(--blue); color: var(--white);
  font-family: var(--font-head); font-weight: 700;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 2px;
  transition: background 0.15s;
}
.add-to-cart:hover { background: var(--blue-dim); }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 32px 40px;
  background: var(--bg2);
}
.footer-inner {
    max-width: 1200px; /* Reduced from 1400px to keep it tighter */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; /* Allows columns to drop down if screen is very narrow */
    justify-content: flex-start; /* Scoots everything to the left */
    gap: 40px; /* Controlled spacing between columns instead of space-between */
    padding: 60px 24px; /* Ensure 24px side breathing room */
}

/* The new dedicated image row */
.footer-image-row {
  width: 100vw; /* Force to full viewport width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -48vw; /* Centers the breakout element */
  margin-top: 1px;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-image-row img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensures image fills the entire width without distortion */
}
.footer-brand {
    flex: 1;
    min-width: 250px; /* Ensures the brand text doesn't get too skinny */
    max-width: 350px;
}
.footer-col {
    flex: 0 1 auto; /* Columns take only the space they need */
    min-width: 120px;
}
.footer-taglines { font-size: 12px; color: var(--muted); line-height: 2.2; letter-spacing: 0.03em; }
.footer-col-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1400px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
}
.footer-marks { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--font-head); font-size: 12px; }

/* CART DRAWER */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 420px; max-width: 100vw;
  background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 18px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold);
}
.cart-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted); font-size: 18px;
  transition: all 0.15s;
}
.cart-close:hover { border-color: var(--white); color: var(--white); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 200px; color: var(--muted);
  font-family: var(--font-head); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; gap: 12px;
}
.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 72px; height: 72px; background: var(--bg3);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 13px; text-transform: uppercase; margin-bottom: 4px; line-height: 1.3;
}
.cart-item-price { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px; transition: all 0.1s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num { font-family: var(--font-head); font-weight: 700; font-size: 14px; min-width: 24px; text-align: center; }
.cart-remove { color: var(--muted); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-head); margin-left: auto; }
.cart-remove:hover { color: var(--white); }
.cart-footer { padding: 24px; border-top: 1px solid var(--line); }
.cart-subtotal {
  display: flex; justify-content: space-between;
  font-family: var(--font-head); font-weight: 700;
  font-size: 16px; text-transform: uppercase; margin-bottom: 16px;
}
.cart-subtotal span:last-child { color: var(--gold); }
.btn-checkout {
  width: 100%; background: var(--blue); color: var(--white);
  font-family: var(--font-head); font-weight: 900;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px; transition: background 0.15s;
}
.btn-checkout:hover { background: var(--blue-dim); }

/* GRID HELPERS */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* STAT STRIP */
.stat-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg2);
}
.stat-item { padding: 40px 32px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-weight: 900;
  font-size: 48px; line-height: 1; color: var(--white); margin-bottom: 4px;
}
.stat-num span { color: var(--gold); }
.stat-desc { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-head); }

/* CATEGORY HERO */
.cat-hero {
  padding: 40px 32px 80px;
  max-width: 1400px; margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.cat-hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(18px, 4vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.cat-hero-title em { color: var(--gold); font-style: normal; }
.cat-hero-sub { font-size: 15px; color: var(--muted); max-width: 500px; line-height: 1.7; }

/* FILTER BAR */
.filter-bar {
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  max-width: 1400px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0; background: var(--bg2);
}
.filter-btn {
  font-family: var(--font-head); font-weight: 600;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 16px 20px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* PRODUCT GRID */
.product-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
}

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: var(--font-head);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg3); border: 1px solid var(--line);
  color: var(--white); font-family: var(--font-body); font-size: 15px;
  padding: 12px 16px; outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--blue); }
.form-textarea { resize: vertical; min-height: 120px; }

/* Preserve neXus Hairpin&trade; casing inside uppercase containers */
.nx-brand { text-transform: none !important; }

/* PC/Tablet: Keep 3 or 4 columns wide as long as possible */

@media (max-width: 800px) {
  .nav-inner {
    height: auto;
    padding: 12px 24px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
  }
}

@media (max-width: 992px) {
    .footer-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 40px;
    }
    .footer-col {
        min-width: 150px; /* Ensures columns don't get squashed */
    }
}

@media (max-width: 480px) {
  .footer-inner {
    padding-left: 32px;
    grid-template-columns: 1fr;
  }
}

.blink {
  animation: blinker 0.05s linear infinite;
}

@keyframes blinker {
  9% {
    opacity: 0;
  }
}
.blink-asymmetric {
  animation: asymmetric-blink 1.025s linear infinite;
}

@keyframes asymmetric-blink {
  0%, 95.5% {
    opacity: 1; /* Short "On" time */
  }
5.5%, 100% {
    opacity: 0; /* Long "Off" time */
  }
}

/* Specifically target the blinking text selection */
.blink-asymmetric::selection {
    background-color: var(--gold); /* Or your preferred highlight color */
    color: var(--bg1); /* The text color during selection (usually dark for contrast) */
}

/* For broader support including older Firefox versions */
.blink-asymmetric::-moz-selection {
    background-color: var(--gold);
    color: var(--bg1);
}
.hero-text-side ::selection {
    background-color: rgba(255, 184, 0, 0.3); /* Transparent version of your gold */
    color: var(--white);
}

/* Removes the focus outline which can look like a gold artifact on click */
a:focus, a:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Force the placeholder container to never show a background during selection */
.Hid1-placeholder::selection, 
.Hid1-placeholder *::selection {
    background: transparent !important;
}
/* Kill the focus outline that causes the gold artifacts on click/drag */
a, a:focus, a:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure the placeholder doesn't expand the container height */
.Hid1-placeholder {
    display: inline-flex !important;
    vertical-align: middle;
    line-height: 0 !important;
}

/* Force selection to match background perfectly to prevent 'nub' artifacts */
::selection {
    background-color: rgba(255, 255, 255, 0.1); /* Subtle selection */
}

.blink-asymmetric::selection {
    background-color: var(--bg) !important;
    color: #1a1a1a !important; /* Subliminal color */
}
.hero-text-side, 
.cat-card,
.hero-text-side a {
    /* Forces the element to 'over-paint' the sub-pixel gap */
    outline: 1px solid transparent; 
    backface-visibility: hidden;
    transform: translateZ(0); /* Triggers GPU rasterization for cleaner edges */
}

/* The 'Hard' Fix: Use a negative margin to bridge the 0.56px rounding gap */
.hero-text-side {
    margin-bottom: -1px !important;
}
