    :root {
      --bg-dark: #0a0c10;
      --bg-card: #131722;
      --bg-surface: #1c2230;
      --primary: #9d4edd;
      --primary-glow: #7b2cbf;
      --accent-gold: #ffb703;
      --accent-cyan: #00f5d4;
      --text-main: #f8f9fa;
      --text-muted: #94a3b8;
      --border: rgba(255, 255, 255, 0.08);
      --font-heading: 'Cinzel', serif;
      --font-body: 'Inter', sans-serif;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-main);
      font-family: var(--font-body);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* --- Navigation --- */
    .navbar {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navbar.is-scrolled {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(10, 12,16, 0.96);
      padding: 0.65rem 2rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(157, 78, 221, 0.25);
    }

    .nav-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      text-decoration: none;
      color: var(--text-main);
    }

    .brand-icon {
      font-size: 1.8rem;
      color: currentColor;
      flex-shrink: 0;
      filter: drop-shadow(0 0 8px var(--primary));
    }

    .brand-icon--svg {
      display: block;
      width: 4rem;
      height: 3rem;
      object-fit: contain;
    }
    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.4rem;
      font-weight: 800;
      letter-spacing: 1px;
      background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      list-style: none;
      align-items: center;
    }

    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-weight: 500;
      font-size: 0.95rem;
      transition: var(--transition);
    }

    .nav-links a:hover {
      color: var(--accent-gold);
      text-shadow: 0 0 8px rgba(255, 183, 3, 0.4);
    }

    .mobile-menu {
      display: inline-flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 2.75rem;
      height: 2.75rem;
      padding: 0;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 30px;
      cursor: pointer;
      color: var(--text-main, #fff);
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .mobile-menu:hover {
      border-color: var(--accent-gold, #f59e0b);
      background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu:focus-visible {
      outline: 2px solid var(--accent-gold, #f59e0b);
      outline-offset: 2px;
    }

    .mobile-menu__line {
      display: block;
      width: 22px;
      height: 2.5px;
      border-radius: 30px;
      background: linear-gradient(135deg, #fff 0%, var(--accent-gold, #f59e0b) 100%);
      transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .nav-links-mobile {
      display: none; /* toggled open via JS/CSS when menu is active */
      list-style: none;
      margin: 0;
      padding: 0.75rem;
      gap: 1rem;
      align-items: center;
    }

    .nav-links-mobile.is-open {
      display: flex;
    }

    .nav-links-mobile a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--text-main, #fff);
      font-size: 1.2rem;
      text-decoration: none;
    }

    .cart-link {
      position: relative;
      background: var(--bg-surface);
      border: 1px solid var(--border);
      padding: 0.3rem 1rem;
      border-radius: 50px;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      color: var(--text-main) !important;
      transition: var(--transition);
    }

    .cart-link:hover {
      border-color: var(--primary);
      box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
      transform: translateY(-2px);
    }

    .cart-badge {
      background: var(--primary);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
    }

    /* --- Hero Section --- */
    .hero {
      position: relative;
      min-height: 85vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 4rem 2rem;
      background: radial-gradient(circle at 50% 30%, rgba(123, 44, 191, 0.25) 0%, rgba(10, 12, 16, 0.95) 70%),
      url('https://images.unsplash.com/photo-1613771404784-3a5686aa2be3?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
      background-blend-mode: overlay;
      text-align: center;
    }

    .hero-content {
      max-width: 850px;
      z-index: 2;
    }

    .hero-tag {
      display: inline-block;
      padding: 0.4rem 1.2rem;
      background: rgba(157, 78, 221, 0.90);
      border: 1px solid var(--primary);
      color: var(--accent-cyan);
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero-title {
      font-family: var(--font-heading);
      font-size: 3.5rem;
      font-weight: 900;
      line-height: 1.15;
      margin-bottom: 1.5rem;
      text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    }

    .hero-subtitle {
      display: flex;
      padding: 0.4rem 1.2rem;
      background: rgba(157, 78, 221, 0.90);
      border: 1px solid var(--primary);
      color: white;
      border-radius: 50px;
      font-size: 0.70rem;
      font-weight: bold;
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .hero-buttons {
      display: flex;
      gap: 1.2rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      padding: 0.9rem 2rem;
      border-radius: 8px;
      font-weight: 700;
      font-size: 1rem;
      text-decoration: none;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      border: none;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
      color: #fff;
      box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
    }

    .btn-primary:hover {
      box-shadow: 0 6px 28px rgba(157, 78, 221, 0.7);
      transform: translateY(-2px);
    }

    .btn-outline {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-main);
      border: 1px solid var(--border);
      backdrop-filter: blur(5px);
    }

    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--accent-gold);
      color: var(--accent-gold);
      transform: translateY(-2px);
    }

    /* --- Section Styling --- */
    .section-container {
      max-width: 1300px;
      margin: 5rem auto;
      padding: 0 2rem;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 2.5rem;
    }

    .section-title {
      font-family: var(--font-heading);
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-subtitle {
      color: var(--text-muted);
      margin-top: 0.4rem;
    }

    /* --- Scrollable Gallery Section (Halfway down) --- */
    .gallery-wrapper {
      position: relative;
    }

    .scroll-controls {
      display: flex;
      gap: 0.5rem;
    }

    .scroll-btn {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      color: var(--text-main);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
    }

    .scroll-btn:hover {
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 0 12px var(--primary);
    }

    .top-sellers-gallery {
      display: flex;
      gap: 2rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding: 1rem 0 2rem 0;
      scrollbar-width: thin;
      scrollbar-color: var(--primary) var(--bg-surface);
    }

    .top-sellers-gallery::-webkit-scrollbar {
      height: 8px;
    }

    .top-sellers-gallery::-webkit-scrollbar-track {
      background: var(--bg-surface);
      border-radius: 10px;
    }

    .top-sellers-gallery::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 10px;
    }

    /* Card Styling */
    .card-item {
      flex: 0 0 calc(33.333% - 1.4rem);
      min-width: 310px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: var(--transition);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .card-item:hover {
      border-color: var(--primary);
      transform: translateY(-8px);
      box-shadow: 0 12px 30px rgba(157, 78, 221, 0.25);
    }

    .rank-badge {
      position: absolute;
      top: 1.5rem;
      left: 1.5rem;
      background: rgba(10, 12, 16, 0.85);
      border: 1px solid var(--accent-gold);
      color: var(--accent-gold);
      font-size: 0.8rem;
      font-weight: 800;
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
      z-index: 5;
      backdrop-filter: blur(4px);
    }

    .card-img-wrapper {
      width: 100%;
      height: 280px;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 1.2rem;
      background: #000;
      position: relative;
    }

    .card-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }

    .card-item:hover .card-img-wrapper img {
      transform: scale(1.05);
    }

    .card-tags {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
    }

    .tag {
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      font-weight: 600;
      text-transform: uppercase;
    }

    .tag-rarity {
      background: rgba(255, 183, 3, 0.15);
      color: var(--accent-gold);
      border: 1px solid var(--accent-gold);
    }

    .tag-edition {
      background: rgba(0, 245, 212, 0.15);
      color: var(--accent-cyan);
      border: 1px solid var(--accent-cyan);
    }

    .card-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 0.5rem;
    }

    .card-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
      flex-grow: 1;
    }

    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
    }

    .card-price {
      font-size: 1.4rem;
      font-weight: 800;
      color: var(--text-main);
    }

    .product-btn {
      background: var(--bg-surface);
      border: 1px solid var(--primary);
      color: var(--text-main);
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .product-btn:hover {
      background: var(--primary);
      color: #fff;
      box-shadow: 0 0 15px var(--primary);
    }

    /* --- TCG Categories --- */
    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .category-card {
      position: relative;
      height: 220px;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      text-decoration: none;
      display: flex;
      align-items: flex-end;
      padding: 1.5rem;
      transition: var(--transition);
    }

    .category-card img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
      filter: brightness(0.6);
      transition: var(--transition);
    }

    .category-card:hover img {
      transform: scale(1.1);
      filter: brightness(0.8);
    }

    .category-content {
      position: relative;
      z-index: 2;
    }

    .category-title {
      font-family: var(--font-heading);
      font-size: 1.4rem;
      color: var(--text-main);
      margin-bottom: 0.2rem;
    }

    .category-count {
      color: var(--accent-gold);
      font-size: 0.85rem;
      font-weight: 600;
    }

    /* --- Notification Toast --- */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: var(--bg-card);
      border: 1px solid var(--primary);
      color: var(--text-main);
      padding: 1rem 1.5rem;
      border-radius: 8px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      gap: 0.8rem;
      z-index: 2000;
      transform: translateY(150%);
      transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toast.show {
      transform: translateY(0);
    }

    .toast-icon {
      color: var(--accent-cyan);
      font-size: 1.2rem;
    }

    /* --- Footer --- */
    footer {
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 4rem 2rem 2rem 2rem;
      margin-top: 6rem;
    }

    .footer-content {
      max-width: 1300px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2.5rem;
      margin-bottom: 3rem;
    }

    .footer-brand p {
      color: var(--text-muted);
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    .footer-column h4 {
      font-family: var(--font-heading);
      color: var(--text-main);
      margin-bottom: 1.2rem;
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.6rem;
    }

    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.9rem;
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--accent-cyan);
    }

    .newsletter-form {
      display: flex;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .newsletter-input {
      background: var(--bg-surface);
      border: 1px solid var(--border);
      padding: 0.6rem 1rem;
      border-radius: 6px;
      color: #fff;
      outline: none;
      width: 100%;
    }

    .newsletter-btn {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 0.6rem 1rem;
      border-radius: 6px;
      cursor: pointer;
      transition: var(--transition);
    }

    .newsletter-btn:hover {
      background: var(--primary-glow);
    }

    .footer-bottom {
      max-width: 1300px;
      margin: 0 auto;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      text-align: center;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    /* Responsive Design */
    @media (max-width: 900px) {
      .hero-title {
        font-size: 2.5rem;
      }
      
      .top-sellers-gallery {
        gap: 1rem;
      }

      .card-item {
        flex: 0 0 calc(80% - 1rem);
      }
    }

/* Base (Desktop & above 600px): hidden by default */
.mobile-menu,
.nav-links-mobile {
  display: none;
}

@media (max-width: 600px) {
  .navbar,
  .navbar.is-scrolled {
    padding: 0.75rem 1.25rem;
  }

  .nav-links,
  .cart-link {
    display: none; /* Mobile navigation simplified & cart swapped for menu button */
  }

  .nav-links-mobile {
    display: none; /* stays hidden until .is-open is added */
  }

  .mobile-menu {
    display: inline-flex;

  }

  .nav-links-mobile.is-open {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .card-item {
    flex: 0 0 100%;
  }
}

@media (min-width: 601px) {
  .mobile-menu,
  .nav-links-mobile,
  .nav-links-mobile.is-open {
    display: none;
  }
}