:root {
  --bg-page: #121215;
  --bg-surface: #1a1a20;
  --bg-footer: #0c0c0f;
  --bg-card: linear-gradient(180deg, rgba(34, 34, 40, 0.94) 0%, rgba(25, 25, 30, 0.98) 100%);
  --header-bg: rgba(14, 14, 18, 0.82);
  --accent-gold: #f0b00a;
  --accent-gold-light: #ffd34d;
  --accent-amber: #fa8c29;
  --accent-gradient: linear-gradient(135deg, #f5b915 0%, #f08a18 100%);
  --cta-ink: #181205;
  --text-primary: #f8f8fa;
  --text-soft: #e4e4e7;
  --text-nav: #a1a1aa;
  --text-secondary: #9ca3af;
  --text-muted: #71717a;
  --text-subtle: #52525b;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(240, 176, 10, 0.45);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.42);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 176, 10, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------- Fixed Glass Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 66px;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-spacer {
  height: 66px;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
  color: var(--cta-ink);
  background: var(--accent-gradient);
  box-shadow: 0 4px 14px rgba(240, 176, 10, 0.28);
}

.brand-mark span {
  opacity: 0.85;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-copy small {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav a,
.nav-dropdown-trigger {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-nav);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.category-nav a:hover,
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.category-nav a.active,
.nav-dropdown-trigger.active {
  background: rgba(240, 176, 10, 0.11);
  border-color: rgba(240, 176, 10, 0.3);
  color: var(--accent-gold-light);
}

.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-caret {
  transition: transform 0.18s ease;
  opacity: 0.8;
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 215px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-nav);
}

.nav-dropdown-menu a:hover {
  background: rgba(240, 176, 10, 0.1);
  color: var(--accent-gold-light);
}

.nav-dropdown-menu a.active {
  background: rgba(240, 176, 10, 0.14);
  border-color: rgba(240, 176, 10, 0.3);
  color: var(--accent-gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-link {
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-nav);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.header-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.header-orders-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.account-pill-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.account-pill-btn:hover {
  border-color: var(--border-gold);
  color: var(--accent-gold-light);
}

.account-pill-btn.signed-in {
  border-color: rgba(240, 176, 10, 0.42);
  background: rgba(240, 176, 10, 0.12);
  color: var(--accent-gold-light);
}

.cart-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cart-button:hover {
  border-color: rgba(240, 176, 10, 0.45);
  background: rgba(240, 176, 10, 0.08);
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: var(--cta-ink);
  border: 2px solid #0e0e12;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 15px;
  text-align: center;
}

/* ---------- Atmospheric 3-Layer Backdrop ---------- */
.home-main {
  position: relative;
  isolation: isolate;
}

.site-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 440px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.site-backdrop-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(59, 130, 246, 0.16), transparent 46%),
    radial-gradient(circle at 82% 24%, rgba(240, 176, 10, 0.16), transparent 45%),
    radial-gradient(circle at 50% 48%, rgba(16, 185, 129, 0.1), transparent 52%);
  filter: blur(22px) saturate(1.15);
  transform: scale(1.08);
}

.site-backdrop-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 380px;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 176, 10, 0.16) 0%,
    rgba(250, 140, 41, 0.05) 45%,
    rgba(18, 18, 21, 0) 75%
  );
}

.site-backdrop-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 21, 0.2) 0%, rgba(18, 18, 21, 0.78) 62%, var(--bg-page) 100%);
}

/* ---------- Main Container & Hero ---------- */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.home-hero {
  text-align: center;
  padding: 16px 0 34px;
}

.site-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.home-hero-title {
  margin: 10px auto 0;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.home-hero-desc {
  margin: 10px auto 0;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-secondary);
}

