/* template.css overrides
================================*/
.banner { padding-top: 41.667%; }
.banner-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  max-height: 300px;
  background: url(../imgs/hero.jpg) 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: #333; }
.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: #000; }
.shipping { visibility: hidden; }
.mir { font-size: 1em; margin: 0; color: #016B04; }
.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; }

/* CSS Custom Properties — 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;
  --bg-dark-2:      #0d0d14;
  --bg-dark-3:      #111118;
  --bg-light-1:     #f5f5f7;
  --bg-light-2:     #fafafa;
  --bg-light-3:     #f0f0f0;
  --surface-dark-1: #0f1a2e;
  --surface-dark-2: #0d1b33;
  --text-primary:   #f0f0f0;
  --text-secondary: #9e9e9e;
  --gray-bg:        #F2F2F2;
  --gray-line:      #E8E8E8;
  --gray-border:    #D1D1D1;
  --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;
}

/* Newegg button standards
================================*/
.btn-primary, .button.button-primary, .ngg-shopall, .ngg-buynow {
  text-transform: none; font-family: var(--ngg-opensans); border: 0;
  background-color: var(--ngg-orange); color: var(--ngg-btn-txt);
}
.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; }
.ngg-shopall, .ngg-buynow { border-radius: 30px; text-align: center; transition: 0.5s; font-weight: 700; font-family: var(--ngg-opensans); }
.ngg-shopall { border-radius: 50px; background-color: var(--ngg-orange); color: var(--ngg-btn-txt); border: 0; padding: 10px 4%; font-weight: 700; text-transform: none; font-size: clamp(1rem, 2vw, 1.5rem); }
.ngg-buynow { padding: 10px 8%; }
.ngg-shopall:hover, .ngg-buynow:hover, .ngg-item-btn a:hover { background-color: var(--ngg-darkorange); transition: 0.35s; }
.btn-primary:hover, .btn-primary:active, .button.button-primary:hover, .button.button-primary:active { background: var(--ngg-darkorange); color: var(--ngg-btn-txt); }

