
/* Norms Industrial TCG Collector Design System — /sales & /livestream-deals */
:root {
  --ns-red: #9d3435;
  --ns-red-dark: #7d2526;
  --ns-slate: #111827;
  --ns-deep: #0e1421;
  --ns-concrete: #f3f2f2;
  --ns-card: #ffffff;
  --ns-border: #cbd5e1;
  --ns-ink: #0f172a;
  --ns-muted: #475569;
  --ns-gold: #d97706;
  --ns-gold-hi: #f59e0b;
}

.ns-wrap {
  background: var(--ns-concrete);
  color: var(--ns-ink);
  min-height: 80vh;
  padding-bottom: 56px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#wrap[data-theme="dark"] .ns-wrap,
.ns-wrap[data-theme="dark"] {
  background: #0e1421;
  color: #f8fafc;
}

.ns-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 16px 32px 16px;
}

.ns-display {
  font-family: 'Oswald', 'Roboto Condensed', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Breadcrumb & Pill Dock */
.ns-crumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
}
.ns-crumb-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #111827 !important;
  text-decoration: none !important;
}
.ns-crumb-link:hover { border-color: #9d3435; color: #9d3435 !important; }
.ns-crumb-link.is-active { background: #9d3435; border-color: #9d3435; color: #ffffff !important; }
#wrap[data-theme="dark"] .ns-crumb-link:not(.is-active) {
  background: #1e293b; border-color: #334155; color: #e2e8f0 !important;
}

/* Hero Banner Card */
.ns-hero-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #9d3435;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  margin-bottom: 20px;
  background: #0e1421;
}
.ns-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.ns-hero-mobile-cap {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid rgba(157, 52, 53, 0.65);
}

/* IRS Section 179 Strip */
.ns-sec179-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #9d3435;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
#wrap[data-theme="dark"] .ns-sec179-card {
  background: #1e293b; border-color: #334155; color: #f8fafc;
}
.ns-sec179-steps {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 768px) {
  .ns-sec179-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ns-sec179-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
#wrap[data-theme="dark"] .ns-sec179-step {
  background: #111827; border-color: #334155; color: #cbd5e1;
}

/* KPI Strip */
.ns-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .ns-kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ns-kpi-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
#wrap[data-theme="dark"] .ns-kpi-box {
  background: #1e293b; border-color: #334155; color: #f8fafc;
}
.ns-kpi-val {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #9d3435;
  line-height: 1.1;
}
#wrap[data-theme="dark"] .ns-kpi-val { color: #fca5a5; }
.ns-kpi-lbl { font-size: 12px; font-weight: 700; color: #475569; margin-top: 3px; text-transform: uppercase; }
#wrap[data-theme="dark"] .ns-kpi-lbl { color: #94a3b8; }

/* Horizontal Pill Switcher (Drops 1-6 + Vault Category Filters) */
.ns-pill-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 2px 12px 2px;
  scrollbar-width: none;
}
.ns-pill-rail::-webkit-scrollbar { display: none; }
.ns-pill-btn {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.15s ease;
}
.ns-pill-btn:hover { border-color: #9d3435; }
.ns-pill-btn.is-active {
  background: #9d3435;
  border-color: #9d3435;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(157, 52, 53, 0.25);
}
#wrap[data-theme="dark"] .ns-pill-btn:not(.is-active) {
  background: #1e293b; border-color: #334155; color: #e2e8f0;
}

/* TCG Collector Cards (3 Rarity Tiers + Claimed State) */
.ns-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 600px) { .ns-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ns-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ns-card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ns-swipe-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.ns-swipe-rail > .ns-tcg-card {
  flex: 0 0 285px;
  scroll-snap-align: start;
}

.ns-tcg-card {
  position: relative;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ns-tcg-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); }
#wrap[data-theme="dark"] .ns-tcg-card {
  background: #1e293b;
  color: #f8fafc;
}