.home-search-wrap {
  max-width: 680px;
  margin: 26px auto 0;
  padding: 6px 6px 6px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search-wrap:focus-within {
  border-color: rgba(240, 176, 10, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(240, 176, 10, 0.12);
}

.search-icon-svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.home-search-wrap input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
}

.home-search-wrap input::placeholder {
  color: var(--text-muted);
}

.home-search-btn {
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--accent-gradient);
  color: var(--cta-ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(240, 176, 10, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(240, 176, 10, 0.4);
  filter: brightness(1.04);
}

.home-top-search {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.trending-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 2px;
}

.trending-pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.trending-pill:hover {
  border-color: rgba(240, 176, 10, 0.42);
  background: rgba(240, 176, 10, 0.1);
  color: var(--accent-gold-light);
}

/* ---------- 3-Up Sliding Promo Carousel ---------- */
.home-promo-section {
  margin-top: 8px;
  margin-bottom: 34px;
}

.gc-slider-shell {
  position: relative;
}

.gc-slider-viewport {
  overflow: hidden;
  margin: 0 -7.5px;
}

.gc-slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gc-slide {
  flex: 0 0 calc(100% / var(--gc-visible, 3));
  min-width: calc(100% / var(--gc-visible, 3));
  padding: 0 7.5px;
}

.gc-promo-card {
  position: relative;
  width: 100%;
  height: 204px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #17171d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.gc-promo-card.plat-ps {
  background: radial-gradient(circle at 75% 30%, rgba(59, 130, 246, 0.45), rgba(14, 30, 68, 0.96) 70%);
}

.gc-promo-card.plat-xbox {
  background: radial-gradient(circle at 75% 30%, rgba(16, 185, 129, 0.4), rgba(10, 38, 30, 0.96) 70%);
}

.gc-promo-card.plat-nintendo {
  background: radial-gradient(circle at 75% 30%, rgba(239, 68, 68, 0.42), rgba(50, 14, 22, 0.96) 70%);
}

.gc-promo-card.plat-default {
  background: radial-gradient(circle at 75% 30%, rgba(240, 176, 10, 0.35), rgba(28, 22, 14, 0.96) 70%);
}

.gc-promo-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.gc-promo-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 22px 34px;
  pointer-events: none;
}

.gc-promo-media img {
  display: block;
  width: auto;
  height: auto;
  max-height: 112px;
  max-width: 170px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.35s ease;
}

.gc-promo-media img.gc-uploaded-art {
  object-fit: cover;
  padding: 4px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gc-promo-card:hover .gc-promo-media img {
  transform: scale(1.05);
}

.gc-promo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.08) 0%, rgba(16, 16, 20, 0.55) 55%, rgba(16, 16, 20, 0.95) 100%);
}

.gc-slide-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
}

.gc-slide-badge.plat-ps { border-color: rgba(96, 165, 250, 0.5); color: #bfdbfe; }
.gc-slide-badge.plat-xbox { border-color: rgba(74, 222, 128, 0.5); color: #bbf7d0; }
.gc-slide-badge.plat-nintendo { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }
.gc-slide-badge.plat-default { border-color: rgba(240, 176, 10, 0.5); color: var(--accent-gold-light); }

.gc-promo-foot {
  position: relative;
  z-index: 2;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-promo-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 72%;
}

.gc-promo-text p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 76%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-promo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gc-slide-price {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold-light);
}

.gc-promo-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.gc-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.gc-slider-prev { left: 10px; }
.gc-slider-next { right: 10px; }

.gc-slider-btn:hover {
  border-color: var(--border-gold);
  background: rgba(24, 24, 30, 0.94);
  color: var(--accent-gold-light);
}

.gc-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.gc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.gc-dot.active {
  width: 24px;
  background: var(--accent-gold);
}

/* ---------- Sections & Glowing Gold Header Bar ---------- */
.home-section {
  margin-top: 40px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.home-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.home-section-dot {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5b915 0%, #f08a18 100%);
  box-shadow: 0 0 12px rgba(240, 176, 10, 0.55);
  flex-shrink: 0;
}

.home-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.home-section-action {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.home-section-action:hover {
  border-color: rgba(240, 176, 10, 0.42);
  background: rgba(240, 176, 10, 0.09);
  color: var(--accent-gold-light);
}

/* ---------- Top Sales Leaderboard ---------- */
.top-sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.hot-sales-card {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hot-sales-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 176, 10, 0.42);
  box-shadow: var(--shadow-card-hover);
}

.hot-sales-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: contain;
  padding: 6px;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hot-sales-info {
  flex: 1;
  min-width: 0;
}

.hot-sales-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-sales-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hot-sales-price {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold);
}

.hot-sales-sub {
  font-size: 12px;
  color: #8b8b96;
}

.hot-sales-rank {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.hot-sales-rank.rank-1 {
  color: #ffd34d;
  background: rgba(240, 176, 10, 0.14);
  border: 1px solid rgba(240, 176, 10, 0.45);
}

.hot-sales-rank.rank-2 {
  color: #e2e8f0;
  background: rgba(203, 213, 225, 0.1);
  border: 1px solid rgba(203, 213, 225, 0.35);
}

.hot-sales-rank.rank-3 {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.4);
}

/* ---------- Hot Categories 4-Column Asymmetric Bento Grid ---------- */
.home-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 195px;
  gap: 16px;
}

