
    :root {
      --kits-primary: #3B82F6;
      --kits-secondary: #2563EB;
      --kits-accent: #1D4ED8;
      --kits-light: #EFF6FF;
      --kits-bg: #F8FAFC;
    }

    body {
      background-color: var(--kits-bg);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }

    /* Hero Section with integrated count */
    .kits-hero {
      background: linear-gradient(135deg, var(--kits-primary) 0%, var(--kits-secondary) 100%);
      padding: 3rem 0;
      margin-bottom: 3rem;
      position: relative;
      overflow: hidden;
    }

    .kits-hero::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -10%;
      width: 70%;
      height: 200%;
      background: rgba(255, 255, 255, 0.05);
      transform: rotate(35deg);
    }

    /* Hero decorations */
    .hero-decoration {
      position: absolute;
      width: 120px;
      height: 120px;
      opacity: 0.8;
    }

    .hero-decoration img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .hero-decoration.left {
      left: 2rem;
      top: 50%;
      transform: translateY(-50%);
    }

    .hero-decoration.right {
      right: 2rem;
      top: 50%;
      transform: translateY(-50%);
    }

    .kits-hero-content {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
      position: relative;
      z-index: 1;
      padding: 0 2rem;
    }

    .kits-hero h1 {
      color: white;
      font-size: 3rem;
      font-weight: 800;
      margin-bottom: 1rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .kits-hero p {
      color: rgba(255, 255, 255, 0.9);
      font-size: 1.25rem;
      font-weight: 400;
      line-height: 1.6;
      margin-bottom: 2rem;
    }

    /* Integrated count badge in header */
    .kits-count-badge-inline {
      display: inline-flex;
      align-items: center;
      gap: 1rem;
      background: rgba(255, 255, 255, 0.95);
      padding: 0.75rem 2rem;
      border-radius: 50px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
      margin-top: 1.5rem;
    }

    .count-number {
      font-size: 2rem;
      font-weight: 800;
      color: var(--kits-primary);
      line-height: 1;
    }

    .count-label {
      font-size: 1.125rem;
      color: #475569;
      font-weight: 500;
    }

    /* Main Container */
    .kits-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 2rem 4rem 2rem;
    }

    /* Filter Section */
    .kits-filter {
      background: white;
      border-radius: 20px;
      padding: 2rem;
      margin-bottom: 3rem;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
      border: 1px solid #e2e8f0;
    }

    .filter-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 1.5rem;
    }

    .filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .filter-chip {
      padding: 0.625rem 1.5rem;
      border-radius: 50px;
      border: 2px solid #e2e8f0;
      background: white;
      color: #64748b;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 0.95rem;
    }

    .filter-chip:hover {
      border-color: var(--kits-primary);
      color: var(--kits-primary);
      transform: translateY(-1px);
    }

    .filter-chip.active {
      background: var(--kits-primary);
      color: white;
      border-color: var(--kits-primary);
    }

    /* Grade Filter Container and Active State Styles */
    .grade-filter-container {
      position: relative;
      display: inline-flex;
      align-items: center;
      flex-shrink: 0;
    }

    .grade-filter-wrapper {
      position: relative;
      display: inline-block;
    }

    /* Unified styling for grade filter - matches pages store */
    #kitGradeFilter {
      padding: 0.4rem 2.5rem 0.4rem 0.8rem;
      border: 2px solid #e2e8f0;
      border-radius: 20px;
      background: white;
      font-size: 0.875rem;
      cursor: pointer;
      transition: all 0.3s ease;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      min-width: 140px;
      font-weight: 500;
      color: #475569;
    }

    #kitGradeFilter:focus {
      outline: none;
      border-color: var(--kits-primary);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    #kitGradeFilter.has-filter {
      background: #EFF6FF !important;
      border-color: #3B82F6 !important;
      color: #1e293b;
      font-weight: 600;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .grade-clear-btn {
      position: absolute;
      right: 0.6rem;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #3B82F6;
      color: white;
      border: none;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 0.75rem;
      font-weight: bold;
      transition: all 0.2s ease;
      z-index: 10;
    }

    .grade-clear-btn:hover {
      background: #2563EB;
      transform: translateY(-50%) scale(1.1);
    }

    #kitGradeFilter.has-filter ~ .grade-clear-btn {
      display: flex;
    }

    /* Add pulse animation for first-time filter */
    @keyframes filterPulse {
      0% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
      50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2); }
      100% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
    }

    #kitGradeFilter.has-filter.pulse {
      animation: filterPulse 0.6s ease-out;
    }

    /* Grid Layout */
    .kits-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
      gap: 2rem;
    }

    /* Kit Card — new shell with top accent strip */
    .kit-card {
      background: white;
      border-radius: 16px;
      overflow: visible;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
      transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
      position: relative;
      border: 1px solid #e5e7eb;
      display: flex;
      flex-direction: column;
      height: 100%;
      padding-top: 6px; /* space for top strip */
    }

    /* top accent line uses --card-accent-color from inline style */
    .kit-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 6px;
      background: var(--card-accent-color, #8B5CF6);
      border-radius: 16px 16px 0 0;
    }

    .kit-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 20px 25px rgba(0,0,0,0.12), 0 10px 10px rgba(0,0,0,0.08);
      border-color: var(--card-accent-color, var(--kits-primary));
    }

    .kit-card:hover::before {
      height: 8px;
      box-shadow: 0 2px 8px var(--card-accent-color, var(--kits-primary));
    }


    /* Card Header */
    .kit-card-header {
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      padding: 1.5rem;
      position: relative;
      border-bottom: 1px solid #e2e8f0;
    }

    /* Card Body */
    .kit-card-body {
      padding: 2rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .kit-card h2 {
      font-size: 1.5rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 1rem;
      line-height: 1.3;
    }

    .kit-description {
      color: #64748b;
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
      flex: 1;
    }

    /* Grade badge – parity with Pages Store */
    .kit-grade-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
      padding: 0.5rem 1rem;
      border-radius: 12px;
      margin: 1rem 0 0.75rem 0;
      font-size: 0.875rem;
      color: white;
      font-weight: 700;
      box-shadow: 0 4px 6px rgba(236, 72, 153, 0.3);
    }
    .kit-grade-badge svg { width: 16px; height: 16px; }


    /* Stats */
    /* Colorful stats – parity with Pages Store */
    .kit-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(120px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .kit-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0.75rem 0.5rem;
      border-radius: 12px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .kit-stat .stat-icon {
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      border-radius: 50%;
      margin-bottom: 0.5rem;
      font-size: 1.125rem;
    }

    .kit-stat .stat-value {
      font-size: 1.5rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 0.25rem;
    }

    .kit-stat .stat-label {
      font-size: 0.75rem;
      color: #6b7280;
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    /* Individual stat colors */
    .kit-stat.stat-stages {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
      border: 2px solid rgba(16, 185, 129, 0.2);
    }
    .kit-stat.stat-stages .stat-icon { color: #10B981; background: rgba(16,185,129,0.1); }
    .kit-stat.stat-stages .stat-value { color: #10B981; }

    .kit-stat.stat-questions {
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
      border: 2px solid rgba(59, 130, 246, 0.2);
    }
    .kit-stat.stat-questions .stat-icon { color: #3B82F6; background: rgba(59,130,246,0.1); }
    .kit-stat.stat-questions .stat-value { color: #3B82F6; }


    /* Action Button */
    .kit-card-action {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: linear-gradient(135deg, var(--kits-primary) 0%, var(--kits-secondary) 100%);
      color: white;
      padding: 0.75rem 1.75rem;
      border-radius: 12px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      align-self: flex-start;
      box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    }

    .kit-card-action:hover {
      transform: translateX(2px);
      box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
      text-decoration: none;
      color: white;
    }

    .kit-card-action svg {
      width: 20px;
      height: 20px;
      transition: transform 0.3s ease;
    }

    .kit-card-action:hover svg {
      transform: translateX(4px);
    }

    /* Popular Badge */
    .kit-popular-badge {
      position: absolute;
      top: -2px;
      left: -2px;
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
      color: white;
      padding: 0.5rem 1.25rem;
      border-radius: 20px 0 20px 0;
      font-size: 0.75rem;
      font-weight: 600;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
      z-index: 10;
    }

    /* Shimmer animation for super popular badge */
    @keyframes shimmer {
      0% {
        background-position: -200% center;
      }
      100% {
        background-position: 200% center;
      }
    }

    /* Loading State */
    .kit-skeleton {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: loading 1.5s infinite;
      border-radius: 20px;
      height: 420px;
    }

    @keyframes loading {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* Empty State */
    .kits-empty {
      text-align: center;
      padding: 4rem 2rem;
      color: #64748b;
      background: white;
      border-radius: 20px;
      border: 2px dashed #e2e8f0;
    }

    .kits-empty-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .kits-empty h3 {
      font-size: 1.5rem;
      color: #1e293b;
      margin-bottom: 0.5rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .kits-hero h1 {
        font-size: 2rem;
      }

      .kits-hero p {
        font-size: 1rem;
      }

      .hero-decoration {
        width: 80px;
        height: 80px;
      }

      .hero-decoration.left {
        left: 1rem;
      }

      .hero-decoration.right {
        right: 1rem;
      }

      .kits-count-badge-inline {
        padding: 0.625rem 1.5rem;
        gap: 0.75rem;
      }

      .count-number {
        font-size: 1.5rem;
      }

      .count-label {
        font-size: 1rem;
      }

      .kit-card h2 {
        font-size: 1.25rem;
      }

      .kit-card-header {
        padding: 1.5rem;
      }

      .kit-card-body {
        padding: 1.25rem 1.5rem;
      }
    }

    /* Owned badge — top-left */
    .kit-owned-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      right: auto;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
      z-index: 10;
      transform: rotate(-5deg);
    }

    .kit-owned-badge svg {
      width: 16px;
      height: 16px;
    }

    /* Bottom Pricing/Footer Section */
    .kit-price-section {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 0 0;
      margin-top: auto;
      border-top: 2px dashed #f3f4f6;
    }
    .kit-price-section .price-display {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
      flex: 1;
    }
    .kit-inline-sale-badge {
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 8px;
      font-size: 0.75rem;
      font-weight: 700;
      display: inline-block;
      box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
      white-space: nowrap;
      line-height: 1.2;
      animation: pulse-badge 2s infinite;
    }
    .kit-sale-price-group .original-price {
      font-size: 0.875rem;
      color: #9ca3af;
      text-decoration: line-through;
      line-height: 1;
    }
    .kit-sale-price-group .current-price {
      font-size: 1.5rem;
      color: #ef4444;
      font-weight: 800;
      line-height: 1;
    }
    .kit-current-price {
      font-size: 1.75rem;
      font-weight: 800;
      color: var(--kits-primary);
      letter-spacing: -0.025em;
    }
    .kit-free-badge {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-weight: 700;
      font-size: 1rem;
      box-shadow: 0 4px 6px rgba(5, 150, 105, 0.3);
    }
    .kit-view-button {
      background: linear-gradient(135deg, var(--kits-primary) 0%, var(--kits-secondary) 100%);
      color: white;
      padding: 0.625rem 1.5rem;
      border-radius: 12px;
      font-weight: 700;
      font-size: 0.9rem;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    }
    .kit-view-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    }

    /* Keyboard focus ring for CTA */
    .kit-view-button:focus-visible {
      outline: 3px solid rgba(59,130,246,0.45);
      outline-offset: 3px;
    }

    /* Price footer loading shimmer */
    .kit-price-skeleton {
      width: 160px;
      height: 16px;
      border-radius: 8px;
      background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
      background-size: 200% 100%;
      animation: priceShimmer 1.2s infinite linear;
      display: inline-block;
    }

    @keyframes priceShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .kit-coming-soon-btn {
      background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
      cursor: not-allowed;
      opacity: 0.85;
    }

    /* animation for sale badge */
    @keyframes pulse-badge {
      0%, 100% { transform: scale(1); box-shadow: 0 2px 4px rgba(239,68,68,0.3); }
      50%      { transform: scale(1.05); box-shadow: 0 3px 6px rgba(239,68,68,0.4); }
    }

