/* Redesign v2, S4 product: product pages (product.php, and amount-page.php through it). Loaded after rd-core.css only while
   layout/redesign.php turns 'product' on; every rule starts with .nx-rd-product. Same language as the v2 home and the S3 hub. The pack
   picker and the buy box frame follow the hub; the payment column inside (.prod-checkout, ck-*) is S5 money and keeps its look. */
/* 2026-11-29 P1: every selector starts at html body.nx-rd-product (0,x,2). The page bundles style the same blocks as
   body.nx-game-hub ... (0,x,1), often with !important, which beat the plain .nx-rd-product rules, so most of S3/S4 never showed. */
html body.nx-rd-product{--g:#45F882;--gh:#6BFA9C;--gi:#03140A;--ga:rgba(69,248,130,.12);--s1:#0D1210;--s2:#131A16;--s3:#1A241E;--ln:#1F2D25;
  --ln2:#2F4337;--ln3:#3B5546;--tx:#EEF5F0;--tx2:#A7B7AD;--tx3:#8A9E92;--ez:cubic-bezier(.22,1,.36,1)}
html body.nx-rd-product :is(.nx4b-step,.nx4b-box,.nxk,.nx4-open,.prod-related-section,.nxpg-card){border:1px solid var(--ln);border-radius:20px;background:var(--s1)}
html body.nx-rd-product :is(.nxk,.nx4-open,.prod-related-section){padding:32px !important}
html body.nx-rd-product :is(.nxk,.nx4-open) :is(h2,.nx4-open-h){margin:0 0 16px;font-size:24px;line-height:1.3;font-weight:800;letter-spacing:-.02em;text-wrap:balance}
html body.nx-rd-product :is(.nxk,.nx4-open,.nxt-pane-body) :is(p,li){max-width:68ch;text-wrap:pretty}
html body.nx-rd-product :is(.nxk,.nx4-open) h3{font-size:16px;line-height:1.5;font-weight:700;color:var(--tx)}
html body.nx-rd-product :is(.nxk,.nx4-open) p{color:var(--tx2);line-height:1.65}
html body.nx-rd-product:lang(ar) :is(h1,h2,h3,h6,.nx4-open-h){letter-spacing:0;line-height:1.45}
html body.nx-rd-product :is(.nx4-pack-price,.nx4-pack-amt,.nx4-pack-per,.nxc-price,.prod-rel-copy .p){font-variant-numeric:tabular-nums}

/* head: the game art band, product title on the v2 scale with the green-grey gradient, breadcrumb as captions */
html body.nx-rd-product .nxp-head{padding-block:120px 32px !important}
html body.nx-rd-product .nxp-head-art{opacity:.55;-webkit-mask-image:linear-gradient(180deg,#000 35%,transparent);mask-image:linear-gradient(180deg,#000 35%,transparent)}
html body.nx-rd-product .nxp-head-img{width:72px;height:72px;border-radius:16px;border:1px solid var(--ln2);box-shadow:0 16px 40px -16px rgba(0,0,0,.9),0 0 32px -12px rgba(69,248,130,.35)}
html body.nx-rd-product .nxc-product-h1{margin:0;font-size:clamp(28px,3.2vw,44px);line-height:1.1;font-weight:800;letter-spacing:-.03em;text-wrap:balance}
html body.nx-rd-product .nxc-product-h1>span:first-child{background:linear-gradient(180deg,#FFFFFF 30%,#B9CCBF);-webkit-background-clip:text;background-clip:text;color:transparent}
html body.nx-rd-product .nxc-h1-game{display:block;margin-top:6px;font-size:16px;line-height:1.5;font-weight:600;letter-spacing:0;color:var(--tx2)}
html body.nx-rd-product:lang(ar) .nxc-product-h1{letter-spacing:0;line-height:1.35}
html body.nx-rd-product .breadcumb-menu{margin-top:12px;font-size:13px;font-weight:600}
html body.nx-rd-product .breadcumb-menu a{color:var(--tx2);transition:color .3s var(--ez)}
html body.nx-rd-product .breadcumb-menu a:hover{color:var(--g)}
html body.nx-rd-product .breadcumb-menu li:last-child{color:var(--tx3)}

/* product card in the buy column */
html body.nx-rd-product .prod-image-box{border:1px solid var(--ln);border-radius:16px;background:var(--s2);overflow:hidden}
html body.nx-rd-product .prod-badge{border-radius:6px;font-weight:800;letter-spacing:.02em}
html body.nx-rd-product .prod-game{font-weight:700;color:var(--g)}
html body.nx-rd-product .prod-title{font-size:24px;line-height:1.3;font-weight:800;letter-spacing:-.02em}
html body.nx-rd-product .nx-delivery-eta{font-size:14px;color:var(--tx2)}
html body.nx-rd-product .nx4b-type{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border:1px solid var(--ln2);border-radius:999px;font-size:13px;font-weight:700;color:var(--tx)}

/* step card + packs */
html body.nx-rd-product .nx4b-step{padding:24px !important}
html body.nx-rd-product .nx4b-step-h{font-size:20px;line-height:1.4;font-weight:800;letter-spacing:-.015em}
html body.nx-rd-product:lang(ar) .nx4b-step-h{letter-spacing:0}
html body.nx-rd-product .nx4b-num{border-color:rgba(69,248,130,.5);color:var(--g);font-weight:800}
html body.nx-rd-product .nx4-rc-label{font-size:13px;font-weight:700;color:var(--tx2)}
html body.nx-rd-product .nx4-packs{gap:12px}
html body.nx-rd-product .nx4-pack{position:relative;border:1px solid var(--ln);border-radius:16px;background:var(--s2);color:var(--tx);transition:transform .5s var(--ez),border-color .3s var(--ez),box-shadow .5s var(--ez),background-color .3s var(--ez)}
@media (hover:hover){html body.nx-rd-product .nx4-pack:not(.is-oos):hover{transform:translateY(-3px);border-color:rgba(69,248,130,.55);box-shadow:0 20px 40px -20px rgba(0,0,0,.9),0 0 32px -12px rgba(69,248,130,.45)}}
html body.nx-rd-product .nx4-pack:active{transform:scale(.98)}
html body.nx-rd-product .nx4-pack[aria-checked="true"]{border-color:var(--g);background:linear-gradient(180deg,rgba(69,248,130,.16),rgba(69,248,130,.05)),var(--s2);box-shadow:0 0 0 1px var(--g),0 0 40px -12px rgba(69,248,130,.55)}
html body.nx-rd-product .nx4-pack:focus-visible{outline:2px solid #6BFF9C;outline-offset:2px}
html body.nx-rd-product .nx4-pack-amt{font-size:20px;line-height:1.3;font-weight:800;letter-spacing:-.01em;color:var(--tx)}
html body.nx-rd-product .nx4-pack-unit{font-size:13px;font-weight:600;color:var(--tx2)}
html body.nx-rd-product .nx4-pack-per{font-size:12px;color:var(--tx3)}
html body.nx-rd-product .nx4-pack-price{font-size:18px;line-height:1.4;font-weight:800;color:var(--g)}
html body.nx-rd-product .nx4-pack-badge{border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.02em}
html body.nx-rd-product .nx4-pack-type{font-size:12px;color:var(--tx3)}

/* the order column: only its frame follows the hub; the payment part inside is S5 */
html body.nx-rd-product .nx4b-box{padding:24px !important;box-shadow:0 24px 48px -24px rgba(0,0,0,.9)}
html body.nx-rd-product .nx4b-sel-art{border-radius:12px}
html body.nx-rd-product #nx4b-sel-name{font-size:18px;font-weight:800}

/* info, trust row, tabs and product links */
html body.nx-rd-product .nxk-q{padding-block:12px;border-top:1px solid var(--ln)}
html body.nx-rd-product .nxt-trust li{font-size:14px;font-weight:600;color:var(--tx2)}
html body.nx-rd-product .nxt-tab{font-size:16px;font-weight:700;color:var(--tx2);transition:color .3s var(--ez)}
html body.nx-rd-product .nxt-tab:hover,html body.nx-rd-product .nxt-tab[aria-selected="true"]{color:var(--tx)}
html body.nx-rd-product .nxt-pane-h{font-size:22px;line-height:1.3;font-weight:800;letter-spacing:-.02em}
html body.nx-rd-product:lang(ar) .nxt-pane-h{letter-spacing:0;line-height:1.45}
html body.nx-rd-product .nxt-sub{font-size:16px;font-weight:700}
html body.nx-rd-product .nxhl-h{font-size:13px;font-weight:700;color:var(--tx3)}
html body.nx-rd-product .nxt-links a{border:1px solid var(--ln);border-radius:12px;background:var(--s1);color:var(--tx);font-size:14px;font-weight:600;transition:border-color .3s var(--ez),background-color .3s var(--ez),color .3s var(--ez)}
html body.nx-rd-product .nxt-links a:hover{border-color:rgba(69,248,130,.55);background:var(--s2);color:var(--g)}

/* price table, other amounts, keep browsing */
html body.nx-rd-product .nxc-table{overflow:hidden;border:1px solid var(--ln);border-radius:16px;border-collapse:separate;border-spacing:0;background:var(--s1)}
html body.nx-rd-product .nxc-table :is(th,td){padding:12px 16px;border-color:var(--ln)}
html body.nx-rd-product .nxc-table thead th{font-size:13px;font-weight:700;color:var(--tx3);background:var(--s2)}
html body.nx-rd-product .nxc-table .nxc-price{font-weight:800;color:var(--g)}
html body.nx-rd-product .nxc-badge{border-radius:6px;font-weight:700}
html body.nx-rd-product .nxpg-card{padding:20px}
html body.nx-rd-product .nxpg-links{gap:8px}
html body.nx-rd-product .nxpg-links a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--ln2);border-radius:999px;background:var(--s2);font-size:14px;font-weight:700;color:var(--tx);transition:border-color .3s var(--ez),color .3s var(--ez)}
html body.nx-rd-product .nxpg-links a:hover{border-color:var(--g);color:var(--g)}
html body.nx-rd-product .nxpg-all{font-weight:700;color:var(--g)}
html body.nx-rd-product .prod-related-head h3{font-size:24px;line-height:1.3;font-weight:800;letter-spacing:-.02em}
html body.nx-rd-product .prod-related-head .sub-title{font-size:13px;font-weight:700;color:var(--g)}
html body.nx-rd-product :is(.prod-related-prev,.prod-related-next){border:1px solid var(--ln2);border-radius:12px;background:var(--s2);color:var(--tx);transition:border-color .3s var(--ez),color .3s var(--ez)}
html body.nx-rd-product :is(.prod-related-prev,.prod-related-next):hover{border-color:var(--g);color:var(--g)}
html body.nx-rd-product .prod-rel-card{border:1px solid var(--ln);border-radius:16px;background:var(--s2);color:var(--tx);transition:transform .5s var(--ez),border-color .3s var(--ez),box-shadow .5s var(--ez)}
html body.nx-rd-product .prod-rel-card:hover{transform:translateY(-3px);border-color:rgba(69,248,130,.55);box-shadow:0 20px 40px -20px rgba(0,0,0,.9),0 0 32px -12px rgba(69,248,130,.45)}
html body.nx-rd-product .prod-rel-media img{border-radius:12px}
html body.nx-rd-product .prod-rel-copy h6{font-size:15px;font-weight:700}
html body.nx-rd-product .prod-rel-copy .p{font-weight:800;color:var(--g)}

@media (max-width:767px){
  html body.nx-rd-product .nxp-head{padding-block:96px 20px !important}
  html body.nx-rd-product .nxp-head-img{width:56px;height:56px;border-radius:14px}
  html body.nx-rd-product .nxc-product-h1{font-size:26px;line-height:1.15}
  html body.nx-rd-product:lang(ar) .nxc-product-h1{line-height:1.4}
  html body.nx-rd-product :is(.nxk,.nx4-open,.prod-related-section){padding:20px !important;border-radius:16px}
  html body.nx-rd-product :is(.nxk,.nx4-open) :is(h2,.nx4-open-h){font-size:20px}
  html body.nx-rd-product .nx4b-step,html body.nx-rd-product .nx4b-box{padding:16px !important;border-radius:16px}
  html body.nx-rd-product .nx4-pack{border-radius:14px}
  html body.nx-rd-product .nx4-pack-amt{font-size:18px}
  html body.nx-rd-product .nx4-pack-price{font-size:16px}
  html body.nx-rd-product .nxc-table :is(th,td){padding:10px 12px}
}
@media (prefers-reduced-motion:reduce){
  html body.nx-rd-product :is(.nx4-pack,.prod-rel-card){transition:opacity .3s var(--ez),border-color .3s var(--ez)}
  html body.nx-rd-product :is(.nx4-pack,.prod-rel-card):hover{transform:none}
}
/* P1 polish (2026-11-29, owner: every page up to the new home): the pack page head shows the game splash like the game hero (lighter
   veil on the art side, taller band), a solid title and a glowing icon; trust facts and related links read as pills. CSS only. The head rules double their classes
   (0,6,2) to beat the bundle rule body.nx64-product-page:not(..):not(..) .breadcumb-wrapper.nxp-head (0,5,1). */
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head{padding-block:176px 40px !important}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head::after{background:linear-gradient(90deg,rgba(5,11,7,.92) 0%,rgba(5,11,7,.7) 36%,rgba(5,11,7,.22) 70%,rgba(5,11,7,.3) 100%),linear-gradient(180deg,rgba(5,11,7,.1) 0%,rgba(5,11,7,.2) 30%,rgba(5,11,7,.86) 50%,#05070B 70%) !important}
html body.nx-rd-product.nx-rd-product:lang(ar) .breadcumb-wrapper.nxp-head.nxp-head::after{background:linear-gradient(270deg,rgba(5,11,7,.92) 0%,rgba(5,11,7,.7) 36%,rgba(5,11,7,.22) 70%,rgba(5,11,7,.3) 100%),linear-gradient(180deg,rgba(5,11,7,.1) 0%,rgba(5,11,7,.2) 30%,rgba(5,11,7,.86) 50%,#05070B 70%) !important}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head::before{background:none !important}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .breadcumb-content{align-items:center;column-gap:20px}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .nxp-head-img{width:88px !important;height:88px !important;max-width:88px !important;max-height:88px !important;border-radius:22px !important;border-color:rgba(69,248,130,.4);box-shadow:0 24px 56px -20px rgba(0,0,0,.95),0 0 48px -12px rgba(69,248,130,.5)}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .nxc-product-h1{font-size:clamp(30px,3.6vw,52px) !important;line-height:1.06}
html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .nxc-product-h1>span:first-child{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:#FFFFFF;text-shadow:0 2px 24px rgba(0,0,0,.6)}
html body.nx-rd-product .nxt-trust{gap:12px}
html body.nx-rd-product .nxt-trust li{min-height:44px;padding:0 14px;border:1px solid var(--ln);border-radius:999px;background:var(--s1)}
html body.nx-rd-product .nxt-trust li svg{color:var(--g)}
html body.nx-rd-product .nxt-related-list{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
html body.nx-rd-product .nxt-related-list a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--ln2);border-radius:999px;background:var(--s1);font-size:14px;font-weight:600;color:var(--tx);transition:border-color .3s var(--ez),color .3s var(--ez)}
html body.nx-rd-product .nxt-related-list a:hover{border-color:var(--g);color:var(--g)}
@media (max-width:767px){
  html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head{padding-block:120px 24px !important}
  html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head::after,html body.nx-rd-product.nx-rd-product:lang(ar) .breadcumb-wrapper.nxp-head.nxp-head::after{background:linear-gradient(180deg,rgba(5,11,7,.2) 0%,rgba(5,11,7,.4) 25%,rgba(5,11,7,.9) 45%,#05070B 62%) !important}
  html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .nxp-head-img{width:64px !important;height:64px !important;max-width:64px !important;max-height:64px !important;border-radius:16px !important}
  html body.nx-rd-product.nx-rd-product .breadcumb-wrapper.nxp-head.nxp-head .nxc-product-h1{font-size:28px !important}
}

/* D (2026-11-29, owner: "the product page, polish it deeply"): the amounts become a card grid again (2 on phones, 3 from 768 px)
   with the icon on top, the amount large, the per-1K line under it and the price at the foot; the chosen card keeps its green ring
   and gets the corner check back (product-v5 had turned it into a one-side edge). The rules carry #nx4b + :is(#id) + a doubled
   body class (2,5,3) to beat product-v5.css 175-188 (2,5,2) and its !important. Tabs get a green active line, link chips and tabs
   reach 44 px, small labels reach 13 px, and the region table wraps its delivery chips on phones. CSS only. */
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-packs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
@media (min-width:768px){html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-packs{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"art" "name" "type" "price"!important;
  align-content:start;align-items:start;row-gap:2px;min-height:148px;padding:16px!important;border-radius:16px!important}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-art{width:36px;height:36px;margin-bottom:10px;align-self:start}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-name{font-size:14px;line-height:20px}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-amt{display:block;font-size:24px;line-height:30px;font-weight:800;letter-spacing:-.01em}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-unit{font-size:14px;line-height:20px;font-weight:600;color:var(--tx2)}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-per{display:block;font-size:13px;line-height:18px;font-weight:500;color:var(--tx3)}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-price{align-self:end;margin-top:12px!important;font-size:22px!important;line-height:28px;text-align:start}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) :is(.nx4-pack-type,.nx4-pack-was,.nx4-pack-oos){font-size:13px;line-height:18px}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack-badge{font-size:12px;line-height:20px;padding:0 8px;border-radius:999px}
html body.nx-rd-product.nx-rd-product #nx4b.nx4b--page :is(#wc-region-config,#nx4-pregrid) .nx4-pack.on::after{inset:auto!important;inset-block-start:16px!important;inset-inline-end:16px!important;width:12px;height:12px;border-radius:999px;background:var(--g);box-shadow:0 0 0 4px rgba(69,248,130,.2),0 0 16px rgba(69,248,130,.6)}
html body.nx-rd-product .nxt-tab{min-height:44px;box-shadow:inset 0 -2px 0 transparent;transition:color .3s var(--ez),box-shadow .3s var(--ez)}
html body.nx-rd-product .nxt-tab[aria-selected="true"]{color:var(--tx);box-shadow:inset 0 -2px 0 var(--g)}
html body.nx-rd-product .nxpg-links a{min-height:44px!important}
html body.nx-rd-product :is(.nx4b-qty-label,.nx4b-sel-meta,.prod-cashback){font-size:13px}
html body.nx-rd-product .nxc-table th small{font-size:13px}
html body.nx-rd-product .breadcumb-title .nxc-h1-game{display:block;margin-top:14px}
@media (max-width:640px){
  html body.nx-rd-product .nxc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html body.nx-rd-product :is(.nxc-table,.nxc-table tbody){display:block;width:100%!important;min-width:0!important}
  html body.nx-rd-product .nxc-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px;padding:14px 16px;border-top:1px solid var(--ln)}
  html body.nx-rd-product .nxc-table tbody tr:first-child{border-top:0}
  html body.nx-rd-product .nxc-table :is(th,td){display:block;min-width:0;padding:0!important;border:0!important;background:none}
  html body.nx-rd-product .nxc-table td:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
  html body.nx-rd-product .nxc-table .nxc-badge{white-space:normal}
}
/* 2026-12-01 GEO + AEO: the pack answer under its H1 in the redesign tokens */
html body.nx-rd-product .nx4-hero-lede{max-width:68ch;margin:6px 0 2px;color:var(--tx2);text-shadow:none}
html body.nx-rd-product .nxgeo-updated{color:var(--tx3)}