.home-cat-card {
  position: relative;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  color: #f4f4f5;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-cat-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.home-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card-hover);
}

.home-cat-media {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.plat-bg-ps .home-cat-media {
  background: radial-gradient(circle at 50% 35%, rgba(59, 130, 246, 0.38), rgba(16, 30, 68, 0.92));
}

.plat-bg-nintendo .home-cat-media {
  background: radial-gradient(circle at 50% 35%, rgba(239, 68, 68, 0.38), rgba(54, 15, 22, 0.92));
}

.plat-bg-xbox .home-cat-media {
  background: radial-gradient(circle at 50% 35%, rgba(16, 185, 129, 0.36), rgba(12, 42, 32, 0.92));
}

.plat-bg-gold .home-cat-media {
  background: radial-gradient(circle at 50% 35%, rgba(240, 176, 10, 0.34), rgba(38, 28, 12, 0.92));
}

.plat-bg-games .home-cat-media {
  background: radial-gradient(circle at 50% 35%, rgba(99, 102, 241, 0.35), rgba(22, 22, 46, 0.92));
}

.home-cat-media img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}

.home-cat-featured .home-cat-media img {
  max-width: 72%;
  max-height: 72%;
}

.home-cat-card:hover .home-cat-media img {
  transform: scale(1.07);
}

.home-cat-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(to top, rgba(25, 25, 30, 1) 0%, rgba(25, 25, 30, 0) 100%);
  pointer-events: none;
}

.home-cat-foot {
  padding: 12px 14px;
  background: rgba(25, 25, 30, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
}

.home-cat-featured .home-cat-foot {
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 700;
}

.home-cat-chevron {
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-cat-card:hover .home-cat-chevron {
  color: var(--accent-gold-light);
  transform: translateX(2px);
}

/* ---------- Live Storefront Catalogue & Filter Bar ---------- */
.catalogue-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.catalogue-tools select {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a20;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}

.catalogue-tools select:focus {
  outline: none;
  border-color: rgba(240, 176, 10, 0.55);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-row button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.filter-row button:hover {
  border-color: rgba(240, 176, 10, 0.4);
  color: var(--text-primary);
}

.filter-row button.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--cta-ink);
  font-weight: 700;
}

.filter-dropdown {
  position: relative;
}

.filter-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.filter-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 22, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.filter-dropdown.open .filter-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-row .filter-dropdown-menu button {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-nav);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.filter-row .filter-dropdown-menu button:hover {
  background: rgba(240, 176, 10, 0.1);
  border-color: transparent;
  color: var(--accent-gold-light);
}

.filter-row .filter-dropdown-menu button.active {
  background: rgba(240, 176, 10, 0.14);
  border-color: rgba(240, 176, 10, 0.3);
  color: var(--accent-gold-light);
  font-weight: 700;
}

.store-message {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.store-message:empty {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(24, 24, 30, 0.65);
  color: var(--text-secondary);
  text-align: center;
  font-size: 14px;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

/* ---------- Product Cards (Obsidian Glass + Compact Framed Images) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 176, 10, 0.42);
  box-shadow: var(--shadow-card-hover);
}

.product-image {
  position: relative;
  height: 165px;
  padding: 36px 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(240, 176, 10, 0.09), rgba(14, 14, 18, 0.85) 75%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-image img.product-art {
  display: block;
  width: auto;
  height: auto;
  max-height: 112px;
  max-width: 82%;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.product-image img.uploaded-art {
  max-height: 118px;
  max-width: 82%;
  object-fit: cover;
  border-radius: 10px;
  padding: 3px;
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.product-card:hover .product-image img.product-art {
  transform: scale(1.04);
}

.product-category {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(55% - 10px);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(14, 14, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-category.plat-ps { border-color: rgba(96, 165, 250, 0.48); color: #bfdbfe; }
.product-category.plat-xbox { border-color: rgba(74, 222, 128, 0.48); color: #bbf7d0; }
.product-category.plat-nintendo { border-color: rgba(248, 113, 113, 0.48); color: #fecaca; }
.product-category.plat-default { border-color: rgba(240, 176, 10, 0.42); color: var(--accent-gold-light); }

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #4ade80;
}

.stock-badge.out {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.product-info {
  flex: 1;
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
}

.product-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 39px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.games-notice-banner {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 10, 0.38);
  background: rgba(240, 176, 10, 0.09);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

.games-notice-banner strong {
  color: var(--accent-gold-light);
}

.account-card-note {
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(240, 176, 10, 0.32);
  background: rgba(240, 176, 10, 0.09);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-gold-light);
}

.checkout-account-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(240, 176, 10, 0.35);
  background: rgba(240, 176, 10, 0.09);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.checkout-account-note strong {
  color: var(--accent-gold-light);
}

.product-price-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold-light);
}

.product-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.add-button, .enquire-button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.add-button {
  padding: 0 12px;
  border: 0;
  background: var(--accent-gradient);
  color: var(--cta-ink);
  box-shadow: 0 4px 12px rgba(240, 176, 10, 0.22);
}

.add-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.enquire-button {
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.enquire-button:hover:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.45);
  color: #4ade80;
}

.add-button:disabled, .enquire-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ---------- Full Catalog Promotional Banner ---------- */
.home-banner-card {
  position: relative;
  min-height: 196px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #17171d;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
}

.home-banner-art {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 24px;
  opacity: 0.34;
  transform: scale(1.02);
  pointer-events: none;
}

.home-banner-art img {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
}

.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 21, 0.25) 0%, rgba(16, 16, 21, 0.88) 72%, rgba(14, 14, 18, 0.98) 100%);
}

