:root {
  --neon-pink: #ff17bb;
  --neon-blue: #00f3ff;
  --neon-green: #39ff14;
  --neon-purple: #bc13fe;
  --neon-yellow: #f7e05c;
  --deep-space: #0a0f1b;
  --cosmic-blue: #20395c;
  --holly-red: #ff1744;
  --snow-white: #f0f8ff;
  --frost-silver: #e0e5ec;
  --christmas-gold: #ffd700;
  
  /* Stranger Things / Starcourt Mall Palette */
  --starcourt-dark: #0b0f1c;
  --starcourt-blue: #1a2346;
  --starcourt-aqua: #00e5ff;
  --starcourt-pink: #ff00cc;
  --starcourt-purple: #8a2be2;
  --starcourt-grid: #2a3a6a;
}

main {
  max-width: 1650px;
  margin: 0 auto;
  padding: 2rem 0.75rem;
}

/* Hero Section - STRANGER THINGS STARCOURT MALL VIBE */
.hero-section {
  text-align: center;
  margin: 0.5rem auto 3rem;
  padding: 3rem 2rem;
  background: 
    linear-gradient(135deg, 
      rgba(11, 15, 28, 0.95) 0%, /* Dark blue */
      rgba(26, 35, 70, 0.9) 50%, /* Medium blue */
      rgba(11, 15, 28, 0.95) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(42, 58, 106, 0.2) 10px,
      rgba(42, 58, 106, 0.2) 20px
    ); /* Diagonal grid pattern */
  border-radius: 20px;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  box-shadow: 
    0 0 40px rgba(0, 229, 255, 0.3),
    0 15px 50px rgba(0, 0, 0, 0.7),
    inset 0 0 30px rgba(0, 229, 255, 0.1);
}

/* Animated gradient border */
.hero-section::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 23px;
  background: linear-gradient(135deg, 
    var(--starcourt-aqua),
    var(--starcourt-pink),
    var(--starcourt-purple),
    var(--starcourt-aqua));
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0.8;
  animation: starcourt-border 8s ease infinite;
}

@keyframes starcourt-border {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Add some floating particles for arcade effect */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 204, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(138, 43, 226, 0.1) 2px, transparent 2px);
  background-size: 300px 300px;
  z-index: 0;
  pointer-events: none;
}

.hero-section h1,
.hero-section p,
.hero-section .hero-cta,
.hero-section .hero-stats {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  color: var(--snow-white);
  margin-bottom: 1rem;
  text-shadow: 
    0 0 10px rgba(0, 229, 255, 0.8),
    0 0 20px rgba(0, 229, 255, 0.5),
    0 0 40px rgba(255, 0, 204, 0.3),
    2px 2px 0 rgba(11, 15, 28, 0.8);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  animation: title-flicker 4s infinite alternate;
}

@keyframes title-flicker {
  0%, 100% {
    opacity: 1;
    text-shadow: 
      0 0 10px rgba(0, 229, 255, 0.8),
      0 0 20px rgba(0, 229, 255, 0.5),
      0 0 40px rgba(255, 0, 204, 0.3),
      2px 2px 0 rgba(11, 15, 28, 0.8);
  }
  50% {
    opacity: 0.95;
    text-shadow: 
      0 0 12px rgba(0, 229, 255, 0.9),
      0 0 25px rgba(0, 229, 255, 0.6),
      0 0 50px rgba(255, 0, 204, 0.4),
      2px 2px 0 rgba(11, 15, 28, 0.8);
  }
}

.hero-section p {
  font-size: 1.4rem;
  color: var(--frost-silver);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA for guests */
.hero-cta {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--frost-silver);
  font-weight: 500;
}

.hero-cta .cta-link {
  color: var(--starcourt-aqua);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.15);
  border: 2px solid rgba(0, 229, 255, 0.4);
  display: inline-block;
  margin: 0 0.3rem;
  animation: cta-glow 2s infinite alternate;
}

@keyframes cta-glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    border-color: rgba(0, 229, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7);
    border-color: rgba(0, 229, 255, 0.8);
  }
}

