: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;
}

/* Main Content Layout */
body {
  background: linear-gradient(135deg, var(--deep-space) 0%, #0c1530 50%, #1a2b4d 100%);
  min-height: 100vh;
  color: var(--snow-white);
}

/* Main content wrapper */
main {
  max-width: 1650px;
  margin: 0 auto;
  padding: 2rem 0.75rem;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1600px;
  margin: 1rem auto 2rem;
  padding: 0 1rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  color: var(--frost-silver);
}

.breadcrumbs a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--neon-green);
}

.breadcrumbs span {
  color: var(--neon-yellow);
}

/* Series Grid Styling - matching brands grid exactly */
.series-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem auto 3rem;
  max-width: 1600px;
  padding: 0 1rem;
}

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

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

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

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

@media (max-width: 480px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
}

.series-item {
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  width: 100%;
}

.series-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  -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;
}

.series-item:hover::before {
  opacity: 1;
}

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

/* Series image styles - matching brand image exactly */
.series-item img {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  background-color: white;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-placeholder {
  width: auto;
  height: auto;
  min-height: 140px;
  max-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 12px;
  flex-grow: 1;
}

.series-placeholder span {
  color: var(--deep-space);
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.2;
}

.series-item:hover img {
  transform: scale(1.1);
}

.series-item a {
  text-decoration: none;
  color: var(--snow-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: center;
}

/* Series name styling - matching brand name exactly */
.series-name {
  color: var(--frost-silver);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Exo 2', sans-serif;
  padding: 0 0.5rem;
  line-height: 1.3;
}

.series-item:hover .series-name {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

/* Latest Cards Bar */
.latest-cards-bar {
  background: linear-gradient(90deg, 
    rgba(32, 57, 92, 0.9) 0%, 
    rgba(42, 70, 151, 0.9) 25%, 
    rgba(32, 57, 92, 0.9) 50%, 
    rgba(42, 70, 151, 0.9) 75%, 
    rgba(32, 57, 92, 0.9) 100%);
  padding: 1rem 2rem;
  margin: 2rem auto;
  max-width: 1600px;
  border-radius: 12px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--neon-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(247, 224, 92, 0.5);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-cards-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--neon-pink), var(--neon-blue), var(--neon-green), var(--holly-red));
}

/* Total Products Counter */
.total-products {
  text-align: center;
  margin: 1rem auto 2rem;
  font-size: 1.2rem;
  color: var(--frost-silver);
  font-family: 'Exo 2', sans-serif;
}

.product-count {
  color: var(--neon-green);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
  font-family: 'Orbitron', sans-serif;
}

/* Cards Grid Layout */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 2rem auto;
  max-width: 1600px;
  padding: 0 1rem;
}

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

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

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

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

/* In the Cards Grid Layout section, update the 480px breakpoint */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    padding: 0 0.5rem;
    gap: 1rem;
  }
}

/* Card Thumbnail Styling */
.card-thumbnail {
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 1.5rem 1rem;
  transition: all 0.4s ease;
  position: relative;
  backdrop-filter: blur(5px);
  cursor: pointer;
  width: 100%;
}

.card-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue), var(--holly-red));
  -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;
}

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

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

.card-thumbnail img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  background-color: white;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

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

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

.card-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;
}

.card-title a:hover {
  color: var(--neon-yellow);
}

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

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem auto;
  max-width: 1600px;
}

.pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--frost-silver);
  background: rgba(11, 15, 26, 0.6);
  transition: all 0.3s ease;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
}

.pagination a:hover {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  color: var(--deep-space);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.pagination .active {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: var(--snow-white);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(255, 23, 187, 0.5);
}

.pagination span:not(.active) {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive Adjustments - Updated to match brands exactly */
@media (max-width: 768px) {
  .latest-cards-bar {
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    margin: 1.5rem auto;
    max-width: 95%;
  }
  
  .series-item {
    padding: 1rem 0.6rem;
    min-height: 150px;
  }
  
  .series-item img {
    max-width: 160px;
    max-height: 110px;
    padding: 10px;
  }
  
  .series-placeholder {
    max-width: 160px;
    min-height: 110px;
    padding: 10px;
  }
  
  .series-name {
    font-size: 0.9rem;
  }
  
  .total-products {
    font-size: 1.1rem;
    margin: 0.8rem auto 1.5rem;
  }
  
  .card-thumbnail img {
    max-height: 150px;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    min-width: 40px;
  }
}

@media (max-width: 480px) {
  .latest-cards-bar {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .series-item {
    min-height: 130px;
    padding: 0.8rem 0.5rem;
  }
  
  .series-item img {
    max-width: 140px;
    max-height: 95px;
    padding: 8px;
  }
  
  .series-placeholder {
    max-width: 140px;
    min-height: 95px;
    padding: 8px;
  }
  
  .series-name {
    font-size: 0.8rem;
  }
  
  .card-thumbnail img {
    max-height: 130px;
  }
  
  .pagination ul {
    gap: 0.3rem;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    min-width: 36px;
  }
}

/* Loading State */
.cards-grid.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Empty State */
.no-cards {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--frost-silver);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.no-cards::before {
  content: '🎴';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}