.home-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 26px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.home-banner-title {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ---------- Shared Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.button-primary {
  background: var(--accent-gradient);
  color: var(--cta-ink);
  box-shadow: 0 4px 16px rgba(240, 176, 10, 0.28);
}

.button-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(240, 176, 10, 0.4);
  filter: brightness(1.04);
}

.button-quiet {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--border-gold);
  color: var(--accent-gold-light);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- SEO / About Card ---------- */
.home-seo-card {
  padding: 26px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(24, 24, 30, 0.55);
}

.home-seo-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #f4f4f5;
}

.home-seo-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.home-seo-card p:last-child {
  margin-bottom: 0;
}

.home-seo-card a {
  color: var(--accent-gold);
  font-weight: 600;
}

.home-seo-card a:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.contact-info-card, .contact-form-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.contact-info-card h3, .contact-form-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-detail-row {
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(14, 14, 18, 0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}

.contact-detail-row span {
  color: var(--text-muted);
}

.contact-detail-row strong {
  color: var(--text-primary);
  text-align: right;
}

.contact-form-status {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
}

.contact-form-status.success {
  display: block;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.contact-form-status.error {
  display: block;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

/* ---------- 3-Column Obsidian Footer ---------- */
.footer-root {
  position: relative;
  margin-top: 24px;
  background-color: var(--bg-footer);
  background-image: radial-gradient(640px 200px at 50% 0%, rgba(240, 176, 10, 0.06) 0%, rgba(13, 13, 16, 0) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 46px 20px 28px;
}

.footer-glow-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 85%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 176, 10, 0.45), transparent);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr) minmax(260px, 1fr);
  gap: 36px;
}

.footer-tagline {
  margin: 14px 0 18px;
  max-width: 390px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8b8b96;
}

.footer-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
}

.trust-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 13.5px;
  color: #8b8b96;
  transition: color 0.18s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-gold-light);
}