.hero-cta .cta-link:hover {
  color: var(--snow-white);
  background: rgba(255, 0, 204, 0.2);
  border-color: var(--starcourt-pink);
  text-decoration: none;
  transform: translateY(-2px);
  animation: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(11, 15, 28, 0.7);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  min-width: 180px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(0, 229, 255, 0.1) 50%, 
    transparent 70%);
  animation: stat-shine 3s infinite;
}

@keyframes stat-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--starcourt-aqua);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
  font-family: 'Orbitron', sans-serif;
  animation: stat-pulse 3s infinite;
}

@keyframes stat-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.9);
  }
}

.stat-label {
  font-size: 1rem;
  color: var(--frost-silver);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* New Cards Sections - ALL SECTIONS USE SAME GRID */
.new-cards-section {
  margin: 4rem auto;
}

.new-cards-section:first-of-type {
  margin-top: 2rem;
}

/* SIMPLIFIED GRID - Same for ALL sections */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(8, minmax(0, 1fr)); /* Changed to minmax(0, 1fr) */
  margin-top: 1rem;
  width: 100%;
}

/* Ensure all thumbnail cards are the same size and don't overflow */
.cards-grid .product-thumbnail {
  width: 100%;
  height: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* Make sure images don't overflow */
.cards-grid .product-thumbnail .product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive grid adjustments */
@media (max-width: 1800px) {
  .cards-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1600px) {
  .cards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .cards-grid .product-thumbnail {
    min-height: 320px;
  }
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--starcourt-aqua);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 
    0 0 10px rgba(0, 229, 255, 0.8),
    0 0 20px rgba(0, 229, 255, 0.4),
    2px 2px 0 rgba(11, 15, 28, 0.8);
  position: relative;
  display: block;
  width: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 229, 255, 0.1), 
    transparent);
  padding: 0.5rem 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--starcourt-aqua), 
    var(--starcourt-pink), 
    var(--starcourt-purple),
    transparent);
  animation: title-underline 4s infinite linear;
  background-size: 200% 100%;
}

@keyframes title-underline {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Brands Section */
.brands-section {
  margin: 3rem 0;
}

.brands-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1rem auto;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.brand-card {
  text-align: center;
  background: rgba(11, 15, 28, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--starcourt-aqua), var(--starcourt-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.brand-card img.brand-logo {
  max-width: 100%;
  height: 130px;
  object-fit: contain;
  margin-bottom: 1rem;
  background-color: white;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.brand-card:hover img.brand-logo {
  transform: scale(1.05);
}

.view-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--starcourt-aqua), var(--starcourt-pink));
  color: var(--starcourt-dark);
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-btn:hover {
  background: linear-gradient(135deg, var(--starcourt-pink), var(--starcourt-purple));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 204, 0.6);
  color: var(--starcourt-dark);
  text-decoration: none;
}

/* New Sets Section */
.new-sets-section {
  margin: 4rem auto;
}

.sets-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 1400px) {
  .sets-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .sets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.set-card {
  background: rgba(11, 15, 28, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 1rem;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.set-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--starcourt-aqua), var(--starcourt-pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.set-card:hover::before {
  opacity: 1;
}

.set-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.set-brand {
  font-size: 0.8rem;
  color: var(--starcourt-aqua);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.set-title a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: var(--snow-white);
  text-decoration: none;
  margin: 0.5rem 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.set-title a:hover {
  color: var(--starcourt-aqua);
}

.set-card p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--frost-silver);
}

.set-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background-color: white;
  padding: 0.5rem;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.release-date {
  font-size: 0.9rem;
  color: var(--starcourt-aqua) !important;
  font-weight: 600;
  margin: 0.5rem 0;
}

.release-prefix {
  display: inline;
  color: var(--frost-silver);
}

.set-card .release-date-value {
  display: inline;
  color: var(--starcourt-aqua);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 150px;
    padding: 1rem 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards-grid {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .hero-cta {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    min-width: auto;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  .brand-card img.brand-logo {
    height: 110px;
    padding: 10px;
  }
  
  .new-cards-section {
    margin: 3rem auto;
  }
}