:root{
  --gold:#FFD84D;
  --purple:#8B3DFF;
  --deep:#100C2B;
  --deep2:#0A0820;
  --pink:#FF3EB5;
  --bg:#0b0a1f;
  --card-bg:#171334;
  --text:#EDEAFB;
  --muted:#9C95C9;
  --border:#322a5e;
  --success:#34d399;
  --font-display:'Orbitron', sans-serif;
  --font-body:'Rajdhani', "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  font-size:16px;
  background-color:var(--bg);
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,.9) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 80% 10%, rgba(255,255,255,.7) 0%, transparent 60%),
    radial-gradient(2px 2px at 50% 60%, rgba(255,255,255,.8) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 85%, rgba(255,255,255,.6) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 72%, rgba(255,255,255,.7) 0%, transparent 60%),
    radial-gradient(2px 2px at 65% 30%, rgba(255,255,255,.6) 0%, transparent 60%),
    radial-gradient(circle at 15% 0%, rgba(139,61,255,.35), transparent 45%),
    radial-gradient(circle at 88% 25%, rgba(255,62,181,.22), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(60,30,120,.45), transparent 55%);
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 220px 220px, 220px 220px, 220px 220px, 220px 220px, 220px 220px, 220px 220px, auto, auto, auto;
  background-attachment: fixed;
  color:var(--text);
  line-height:1.4;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}

/* ---------- Top utility bar ---------- */
.utility-bar{
  background:var(--deep2);
  color:#cfc9ef;
  font-size:12.5px;
  padding:6px 0;
  border-bottom:1px solid var(--border);
}
.utility-bar .wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.utility-bar a{opacity:.9;}
.utility-bar a:hover{opacity:1; color:var(--gold); text-decoration:underline;}
.utility-links{display:flex; gap:18px;}

