:root{
    --page-bg: #eef0f4;
    --frame-bg: #0b0e17;
    --panel: #131829;
    --panel-2: #1a2036;
    --line: #262d44;
    --ink: #f3f5fa;
    --ink-dim: #8d96b0;
    --blue: #2f6fed;
    --blue-bright: #5590ff;
    --gold: #ffb703;
    --radius-s: 6px;
    --radius-m: 12px;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background: var(--page-bg);
    font-family:'Inter',sans-serif;
    color: var(--ink);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }
  h1,h2,h3,.display{ font-family:'Sora',sans-serif; }
  img{max-width:100%; display:block;}
  button{ font-family:inherit; }

  /* ---------- Tab switcher (outside the phone frame) ---------- */
  .switcher{
    max-width: 400px;
    margin: 0 auto 18px;
    display:flex;
    gap: 6px;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(20,25,40,0.08);
  }
  .switcher button{
    flex:1;
    border:none;
    background: transparent;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 7px;
    cursor:pointer;
    transition: background .15s ease, color .15s ease;
  }
  .switcher button.active{
    background: var(--frame-bg);
    color: var(--ink);
  }

  /* ---------- Phone frame ---------- */
  .frame{
    max-width: 400px;
    margin: 0 auto;
    background: var(--frame-bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10,14,25,0.25);
    border: 1px solid #1c2236;
  }
  .view{ display:none; }
  .view.active{ display:block; }

  /* ================= NAV ================= */
  .topnav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 16px 18px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:8px;
  }
  .brand-mark{
    width:20px; height:20px;
    border-radius:5px;
    background: linear-gradient(135deg, var(--blue), #7b6cff);
  }
  .topnav-links{
    display:flex;
    gap: 18px;
    font-size: 0.78rem;
    color: var(--ink-dim);
    font-weight:500;
  }
  .topnav-icons{
    display:flex;
    gap: 14px;
    align-items:center;
  }
  .icon-btn{
    position:relative;
    width:18px; height:18px;
    color: var(--ink-dim);
  }
  .icon-btn svg{ width:100%; height:100%; }
  .badge{
    position:absolute; top:-6px; right:-8px;
    background: var(--blue);
    color:#fff;
    font-size: 0.55rem;
    font-weight:700;
    width:14px; height:14px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
  }

  /* ================= HERO ================= */
  .hero{
    position:relative;
    margin: 0 14px 18px;
    border-radius: var(--radius-m);
    overflow:hidden;
    padding: 18px 16px 16px;
    min-height: 210px;
    background:
      radial-gradient(140% 100% at 15% 0%, rgba(255,140,60,0.25), transparent 55%),
      radial-gradient(120% 100% at 90% 100%, rgba(47,111,237,0.35), transparent 60%),
      linear-gradient(160deg, #1a2338 0%, #0a0d16 75%);
  }
  .hero-tag{
    display:inline-block;
    font-size: 0.68rem;
    font-weight:700;
    letter-spacing: 0.02em;
    color: var(--gold);
    background: rgba(255,183,3,0.12);
    padding: 4px 9px;
    border-radius: 5px;
    margin-bottom: 12px;
  }
  .hero-strip{
    display:flex;
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero-thumb{
    width: 44px; height: 44px;
    border-radius: 8px;
    flex-shrink:0;
    border: 2px solid transparent;
    background-size: cover;
  }
  .hero-thumb.is-active{ border-color: var(--blue-bright); }
  .hero h1{
    font-size: 1.28rem;
    font-weight:700;
    line-height:1.32;
    max-width: 260px;
    margin-bottom: 16px;
  }
  .btn{
    border:none;
    cursor:pointer;
    font-weight:600;
    border-radius: var(--radius-s);
    font-size: 0.82rem;
    padding: 9px 18px;
    transition: filter .12s ease, background .12s ease;
  }
  .btn-blue{ background: var(--blue); color:#fff; }
  .btn-blue:hover{ filter: brightness(1.1); }
  .btn-outline{ background:transparent; border:1px solid #38405c; color:var(--ink); }
  .btn-outline:hover{ border-color:#5a6386; }
  .btn-flat{ background:#1e2438; color: var(--ink-dim); }

  /* ================= SECTION HEADS ================= */
  .section{ padding: 4px 14px 22px; }
  .section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 12px;
  }
  .section-head h2{ font-size: 0.98rem; font-weight:700; }
  .head-arrows{ display:flex; gap:6px; }
  .arrow-btn{
    width:22px; height:22px;
    border-radius:50%;
    background: var(--panel-2);
    border:1px solid var(--line);
    color: var(--ink-dim);
    display:flex; align-items:center; justify-content:center;
    cursor:pointer;
  }
  .arrow-btn svg{ width:10px; height:10px; }

  /* ================= CATEGORIES ================= */
  .cat-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .cat-card{
    position:relative;
    border-radius: 8px;
    height: 60px;
    overflow:hidden;
    display:flex;
    align-items:flex-end;
    padding: 6px;
  }
  .cat-card span{
    font-size: 0.6rem;
    font-weight:700;
    color:#fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    line-height:1.15;
  }

  /* ================= ACCESSORIES ================= */
  .accessory-head{ text-align:center; margin-bottom: 16px; }
  .accessory-head h2{
    font-size: 1rem;
    background: linear-gradient(90deg, var(--blue-bright), #8f7bff);
    -webkit-background-clip:text; background-clip:text; color:transparent;
    margin-bottom: 6px;
  }
  .accessory-head p{ font-size: 0.74rem; color: var(--ink-dim); max-width:260px; margin:0 auto; }
  .accessory-row{
    display:flex;
    gap: 10px;
    overflow-x:auto;
    padding-bottom: 4px;
    scrollbar-width:none;
  }
  .accessory-row::-webkit-scrollbar{ display:none; }
  .acc-card{
    flex: 0 0 108px;
    background: #f5f6f9;
    border-radius: 10px;
    padding: 10px;
    color:#111;
  }
  .acc-thumb{
    height: 56px;
    border-radius:6px;
    margin-bottom: 8px;
    background: linear-gradient(160deg,#dfe3ee,#c7cde0);
    display:flex; align-items:center; justify-content:center;
  }
  .acc-card h4{ font-size:0.66rem; font-weight:700; line-height:1.2; margin-bottom:3px; }
  .acc-card p{ font-size:0.58rem; color:#6b7280; line-height:1.25; }

  /* ================= FEATURED GAMES ================= */
  .filter-row{
    display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap;
  }
  .chip{
    font-size: 0.66rem;
    font-weight:600;
    color: var(--ink-dim);
    background: var(--panel-2);
    border:1px solid var(--line);
    padding: 4px 10px;
    border-radius: 20px;
  }
  .chip.is-active{ background: var(--blue); color:#fff; border-color:var(--blue); }
  .game-grid{
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .game-card{ position:relative; }
  .game-cover{
    aspect-ratio: 3/4;
    border-radius: 8px;
    margin-bottom: 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Sora'; font-weight:800; font-size:1rem; color:rgba(255,255,255,0.85);
  }
  .sale-tag{
    position:absolute; top:4px; left:4px;
    background: var(--blue);
    color:#fff;
    font-size: 0.5rem;
    font-weight:700;
    padding: 2px 5px;
    border-radius: 4px;
  }
  .game-card h4{ font-size:0.62rem; font-weight:600; margin-bottom:2px; line-height:1.2; }
  .game-card .genre{ font-size:0.54rem; color:var(--ink-dim); margin-bottom:3px; }
  .price-row{ display:flex; align-items:center; gap:4px; }
  .price-row .now{ font-size:0.62rem; font-weight:700; color: var(--blue-bright); }
  .price-row .was{ font-size:0.52rem; color:var(--ink-dim); text-decoration:line-through; }
  .rating{ display:flex; align-items:center; gap:2px; font-size:0.52rem; color:var(--gold); margin-top:2px; }
  .rating svg{ width:8px; height:8px; }

  /* ================= FOOTER ================= */
  .foot{
    background:#080a11;
    padding: 22px 16px 16px;
    border-top:1px solid var(--line);
  }
  .foot-brand{ display:flex; align-items:center; gap:8px; margin-bottom: 6px; }
  .foot-tag{ font-size:0.62rem; color:var(--ink-dim); max-width:180px; margin-bottom:18px; }
  .foot-cols{ display:flex; justify-content:space-between; margin-bottom:18px; }
  .foot-col h5{ font-size:0.64rem; margin-bottom:8px; color:var(--ink); }
  .foot-col a{ display:block; font-size:0.6rem; color:var(--ink-dim); text-decoration:none; margin-bottom:6px; }
  .foot-social{ display:flex; gap:8px; margin-bottom: 16px; }
  .social-dot{
    width:20px; height:20px; border-radius:50%;
    background:var(--panel-2); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-size:0.55rem; color:var(--ink-dim); font-weight:700;
  }
  .foot-bottom{ font-size:0.56rem; color:#525a72; border-top:1px solid var(--line); padding-top:12px; }

  /* ================= GAME INFO VIEW ================= */
  .gi-wrap{ padding: 16px; }
  .gi-top{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
  .rating-badge{
    width:26px; height:26px; border-radius:5px;
    background:#c0392b; color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:0.7rem; font-weight:800;
  }
  .gi-top h2{ font-size:1.05rem; font-weight:700; }
  .gi-hero{
    display:grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }
  .gi-main-art{
    aspect-ratio: 4/3;
    border-radius: 10px;
    background:
      radial-gradient(120% 120% at 20% 10%, rgba(255,140,60,0.28), transparent 55%),
      radial-gradient(120% 120% at 90% 100%, rgba(47,111,237,0.4), transparent 60%),
      linear-gradient(160deg,#1a2338,#0a0d16);
  }
  .gi-side-label{ font-size:0.6rem; color:var(--ink-dim); margin-bottom:6px; }
  .gi-side-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .gi-side-thumb{ aspect-ratio:1/1; border-radius:6px; }
  .gi-desc{ font-size:0.72rem; color:var(--ink-dim); line-height:1.55; margin-bottom:16px; }
  .gi-bar-track{
    height:6px; background:var(--panel-2); border-radius:4px; overflow:hidden; margin-bottom:16px;
  }
  .gi-bar-fill{ height:100%; width:72%; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
  .gi-actions{ display:flex; gap:8px; }
  .gi-actions .btn{ flex:1; text-align:center; }

  /* ================= CART VIEW ================= */
  .cart-wrap{ display:flex; min-height: 260px; }
  .cart-left{
    flex:1;
    background: radial-gradient(120% 140% at 30% 20%, rgba(47,111,237,0.35), transparent 60%), #0a0d16;
    display:flex; align-items:center; justify-content:center;
    padding: 20px;
  }
  .mascot{ width: 90px; }
  .cart-right{
    flex: 1.1;
    background: var(--panel);
    padding: 16px;
    display:flex;
    flex-direction:column;
  }
  .cart-right h3{ font-size:0.86rem; margin-bottom:14px; }
  .cart-item{ display:flex; gap:10px; margin-bottom:14px; }
  .cart-item .thumb{
    width:40px; height:40px; border-radius:6px; flex-shrink:0;
    background: linear-gradient(160deg,#2a3452,#12172a);
  }
  .cart-item .info h4{ font-size:0.68rem; margin-bottom:3px; }
  .cart-item .info span{ font-size:0.64rem; color:var(--blue-bright); font-weight:700; }
  .qty{
    display:flex; align-items:center; gap:8px; margin-left:auto;
    font-size:0.7rem; color:var(--ink-dim);
  }
  .qty button{
    width:16px; height:16px; border-radius:4px; border:1px solid var(--line);
    background:var(--panel-2); color:var(--ink); cursor:pointer; font-size:0.6rem;
  }
  .summary{ margin-top:auto; border-top:1px solid var(--line); padding-top:12px; }
  .summary-row{ display:flex; justify-content:space-between; font-size:0.68rem; color:var(--ink-dim); margin-bottom:6px; }
  .summary-row.total{ color:var(--ink); font-weight:700; font-size:0.78rem; margin-bottom:12px; }
  .cart-right .btn{ width:100%; }
/* ===== NOVA integrated storefront additions ===== */
:root{--accent:#2f6fed}.hidden{display:none!important}button{font-family:inherit}.topnav{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:24px;padding:14px 5%;background:#080a11ee;backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.brand-button{background:none;border:0;color:var(--ink);display:flex;align-items:center;gap:8px;cursor:pointer}.topnav nav{display:flex;gap:8px;flex:1}.topnav nav button,.top-actions button{background:none;border:0;color:var(--ink-dim);cursor:pointer;padding:7px 9px}.top-actions{display:flex;align-items:center;gap:4px}.top-actions b{background:var(--blue);color:white;border-radius:10px;padding:1px 5px;font-size:10px}.search-panel{position:fixed;top:68px;right:5%;width:min(680px,calc(100vw - 28px));padding:10px;background:transparent;border:0;z-index:60;pointer-events:none}.search-panel-inner{display:flex;flex-wrap:wrap;gap:8px;padding:14px;background:rgba(8,22,43,.97);border:1px solid rgba(53,200,255,.2);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 30px rgba(40,120,255,.12);backdrop-filter:blur(18px);pointer-events:auto;animation:searchPop .18s ease both}.search-panel input,.search-panel select{background:var(--panel-2);border:1px solid var(--line);color:var(--ink);padding:10px;border-radius:8px}.search-panel #store-search{flex:1 1 280px;min-width:0}.search-panel>*{}@keyframes searchPop{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}.hero{position:relative;min-height:500px;padding:72px 6%;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:30px;align-items:center;overflow:hidden;background:#07101f;border-bottom:1px solid var(--line)}.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05) blur(1px);transform:scale(1.04);opacity:.52;transition:opacity .5s ease}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,16,.98) 0%,rgba(4,8,16,.84) 42%,rgba(4,8,16,.35) 72%,rgba(4,8,16,.82) 100%),linear-gradient(0deg,rgba(4,8,16,.95),transparent 45%,rgba(4,8,16,.35))}.hero-copy,.hero-art-wrap,.hero-controls{position:relative;z-index:2}.hero-copy{max-width:720px}.hero h1{max-width:720px;font:800 clamp(2.1rem,4.7vw,4.8rem) Sora;line-height:1.04;margin:14px 0}.hero p{color:#d0d7e6;max-width:620px;line-height:1.65}.hero-tag{display:inline-flex;font-size:11px;font-weight:800;color:#06101d;background:#f4bf3d;padding:7px 11px;border-radius:7px;letter-spacing:.06em}.hero-price{display:flex;align-items:baseline;gap:10px;margin:16px 0 20px}.hero-price-now{font-size:22px;font-weight:800;color:#fff}.hero-price-was{text-decoration:line-through;color:#8d99ae}.hero-art-wrap{display:grid;place-items:center;min-height:390px}.hero-art{width:min(360px,90%);max-height:430px;object-fit:contain;border-radius:12px;filter:drop-shadow(0 25px 45px rgba(0,0,0,.55));animation:heroFloat 5.5s ease-in-out infinite}.hero-art-glow{position:absolute;width:65%;height:65%;border-radius:50%;background:radial-gradient(circle,rgba(54,126,255,.35),transparent 68%);filter:blur(15px);z-index:-1}.hero-controls{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:14px}.hero-dots{display:flex;gap:7px}.hero-dot,.hero-arrow{border:1px solid rgba(255,255,255,.14);background:rgba(9,18,34,.7);color:#fff;cursor:pointer}.hero-dot{width:8px;height:8px;border-radius:50%;padding:0}.hero-dot.is-active{background:#4f8cff;box-shadow:0 0 12px rgba(79,140,255,.7)}.hero-arrow{width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1}.hero-transition .hero-copy{animation:heroIn .45s ease both}.hero-transition .hero-art{animation:heroArtIn .6s ease both}@keyframes heroIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes heroArtIn{from{opacity:0;transform:translateX(25px) scale(.96)}to{opacity:1;transform:none}}@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}.section{padding:44px 5%}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.cat-card{min-height:130px;border-radius:12px;padding:16px;display:flex;align-items:end;background-size:cover;background-position:center;position:relative;overflow:hidden}.cat-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}.cat-card span{position:relative;font-weight:700;z-index:1}.accessory-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.acc-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px}.acc-card img{width:100%;height:150px;object-fit:cover;border-radius:8px;background:var(--panel-2)}.acc-card h4{margin:10px 0 4px}.acc-card p{color:var(--ink-dim);font-size:12px}.game-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.small-grid{grid-template-columns:repeat(2,1fr)}.game-card{position:relative;cursor:pointer}.game-cover{aspect-ratio:3/4;border-radius:9px;background-size:cover;background-position:center;display:grid;place-items:center;font:800 20px Sora;color:#fff;overflow:hidden}.game-cover img{width:100%;height:100%;object-fit:cover}.game-card h4{margin:8px 0 3px;font-size:13px}.genre,.muted{color:var(--ink-dim);font-size:12px}.price-row{display:flex;gap:7px;margin-top:5px}.was{text-decoration:line-through;color:var(--ink-dim);font-size:12px}.now{color:#7fa8ff;font-weight:700}.rating{color:#f3c969;font-size:12px;margin-top:4px}.chip{background:var(--panel-2);border:1px solid var(--line);color:var(--ink-dim);border-radius:20px;padding:7px 10px;cursor:pointer}.chip.active{background:var(--blue);color:#fff}.split-section{display:grid;grid-template-columns:1fr 1fr;gap:35px}.foot{padding:40px 5%;border-top:1px solid var(--line);background:#080a11}.social-links a{color:var(--ink-dim);margin-right:12px}.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:18px;z-index:30}.modal-card{width:min(720px,100%);max-height:90vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px;position:relative}.product-modal{display:grid;grid-template-columns:1fr 1.1fr;gap:20px}.modal-close{position:absolute;right:12px;top:10px;background:none;border:0;color:var(--ink-dim);font-size:26px;cursor:pointer}.modal-art{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:var(--panel-2)}.gallery{display:flex;gap:7px;overflow:auto;margin:12px 0}.gallery img{width:65px;height:65px;object-fit:cover;border-radius:7px}.modal-actions{display:flex;gap:8px;margin-top:16px}.auth-tabs{display:flex;gap:6px;margin-bottom:18px}.auth-tab{background:var(--panel-2);border:0;color:var(--ink-dim);padding:8px 12px;border-radius:7px;cursor:pointer}.auth-tab.active{background:var(--blue);color:#fff}.auth-form,.checkout-form{display:grid;gap:10px}.auth-form input,.checkout-form input,.checkout-form textarea,.checkout-form select,.account-card input{background:var(--panel-2);border:1px solid var(--line);color:var(--ink);padding:10px;border-radius:7px}.form-error{color:#ff8f95;min-height:18px}.consent{display:flex;gap:8px;color:var(--ink-dim);font-size:12px}.consent input{width:auto}.cart-line{display:grid;grid-template-columns:60px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.cart-line img{width:60px;height:75px;object-fit:cover;border-radius:7px}.qty-controls{display:flex;gap:7px;align-items:center}.qty-controls button{background:var(--panel-2);border:1px solid var(--line);color:#fff;border-radius:5px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.account-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px}.order-card{border:1px solid var(--line);border-radius:10px;padding:12px;margin:10px 0}.order-card details{margin-top:8px}.order-status{color:#8fb3ff;font-weight:700}.splash{display:none}#splash{position:fixed;inset:0;background:#080a11;display:grid;place-items:center;z-index:100;transition:opacity .45s ease}#splash.hide{opacity:0;visibility:hidden;pointer-events:none}.splash-logo{max-width:220px;max-height:100px;object-fit:contain}.splash-bar{position:absolute;bottom:18%;width:130px;height:3px;background:#1d2436;border-radius:4px;overflow:hidden}.splash-bar span{display:block;height:100%;width:35%;background:#5590ff;animation:load 1s ease-in-out infinite}@keyframes load{0%{transform:translateX(-120%)}100%{transform:translateX(360%)}}@media(max-width:900px){.hero{grid-template-columns:1fr;min-height:560px;padding-top:55px}.hero-art-wrap{min-height:250px;position:absolute;right:2%;bottom:55px;width:45%;opacity:.72}.hero-copy{max-width:62%}.hero-overlay{background:linear-gradient(90deg,rgba(4,8,16,.96) 0%,rgba(4,8,16,.78) 58%,rgba(4,8,16,.45) 100%),linear-gradient(0deg,rgba(4,8,16,.96),transparent)}.cat-grid{grid-template-columns:repeat(2,1fr)}.accessory-row{grid-template-columns:repeat(2,1fr)}.game-grid{grid-template-columns:repeat(3,1fr)}.split-section{grid-template-columns:1fr}.product-modal{grid-template-columns:1fr}.account-grid{grid-template-columns:1fr}}@media(max-width:560px){.topnav nav{display:none}.top-actions{margin-left:auto}.hero{padding:38px 5% 62px;min-height:540px}.hero-copy{max-width:100%}.hero h1{font-size:clamp(1.9rem,9vw,2.8rem)}.hero-art-wrap{position:absolute;right:-8%;bottom:55px;width:54%;opacity:.38}.hero-controls{bottom:16px}.section{padding:30px 5%}.game-grid{grid-template-columns:repeat(2,1fr)}.accessory-row{grid-template-columns:1fr}.cat-grid{grid-template-columns:1fr 1fr}.search-panel-inner{flex-wrap:wrap}.search-panel-inner>*{flex:1 1 40%}}
:root{--primary:#7c5cff;--primary-2:#9b7cff;--bg:#07070b;--surface:#111118;--text:#fff;--muted:#9da0ad;--border:#292934;--success:#31d98b;--danger:#ff5d70;--radius-m:18px;--transition:220ms cubic-bezier(.2,.7,.2,1)}*{box-sizing:border-box}.hidden{display:none!important}.product-page{max-width:1250px;margin:auto;padding:28px 22px}.product-page-top{margin-bottom:22px}.product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:42px}.main-image-wrap{background:#0d0d14;border:1px solid var(--border);border-radius:24px;min-height:540px;display:flex;align-items:center;justify-content:center;overflow:hidden}.main-image-wrap img{width:100%;height:540px;object-fit:contain;transition:opacity var(--transition),transform var(--transition)}.gallery-large{display:flex;gap:10px;margin-top:14px;overflow:auto}.gallery-thumb{width:86px;height:105px;border:2px solid transparent;border-radius:12px;background:#111118;padding:4px;cursor:pointer;flex:0 0 auto;transition:all var(--transition)}.gallery-thumb.selected,.gallery-thumb:hover{border-color:var(--primary);transform:translateY(-3px)}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.product-info h1{font-size:clamp(2rem,4vw,4rem);margin:10px 0}.product-info .now{font-size:2rem}.product-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.digital-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 20px}.digital-option{padding:15px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;text-align:left;cursor:pointer;display:flex;justify-content:space-between;gap:10px;transition:all var(--transition)}.digital-option.selected,.digital-option:hover{border-color:var(--primary);box-shadow:0 0 0 2px #7c5cff22;transform:translateY(-2px)}.variant-label{font-size:.75rem;color:var(--primary-2);margin-top:3px}.qty-controls.big{display:flex;align-items:center;gap:15px;margin:12px 0}.qty-controls.big button{width:38px;height:38px}.review{border:1px solid var(--border);padding:15px;border-radius:14px;background:var(--surface);margin:10px 0}.review-form{display:grid;gap:10px;margin-top:16px}.review-form textarea{min-height:100px}.footer-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-bottom:28px}.footer-columns div{display:flex;flex-direction:column;gap:9px}.footer-columns a{color:var(--muted);text-decoration:none}.footer-columns a:hover{color:var(--text)}.wishlist-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:0;background:transparent;color:var(--text);cursor:pointer;text-align:left}.wishlist-row img{width:48px;height:62px;object-fit:cover;border-radius:7px}.game-card{position:relative;transition:transform var(--transition),box-shadow var(--transition)}.game-card:hover{transform:translateY(-7px);box-shadow:0 18px 40px #0008}.wish-card{position:absolute;right:10px;top:10px;z-index:3;width:34px;height:34px;border-radius:50%;border:1px solid #ffffff25;background:#08080dcc;color:#fff;cursor:pointer}.hero-transition .hero-copy,.hero-transition .hero-art{animation:heroIn .55s both}@keyframes heroIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#15151d;border:1px solid var(--primary);padding:12px 18px;border-radius:12px;z-index:1000;transition:all .25s}#toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:850px){.product-detail{grid-template-columns:1fr}.main-image-wrap,.main-image-wrap img{min-height:380px;height:380px}.digital-options{grid-template-columns:1fr}.footer-columns{grid-template-columns:1fr 1fr}}@media(max-width:560px){.footer-columns{grid-template-columns:1fr}.product-page{padding:18px 12px}}

.page-view{max-width:1100px;margin:auto;min-height:65vh}.faq-page-list{display:grid;gap:12px;max-width:900px}.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:0 18px}.faq-item summary{cursor:pointer;font-weight:700;padding:18px 4px;list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item p{color:var(--muted);line-height:1.7;padding:0 4px 18px;margin:0}.console-card{cursor:pointer}.console-card:hover{transform:translateY(-6px)}

.product-faq-link{color:var(--text);text-decoration:none}.product-faq-link:hover{color:var(--primary-2)}.faq-link-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;margin:10px 0;background:var(--surface);border:1px solid var(--border);border-radius:14px;color:var(--text);text-decoration:none;transition:all var(--transition)}.faq-link-card:hover{border-color:var(--primary);transform:translateX(4px);box-shadow:0 10px 28px #0005}.faq-link-card span{color:var(--primary-2);font-size:.9rem;white-space:nowrap}@media(max-width:560px){.faq-link-card{align-items:flex-start;flex-direction:column;gap:5px}.faq-link-card span{white-space:normal}}

/* ================= NOVA MODERN GAMING MOTION + NAVY GLOW ================= */
:root{
  --nova-navy:#050B18;
  --nova-navy-2:#08162B;
  --nova-blue:#2878ff;
  --nova-cyan:#35c8ff;
  --nova-violet:#6d6cff;
  --nova-glow:rgba(40,120,255,.34);
  --nova-glow-soft:rgba(53,200,255,.14);
}

body{
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(11,39,72,.28), transparent 65%),
    radial-gradient(800px 500px at 90% 30%, rgba(40,120,255,.10), transparent 65%),
    var(--page-bg);
}

/* Make the whole storefront feel alive without becoming distracting */
.game-card,
.acc-card,
.cat-card,
.console-card,
.faq-link-card,
.faq-item,
.account-card,
.review,
.digital-option{
  transition:
    transform .28s cubic-bezier(.2,.75,.2,1),
    box-shadow .28s ease,
    border-color .28s ease,
    background .28s ease;
}

.game-card::before,
.acc-card::before,
.cat-card::before,
.console-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  opacity:0;
  transition:opacity .28s ease;
  background:linear-gradient(135deg,rgba(53,200,255,.22),transparent 42%,rgba(109,108,255,.18));
  z-index:0;
}

.game-card > *,
.acc-card > *,
.cat-card > *,
.console-card > *{position:relative;z-index:1}

.game-card:hover,
.acc-card:hover,
.console-card:hover{
  transform:translateY(-9px) scale(1.015);
  border-color:rgba(53,200,255,.48);
  box-shadow:
    0 18px 42px rgba(0,0,0,.45),
    0 0 0 1px rgba(53,200,255,.12),
    0 0 30px var(--nova-glow-soft),
    0 0 65px rgba(40,120,255,.12);
}

.game-card:hover::before,
.acc-card:hover::before,
.cat-card:hover::before,
.console-card:hover::before{opacity:1}

.game-cover,
.acc-image,
.cat-card{
  box-shadow:0 8px 24px rgba(0,0,0,.20);
}

.game-card:hover .game-cover,
.acc-card:hover .acc-image,
.cat-card:hover{
  box-shadow:
    0 10px 28px rgba(0,0,0,.32),
    0 0 24px rgba(40,120,255,.18);
}

.game-cover{transition:transform .4s cubic-bezier(.2,.75,.2,1),filter .4s ease,box-shadow .4s ease}
.game-card:hover .game-cover{transform:translateY(-2px) scale(1.025);filter:saturate(1.08) brightness(1.04)}

.acc-card img{transition:transform .4s cubic-bezier(.2,.75,.2,1),filter .4s ease}
.acc-card:hover img{transform:scale(1.045);filter:saturate(1.08) brightness(1.04)}

.cat-card{transition:transform .3s ease,box-shadow .3s ease,filter .3s ease}
.cat-card:hover{transform:translateY(-7px) scale(1.02);filter:saturate(1.08)}

/* Soft ambient movement for cards */
.game-card{animation:novaCardFloat 5.8s ease-in-out infinite}
.game-card:nth-child(2n){animation-delay:-1.2s}
.game-card:nth-child(3n){animation-delay:-2.4s}
.acc-card{animation:novaCardFloat 6.4s ease-in-out infinite}
.acc-card:nth-child(2n){animation-delay:-1.6s}
.cat-card{animation:novaCardFloat 7s ease-in-out infinite}
.cat-card:nth-child(2n){animation-delay:-2s}
@keyframes novaCardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.game-card:hover,.acc-card:hover,.cat-card:hover,.console-card:hover{animation-play-state:paused}

/* Navy / electric-blue gaming treatment */
.topnav{
  background:linear-gradient(180deg,rgba(5,18,36,.97),rgba(5,14,28,.94));
  box-shadow:0 8px 30px rgba(0,0,0,.22),0 1px 0 rgba(53,200,255,.08);
}
.brand-mark{
  background:linear-gradient(135deg,var(--nova-blue),var(--nova-cyan));
  box-shadow:0 0 18px rgba(40,120,255,.38);
}
.topnav nav button:hover,.top-actions button:hover{color:#fff;text-shadow:0 0 14px rgba(53,200,255,.45)}

.btn-blue{
  background:linear-gradient(135deg,var(--nova-blue),#3b9dff);
  box-shadow:0 8px 24px rgba(40,120,255,.22),0 0 18px rgba(40,120,255,.10);
}
.btn-blue:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 10px 30px rgba(40,120,255,.32),0 0 25px rgba(53,200,255,.18)}
.btn-outline:hover{border-color:var(--nova-cyan);box-shadow:0 0 20px rgba(53,200,255,.12)}

.chip:hover,.arrow-btn:hover{
  border-color:rgba(53,200,255,.5);
  color:#fff;
  box-shadow:0 0 18px rgba(40,120,255,.15);
  transform:translateY(-2px);
}
.chip.active,.is-active{box-shadow:0 0 20px rgba(40,120,255,.25)}

.section-head h2{ text-shadow:0 0 22px rgba(53,200,255,.10) }
.accessory-head h2{background:linear-gradient(90deg,var(--nova-cyan),var(--nova-blue),var(--nova-violet));-webkit-background-clip:text;background-clip:text}

/* Section ambient glow line */
.section{position:relative}
.section::after{
  content:"";
  position:absolute;
  left:5%;right:5%;bottom:8px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(53,200,255,.18),rgba(109,108,255,.14),transparent);
  opacity:.7;
}

/* Hero gets the same visual language */
.hero{
  box-shadow:inset 0 0 90px rgba(7,26,51,.35),0 16px 55px rgba(0,0,0,.22);
}
.hero-art{filter:drop-shadow(0 25px 45px rgba(0,0,0,.55)) drop-shadow(0 0 25px rgba(40,120,255,.12))}
.hero-art-glow{background:radial-gradient(circle,rgba(53,200,255,.28),rgba(40,120,255,.10) 35%,transparent 70%)}

/* FAQ links / panels match the gaming glow */
.product-faq-link:hover{color:var(--nova-cyan);text-shadow:0 0 14px rgba(53,200,255,.3)}
.faq-link-card:hover,.faq-item:hover{
  border-color:rgba(53,200,255,.42);
  box-shadow:0 12px 32px rgba(0,0,0,.30),0 0 25px rgba(40,120,255,.12);
}

@media(prefers-reduced-motion:reduce){
  .game-card,.acc-card,.cat-card{animation:none}
  .game-card:hover,.acc-card:hover,.cat-card:hover,.console-card:hover{transform:none}
}

/* v14 detail / card polish */
.game-cover-wrap,.acc-image-wrap{position:relative}
.game-cover-wrap .wish-card{top:10px;right:10px}
.game-cover-wrap .sale-tag{top:10px;left:10px;z-index:4}
.sale-tag{z-index:4;box-shadow:0 0 16px rgba(40,120,255,.28)}
.acc-image-wrap .acc-sale{top:10px;left:10px}
.acc-card{cursor:pointer}
.acc-card .acc-add{position:relative;z-index:5}
.product-page .main-image-wrap{background:radial-gradient(circle at 50% 45%,rgba(40,120,255,.10),transparent 48%),#08111f;border-color:rgba(53,200,255,.18);box-shadow:0 20px 55px rgba(0,0,0,.34),0 0 35px rgba(40,120,255,.08)}
.product-page .main-image-wrap img{max-width:100%;object-fit:contain;filter:drop-shadow(0 20px 35px rgba(0,0,0,.45))}
.empty-panel{padding:22px;border:1px solid rgba(53,200,255,.14);border-radius:16px;background:linear-gradient(135deg,rgba(8,22,43,.8),rgba(5,11,24,.9));box-shadow:0 0 28px rgba(40,120,255,.06)}
.footer-columns a{cursor:pointer}

/* v15 detail reliability */
.detail-placeholder{display:grid;place-items:center;width:100%;height:540px;padding:30px;text-align:center;font:800 1.4rem Sora;color:#8fb3ff;background:radial-gradient(circle at center,rgba(40,120,255,.16),transparent 58%),#08111f}
.main-image-wrap.no-image{background:radial-gradient(circle at center,rgba(40,120,255,.12),transparent 58%),#08111f}
.review-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-head span{color:#f3c969}.related-cover{position:relative;overflow:hidden}.related-cover img{width:100%;height:100%;object-fit:cover;display:block}.related-item{cursor:pointer}
@media(max-width:850px){.detail-placeholder{height:380px}}


/* ================= HIGH TRADE FINAL NAVY GAMING PALETTE ================= */
:root{
  --nova-navy:#050B18;
  --nova-navy-2:#08162B;
  --nova-blue:#2878FF;
  --nova-cyan:#35C8FF;
  --nova-violet:#6D6CFF;
  --nova-glow:rgba(40,120,255,.34);
  --nova-glow-soft:rgba(53,200,255,.14);
}
body{
  background:
    radial-gradient(circle at 10% 0%,rgba(40,120,255,.10),transparent 32%),
    radial-gradient(circle at 90% 15%,rgba(53,200,255,.07),transparent 28%),
    radial-gradient(circle at 50% 100%,rgba(109,108,255,.05),transparent 35%),
    #050B18;
}

/* High Trade catalog cleanup */
#search-results .section-head{margin-bottom:18px}
#search-accessory-results,#search-console-results{margin-top:22px}
#recent-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
#recent-grid .game-card,#recent-grid .acc-card{min-width:0}
#search-results.hidden,#recently-viewed.hidden{display:none!important}
.search-panel{z-index:50}
#search-suggestions{display:none}

/* High Trade premium Games catalog */
#games{padding-top:54px;padding-bottom:58px;position:relative}
#games::before{content:"";position:absolute;inset:0 5% auto;height:1px;background:linear-gradient(90deg,transparent,rgba(53,200,255,.32),transparent);pointer-events:none}
#games .section-head{align-items:flex-end;margin-bottom:24px}
#games .section-head h2{font-size:clamp(1.55rem,2.3vw,2.15rem);letter-spacing:-.03em;margin-bottom:6px}
#games .section-head .muted{font-size:.76rem;opacity:.8}
#games .filter-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;padding:5px;border:1px solid rgba(255,255,255,.08);background:rgba(8,22,43,.58);border-radius:14px;box-shadow:0 10px 35px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.035)}
#games .filter-row .chip{font-size:.7rem;font-weight:700;letter-spacing:.02em;padding:8px 13px;border:1px solid transparent;background:transparent;color:#8fa4c2;transition:all .25s ease}
#games .filter-row .chip:hover{color:#fff;border-color:rgba(53,200,255,.18);background:rgba(40,120,255,.08);transform:translateY(-1px)}
#games .filter-row .chip.active{color:#fff;border-color:rgba(53,200,255,.38);background:linear-gradient(135deg,#2878ff,#1760dc);box-shadow:0 0 20px rgba(40,120,255,.22),inset 0 1px 0 rgba(255,255,255,.18)}
#game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}
#game-grid .game-card{min-width:0}
#game-grid .game-cover-wrap{border-radius:14px;overflow:visible;position:relative}
#game-grid .game-cover{border-radius:14px;box-shadow:0 14px 30px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.055);transition:transform .4s cubic-bezier(.2,.75,.2,1),box-shadow .4s ease,filter .4s ease}
#game-grid .game-cover-wrap::after{content:"";position:absolute;inset:auto 12% -8px;height:24px;background:radial-gradient(ellipse,rgba(40,120,255,.28),transparent 68%);filter:blur(12px);opacity:.5;z-index:-1;transition:opacity .4s ease}
#game-grid .game-card:hover .game-cover{transform:translateY(-6px) scale(1.018);box-shadow:0 22px 45px rgba(0,0,0,.46),0 0 28px rgba(40,120,255,.12);filter:saturate(1.08) brightness(1.04)}
#game-grid .game-card:hover .game-cover-wrap::after{opacity:.9}
#game-grid .game-card h4{font-size:.78rem;margin:11px 2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game-grid .game-card .genre{font-size:.63rem;margin:0 2px;color:#7f93af}
#game-grid .game-card .price-row,#game-grid .game-card .rating{margin-left:2px}
#game-grid .game-card .now{color:#54a4ff}
#game-grid .game-card .rating{font-size:.65rem}
#game-grid .wish-card{top:10px;right:10px;width:36px;height:36px;background:rgba(3,8,18,.82);border-color:rgba(255,255,255,.14);backdrop-filter:blur(8px);box-shadow:0 8px 20px rgba(0,0,0,.3);transition:all .25s ease}
#game-grid .wish-card:hover{border-color:rgba(53,200,255,.55);box-shadow:0 0 18px rgba(53,200,255,.24);transform:scale(1.08)}
#game-grid .sale-tag{top:10px;left:10px;border-radius:7px;padding:5px 8px;background:linear-gradient(135deg,#2878ff,#6d6cff);box-shadow:0 0 16px rgba(40,120,255,.25);font-size:.62rem}
#recently-viewed{padding-top:20px}
#recently-viewed .section-head h2{font-size:1.15rem}
#recent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
@media(max-width:1050px){#game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#games .section-head{align-items:flex-start;flex-direction:column}#games .filter-row{width:100%;justify-content:flex-start}#game-grid,#recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}}
@media(max-width:480px){#games .filter-row{overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start}#games .filter-row .chip{flex:0 0 auto}#game-grid,#recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v21 — dedicated games catalog */
#games-page{max-width:1280px;margin:0 auto;padding:48px 24px 80px;min-height:70vh}
.games-catalog-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.games-catalog-head h1{font-family:Sora,Inter,sans-serif;font-size:clamp(2rem,4vw,3.4rem);margin:10px 0 6px}
.games-toolbar{padding:18px;border:1px solid rgba(90,150,255,.16);background:rgba(8,22,43,.72);border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.18);backdrop-filter:blur(12px)}
.catalog-search{display:flex;gap:10px;margin-bottom:14px}.catalog-search input{flex:1;min-width:0}
.catalog-filters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.catalog-filters select,.catalog-filters input,.catalog-search input{width:100%;min-height:44px}
.catalog-meta{display:flex;justify-content:space-between;align-items:center;margin:20px 2px 14px;color:var(--muted,#91a2bb)}
.catalog-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:32px}.catalog-pagination span{padding:0 6px;color:var(--muted,#91a2bb)}
.catalog-page-btn{min-width:42px;height:42px;border:1px solid rgba(90,150,255,.18);border-radius:12px;background:rgba(8,22,43,.8);color:inherit;cursor:pointer}.catalog-page-btn.active{background:linear-gradient(135deg,#2878ff,#6d6cff);border-color:transparent;color:#fff}.catalog-page-btn:disabled{opacity:1}
#games-page .game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
@media(max-width:1100px){.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#games-page .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#games-page{padding:32px 16px 60px}.games-catalog-head{align-items:flex-start;flex-direction:column}.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-search{flex-direction:column}#games-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.catalog-meta{margin-top:14px}}
@media(max-width:480px){.catalog-filters{grid-template-columns:1fr}#games-page .game-grid{grid-template-columns:1fr 1fr}}

/* v24: consoles and accessories use the same card sizing/grid as games */
#console-row.accessory-row,#accessory-row.accessory-row,#digital-cards-row.accessory-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
#console-row .game-card,#accessory-row .game-card,#digital-cards-row .game-card{min-width:0}{min-width:0}
#console-row .game-cover,#accessory-row .game-cover,#digital-cards-row .game-cover{aspect-ratio:3/4}
#console-row .game-card h4,#accessory-row .game-card h4{margin:8px 0 3px;font-size:13px}
@media(max-width:900px){#console-row.accessory-row,#accessory-row.accessory-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){#console-row.accessory-row,#accessory-row.accessory-row{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v27 — readable typography + horizontal storefront rails + gold pricing */
:root{--price-gold:#f4c95d;--price-gold-soft:#d9ad45}
html{font-size:16px}
body{font-size:15px}
.topnav nav button,.top-actions button{font-size:1rem}
.brand-button strong{font-size:1.05rem}
.section-head h2{font-size:1.55rem;line-height:1.25}
.section-head p,.muted{font-size:.92rem;line-height:1.5}
.btn{font-size:.92rem}

/* Home sections are horizontal rails. Games remain limited to 8 items. */
#game-grid,#console-row.accessory-row,#accessory-row.accessory-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow-x:auto;
  overflow-y:hidden;
  gap:18px;
  padding:4px 4px 14px;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
#game-grid::-webkit-scrollbar,#console-row.accessory-row::-webkit-scrollbar,#accessory-row.accessory-row::-webkit-scrollbar{display:none;width:0;height:0}
#game-grid .game-card,#console-row .game-card,#accessory-row .game-card,#digital-cards-row .game-card{
  flex:0 0 190px;
  width:190px;
  scroll-snap-align:start;
}
#game-grid .game-cover,#console-row .game-cover,#accessory-row .game-cover,#digital-cards-row .game-cover{
  width:100%;
  aspect-ratio:3/4
}
#game-grid .game-card h4,#console-row .game-card h4,#accessory-row .game-card h4,#digital-cards-row .game-card h4{
  font-size:.9rem;
  line-height:1.3
}#game-grid .game-card .genre,#console-row .game-card .genre,#accessory-row .game-card .genre,#digital-cards-row .game-card .genre{font-size:.78rem;line-height:1.4}
#game-grid .price-row .now,#console-row .price-row .now,#accessory-row .price-row .now,
.price-row .now,.product-info .now{color:var(--price-gold)!important;font-size:.9rem;font-weight:800}
.price-row .was{font-size:.78rem}
.rating{font-size:.78rem}

/* Details / forms: slightly larger and easier to scan */
.product-info h1{line-height:1.12}
.product-info p,.product-info .muted{font-size:1rem;line-height:1.65}
.digital-option{font-size:.95rem}
.auth-form input,.checkout-form input,.checkout-form textarea,.checkout-form select,.account-card input,
.search-panel input,.search-panel select,.catalog-search input,.catalog-filters select,.catalog-filters input{font-size:.95rem;min-height:44px}

@media(max-width:700px){
  #game-grid .game-card,#console-row .game-card,#accessory-row .game-card{flex-basis:165px;width:165px}
  .section-head h2{font-size:1.35rem}
}
/* v28 stock + floating cart + checkout method */
.stock-alert{position:absolute;left:10px;bottom:10px;background:#c99b3b;color:#08111f;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;z-index:3;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.game-cover-wrap{position:relative}
#cart-button{position:fixed;right:24px;bottom:24px;width:62px;height:62px;border-radius:50%;z-index:40;background:linear-gradient(135deg,#12315d,#0a1930);border:1px solid rgba(53,200,255,.5);box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 22px rgba(53,200,255,.18);font-size:0;display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease}
#cart-button::before{content:'🛒';font-size:24px}#cart-button:hover{transform:translateY(-4px) scale(1.04);box-shadow:0 14px 34px rgba(0,0,0,.5),0 0 28px rgba(53,200,255,.3)}#cart-count{position:absolute;right:-2px;top:-3px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#c99b3b;color:#08111f;font-size:12px;display:grid;place-items:center}
.delivery-choice{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;gap:18px;align-items:center;margin:2px 0 4px}.delivery-choice legend{padding:0 6px;color:var(--ink-dim);font-size:12px}.delivery-choice label{display:flex;gap:7px;align-items:center;font-weight:700;cursor:pointer}.delivery-choice input{width:auto}.checkout-form input:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:560px){#cart-button{right:16px;bottom:16px;width:56px;height:56px}.delivery-choice{flex-wrap:wrap}}

/* v29 card spacing + bottom-right actions */
.game-card h4{margin:13px 0 6px;font-size:15px;line-height:1.35;min-height:2.7em}
.game-card .genre{min-height:2.5em;line-height:1.45}
.game-card .price-row{margin-top:9px;min-height:25px;align-items:center}
#digital-cards-row .game-card h4{
  margin:13px 0 6px;
  font-size:15px;
  line-height:1.35;
  min-height:auto;
}

#digital-cards-row .game-card .genre{
  min-height:auto;
  line-height:1.45;
}

#digital-cards-row .game-card .price-row{
  margin-top:9px;
  min-height:25px;
  align-items:center;
}
.game-card .now{font-size:1rem!important}
.game-card .acc-add,.game-card .console-add{display:block;margin:10px 0 0 auto;width:max-content;min-width:112px;text-align:center}
#cart-button{right:24px;bottom:24px}
@media(max-width:560px){#cart-button{right:16px;bottom:16px}}


/* v30 — arrow-controlled storefront rails + guaranteed floating cart */
.section-actions{display:flex;align-items:center;gap:12px}
.rail-controls{display:flex;align-items:center;gap:8px}
.rail-arrow{width:42px;height:42px;border-radius:50%;border:1px solid rgba(90,150,255,.28);background:rgba(8,22,43,.82);color:#fff;font-size:25px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.2);transition:transform .18s ease,background .18s ease,border-color .18s ease}
.rail-arrow:hover{transform:translateY(-2px);background:rgba(20,52,94,.95);border-color:rgba(53,200,255,.55)}
#game-grid,#console-row.accessory-row,#accessory-row.accessory-row{scrollbar-width:none;-ms-overflow-style:none}
#game-grid::-webkit-scrollbar,#console-row.accessory-row::-webkit-scrollbar,#accessory-row.accessory-row::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#cart-button,.top-actions #cart-button{position:fixed!important;right:24px!important;bottom:24px!important;top:auto!important;left:auto!important;width:62px!important;height:62px!important;border-radius:50%!important;z-index:999!important;flex:0 0 auto!important}
@media(max-width:700px){.section-actions{gap:8px}.rail-controls{gap:6px}.rail-arrow{width:38px;height:38px;font-size:23px}}
@media(max-width:560px){#cart-button,.top-actions #cart-button{right:16px!important;bottom:16px!important;width:56px!important;height:56px!important}.section-actions{flex-wrap:wrap;justify-content:flex-end}.rail-arrow{width:36px;height:36px}}


/* v31 — cart lives outside the sticky navbar so it is always viewport-fixed */
#cart-button{position:fixed!important;right:24px!important;bottom:24px!important;top:auto!important;left:auto!important;width:62px!important;height:62px!important;border-radius:50%!important;z-index:9999!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;margin:0!important;padding:0!important;font-size:0!important;background:linear-gradient(135deg,#12315d,#0a1930)!important;border:1px solid rgba(53,200,255,.5)!important;box-shadow:0 10px 30px rgba(0,0,0,.45),0 0 22px rgba(53,200,255,.18)!important}
#cart-button::before{content:'🛒';font-size:24px!important}
#cart-button:hover{transform:translateY(-4px) scale(1.04)}
#cart-count{position:absolute!important;right:-2px!important;top:-3px!important}
@media(max-width:560px){#cart-button{right:16px!important;bottom:16px!important;width:56px!important;height:56px!important}}

/* v33 — Recently Viewed cards match the compact storefront cards */
#recent-grid{display:flex!important;align-items:flex-start;justify-content:flex-start;gap:18px;grid-template-columns:none!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none;padding:4px 4px 14px}
#recent-grid::-webkit-scrollbar{display:none;width:0;height:0}
#recent-grid .recent-card,#recent-grid .game-card{flex:0 0 190px;width:190px;min-width:190px;align-self:flex-start}
#recent-grid .recent-card .game-cover,#recent-grid .game-card .game-cover{width:100%;aspect-ratio:3/4;border-radius:14px}
#recent-grid .recent-card h4,#recent-grid .game-card h4{font-size:.9rem;line-height:1.3;margin:13px 0 6px;min-height:2.7em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#recent-grid .recent-card .genre,#recent-grid .game-card .genre{font-size:.78rem;line-height:1.4;min-height:2.5em}
#recent-grid .recent-card .price-row,#recent-grid .game-card .price-row{margin-top:9px;min-height:25px}
#recent-grid .recent-card .now,#recent-grid .game-card .now{font-size:1rem!important;color:var(--price-gold)!important;font-weight:800}
@media(max-width:700px){#recent-grid .recent-card,#recent-grid .game-card{flex-basis:165px;width:165px;min-width:165px}}

/* Site logo in header/footer */
.site-logo{width:34px;height:34px;object-fit:contain;border-radius:8px;display:none;flex:0 0 auto}.brand-button{display:flex;align-items:center;gap:9px}.footer-logo{width:42px;height:42px}.foot-brand{display:flex;align-items:center;gap:10px;margin-top:18px}.hero-price,.hero-price .now{color:#f3c64d!important}

/* v40 — mobile-friendly hero + reliable horizontal product rails */
@media(max-width:700px){
  .hero{
    min-height:430px!important;
    height:430px;
    padding:34px 18px 58px!important;
    display:block!important;
  }
  .hero-copy{max-width:64%!important;position:relative;z-index:3}
  .hero h1{font-size:clamp(1.55rem,7.5vw,2.35rem)!important;line-height:1.05;margin:10px 0!important}
  .hero p{font-size:.82rem;line-height:1.45;max-width:100%;margin:8px 0}
  .hero-tag{font-size:9px;padding:6px 9px}
  .hero-price{margin:10px 0 14px!important;gap:7px}
  .hero-price-now{font-size:17px!important}
  .hero-art-wrap{min-height:0!important;right:0!important;bottom:54px!important;width:43%!important;opacity:.82!important;z-index:2}
  .hero-art{width:min(180px,100%)!important;max-height:250px!important}
  .hero-art-glow{width:100%;height:100%}
  .hero-controls{bottom:11px!important;gap:10px!important}
  .hero-arrow{width:30px;height:30px;font-size:19px}
  .hero-dots{gap:5px}
  .hero-dot{width:7px;height:7px}

  /* Always horizontal on home, including consoles/accessories. */
  #game-grid,#console-row,#accessory-row,#recent-grid{
    display:flex!important;
    flex-wrap:nowrap!important;
    grid-template-columns:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    gap:14px!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  #game-grid::-webkit-scrollbar,#console-row::-webkit-scrollbar,#accessory-row::-webkit-scrollbar,#recent-grid::-webkit-scrollbar{
    display:none!important;width:0!important;height:0!important;
  }
#game-grid .game-card,#console-row .game-card,#accessory-row .game-card,#digital-cards-row .game-card,#recent-grid .game-card,#recent-grid .recent-card{
    flex:0 0 158px!important;
    width:158px!important;
    min-width:158px!important;
  }
 #game-grid .game-cover,#console-row .game-cover,#accessory-row .game-cover,#digital-cards-row .game-cover,#recent-grid .game-cover{
    width:100%!important;
    aspect-ratio:3/4!important;
  }
  .section{padding:28px 16px!important}
  .section-head{gap:10px;margin-bottom:14px}
  .section-head h2{font-size:1.3rem!important}
  .section-head p{font-size:.82rem!important}
}
@media(max-width:420px){
  .hero{min-height:400px!important;height:400px;padding:28px 15px 52px!important}
  .hero-copy{max-width:67%!important}
  .hero h1{font-size:1.48rem!important}
  .hero p{font-size:.76rem;max-width:95%}
  .hero-art-wrap{width:40%!important;bottom:52px!important}
  .hero-art{max-height:220px!important}
 #game-grid .game-card,#console-row .game-card,#accessory-row .game-card,#digital-cards-row .game-card,#recent-grid .game-card,#recent-grid .recent-card{flex-basis:150px!important;width:150px!important;min-width:150px!important}
}

/* v40 — search closes when tapping anywhere outside the search panel */
.search-panel{z-index:1000}


/* v41 — edge-to-edge storefront layout */
html,body{margin:0!important;padding:0!important;width:100%;min-width:0;overflow-x:hidden}
.topnav{margin:0!important}
#store-main{margin:0!important;padding:0!important}
.foot{margin:0!important;padding:28px 5% 0!important}
.foot-bottom{margin-bottom:0!important}
@media(max-width:700px){
  .topnav{padding:12px 16px!important}
  .hero{margin:0 0 18px!important;border-radius:0!important}
  .section{padding-left:16px!important;padding-right:16px!important}
  .foot{padding:24px 16px 0!important}
}
@media(min-width:701px){
  .hero{margin-left:0!important;margin-right:0!important;border-radius:0!important}
}


/* v42 — final responsive pass */
html,body{max-width:100%;overflow-x:hidden}
body{margin:0!important;padding:0!important}
.topnav{width:100%;min-height:64px}
.hero{width:100%;max-width:none}
.section,.page-view{width:100%;max-width:none}
.foot{width:100%;}

/* Home rails always stay rails; never collapse into a grid. */
#game-grid,#console-row,#accessory-row,#recent-grid{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  width:100%;
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
}
#game-grid::-webkit-scrollbar,#console-row::-webkit-scrollbar,#accessory-row::-webkit-scrollbar,#recent-grid::-webkit-scrollbar{display:none!important}

.checkout-form button[type="submit"]{min-height:46px;transition:opacity .2s ease,transform .2s ease}
.checkout-form button[type="submit"]:disabled{opacity:.7;cursor:wait;transform:none}
.checkout-form .form-error{min-height:20px}

@media (min-width:701px){
  .topnav{padding-left:clamp(20px,4vw,64px)!important;padding-right:clamp(20px,4vw,64px)!important}
  .hero{min-height:clamp(500px,62vh,680px);padding:clamp(54px,6vw,84px) clamp(24px,6vw,90px)}
  .section{padding-left:clamp(24px,5vw,72px)!important;padding-right:clamp(24px,5vw,72px)!important}
  .foot{padding-left:clamp(24px,5vw,72px)!important;padding-right:clamp(24px,5vw,72px)!important;padding-bottom:0!important}
}
@media (max-width:700px){
  .topnav{min-height:58px;padding:10px 14px!important;gap:10px!important}
  .brand-button{min-width:0;max-width:58vw}
  .brand-button strong{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-actions{gap:2px!important}
  .top-actions button{padding:7px!important}
  .hero{width:100%!important;min-height:0!important;height:clamp(360px,88vw,430px)!important;padding:26px 15px 50px!important;margin:0!important}
  .hero-copy{max-width:67%!important}
  .hero h1{font-size:clamp(1.45rem,7vw,2.1rem)!important}
  .hero p{font-size:.78rem!important;line-height:1.4!important}
  .hero-art-wrap{right:-1%!important;bottom:50px!important;width:42%!important}
  .hero-art{max-height:220px!important}
  .section{padding:26px 14px!important}
  .section-head{align-items:center!important}
  .section-head h2{font-size:1.18rem!important}
  #game-grid .game-card,#console-row .game-card,#accessory-row .game-card{flex:0 0 clamp(148px,42vw,170px)!important;width:clamp(148px,42vw,170px)!important;min-width:clamp(148px,42vw,170px)!important}
  #recent-grid .recent-card,#recent-grid .game-card{flex:0 0 clamp(148px,42vw,170px)!important;width:clamp(148px,42vw,170px)!important;min-width:clamp(148px,42vw,170px)!important}
  .search-panel{top:58px!important;left:8px!important;right:8px!important;width:auto!important;padding:8px!important}
  .search-panel-inner{padding:10px!important;border-radius:12px!important}
  .search-panel input,.search-panel select{width:100%;min-height:42px}
  .search-panel #store-search{flex:1 1 100%!important}
  .search-panel #apply-search{width:100%}
  .footer-columns{gap:20px!important}
  .foot{padding:22px 14px 0!important}
}
@media (max-width:420px){
  .hero{height:360px!important;padding:23px 13px 46px!important}
  .hero-copy{max-width:69%!important}
  .hero h1{font-size:1.4rem!important}
  .hero-art-wrap{width:39%!important;bottom:47px!important}
  .hero-art{max-height:195px!important}
  #game-grid .game-card,#console-row .game-card,#accessory-row .game-card,#recent-grid .game-card,#recent-grid .recent-card{flex-basis:146px!important;width:146px!important;min-width:146px!important}
  .section{padding-left:12px!important;padding-right:12px!important}
}
/* Full catalog rails + bilingual RTL polish */
#console-row.accessory-row,#accessory-row.accessory-row,#digital-cards-row.accessory-row{
  display:flex!important;
  overflow-x:auto!important;
  grid-template-columns:none!important;
  gap:14px;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding-bottom:6px
}#console-row.accessory-row::-webkit-scrollbar,#accessory-row.accessory-row::-webkit-scrollbar{display:none}
#console-row.accessory-row .game-card,#accessory-row.accessory-row .game-card{flex:0 0 190px;min-width:190px}
#consoles-page .game-grid,#accessories-page .game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.lang-toggle{min-width:42px;font-weight:800;border:1px solid var(--line);background:var(--panel-2);color:var(--ink);border-radius:8px;padding:8px 10px;cursor:pointer}
html[dir="rtl"] .top-actions{margin-left:0;margin-right:auto}html[dir="rtl"] .modal-close{right:auto;left:12px}html[dir="rtl"] .social-links a{margin-right:0;margin-left:12px}
@media(max-width:900px){#consoles-page .game-grid,#accessories-page .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#consoles-page .game-grid,#accessories-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.games-toolbar{width:100%}}
@media(max-width:480px){#console-row.accessory-row .game-card,#accessory-row.accessory-row .game-card{flex-basis:160px;min-width:160px}#consoles-page .game-grid,#accessories-page .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* =========================================
   ADD TO CART
   Games + Digital Cards = HIDDEN
   Consoles + Accessories = VISIBLE
   ========================================= */

/* Hide Add to Cart from Games */
#game-grid .card-add{
  display:none !important;
}

/* Hide Add to Cart from Digital Cards */
#digital-cards-row .card-add{
  display:none !important;
}

/* Keep Add to Cart on Consoles */
#consoles-catalog-grid .card-add{
  display:block !important;
}

/* Keep Add to Cart on Accessories */
#accessories-catalog-grid .card-add{
  display:block !important;
}

/* Home page Consoles */
#console-row .card-add{
  display:block !important;
}

/* Home page Accessories */
#accessory-row .card-add{
  display:block !important;
}
@media(max-width:560px){
  #games .section-head{
    display:block;
    margin-bottom:18px;
  }

  #games .section-head h2{
    font-size:1.5rem;
    line-height:1.2;
    margin:0 0 8px;
    white-space:nowrap;
  }

  #games .section-head .muted{
    font-size:.85rem;
    margin-bottom:14px;
  }

  #games .filter-row{
    width:100%;
  }
}
/* =========================
   MOBILE GAMES = CONSOLES
   ========================= */
@media (max-width:700px){

  #games{
    padding-top:26px!important;
    padding-bottom:26px!important;
  }

  #games .section-head{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    margin-bottom:14px!important;
  }

  #games .section-head h2{
    font-size:1.18rem!important;
    line-height:1.25!important;
    margin:0!important;
    letter-spacing:0!important;
  }

  #games .section-head .muted{
    font-size:.82rem!important;
    line-height:1.4!important;
    margin:0!important;
  }

  #game-grid .game-card{
    flex:0 0 160px!important;
    width:160px!important;
    min-width:160px!important;
  }

  #game-grid .game-cover{
    width:160px!important;
    aspect-ratio:3/4!important;
  }
}

@media (max-width:480px){
  #game-grid .game-card{
    flex:0 0 160px!important;
    width:160px!important;
    min-width:160px!important;
  }

  #game-grid .game-cover{
    width:160px!important;
  }
}
#search-toggle{
  font-size:20px !important;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}