.footer-support-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-support-card {
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(28, 28, 35, 0.9) 0%, rgba(20, 20, 25, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.support-icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.whatsapp-tile {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #4ade80;
}

.message-tile {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #38bdf8;
}

.support-card-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.support-card-copy strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.support-card-copy small {
  font-size: 12px;
  color: #8b8b96;
}

.support-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-support-card.support-whatsapp:hover {
  border-color: rgba(74, 222, 128, 0.48);
  box-shadow: 0 8px 22px rgba(74, 222, 128, 0.12);
  transform: translateY(-1px);
}

.footer-support-card.support-whatsapp:hover .support-arrow {
  color: #4ade80;
  transform: translate(2px, -2px);
}

.footer-support-card.support-message:hover {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.footer-support-card.support-message:hover .support-arrow {
  color: #38bdf8;
  transform: translate(2px, -2px);
}

.footer-divider {
  max-width: 1160px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-divider p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-divider small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-subtle);
}

/* ---------- Cart Drawer, Checkout Modal & Digital Delivery ---------- */
.cart-scrim, .checkout-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(5px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.cart-open .cart-scrim,
body.checkout-open #checkoutScrim,
body.customer-auth-open #customerAuthScrim,
body.my-orders-open #myOrdersScrim {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100dvh;
  padding: 24px;
  background: #17171d;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s ease;
}

body.cart-open .cart-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--text-primary);
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--border-gold);
  color: var(--accent-gold-light);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(14, 14, 18, 0.85);
  padding: 4px;
}

.cart-item h3 {
  margin: 0;
  font-size: 14px;
  color: var(--text-primary);
}

.cart-item p {
  margin: 2px 0 6px;
  font-size: 13px;
  color: var(--accent-gold-light);
  font-weight: 700;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 18, 0.75);
  padding: 2px 6px;
}

.quantity-control button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
}

.quantity-control span {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.remove-item:hover {
  color: #fca5a5;
}

.cart-empty {
  padding: 36px 14px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.cart-checkout {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
}

.cart-total strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold-light);
}

.cart-checkout p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.checkout-button {
  width: 100%;
  min-height: 44px;
}

.checkout-secondary {
  width: 100%;
  min-height: 40px;
}

.clear-cart {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  align-self: center;
}

.clear-cart:hover {
  color: #fca5a5;
}

/* ---------- Checkout Modal ---------- */
.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  width: min(560px, calc(100% - 24px));
  max-height: 90dvh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #17171d;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.72);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.checkout-open #checkoutModal,
body.customer-auth-open #customerAuthModal,
body.my-orders-open #myOrdersModal {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-body {
  padding-top: 16px;
}

.checkout-error {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-size: 13.5px;
}

.checkout-error.show {
  display: block;
}

.checkout-summary, .receipt-box {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.72);
  margin-bottom: 16px;
}

.checkout-summary-row, .receipt-row, .checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  padding: 5px 0;
}

.checkout-summary-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.checkout-summary-total strong {
  color: var(--accent-gold-light);
  font-variant-numeric: tabular-nums;
}

.checkout-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.checkout-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(14, 14, 18, 0.85);
  color: var(--text-primary);
  font-size: 14px;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: rgba(240, 176, 10, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 176, 10, 0.12);
}

.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-method-grid:has(> :only-child) {
  grid-template-columns: 1fr;
}

.payment-option {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment-option span {
  font-size: 12px;
  color: var(--text-secondary);
}

.payment-option.active {
  border-color: var(--accent-gold);
  background: rgba(240, 176, 10, 0.1);
}

.checkout-rate-note {
  font-size: 12px;
  color: var(--accent-gold-light);
}

.wallet-copy-row {
  display: flex;
  gap: 8px;
}

.receipt-status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(240, 176, 10, 0.14);
  color: var(--accent-gold-light);
}

.receipt-status.paid {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}

.receipt-status.failed, .receipt-status.cancelled {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.receipt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.delivery-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(74, 222, 128, 0.52);
  background: rgba(74, 222, 128, 0.09);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.14);
}

.delivery-panel-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 12px;
}

.delivery-item {
  margin-bottom: 10px;
}

.delivery-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.delivery-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid rgba(240, 176, 10, 0.32);
  margin-bottom: 6px;
}

.delivery-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold-light);
  word-break: break-all;
}

/* ---------- Customer Auth, My Orders & On-Screen Code Pop-Ups ---------- */
.checkout-auth-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.checkout-auth-banner.signed-in {
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(74, 222, 128, 0.07);
  color: #bbf7d0;
}

.checkout-auth-links {
  display: inline-flex;
  gap: 8px;
}

.inline-auth-link {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 10, 0.35);
  background: rgba(240, 176, 10, 0.12);
  color: var(--accent-gold-light);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--cta-ink);
}

.my-orders-modal {
  width: min(640px, calc(100% - 24px));
}