/* ---------- Header ---------- */
header.main{
  background:var(--deep);
  border-bottom:3px solid var(--gold);
  position:sticky;
  top:0;
  z-index:100;
}
.header-inner{
  max-width:1280px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  gap:28px;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  letter-spacing:.5px;
  color:var(--text);
  white-space:nowrap;
  text-shadow:0 0 14px rgba(139,61,255,.6);
}
.search-bar{
  flex:1;
  display:flex;
  max-width:640px;
}
.search-bar input{
  flex:1;
  padding:10px 14px;
  border:2px solid var(--border);
  border-right:none;
  border-radius:6px 0 0 6px;
  font-size:14px;
  outline:none;
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-family:var(--font-body);
}
.search-bar input::placeholder{color:var(--muted);}
.search-bar input:focus{border-color:var(--purple);}
.search-bar button{
  background:var(--purple);
  border:2px solid var(--purple);
  color:#fff;
  padding:0 18px;
  border-radius:0 6px 6px 0;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  font-family:var(--font-body);
}
.search-bar button:hover{background:var(--pink); border-color:var(--pink);}
.header-actions{
  display:flex;
  align-items:center;
  gap:20px;
  margin-left:auto;
}
.header-action{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:11px;
  color:var(--muted);
  cursor:pointer;
  position:relative;
  gap:2px;
}
.header-action svg{width:22px; height:22px; stroke:var(--text);}
.header-action:hover{color:var(--gold);}
.header-action:hover svg{stroke:var(--gold);}
.cart-badge{
  position:absolute;
  top:-6px; right:-10px;
  background:var(--pink);
  color:#fff;
  font-size:10px;
  font-weight:700;
  width:17px; height:17px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- Nav ---------- */
nav.category-nav{
  background:var(--deep2);
}
nav.category-nav .wrap{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  gap:2px;
  overflow-x:auto;
}
nav.category-nav a{
  color:#d6d0f5;
  font-size:13.5px;
  font-weight:600;
  padding:12px 16px;
  white-space:nowrap;
  display:block;
}
nav.category-nav a:hover, nav.category-nav a.active{
  background:var(--purple);
  color:#fff;
}
.nav-soon-badge{
  display:inline-block;
  margin-left:6px;
  padding:1px 6px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  background:var(--gold);
  color:var(--deep);
  border-radius:999px;
  vertical-align:2px;
}

/* ---------- Hero (shop homepage) ---------- */
.hero{
  background:radial-gradient(circle at 20% 20%, rgba(255,62,181,.35), transparent 45%),
             radial-gradient(circle at 80% 60%, rgba(139,61,255,.4), transparent 50%),
             linear-gradient(120deg, #1a1440 0%, var(--deep2) 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--border);
}
.hero .wrap{
  max-width:1280px;
  margin:0 auto;
  padding:48px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.hero h1{
  font-family:var(--font-display);
  font-size:29px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.5px;
  margin-bottom:14px;
  text-shadow:0 0 18px rgba(139,61,255,.7);
}
.hero p{font-size:15px; opacity:.9; max-width:480px; margin-bottom:18px; color:#d6d0f5;}
.hero .hero-tagline{
  font-family:var(--font-display);
  font-size:20px;
  font-weight:800;
  color:var(--gold);
  opacity:1;
  margin-bottom:14px;
  text-shadow:0 0 14px rgba(255,216,77,.5);
}
.hero .cta{
  background:linear-gradient(120deg, var(--gold), #ffb347);
  color:#1c1330;
  font-weight:700;
  padding:12px 24px;
  border-radius:6px;
  display:inline-block;
  font-size:14px;
  box-shadow:0 4px 0 #b8860b, 0 0 20px rgba(255,216,77,.4);
}
.hero .cta:hover{transform:translateY(1px); box-shadow:0 3px 0 #b8860b, 0 0 20px rgba(255,216,77,.4);}
.hero-graphic{
  font-size:120px;
  line-height:1;
  filter:drop-shadow(0 8px 16px rgba(139,61,255,.5));
  flex-shrink:0;
}
.hero-graphic img{
  height:100px;
  width:auto;
  max-width:320px;
  object-fit:contain;
}
.hero-graphic .lorcana-wordmark{ font-size:22px; }
.hero-graphic .lorcana-wordmark em{ font-size:46px; }
.hero-graphic.hero-graphic-onepiece{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.hero-graphic.hero-graphic-onepiece img{
  height:82px;
  filter:invert(1) brightness(1.15);
}
.hero-graphic.hero-graphic-onepiece .op-cardgame-label{
  font-size:17px;
  letter-spacing:3px;
}
@media (max-width:700px){
  .hero-graphic img{ height:60px; }
  .hero-graphic .lorcana-wordmark em{ font-size:28px; }
  .hero-graphic.hero-graphic-onepiece img{ height:48px; }
}
.hero-emoji-row{
  display:flex;
  gap:6px;
}
.hero-emoji-row span{
  line-height:1;
  filter:drop-shadow(0 8px 16px rgba(139,61,255,.5));
  animation:float 3.5s ease-in-out infinite;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-emoji-row span img{
  height:64px;
  width:auto;
  max-width:150px;
  object-fit:contain;
}
.hero-emoji-row span.hero-lorcana{
  flex-direction:column;
  font-family:'Rajdhani', sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--muted);
}
.hero-emoji-row span.hero-lorcana em{
  font-style:normal;
  font-size:30px;
  font-weight:800;
  letter-spacing:.5px;
  background:linear-gradient(90deg,#F5A623,#9B59B6,#2ECC71,#E74C3C,#3498DB);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-emoji-row span.hero-onepiece{
  flex-direction:column;
  gap:2px;
}
.hero-emoji-row span.hero-onepiece img{
  height:44px;
  filter:invert(1) brightness(1.15);
}
.hero-emoji-row span.hero-onepiece .op-cardgame-label{
  font-size:11px;
  letter-spacing:2px;
}
.hero-emoji-row span:nth-child(1){ transform:rotate(-6deg); animation-delay:0s; }
.hero-emoji-row span:nth-child(2){ transform:rotate(5deg) translateY(10px); animation-delay:.4s; }
.hero-emoji-row span:nth-child(3){ transform:rotate(-4deg) translateY(-6px); animation-delay:.8s; }
.hero-emoji-row span:nth-child(4){ transform:rotate(7deg) translateY(6px); animation-delay:1.2s; }
@keyframes float{
  0%, 100% { transform-origin:center; margin-top:0; }
  50% { margin-top:-10px; }
}
@media (max-width:700px){
  .hero-emoji-row span img{ height:40px; max-width:100px; }
  .hero-emoji-row span.hero-lorcana em{ font-size:20px; }
}

/* "Shop by Game" tiles on the homepage. */
.section-heading{
  text-align:center;
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
}
.section-heading h2{
  font-family:var(--font-display);
  font-size:24px;
  color:#fff;
  margin-bottom:8px;
}
.section-heading p{color:var(--muted); font-size:14px;}
.game-tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:20px;
  max-width:1280px;
  margin:28px auto 0;
  padding:0 24px;
}
.game-tile{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:12px;
  padding:32px 22px;
  text-align:center;
  text-decoration:none;
  color:inherit;
  display:block;
  position:relative;
  overflow:hidden;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.coming-soon-ribbon{
  position:absolute;
  top:16px;
  right:-34px;
  width:150px;
  transform:rotate(45deg);
  background:linear-gradient(90deg, var(--pink), var(--purple));
  color:#fff;
  font-family:'Rajdhani', sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  text-align:center;
  padding:5px 0;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
}
.coming-soon-banner{
  max-width:1280px;
  margin:0 auto 28px;
  padding:16px 24px;
  background:linear-gradient(90deg, rgba(255,62,181,.16), rgba(139,61,255,.16));
  border:1px solid var(--border);
  border-radius:10px;
  color:#f0edff;
  font-size:14px;
  text-align:center;
}
.coming-soon-banner strong{ color:var(--gold); }
.game-tile:hover{
  transform:translateY(-5px);
  border-color:var(--gold);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.game-tile .tile-logo{
  height:56px;
  margin-bottom:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.game-tile .tile-logo img{
  max-height:56px;
  max-width:100%;
  width:auto;
  object-fit:contain;
}
.game-tile .tile-logo.tile-logo-stack{
  flex-direction:column;
  gap:4px;
}
.game-tile .tile-logo.tile-logo-stack img{
  max-height:40px;
  filter:invert(1) brightness(1.15);
}
.op-cardgame-label{
  font-family:'Rajdhani', sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--muted);
}
.lorcana-wordmark{
  font-family:'Rajdhani', sans-serif;
  font-size:15px;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--muted);
  line-height:1.3;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.lorcana-wordmark em{
  font-style:normal;
  font-size:24px;
  font-weight:800;
  letter-spacing:.5px;
  background:linear-gradient(90deg,#F5A623,#9B59B6,#2ECC71,#E74C3C,#3498DB);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.game-tile h3{
  font-family:var(--font-display);
  font-size:16px;
  color:#fff;
  margin-bottom:8px;
  letter-spacing:.3px;
}
.game-tile p{font-size:13px; color:var(--muted); margin-bottom:16px; line-height:1.5;}
.game-tile .shop-link{color:var(--gold); font-weight:700; font-size:13px;}

.homepage-section{ padding:56px 0; }
.homepage-section.alt{ background:var(--deep2); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }

.cta-banner{
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  text-align:center;
}
.cta-banner h2{
  font-family:var(--font-display);
  font-size:22px;
  color:#fff;
  margin-bottom:10px;
}
.cta-banner p{color:var(--muted); font-size:14px; margin-bottom:20px;}

.promo-strip{
  background:linear-gradient(90deg, var(--purple), var(--pink));
  color:#fff;
  font-size:13px;
  font-weight:700;
  text-align:center;
  padding:8px;
  letter-spacing:.3px;
}

/* ---------- Simple page hero (About / Contact / FAQ / etc.) ---------- */
.page-hero{
  background:radial-gradient(circle at 20% 20%, rgba(255,62,181,.3), transparent 45%),
             radial-gradient(circle at 80% 60%, rgba(139,61,255,.35), transparent 50%),
             linear-gradient(120deg, #1a1440 0%, var(--deep2) 100%);
  border-bottom:1px solid var(--border);
  padding:44px 24px;
  text-align:center;
}
.page-hero h1{
  font-family:var(--font-display);
  font-size:28px;
  font-weight:800;
  letter-spacing:.5px;
  color:var(--text);
  text-shadow:0 0 18px rgba(139,61,255,.6);
  margin-bottom:10px;
}
.page-hero p{color:#d6d0f5; font-size:14.5px; max-width:560px; margin:0 auto;}

/* ---------- Content pages ---------- */
.content-wrap{
  max-width:860px;
  margin:0 auto;
  padding:44px 24px 70px;
  flex:1;
  width:100%;
}
.content-wrap h2{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:700;
  color:var(--gold);
  letter-spacing:.5px;
  margin:34px 0 14px;
}
.content-wrap h2:first-child{margin-top:0;}
.content-wrap p{margin-bottom:14px; color:#d6d0f5; font-size:15px; line-height:1.65;}
.content-wrap ul{margin:0 0 14px 20px; color:#d6d0f5; font-size:15px; line-height:1.75;}
.content-wrap a.inline-link{color:var(--gold); text-decoration:underline;}
.content-wrap .note{
  font-size:13px;
  color:var(--muted);
  border-left:3px solid var(--purple);
  padding:10px 14px;
  background:var(--card-bg);
  border-radius:0 6px 6px 0;
  margin-bottom:18px;
}

.highlight-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin:20px 0 10px;
}
.highlight-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px 18px;
  text-align:center;
}
.highlight-card .icon{font-size:30px; margin-bottom:10px;}
.highlight-card h3{font-family:var(--font-display); font-size:12.5px; color:var(--gold); letter-spacing:.5px; margin-bottom:8px;}
.highlight-card p{font-size:13px; color:var(--muted); margin:0;}

.step-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin:20px 0 10px;
  counter-reset:step;
}
.step-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px 18px;
  position:relative;
}
.step-card::before{
  counter-increment:step;
  content:counter(step);
  font-family:var(--font-display);
  font-size:22px;
  font-weight:800;
  color:var(--gold);
  display:block;
  margin-bottom:10px;
}
.step-card h3{font-family:var(--font-display); font-size:12.5px; letter-spacing:.5px; margin-bottom:6px; color:var(--text);}
.step-card p{font-size:13px; color:var(--muted); margin:0;}

.faq-item{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:8px;
  margin-bottom:10px;
  overflow:hidden;
}
.faq-item summary{
  padding:14px 18px;
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+'; color:var(--gold); font-size:18px; flex-shrink:0;}
.faq-item[open] summary::after{content:'\2212';}
.faq-item .faq-answer{padding:0 18px 16px; color:var(--muted); font-size:14px; line-height:1.65;}

.contact-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:24px;
  margin-bottom:16px;
}
.contact-card h3{font-family:var(--font-display); font-size:13.5px; color:var(--gold); letter-spacing:.5px; margin-bottom:8px;}
.contact-card p{margin:0; color:#d6d0f5; font-size:14.5px;}
.contact-card a.email-link{color:var(--text); font-weight:700; text-decoration:underline;}

.condition-table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0 22px;
  font-size:14px;
}
.condition-table th, .condition-table td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
}
.condition-table th{
  font-family:var(--font-display);
  font-size:11px;
  letter-spacing:.5px;
  color:var(--gold);
  text-transform:uppercase;
}
.condition-table td{color:#d6d0f5;}
.condition-table td:first-child{color:var(--text); font-weight:700; white-space:nowrap;}

/* ---------- Shop layout ---------- */
.layout{
  max-width:1280px;
  margin:0 auto;
  padding:28px 24px 60px;
  display:grid;
  grid-template-columns:230px 1fr;
  gap:28px;
  align-items:start;
  flex:1;
  width:100%;
}
.sidebar{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:8px;
  padding:18px;
  position:sticky;
  top:166px;
  max-height:calc(100vh - 166px - 24px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.sidebar h3{
  font-family:var(--font-display);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--gold);
  margin-bottom:10px;
  padding-bottom:8px;
  border-bottom:2px solid var(--purple);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.filter-actions{
  font-family:var(--font-body);
  font-size:11px;
  font-weight:500;
  letter-spacing:normal;
  text-transform:none;
  color:var(--muted);
}
.filter-actions a{color:var(--muted); cursor:pointer;}
.filter-actions a:hover{color:var(--gold);}
.filter-group{margin-bottom:20px;}
.filter-group:last-child{margin-bottom:0;}
.filter-option{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  padding:5px 0;
  cursor:pointer;
  color:#c9c4e8;
}
.filter-option:hover{color:var(--gold);}
.filter-option input{accent-color:var(--purple); cursor:pointer;}
.filter-option .count{margin-left:auto; color:var(--muted); font-size:12px;}

.filter-input{
  width:100%;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:6px;
  font-size:13px;
  background:var(--card-bg);
  color:var(--text);
  font-family:var(--font-body);
}
.filter-input::placeholder{color:var(--muted);}
.filter-input:focus{border-color:var(--purple); outline:none;}

/* Collapsible sidebar filter sections (e.g. Rarity, which can run to 30+
   options on some catalogs like Yu-Gi-Oh!) — closed by default so the
   sidebar doesn't dominate the page; click to expand. */
.filter-details{ margin-bottom:20px; }
.filter-details summary{
  font-family:var(--font-display);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--gold);
  margin-bottom:10px;
  padding-bottom:8px;
  border-bottom:2px solid var(--purple);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  cursor:pointer;
  list-style:none;
}
.filter-details summary::-webkit-details-marker{ display:none; }
.filter-details summary::after{
  content:'▾';
  color:var(--muted);
  font-size:11px;
  transition:transform 0.15s ease;
}
.filter-details[open] summary::after{ transform:rotate(180deg); }
.filter-details .filter-subrow{
  font-family:var(--font-body);
  font-size:11px;
  color:var(--muted);
  margin:-2px 0 10px;
}
.filter-details .filter-subrow a{color:var(--muted); cursor:pointer;}
.filter-details .filter-subrow a:hover{color:var(--gold);}
.filter-details .filter-group{
  max-height:260px;
  overflow-y:auto;
  padding-right:4px;
}

.results-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
  flex-wrap:wrap;
  gap:10px;
}
.results-bar h2{font-family:var(--font-display); font-size:18px; font-weight:700; letter-spacing:.5px; color:var(--text); text-shadow:0 0 12px rgba(139,61,255,.5);}
.results-bar .count-text{font-size:13px; color:var(--muted);}
.sort-select{
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:6px;
  font-size:13px;
  background:var(--card-bg);
  color:var(--text);
  font-family:var(--font-body);
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:18px;
}
.empty-state{
  grid-column:1/-1;
  text-align:center;
  padding:60px 20px;
  color:var(--muted);
  background:var(--card-bg);
  border:1px dashed var(--border);
  border-radius:10px;
}
.empty-state p{margin-bottom:8px;}
.empty-state p:first-child{font-size:16px; color:var(--text); font-weight:700;}
.empty-state code{
  background:rgba(255,255,255,.08);
  padding:2px 6px;
  border-radius:4px;
  font-size:12.5px;
  color:var(--gold);
}

.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px;
}
.page-btn{
  background:var(--card-bg);
  border:1px solid var(--border);
  color:var(--text);
  padding:9px 18px;
  border-radius:6px;
  font-size:13px;
  font-weight:700;
  font-family:var(--font-body);
  cursor:pointer;
}
.page-btn:hover:not(:disabled){border-color:var(--purple); color:var(--gold);}
.page-btn:disabled{opacity:.35; cursor:not-allowed;}
.page-info{font-size:13px; color:var(--muted);}
.page-num{
  padding:8px 13px;
  min-width:38px;
  text-align:center;
}
.page-num.active{
  background:linear-gradient(120deg, var(--pink), var(--purple));
  border-color:transparent;
  color:#fff;
  opacity:1;
  cursor:default;
}
.page-ellipsis{
  color:var(--muted);
  font-size:13px;
  padding:0 4px;
}
.card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:box-shadow .15s, transform .15s;
}
.card:hover{
  box-shadow:0 8px 24px rgba(139,61,255,.35);
  transform:translateY(-2px);
  border-color:var(--purple);
}
.card-art{
  aspect-ratio:3/4;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  color:#fff;
  font-size:52px;
  border-bottom:1px solid var(--border);
}
.card-art img{width:100%; height:100%; object-fit:contain; padding:10px;}
.rarity-tag{
  position:absolute;
  top:8px; left:8px;
  font-size:10px;
  font-weight:700;
  padding:3px 8px;
  border-radius:20px;
  background:rgba(0,0,0,.55);
  color:#fff;
  letter-spacing:.3px;
}
.stock-tag{
  position:absolute;
  top:8px; right:8px;
  font-size:10px;
  font-weight:700;
  padding:3px 8px;
  border-radius:20px;
  color:#fff;
}
.in-stock{background:var(--success);}
.low-stock{background:var(--pink);}
.sold-out{background:#5b5568;}
.card.is-sold-out{opacity:.6;}
.card-body{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.card{cursor:pointer;}
.card-set{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px;}
.card-name{font-size:14.5px; font-weight:700; color:var(--text); line-height:1.25;}
.card-condition{font-size:12px; color:var(--muted);}
.variant-badge{
  display:inline-block;
  width:fit-content;
  font-size:10.5px;
  font-weight:700;
  padding:2px 9px;
  border-radius:20px;
  background:rgba(139,61,255,.28);
  color:var(--gold);
  letter-spacing:.3px;
}
.card-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-top:8px;
}
.price{font-size:17px; font-weight:800; color:var(--gold);}
.add-btn{
  background:var(--purple);
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  font-family:var(--font-body);
}
.add-btn:hover{background:var(--pink);}
.add-btn:active{transform:scale(.97);}
.add-btn:disabled{background:var(--border); cursor:not-allowed;}

/* ---------- Cart Drawer ---------- */
.overlay{
  position:fixed; inset:0;
  background:rgba(6,4,20,.65);
  opacity:0; pointer-events:none;
  transition:opacity .2s;
  z-index:200;
}
.overlay.open{opacity:1; pointer-events:auto;}
.cart-drawer{
  position:fixed;
  top:0; right:-420px;
  width:400px; max-width:92vw;
  height:100%;
  background:var(--deep);
  z-index:201;
  box-shadow:-8px 0 30px rgba(139,61,255,.25);
  display:flex;
  flex-direction:column;
  transition:right .25s ease;
  border-left:1px solid var(--border);
}
.cart-drawer.open{right:0;}
.cart-head{
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cart-head h3{font-family:var(--font-display); font-size:15px; font-weight:700; letter-spacing:.5px; color:var(--gold);}
.cart-head button{
  background:none; border:none; font-size:22px; cursor:pointer; color:var(--muted);
  line-height:1;
}
.cart-head button:hover{color:var(--pink);}
.cart-items{
  flex:1;
  overflow-y:auto;
  padding:10px 20px;
}
.cart-empty{
  text-align:center;
  color:var(--muted);
  padding:60px 20px;
  font-size:14px;
}
.cart-line{
  display:flex;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--border);
}
.cart-line-art{
  width:48px; height:64px;
  border-radius:6px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  color:#fff;
  overflow:hidden;
}
.cart-line-art img{width:100%; height:100%; object-fit:contain; padding:3px;}
.cart-line-info{flex:1; min-width:0;}
.cart-line-info .name{font-size:13.5px; font-weight:700; color:var(--text);}
.cart-line-info .set{font-size:11px; color:var(--muted); margin-bottom:6px;}
.qty-row{display:flex; align-items:center; gap:8px;}
.qty-btn{
  width:22px; height:22px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:4px;
  cursor:pointer;
  font-size:13px;
  line-height:1;
}
.qty-row .qty-val{font-size:13px; width:18px; text-align:center; color:var(--text);}
.remove-link{
  font-size:11px;
  color:var(--pink);
  cursor:pointer;
  margin-left:auto;
}
.cart-line-price{font-size:13.5px; font-weight:700; white-space:nowrap; color:var(--text);}
.cart-foot{
  padding:18px 20px;
  border-top:1px solid var(--border);
}
.subtotal-row{
  display:flex;
  justify-content:space-between;
  font-size:15px;
  font-weight:700;
  margin-bottom:12px;
  color:var(--text);
}
.checkout-btn{
  width:100%;
  background:linear-gradient(120deg, var(--pink), var(--purple));
  color:#fff;
  border:none;
  padding:13px;
  border-radius:6px;
  font-size:14.5px;
  font-weight:700;
  cursor:pointer;
  margin-bottom:8px;
  font-family:var(--font-body);
}
.checkout-btn:hover{filter:brightness(1.1);}
.continue-link{
  display:block;
  text-align:center;
  font-size:12.5px;
  color:var(--muted);
  cursor:pointer;
}
.continue-link:hover{color:var(--gold);}

/* ---------- Footer ---------- */
footer{
  background:var(--deep2);
  color:#b9b2e0;
  margin-top:20px;
  border-top:1px solid var(--border);
}
.footer-inner{
  max-width:1280px;
  margin:0 auto;
  padding:44px 24px 24px;
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:28px;
}
.footer-col h4{
  color:var(--gold);
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.5px;
  margin-bottom:14px;
}
.footer-col a{
  display:block;
  font-size:13px;
  color:#b9b2e0;
  margin-bottom:9px;
}
.footer-col a:hover{color:#fff;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  padding:16px 24px;
  font-size:12px;
  color:#78729e;
}

@media (max-width:900px){
  .layout{grid-template-columns:1fr;}
  .sidebar{position:static; max-height:none; overflow-y:visible;}
  /* Previously this just hid the search bar with no replacement, so phone
     users had no way to search at all. Instead, wrap it to its own full-width
     row below the logo/actions row, so it stays usable on any screen size. */
  .header-inner{flex-wrap:wrap;}
  .search-bar{order:3; flex-basis:100%; max-width:none; margin-top:10px;}
  .footer-inner{grid-template-columns:repeat(2,1fr);}
  .highlight-grid, .step-grid{grid-template-columns:1fr;}
}

/* Account / auth forms */
.auth-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:28px;
  max-width:420px;
  margin:0 auto 16px;
}
.auth-tabs{
  display:flex;
  gap:6px;
  margin-bottom:20px;
  border-bottom:1px solid var(--border);
}
.auth-tab{
  flex:1;
  text-align:center;
  padding:10px 0;
  font-family:var(--font-display);
  font-size:12px;
  letter-spacing:.5px;
  color:var(--muted);
  cursor:pointer;
  border-bottom:2px solid transparent;
  background:none;
  border-top:none;
  border-left:none;
  border-right:none;
}
.auth-tab.active{color:var(--gold); border-bottom-color:var(--gold);}
.auth-field{margin-bottom:14px;}
.auth-field label{display:block; font-size:12.5px; color:var(--muted); margin-bottom:5px;}
.auth-field input{
  width:100%;
  padding:11px 12px;
  border-radius:6px;
  border:1px solid var(--border);
  background:var(--deep2);
  color:var(--text);
  font-family:var(--font-body);
  font-size:14.5px;
}
.auth-field input:focus{outline:none; border-color:var(--purple);}
.auth-error{
  font-size:13px;
  color:var(--pink);
  margin-bottom:12px;
  display:none;
}
.auth-note{font-size:12.5px; color:var(--muted); margin-top:4px;}

/* ---------- Card detail modal ---------- */
.card-modal-overlay{
  position:fixed; inset:0;
  background:rgba(6,4,20,.72);
  opacity:0; pointer-events:none;
  transition:opacity .2s;
  z-index:300;
}
.card-modal-overlay.open{opacity:1; pointer-events:auto;}
.card-modal{
  position:fixed;
  top:50%; left:50%;
  transform:translate(-50%, -50%) scale(.96);
  width:640px; max-width:92vw;
  max-height:88vh;
  overflow-y:auto;
  background:var(--deep);
  border:1px solid var(--border);
  border-radius:14px;
  z-index:301;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s, transform .2s;
  box-shadow:0 20px 60px rgba(0,0,0,.55);
}
.card-modal.open{opacity:1; pointer-events:auto; transform:translate(-50%, -50%) scale(1);}
.modal-close{
  position:absolute;
  top:10px; right:12px;
  background:rgba(0,0,0,.4);
  border:none;
  width:32px; height:32px;
  border-radius:50%;
  font-size:22px;
  color:#fff;
  cursor:pointer;
  line-height:1;
  z-index:2;
}
.modal-close:hover{background:var(--pink);}
.modal-body{
  display:flex;
  flex-direction:column;
}
@media (min-width:640px){
  .modal-body{flex-direction:row;}
}
.modal-art{
  flex:0 0 260px;
  background:var(--card-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  position:relative;
  font-size:80px;
  color:#fff;
  border-radius:14px 14px 0 0;
}
@media (min-width:640px){
  .modal-art{border-radius:14px 0 0 14px;}
}
.modal-art img{width:100%; max-height:360px; object-fit:contain;}
.modal-details{
  flex:1;
  padding:30px 30px 26px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.modal-set{font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.5px;}
.modal-name{font-family:var(--font-display); font-size:19px; color:var(--text); letter-spacing:.3px; margin-bottom:2px;}
.modal-meta{display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 8px;}
.modal-condition{font-size:13px; color:var(--muted);}
.modal-footer{
  margin-top:auto;
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.modal-price{font-size:26px; font-weight:800; color:var(--gold);}
.modal-footer .add-btn{padding:12px 22px; font-size:13.5px;}
