/* =====================================================
   BASE — template.css overrides
   ===================================================== */
.banner { padding-top: 41.667%; }
.banner-img {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  max-height: 300px; background: no-repeat 0 0; background-size: 289.722222%;
}
.header2021-logo-img > img { width: 102px !important; height: auto; }
.price { margin: 0 0 0.825em 0; }
.price-save-dollar,.price-save-label,.price-save-percent { position: relative; background: #cc4e00; color: #fff; font-weight: 700; font-size: 14px; }
.price-save-percent:after { left: 100%; border-bottom: 19px solid #cc4e00; border-right: 10px solid transparent; margin-bottom: 0; }
.price-save-label { padding: 2px 0 1px 6px; }
.price-save-dollar { padding: 2px 0 1px 2px; }
.price-save-percent { padding: 2px 6px 1px 2px; }
.price-save-label:before,.price-save-percent:after { content: ''; position: absolute; bottom: 0; width: 0; height: 0; }
.item-cell { border-bottom: none; }
.item-promo { margin-top: 1em; }
.item-promo-code { border-color: #888; }
.item-promo-title span { color: #ccc; }
.item-promo-info { color: #cc4e00; }
.item-promo-code { padding: 1.5em 5px 1em 5px; height: auto; color: #cc4e00; }
.item-promo-code-save { display: inline; }
li.mir { display: none; }
.instantSavings, .mir { display: block; }
.finalPrice { font-size: 1.6em; }
.instantSavings { font-size: 0.925em; }
.finalPrice, .instantSavings { color: #fff; }
.shipping { visibility: hidden; }
.mir { font-size: 1em; margin: 0; color: #4caf50; }
.header .logo { width: 125px; }
.items-grid:after { background: none; }
.item-title a { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.item-container:hover { opacity: 1; filter: alpha(opacity=100); transition: all 0.2s ease-in-out; }

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --ne-logo-blue:      #09144F;
  --ne-blue:           #002D6A;
  --ne-light-blue:     #084BA6;
  --ne-yellow:         #FA9D28;
  --ne-lt-orange:      #FF8500;
  --ne-orange:         #F06C00;
  --ne-navy:           #00283A;
  --bg-dark-1:         #0a0a0f;
  --text-primary:      #f0f0f0;
  --text-secondary:    #9e9e9e;
  --gray-aux-light:    #6E6E6E;
  --gray-body:         #212121;
  --ngg-orange:        #FA9D28;
  --ngg-darkorange:    #FF8500;
  --ngg-btn-txt:       #212121;
  --ngg-opensans:      'Open Sans', sans-serif;
  --ngg-montserrat:    'Montserrat', sans-serif;
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-6: 48px; --sp-8: 64px;
  --sp-section:    40px;
  --sp-section-lg: 64px;
  /* Page tokens */
  --nv-green:      #77b900;
  --nv-green-dark: #5d9200;
  --nv-black:      #000000;
  --nv-gray:       #222222;
}

/* =====================================================
   NEWEGG BUTTON STANDARDS
   ===================================================== */
.btn-primary, .button.button-primary, .ngg-shopall, .ngg-buynow {
  text-transform: none !important; font-family: var(--ngg-opensans); border: 0;
  background-color: var(--ngg-orange); color: var(--ngg-btn-txt);
  min-height: 0 !important;
}
.ngg-btn { border: 0; background: none; width: 100%; margin: 3% auto; text-align: center; }
.ngg-item-btn { margin: auto; text-align: center; }
.ngg-item-btn a { border-radius: 35px; width: 100%; letter-spacing: 0; font-size: 14px; min-height: 0 !important; }
.ngg-shopall, .ngg-buynow {
  border-radius: 50px; text-align: center; transition: background 0.35s;
  font-weight: 700; font-family: var(--ngg-opensans);
}
.ngg-shopall {
  background-color: var(--ngg-orange); color: var(--ngg-btn-txt); border: 0;
  padding: 13px 40px; font-weight: 700; text-transform: none !important;
  font-size: 16px; display: inline-block; line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0; word-spacing: normal;
}
.ngg-buynow { padding: 10px 8%; }
.ngg-shopall:hover, .ngg-buynow:hover, .ngg-item-btn a:hover {
  background-color: var(--ngg-darkorange); transition: background 0.25s; color: var(--ngg-btn-txt);
}
.btn-primary:hover, .btn-primary:active,
.button.button-primary:hover, .button.button-primary:active {
  background: var(--ngg-darkorange); color: var(--ngg-btn-txt);
}

/* =====================================================
   GLOBAL SCOPE — .section-inner only
   NEVER apply color/font rules to bare body, *, a, p, h-tags
   Newegg header/footer live outside .section-inner
   ===================================================== */
body { background: #000; margin: 0; padding: 0; }
.section-inner {
  max-width: 1920px; margin: 0 auto;
  overflow: hidden; font-size: 14px;
  font-family: var(--ngg-opensans); color: #fff;
}
.section-inner * { font-size: max(14px, inherit); box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

.items-grid .item-title {height: 4em !important;}

/* Scroll reveal */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.will-reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* =====================================================
   SECTION 1 — FRAMES WIN GAMES
   ===================================================== */
.nv-hero {
  background: var(--nv-black);
  padding: 40px 60px;
}
.nv-hero-inner {
  max-width: 1640px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 26px; justify-content: center;
}
.nv-hero-text {
  flex: 0 0 638px;
  display: flex; flex-direction: column; gap: 40px;
  padding: 20px; color: #fff; justify-content: center;
}
.nv-hero-titles { display: flex; flex-direction: column; gap: 10px; }
.nv-hero-h1 {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 36px; margin: 0; color: #fff; line-height: 1.22;
}
.nv-hero-sub {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 24px; margin: 0; color: #fff; line-height: 1.22;
}
.nv-hero-body {
  font-family: var(--ngg-opensans); font-weight: 400;
  font-size: 20px; color: #fff; line-height: 1.6; margin: 0;
}
/* Green CTA — override template.css (.page-btn width/min-height) and buttons.css (.btn border/background/box-shadow) */
.nv-hero-cta {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: var(--nv-green) !important; color: #000 !important;
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 16px; padding: 12px 40px;
  border-radius: 40px;
  text-decoration: none; transition: background 0.3s;
  align-self: flex-start;
  width: auto !important; max-width: none !important; min-height: 0 !important;
  line-height: 1.4; white-space: nowrap; text-transform: none !important;
  border: none !important; outline: none !important; box-shadow: none !important;
  letter-spacing: 0; word-spacing: normal;
}
.nv-hero-cta:hover,
.nv-hero-cta:active,
.nv-hero-cta:visited {
  border: none !important; outline: none !important; box-shadow: none !important;
}
.nv-hero-cta .fa { color: #000; font-size: 16px; line-height: 1; }
.nv-hero-cta:hover { background: var(--nv-green-dark) !important; color: #000 !important; }
.nv-hero-cta:focus-visible { outline: 3px solid var(--ne-yellow) !important; outline-offset: 3px; }
.nv-hero-img {
  flex: 0 0 687px; height: 690px; overflow: hidden; position: relative;
}
.nv-hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* =====================================================
   SECTION 2 — GPU OF CHOICE FOR VALORANT PROS
   ===================================================== */
.nv-gpu-choice {
  background: var(--nv-black);
  position: relative; overflow: hidden; min-height: 686px;
}
.nv-gpu-choice-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.nv-gpu-choice-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.nv-gpu-choice-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.2) 70%, transparent 100%);
  z-index: 1;
}
.nv-gpu-choice-inner {
  max-width: 1920px; margin: 0 auto; padding-left: 144px; padding-right: 40px;
  position: relative; z-index: 2;
  display: flex; align-items: center; min-height: 686px;
}
.nv-gpu-choice-text {
  display: flex; flex-direction: column; gap: 40px;
  color: #fff; max-width: 600px; padding: 40px 20px;
}
.nv-gpu-choice-h2 {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 36px; margin: 0; color: #fff; line-height: 1.3;
}
.nv-gpu-choice-body {
  font-family: var(--ngg-opensans); font-weight: 400;
  font-size: 20px; color: #fff; line-height: 1.6; margin: 0;
}
.nv-gpu-choice-source {
  font-family: var(--ngg-opensans); font-size: 14px !important;
  color: rgba(255,255,255,0.65); margin-top: 10px; display: block;
}

/* =====================================================
   SECTIONS 3 & 4 — PERFORMANCE + RESPONSIVENESS
   ===================================================== */
.nv-perf-section {
  background: var(--nv-black);
  padding: var(--sp-section) 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; overflow: hidden;
}
.nv-perf-section.nv-dark-gray { background: var(--nv-gray); }
.nv-perf-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 30px;
  text-align: center; padding-bottom: 20px;
  max-width: 1302px; width: 100%;
}
.nv-perf-eyebrow {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 24px; color: #fff; margin: 0; line-height: 1.2;
}
.nv-perf-h2 {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 36px; color: #fff; margin: 0; line-height: 1.2;
}
.nv-perf-body {
  font-family: var(--ngg-opensans); font-weight: 400;
  font-size: 18px; color: #fff; margin: 0;
  line-height: 1.6; max-width: 943px;
}
.nv-perf-img {
  max-width: 908px; width: 100%; margin: 0 auto;
}
.nv-perf-img img {
  width: 100%; height: auto; object-fit: cover; max-height: 489px;
}

/* Video box — 16:9, same max-width as .nv-perf-img */
.video-box-wrap {
  max-width: 908px; width: 100%; margin: 0 auto;
}
.video-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-box iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

/* =====================================================
   SECTION 5 — BUY GEFORCE RTX
   ===================================================== */
.nv-buy-section {
  background: var(--nv-black);
  padding: var(--sp-section) 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.nv-buy-title {
  font-family: var(--ngg-opensans); font-weight: 700;
  font-size: 36px; color: #fff;
  text-align: center; margin: 0; line-height: 1.2;
}
.nv-skus-wrap { width: 100%; max-width: 1440px; }

/* Product grid — dark theme, progressive column layout */
.nv-skus-wrap .items-grid {
  background: transparent;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 16px;
  padding: 0; list-style: none; margin: 0;
}

/* Item cell — no padding; all padding lives in .item-info only */
.nv-skus-wrap .item-cell {
  background: #1a1a1a; border-radius: 8px;
  overflow: hidden;
  border-bottom: none !important;
  padding: 0 !important;   /* override any template margin/padding on the cell */
  margin: 0 !important;
}
.nv-skus-wrap .item-container {
  display: flex; flex-direction: column; height: 100%;
}

/* Image container — white square background, fills full cell width */
.nv-skus-wrap .item-img {
  display: block; overflow: hidden;
  background: #fff;
  width: 100%;
  aspect-ratio: 1 / 1;    /* square; height adapts with width */
}
.nv-skus-wrap .item-img img {
  width: 100%; height: 100%; max-width: 300px !important;
  object-fit: contain; display: block;
  transition: transform 0.3s ease;
}
.nv-skus-wrap .item-container:hover .item-img img { transform: scale(1.04); }

/* Content area — padding only here, never on the cell itself */
.nv-skus-wrap .item-info {
  padding: 14px 12px 16px; display: flex;
  flex-direction: column; flex: 1; gap: 8px;
}
.nv-skus-wrap .item-title a {
  color: #fff !important; font-size: 16px !important;
  line-height: 1.75; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-transform: none !important;
}
.nv-skus-wrap .item-title a:hover { color: var(--ngg-orange) !important; }
.nv-skus-wrap .price { color: #fff !important; margin-bottom: 0; margin-top: auto; }
.nv-skus-wrap .finalPrice { color: #fff !important; font-size: 1.4em !important; }
.nv-skus-wrap .instantSavings { color: var(--ngg-orange) !important; }

/* Strikethrough / was-price — readable on dark bg */
.nv-skus-wrap .originalPrice,
.nv-skus-wrap .price del,
.nv-skus-wrap .price s,
.nv-skus-wrap .price strike,
.nv-skus-wrap .originalPrice a { color: #EFEFEF !important; }

.nv-skus-wrap .btn-area { margin-top: 10px; }
.nv-skus-wrap .btn-primary {
  background: var(--ngg-orange); color: var(--ngg-btn-txt);
  border-radius: 35px; padding: 8px 16px;
  font-size: 14px !important; display: inline-block; width: auto;
  text-align: center; font-weight: 700;
  transition: background 0.25s;
  white-space: nowrap; text-transform: none !important;
  letter-spacing: 0; word-spacing: normal;
}
.nv-skus-wrap .btn-primary:hover { background: var(--ngg-darkorange); }
.nv-skus-wrap .btn-primary:focus { outline: 3px solid var(--ne-yellow); outline-offset: 3px; }

.nv-ctas-wrap {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}
.nv-ctas-wrap .ngg-shopall:focus { outline: 3px solid var(--ne-yellow); outline-offset: 3px; }

/* =====================================================
   SECTION 6 — LOGOS & DISCLAIMERS
   ===================================================== */
.nv-logos-section {
  background: var(--nv-black);
  padding: var(--sp-section) 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 40px;
}
.nv-logo-divider {
  width: 100%; max-width: 1199px; height: 1px; background: #3a3a3a;
}
.nv-logos-row {
  display: flex; align-items: center;
  justify-content: center; gap: 60px; flex-wrap: wrap;
}
.nv-logo-valorant { max-height: 54px; width: auto; }
.nv-logo-riot     { max-height: 62px; width: auto; }
.nv-logo-nvidia   { max-height: 96px; width: auto; }
.nv-disclaimer {
  font-family: var(--ngg-opensans); font-size: 12px !important;
  color: var(--gray-aux-light); text-align: center;
  max-width: 1199px; line-height: 1.6; margin: 0;
}

/* =====================================================
   ITEM GRID — Progressive column breakpoints
   4 per row → 3 → 2 → 1, with 75% width at single column
   ===================================================== */

/* 4 per row — wide desktop */
@media only screen and (min-width: 1001px) {
  .nv-skus-wrap .item-cell {
    flex: 0 0 calc(25% - 13px);
    max-width: calc(25% - 13px);
  }
}

/* 3 per row — narrow desktop / large tablet */
@media only screen and (min-width: 641px) and (max-width: 1000px) {
  .nv-skus-wrap .item-cell {
    flex: 0 0 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

/* 2 per row — tablet */
@media only screen and (min-width: 451px) and (max-width: 640px) {
  .nv-skus-wrap .item-cell {
    flex: 0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}

/* 1 per row — small mobile, 75% width centered, defeat template margins */
@media only screen and (max-width: 450px) {
  .nv-skus-wrap .item-cell {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    width: 75% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =====================================================
   RESPONSIVE — Desktop mid-range: 1101px–1400px
   ===================================================== */
@media only screen and (min-width: 1101px) and (max-width: 1400px) {
  .nv-hero { padding: 40px 40px; }
  .nv-hero-text { flex: 0 0 44%; gap: 30px; }
  .nv-hero-img { flex: 0 0 50%; height: 560px; }
  .nv-hero-h1 { font-size: 30px; }
  .nv-hero-body { font-size: 18px; }

  .nv-gpu-choice-inner { padding-left: 80px; }
  .nv-gpu-choice-h2 { font-size: 30px; }
}

/* Tablet / narrow desktop: 801px–1100px */
@media only screen and (min-width: 801px) and (max-width: 1100px) {
  .nv-hero { padding: 40px 24px; }
  .nv-hero-inner { gap: 16px; }
  .nv-hero-text { flex: 0 0 46%; gap: 24px; padding: 16px; }
  .nv-hero-img { flex: 0 0 48%; height: 420px; }
  .nv-hero-h1 { font-size: 26px; }
  .nv-hero-sub { font-size: 20px; }
  .nv-hero-body { font-size: 16px; }

  .nv-gpu-choice-inner { padding-left: 40px; padding-right: 24px; }
  .nv-gpu-choice-text { max-width: 60%; gap: 28px; }
  .nv-gpu-choice-h2 { font-size: 26px; }
  .nv-gpu-choice-body { font-size: 17px; }
}

/* =====================================================
   RESPONSIVE — 800px and below = mobile
   ===================================================== */
@media only screen and (max-width: 800px) {
  /* Section 1 */
  .nv-hero { padding: 28px 20px; }
  .nv-hero-inner { flex-direction: column; gap: 0; }
  .nv-hero-img { flex: none; width: 100%; height: 280px; order: -1; }
  .nv-hero-text { flex: none; width: 100%; gap: 24px; padding: 24px 0 0 0; }
  .nv-hero-h1 { font-size: 28px !important; }
  .nv-hero-sub { font-size: 20px !important; }
  .nv-hero-body { font-size: 16px !important; }
  .nv-hero-cta { font-size: 15px; padding: 11px 28px; }

  /* Section 2 */
  .nv-gpu-choice { min-height: 420px; }
  .nv-gpu-choice-inner { padding-left: 20px; padding-right: 20px; min-height: 420px; }
  .nv-gpu-choice-overlay { background: rgba(0,0,0,0.72); }
  .nv-gpu-choice-text { gap: 20px; padding: 28px 0; max-width: 100%; }
  .nv-gpu-choice-h2 { font-size: 26px !important; }
  .nv-gpu-choice-body { font-size: 16px !important; }

  /* Sections 3 & 4 */
  .nv-perf-eyebrow { font-size: 20px !important; }
  .nv-perf-h2 { font-size: 28px !important; }
  .nv-perf-body { font-size: 15px !important; }

  /* Section 5 */
  .nv-buy-title { font-size: 28px !important; }
  .nv-ctas-wrap { flex-direction: column; align-items: center; gap: 14px; }
  .nv-ctas-wrap .ngg-shopall { width: auto; }

  /* Section 6 */
  .nv-logos-row { gap: 28px; }
  .nv-logo-valorant { max-height: 40px; }
  .nv-logo-riot     { max-height: 46px; }
  .nv-logo-nvidia   { max-height: 72px; }
}

/* Tablet: 601px–800px */
@media only screen and (min-width: 601px) and (max-width: 800px) {
  .nv-hero-img { height: 340px; }
}

/* Small mobile: ≤ 450px (floor at 375px) */
@media only screen and (max-width: 450px) {
  .nv-hero { padding: 20px 14px; }
  .nv-hero-img { height: 220px; }
  .nv-hero-h1 { font-size: 22px !important; }
  .nv-hero-sub { font-size: 17px !important; }
  .nv-hero-body { font-size: 14px !important; }
  .nv-hero-cta { font-size: 14px; padding: 10px 22px; }

  .nv-gpu-choice { min-height: 340px; }
  .nv-gpu-choice-inner { padding-left: 14px; padding-right: 14px; min-height: 340px; }
  .nv-gpu-choice-h2 { font-size: 20px !important; }
  .nv-gpu-choice-body { font-size: 14px !important; }

  .nv-perf-eyebrow { font-size: 17px !important; }
  .nv-perf-h2 { font-size: 22px !important; }
  .nv-perf-body { font-size: 14px !important; }

  .nv-buy-title { font-size: 22px !important; }
  .nv-ctas-wrap .ngg-shopall { font-size: 14px; }

  .nv-logos-row { gap: 16px; }
  .nv-logo-valorant { max-height: 32px; }
  .nv-logo-riot     { max-height: 36px; }
  .nv-logo-nvidia   { max-height: 56px; }
  .nv-disclaimer { font-size: 11px !important; }
}

/* Large desktop: 1440px+ */
@media only screen and (min-width: 1440px) {
  .nv-hero { padding: 40px 80px; }
  .nv-gpu-choice-inner { padding-left: 180px; }
}