.my-orders-user-label {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.my-orders-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sm-pill {
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12.5px;
}

.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-orders-empty {
  padding: 28px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.my-orders-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.my-order-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 18, 0.78);
}

.my-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.my-order-ref {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
}

.my-order-date {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.my-order-items {
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.my-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-order-total {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold-light);
}

.my-order-delivery-mount {
  margin-top: 10px;
}

.delivery-copy-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(240, 176, 10, 0.35);
  background: rgba(240, 176, 10, 0.12);
  color: var(--accent-gold-light);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.delivery-note, .delivery-warning {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.receipt-ref-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-qr-cta {
  margin-top: 10px;
  width: 100%;
  min-height: 38px;
  font-size: 13px;
}

.toast-message {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(240, 176, 10, 0.45);
  background: rgba(18, 18, 22, 0.96);
  color: var(--accent-gold-light);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive (Tablet & Mobile) ---------- */
@media (max-width: 1024px) {
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .header-left {
    gap: 12px;
  }
  .brand-copy strong {
    font-size: 13px;
  }
  .header-actions {
    gap: 8px;
  }
  .top-sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }
  .home-cat-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
  }
  .header-spacer {
    height: 94px;
  }
  .brand-copy small,
  .staff-link {
    display: none;
  }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px 6px;
    row-gap: 6px;
    column-gap: 8px;
  }
  .header-left {
    display: contents;
  }
  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .brand-copy {
    min-width: 0;
  }
  .brand-copy strong {
    font-size: 12px;
    letter-spacing: 0.03em;
    line-height: 1.1;
  }
  .header-actions {
    order: 2;
    flex-shrink: 0;
    gap: 6px;
  }
  .category-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    overflow-x: auto;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .category-nav a,
  .nav-dropdown-trigger {
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .nav-dropdown-menu {
    position: fixed;
    top: 94px;
    left: 12px;
    right: 12px;
    min-width: 0;
  }
  .top-sales-grid {
    grid-template-columns: 1fr;
  }
  .home-hot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
  .home-cat-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
  .home-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 620px) {
  .header-spacer {
    height: 92px;
  }
  .nav-dropdown-menu {
    top: 92px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }
  .brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .header-link {
    display: none;
  }
  .header-link.header-orders-btn {
    display: inline-flex;
    padding: 5px 7px;
    font-size: 12px;
    white-space: nowrap;
  }
  .account-pill-btn {
    height: 30px;
    padding: 0 9px;
    font-size: 11.5px;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cart-button {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .home-container {
    padding: 18px 14px 48px;
  }
  .home-hero {
    padding: 8px 0 24px;
  }
  .home-search-wrap {
    padding: 5px 5px 5px 12px;
    border-radius: 13px;
  }
  .home-search-btn {
    height: 40px;
    padding: 0 16px;
  }
  .gc-promo-card {
    height: 184px;
  }
  .gc-promo-media img {
    max-height: 98px;
    max-width: 145px;
  }
  .gc-slider-btn {
    width: 34px;
    height: 34px;
  }
  .checkout-field-grid,
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
  .contact-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-detail-row strong {
    text-align: left;
  }
  .cart-drawer,
  .checkout-modal {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .product-image {
    height: 138px;
    padding: 32px 10px 10px;
  }
  .product-image img.uploaded-art {
    max-height: 92px;
    max-width: 82%;
  }
  .product-info {
    padding: 12px;
  }
  .product-name {
    min-height: 36px;
    font-size: 13.5px;
  }
  .product-price {
    font-size: 15.5px;
  }
  .product-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .filter-dropdown[data-parent-category="Xbox"] .filter-dropdown-menu,
  .filter-dropdown[data-parent-category="Nintendo"] .filter-dropdown-menu {
    left: auto;
    right: 0;
  }
}

/* ---------- Legal & Policy Pages ---------- */
.legal-container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 20px 72px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-nav);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.legal-back-link:hover {
  border-color: rgba(240, 176, 10, 0.4);
  color: var(--accent-gold-light);
  background: rgba(240, 176, 10, 0.08);
}

.legal-header {
  margin-bottom: 22px;
}

.legal-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.legal-updated {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}

.legal-card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.legal-card h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--accent-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(240, 176, 10, 0.35);
  background: rgba(240, 176, 10, 0.08);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .legal-container {
    padding: 24px 14px 56px;
  }
  .legal-card {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