/* Tier 1: Brushed Collector Gold + Burgundy Frame (1-of-1 Livestream Vault Drop) */
.ns-tcg-card--vault {
  border: 2.5px solid #d97706;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.16), inset 0 0 0 2px rgba(157, 52, 53, 0.25);
}
.ns-tcg-hdr--vault {
  background: linear-gradient(90deg, #111827 0%, #3b1316 58%, #92400e 100%);
  color: #fef3c7;
}

/* Tier 2: Void Black + Burgundy Frame (Doorbuster & Logical Rig Bundles) */
.ns-tcg-card--doorbuster {
  border: 2.5px solid #9d3435;
  box-shadow: 0 8px 24px rgba(157, 52, 53, 0.20);
}
.ns-tcg-hdr--doorbuster {
  background: linear-gradient(90deg, #111827 0%, #9d3435 100%);
  color: #ffffff;
}

/* Tier 3: Studio Steel + Red Top Strip (Weekly Flash Pool) */
.ns-tcg-card--flash {
  border: 1.5px solid #cbd5e1;
  border-top: 4px solid #9d3435;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
#wrap[data-theme="dark"] .ns-tcg-card--flash { border-color: #334155; border-top: 4px solid #9d3435; }
.ns-tcg-hdr--flash {
  background: #f8fafc;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}
#wrap[data-theme="dark"] .ns-tcg-hdr--flash {
  background: #0f172a; color: #f1f5f9; border-bottom-color: #334155;
}

.ns-tcg-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Pure #FFFFFF Product Photo Window (TASTE-01 compliance in Light & Dark Mode) */
.ns-tcg-stage {
  position: relative;
  background: #ffffff !important;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}
.ns-tcg-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ns-badge-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #9d3435;
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.ns-badge-qty {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: #111827;
  color: #fbbf24;
  border: 1px solid #d97706;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
}

/* eBay-Style CLAIMED / SOLD Stamp */
.ns-tcg-card--claimed {
  opacity: 0.88;
  border-color: #64748b !important;
}
.ns-tcg-card--claimed .ns-tcg-stage img {
  filter: grayscale(0.75) opacity(0.72);
}
.ns-claimed-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(157, 52, 53, 0.94);
  color: #ffffff;
  border: 3px solid #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 20px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 4;
}

.ns-tcg-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.ns-tcg-title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.ns-sku-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  margin-bottom: 8px;
}
#wrap[data-theme="dark"] .ns-sku-pill {
  background: #0f172a; color: #cbd5e1; border-color: #334155;
}
.ns-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  margin-bottom: 10px;
}
.ns-price-sale {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #9d3435;
}
#wrap[data-theme="dark"] .ns-price-sale { color: #fca5a5; }
.ns-price-msrp {
  font-size: 14px;
  text-decoration: line-through;
  color: #64748b;
}
#wrap[data-theme="dark"] .ns-price-msrp { color: #94a3b8; }
.ns-price-save {
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 4px;
}

/* 48px+ Gloved Touch Buttons */
.ns-btn-primary {
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #9d3435;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ns-btn-primary:hover { background: #7d2526; }
.ns-btn-secondary {
  min-height: 44px;
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  cursor: pointer;
  margin-top: 7px;
}
#wrap[data-theme="dark"] .ns-btn-secondary {
  background: #0f172a; border-color: #334155; color: #e2e8f0 !important;
}
.ns-btn-disabled {
  min-height: 48px;
  width: 100%;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #334155;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 13px;
  cursor: not-allowed;
}

/* Custom Deal PDP Split Hero (9:16 Video + Buy Box) */
.ns-deal-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
@media (min-width: 900px) {
  .ns-deal-pdp-grid {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }
}
.ns-video-shell {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0e1421;
  border: 3px solid #d97706;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.30);
}
.ns-video-shell img, .ns-video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.ns-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(157, 52, 53, 0.94);
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  z-index: 3;
}
.ns-buybox-panel {
  background: #ffffff;
  border: 2px solid #d97706;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}
#wrap[data-theme="dark"] .ns-buybox-panel {
  background: #1e293b; border-color: #d97706; color: #f8fafc;
}
.ns-section-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 28px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #9d3435;
}
.ns-toast {
  position: fixed;
  bottom: 84px;
  right: 20px;
  z-index: 1080;
  background: #111827;
  color: #ffffff;
  border: 2px solid #9d3435;
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 700;
  display: none;
  max-width: 340px;
}
.ns-transcript-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 22px;
}
#wrap[data-theme="dark"] .ns-transcript-box {
  background: #1e293b; border-color: #334155; color: #e2e8f0;
}
.ns-transcript-lines {
  max-height: 310px;
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ns-ts-row {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f8fafc;
}
#wrap[data-theme="dark"] .ns-ts-row { background: #111827; }
.ns-ts-badge {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #9d3435;
  flex-shrink: 0;
  padding-top: 2px;
}
#wrap[data-theme="dark"] .ns-ts-badge { color: #fca5a5; }
#wrap[data-theme="dark"] #ns-vault-search,
#wrap[data-theme="dark"] #ns-vault-sort {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
#wrap[data-theme="dark"] .ns-deal-price-box {
  background: #0f172a !important;
  border-color: #475569 !important;
}
#wrap[data-theme="dark"] .ns-qc-strip {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
#wrap[data-theme="dark"] .ns-buybox-panel a[style*="9d3435"],
#wrap[data-theme="dark"] .ns-tcg-body li a {
  color: #fca5a5 !important;
}

/* Gripedia-Identical Fixed 52x52px Floating Lighting Mode Toggle */
.floating-lighting-hud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #9d3435;
  background: #111827;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.floating-lighting-hud:hover { transform: scale(1.06); }
#wrap[data-theme="light"] .floating-lighting-hud {
  background: #111827;
  color: #ffffff;
  border-color: #9d3435;
}
#wrap[data-theme="dark"] .floating-lighting-hud {
  background: #f3f2f2;
  color: #111827;
  border-color: #f59e0b;
}

/* Locked Next-Week Mystery Teaser & Deal PDP Conversion Strips */
.ns-teaser-card {
  margin-top: 22px;
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #f8fafc;
  border: 2px dashed #d97706;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ns-qc-strip {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}
@media (min-width: 600px) {
  .ns-qc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ns-mobile-sticky-bar {
  display: none;
}
@media (max-width: 767px) {
  .has-ns-sticky-cta { padding-bottom: 84px; }
  .has-ns-sticky-cta ~ .floating-lighting-hud { bottom: 84px; }
  .ns-mobile-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    background: #111827;
    color: #ffffff;
    border-top: 2px solid #9d3435;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  }
}