/* Global base — scoped to .section-inner only
================================*/
body { background: var(--bg-dark-1); margin: 0; }
.section-inner {
  max-width: 1920px; margin: 0 auto; overflow: hidden;
  font-size: 14px; font-family: var(--ngg-opensans); color: var(--text-primary);
}
.section-inner * { font-size: max(14px, inherit); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* Hero height cap — never exceeds 400px
================================*/
.lp-hero { max-height: 400px; overflow: hidden; position: relative; width: 100%; }
.lp-hero-bg { width: 100%; height: 400px; background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Scroll reveal
================================*/
.reveal { opacity: 1; transform: none; }
.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; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* Disclaimer */
.disclaimer { font-size: 12px; color: var(--text-secondary); text-align: center; padding: var(--sp-2) clamp(24px, 6vw, 80px); }

/* Responsive breakpoints
================================*/
@media only screen and (max-width: 550px) {
  .items-grid .item-cell { width: 90%; text-align: center; border-bottom: 1px solid #333; padding-bottom: 8%; }
  .item-img > img { max-width: 300px; }
  .items-grid .item-title { height: auto; }
  .lp-hero { max-height: 200px; }
  .lp-hero-bg { height: 200px; }
}
@media only screen and (min-width: 375px) {}
@media only screen and (min-width: 481px) {}
@media only screen and (min-width: 641px) {
  .banner { padding-top: 21.96%; }
  .banner-img { background-position: 100% 0; background-size: 152.7086383601757%; }
  .items-grid .item-cell { width: 19%; margin: 0; }
}
@media only screen and (min-width: 769px) {}
@media only screen and (min-width: 1025px) {}
@media only screen and (min-width: 1440px) {}

/* ── PAGE-SPECIFIC STYLES BELOW THIS LINE ──────────── */

/* Xbox brand tokens (from campaign assets) */
:root {
  --xb-green:      #107C10;
  --xb-black:      #000000;
  --xb-acc-panel:  #1E1E1E;
  --xb-games-panel:#151515;
  --xb-gift-panel: #131212;
  --xb-max:        1366px;
}

/* Light page per mockup — body only gets background */
body { background: #fff; }
.section-inner.xb-page { color: var(--gray-body); background: #fff; padding-bottom: var(--sp-section); }
.xb-page .xb-wrap { max-width: var(--xb-max); margin: 0 auto; padding: 0 clamp(12px, 2.5vw, 32px); box-sizing: border-box; }
.xb-page .xb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.xb-page a:focus-visible { outline: 3px solid var(--ne-yellow); outline-offset: 3px; }

/* Hero — artwork already carries headline/logo/rating, so it is shown uncropped */
.xb-page .xb-hero { margin-top: var(--sp-3); background: var(--xb-black); }
.xb-page .xb-hero img { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center; }

/* Category tiles */
.xb-page .xb-tiles ul { list-style: none; margin: 0; padding: var(--sp-4) 0 var(--sp-2); display: flex; justify-content: center; gap: clamp(16px, 5vw, 64px); }
.xb-page .xb-tiles li { flex: 0 1 220px; }
.xb-page .xb-tiles a { display: block; text-align: center; color: var(--gray-body); }
.xb-page .xb-tile-img { display: block; overflow: hidden; background: var(--xb-black); }
.xb-page .xb-tile-img img { width: 100%; height: auto; transition: transform 0.35s ease; }
.xb-page .xb-tiles a:hover .xb-tile-img img { transform: scale(1.05); }
.xb-page .xb-tile-label { display: block; margin-top: var(--sp-2); font-family: var(--ngg-montserrat); font-weight: 600; font-size: 18px; }
.xb-page .xb-tiles a:hover .xb-tile-label { color: var(--xb-green); }

/* Category sub-banners: copy panel left, 16x9 artwork right */
.xb-page .xb-cat { padding-top: var(--sp-section); scroll-margin-top: 80px; }
.xb-page .xb-banner { display: flex; align-items: stretch; overflow: hidden; min-height: 260px; }
.xb-page .xb-banner-copy { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; padding: var(--sp-4) clamp(20px, 3vw, 48px); color: #fff; }
.xb-page .xb-banner-media { flex: 1 1 50%; position: relative; }
.xb-page .xb-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.xb-page .xb-banner--acc   .xb-banner-copy { background: var(--xb-acc-panel); }
.xb-page .xb-banner--games .xb-banner-copy { background: var(--xb-games-panel); }
.xb-page .xb-banner--gift  .xb-banner-copy { background: var(--xb-gift-panel); }
.xb-page .xb-banner-title { margin: 0 0 var(--sp-1); font-family: var(--ngg-montserrat); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; color: #fff; }
.xb-page .xb-banner-text { margin: 0; max-width: 440px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: #e6e6e6; }
.xb-page .xb-banner-title::before { content: ''; display: block; width: 48px; height: 4px; background: var(--xb-green); margin-bottom: var(--sp-2); }

/* Product grid — 4 per row */
.xb-page .ngg-skus { padding-top: var(--sp-4); }
.xb-page .items-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; }
.xb-page .items-grid .item-cell { width: 23.5%; margin: 0 0 var(--sp-3); padding: 0; float: none; }
.xb-page .item-container { display: flex; flex-direction: column; height: 100%; }
.xb-page .item-img { display: block; aspect-ratio: 1 / 1; padding: var(--sp-2); box-sizing: border-box; background: #fff; }
.xb-page .item-img img { width: 100%; height: 100%; object-fit: contain; margin: 0 auto; }
.xb-page .item-info { display: flex; flex-direction: column; flex: 1; padding: 0 var(--sp-1); }
.xb-page .item-title { margin: var(--sp-1) 0; min-height: 40px; font-weight: 400; }
.xb-page .item-title a { color: var(--gray-body); line-height: 1.45; }
.xb-page .item-title a:hover { color: var(--ne-light-blue); }
.xb-page .price { color: var(--gray-body); min-height: 28px; }
.xb-page .ngg-item-btn { margin-top: auto; width: 100%; }
.xb-page .ngg-item-btn a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 var(--sp-3); font-weight: 700; box-sizing: border-box; }
.xb-page .ngg-btn { margin: var(--sp-1) auto 0; }
.xb-page .ngg-shopall { display: inline-block; min-height: 44px; padding: 10px 48px; font-size: 16px; box-sizing: border-box; }

.xb-page .disclaimer { color: var(--gray-aux-light); margin-top: var(--sp-4); }

@media only screen and (max-width: 900px) {
  .xb-page .items-grid .item-cell { width: 48.5%; }
}
@media only screen and (max-width: 767px) {
  .xb-page .xb-banner { flex-direction: column-reverse; min-height: 0; }
  .xb-page .xb-banner-media img { height: auto; aspect-ratio: 16 / 9; }
  .xb-page .xb-tiles ul { gap: 12px; }
  .xb-page .xb-tile-label { font-size: 15px; }
}
@media only screen and (max-width: 550px) {
  .xb-page .xb-hero { margin-top: var(--sp-2); }
  .xb-page .items-grid .item-cell { width: 48.5%; border-bottom: 0; padding-bottom: 0; text-align: left; }
  .xb-page .item-img > img { max-width: 100%; }
}

/* Dynamic price block (injected by ProductForLandingPage5) */
.xb-page .price .productList { list-style: none; margin: 0; padding: 0; }
.xb-page .price .productList li { list-style: none; margin: 0; padding: 0; }
.xb-page .price .productList li.space { display: none; }
.xb-page .price .originalPrice { color: var(--gray-aux-light); text-decoration: line-through; }
.xb-page .price .finalPrice { font-weight: 700; color: var(--gray-body); }
.xb-page .price .instantSavings { color: var(--gray-aux-light); font-size: 14px; }
.xb-page .price .price-save { margin-top: 4px; }
.xb-page .soldout { color: #cc4e00; font-weight: 700; }
.xb-page .items-grid .item-cell { display: flex; flex-direction: column; }
.xb-page .items-grid .item-container { flex: 1 1 auto; }
.xb-page .ngg-item-btn { padding-top: var(--sp-2); }
.xb-page .items-grid .ngg-item-btn { margin: auto 0 0; }

/* Product image normalization — per-item --img-scale evens out controller sizes
   (standard + Elite shown at the same width; Nano smaller = "smallest Xbox controller ever") */
.xb-page .item-img { overflow: hidden; }
.xb-page .item-img img { transform: scale(var(--img-scale, 1)); transform-origin: center; }

/* CTA hierarchy — same Newegg orange, different weight
   View details = compact secondary pill; Shop all = large primary */
.xb-page .items-grid .ngg-item-btn a {
  display: inline-block; width: auto; min-width: 150px; margin: 0 auto; min-height: 40px; line-height: 40px;
  padding: 0 22px; font-size: 14px; font-weight: 600; border-radius: 40px;
}
.xb-page .ngg-btn { margin: var(--sp-3) auto 0; }
.xb-page .ngg-btn .ngg-shopall {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 300px; min-height: 58px; padding: 0 56px; box-sizing: border-box;
  background-color: var(--ngg-orange); color: var(--ngg-btn-txt); border: 0;
  font-family: var(--ngg-montserrat); font-size: 20px; font-weight: 800; letter-spacing: .01em;
  border-radius: 60px; box-shadow: 0 10px 24px -10px rgba(250,157,40,.6);
}
.xb-page .ngg-btn .ngg-shopall:hover { background-color: var(--ngg-darkorange); color: var(--ngg-btn-txt); transform: translateY(-2px); }
@media only screen and (max-width: 550px) {
  .xb-page .ngg-btn .ngg-shopall { min-width: 0; width: 100%; font-size: 18px; }
}

/* =====================================================================
   XBOX DARK THEME (approved concept) — overrides the light layout above
   ===================================================================== */
:root {
  --xb-page-bg:     #151515;
  --xb-card-bg:     #1F1F1F;
  --xb-tile-bg:     #000000;
  --xb-card-line:   rgba(255,255,255,.08);
  --xb-text:        #EDEDED;
  --xb-text-muted:  #BDBDBD;
  --xb-lime:        #90F910;
  --xb-glow:        rgba(16,124,16,.22);
  --xb-shadow-lift: 0 22px 40px -12px rgba(0,0,0,.85);
  --xb-ease:        cubic-bezier(.2,.8,.2,1);
}
body { background: var(--xb-page-bg); }
.section-inner.xb-page {
  color: var(--xb-text);
  background: radial-gradient(1200px 500px at 50% 0, var(--xb-glow), transparent 70%), var(--xb-page-bg);
}

/* Hero */
.xb-page .xb-hero { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(144,249,16,.35); }

/* Category tiles — Xbox "Explore" cards: lift + zoom on hover, down arrow beside label */
.xb-page .xb-tiles ul { max-width: 960px; margin: 0 auto; padding: var(--sp-6) 0 var(--sp-1); gap: 18px; justify-content: space-between; }
.xb-page .xb-tiles li { flex: 1 1 0; }
.xb-page .xb-tiles a {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: var(--xb-tile-bg); color: var(--xb-text); box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: transform .35s var(--xb-ease), box-shadow .35s;
}
.xb-page .xb-tile-img { position: absolute; inset: 4% 4% 14% 4%; background: transparent; }
.xb-page .xb-tile-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--xb-ease); }
.xb-page .xb-tiles a::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(10,12,10,.95), rgba(10,12,10,0)); pointer-events: none; }
.xb-page .xb-tile-label {
  position: absolute; left: 22px; bottom: 20px; z-index: 2; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 22px var(--ngg-montserrat); letter-spacing: -.01em; color: #fff;
}
.xb-page .xb-tile-down { display: inline-block; font-size: 22px; line-height: 1; color: #fff; transition: transform .35s var(--xb-ease); }
.xb-page .xb-tiles a:hover, .xb-page .xb-tiles a:focus-visible { transform: translateY(-6px) scale(1.03); box-shadow: var(--xb-shadow-lift); }
.xb-page .xb-tiles a:hover .xb-tile-img img { transform: scale(1.06); }
.xb-page .xb-tiles a:hover .xb-tile-label { color: #fff; }
.xb-page .xb-tiles a:hover .xb-tile-down { transform: translateY(4px); }

/* Section banners — art fades into copy panel, soft green glow */
.xb-page .xb-cat { position: relative; }
.xb-page .xb-cat::before { content: ''; position: absolute; left: -10%; top: 0; width: 60%; height: 420px; background: radial-gradient(closest-side, rgba(16,124,16,.28), transparent); pointer-events: none; z-index: 0; }
.xb-page .xb-banner, .xb-page .ngg-skus { position: relative; z-index: 1; }
.xb-page .xb-banner { border-radius: 10px; border: 1px solid var(--xb-card-line); min-height: 340px; background: #000; box-shadow: 0 30px 70px -35px rgba(144,249,16,.35); }
.xb-page .xb-banner-media { position: absolute; inset: 0 0 0 35%; }
.xb-page .xb-banner-copy { position: relative; z-index: 2; max-width: 50%; padding-right: 12%; }
.xb-page .xb-banner--acc .xb-banner-copy,
.xb-page .xb-banner--gift .xb-banner-copy  { background: linear-gradient(90deg, var(--xb-page-bg) 55%, rgba(21,21,21,0)); }
.xb-page .xb-banner--games .xb-banner-copy { background: linear-gradient(90deg, var(--xb-games-panel) 55%, rgba(3,6,31,0)); }
.xb-page .xb-banner-copy::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--xb-green), var(--xb-lime) 40%, transparent); }
.xb-page .xb-banner-title::before { display: none; }
.xb-page .xb-banner-title { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.02em; }

/* Product cards — dark card, white image well, lift + zoom hover (no green stroke) */
.xb-page .items-grid { gap: 16px; justify-content: flex-start; }
.xb-page .items-grid .item-cell { width: calc(25% - 12px); }
.xb-page .item-container {
  background: var(--xb-card-bg); border: 1px solid var(--xb-card-line); border-radius: 10px; overflow: hidden; padding-bottom: 16px;
  transition: transform .35s var(--xb-ease), box-shadow .35s;
}
.xb-page .item-container:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--xb-shadow-lift); }
.xb-page .item-img { background: #fff; margin: 10px; border-radius: 6px; width: auto; }
.xb-page .item-img img { transition: transform .5s var(--xb-ease); }
.xb-page .item-container:hover .item-img img { transform: scale(calc(var(--img-scale, 1) * 1.05)); }
.xb-page .item-info { padding: 0 14px; }
.xb-page .item-title a { color: var(--xb-text); }
.xb-page .item-title a:hover { color: #fff; text-decoration: underline; }
.xb-page .price, .xb-page .price .finalPrice { color: #fff; }
.xb-page .price .originalPrice, .xb-page .price .instantSavings { color: var(--xb-text-muted); }
.xb-page .mir { color: var(--xb-lime); }
.xb-page .disclaimer { color: var(--xb-text-muted); }

@media only screen and (max-width: 900px) {
  .xb-page .items-grid .item-cell { width: calc(50% - 8px); }
}
@media only screen and (max-width: 767px) {
  .xb-page .xb-tiles ul { gap: 10px; padding-top: var(--sp-4); }
  .xb-page .xb-tile-label { left: 12px; bottom: 12px; font-size: 16px; gap: 6px; }
  .xb-page .xb-tile-down { font-size: 16px; }
  .xb-page .xb-banner { min-height: 0; }
  .xb-page .xb-banner-media { position: relative; inset: auto; }
  .xb-page .xb-banner-copy { max-width: none; padding-right: 20px; }
  .xb-page .xb-banner--acc .xb-banner-copy, .xb-page .xb-banner--gift .xb-banner-copy { background: var(--xb-page-bg); }
  .xb-page .xb-banner--games .xb-banner-copy { max-width: none; flex: 1 1 auto; padding-right: 20px; background: var(--xb-games-panel); }
}
@media only screen and (max-width: 550px) {
  .xb-page .items-grid .item-cell { width: calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .xb-page .xb-tiles a:hover, .xb-page .item-container:hover { transform: none; }
}

/* Price block spacing — feed markup (was / final / savings / Save badge) */
.xb-page .price .productList li.finalPrice { margin: 2px 0 0; line-height: 1.2; }
.xb-page .price .productList li.instantSavings { margin: 2px 0 0; line-height: 1.4; }
.xb-page .price .productList li.price-save { margin: 10px 0 0; }

/* Games banner — shift artwork right so the left-most game (Minecraft) stays visible */
.xb-page .xb-banner--games .xb-banner-media { left: 38%; }
.xb-page .xb-banner--games .xb-banner-copy { box-sizing: border-box; flex: 0 0 40%; }
.xb-page .xb-banner--games .xb-banner-copy { max-width: 40%; padding-right: 4%; background: linear-gradient(90deg, var(--xb-games-panel) 94%, rgba(3,6,31,0)); }
@media only screen and (max-width: 767px) {
  .xb-page .xb-banner--games .xb-banner-media { left: auto; }
  .xb-page .xb-banner--games .xb-banner-copy { max-width: none; flex: 1 1 auto; padding-right: 20px; background: var(--xb-games-panel); }
}
