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

/* Set Header Container */
.set-header-container {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* Set Logo Styling */
.set-logo {
  flex: 0 0 auto;
}

.set-logo img {
  max-width: 300px;
  max-height: 200px;
  width: auto;
  height: auto;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Set Stats & Info Container */
.set-stats-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Quick Stats */
.quick-stats {
  background: rgba(11, 15, 26, 0.6);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  font-family: 'Exo 2', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-yellow);
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(247, 224, 92, 0.5);
}

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

/* Set Info Styling */
.set-info {
  font-size: 1.1rem;
  color: var(--frost-silver);
  font-family: 'Exo 2', sans-serif;
  text-align: center;
  padding: 1rem;
  background: rgba(11, 15, 26, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.release-date {
  color: var(--neon-blue);
  font-weight: 600;
}

.card-count {
  color: var(--neon-green);
  font-weight: 600;
}

.total-cards {
  color: var(--neon-yellow);
  font-weight: 600;
}

/* Search Bar Styling */
.set-search-bar {
  max-width: 1600px;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
}

.set-search-form {
  position: relative;
  width: 100%;
}

.set-search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(11, 15, 26, 0.9);
  border: 2px solid var(--neon-blue); /* Updated: Added border to stand out */
  border-radius: 12px;
  color: var(--snow-white);
  font-size: 1.1rem;
  font-family: 'Exo 2', sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); /* Added subtle glow */
}

.set-search-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  background: rgba(11, 15, 26, 0.95);
}

.set-search-input::placeholder {
  color: var(--frost-silver);
  opacity: 0.7;
}

.set-search-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  color: var(--deep-space);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.set-search-button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

/* Filter Container */
.filter-container {
  max-width: 1600px;
  margin: 0 auto 1rem;
  padding: 1.25rem; /* Reduced padding for more compact look */
  background: rgba(11, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 50;
  isolation: isolate;
}

.sort-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem; /* Reduced gap for more compact look */
  align-items: start;
  margin-bottom: 1.25rem; /* Reduced margin */
}

/* Sort Options Styling */
.sort-options {
  position: relative;
}

.sort-options label {
  display: block;
  color: var(--frost-silver);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

.sort-options select {
  width: 100%;
  background: rgba(11, 15, 26, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  color: var(--snow-white);
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.sort-options select:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.sort-options select:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

/* RARITY DROPDOWN FIX - HIGH Z-INDEX */
.rarity-filter {
  position: relative;
}

.rarity-filter label {
  display: block;
  color: var(--frost-silver);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

/* Custom dropdown container with HIGH z-index */
.rarity-dropdown {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.rarity-dropdown-toggle {
  width: 100%;
  background: rgba(11, 15, 26, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  color: var(--snow-white);
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
}

.rarity-dropdown-toggle:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.rarity-dropdown-toggle::after {
  content: '';
  width: 1em;
  height: 1em;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.rarity-dropdown.open .rarity-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown menu with EXTREMELY HIGH z-index */
.rarity-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(11, 15, 26, 0.99);
  border: 2px solid var(--neon-blue);
  border-radius: 12px;
  margin-top: 10px;
  padding: 1rem;
  z-index: 2000 !important;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
}

.rarity-dropdown.open .rarity-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.rarity-dropdown-item {
  padding: 0.75rem 1rem;
  color: var(--snow-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.rarity-dropdown-item:hover {
  background: rgba(32, 57, 92, 0.6);
  transform: translateX(5px);
}

.rarity-dropdown-item input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--neon-green);
  flex-shrink: 0;
}

.rarity-dropdown-item label {
  margin: 0;
  cursor: pointer;
  font-size: 1rem;
  flex: 1;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rarity-count {
  color: var(--neon-yellow);
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.rarity-dropdown-item input[type="checkbox"]:checked + label {
  color: var(--neon-green);
  font-weight: 600;
}

/* Custom scrollbar for dropdown */
.rarity-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.rarity-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(11, 15, 26, 0.8);
  border-radius: 4px;
}

.rarity-dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--neon-blue);
  border-radius: 4px;
}

/* Price Range Filter */
.price-range-filter label {
  display: block;
  color: var(--frost-silver);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

.price-inputs {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.price-input-group {
  flex: 1;
  position: relative;
}

.price-input-group::before {
  content: '$';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--frost-silver);
  font-size: 0.9rem;
}

.price-input-group input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2rem;
  background: rgba(11, 15, 26, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--snow-white);
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
}

.price-input-group input:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.price-separator {
  color: var(--neon-blue);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem; /* Reduced margin */
  padding-top: 1.25rem; /* Reduced padding */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clear-filters-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 180px;
}

.clear-filters-btn:hover {
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(188, 19, 254, 0.5);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  margin-left: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--neon-blue) 0%, #00b3ff 100%);
  color: var(--deep-space);
  border-radius: 25px;
  font-size: 0.9rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  animation: slideIn 0.3s ease;
  white-space: nowrap;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.remove-filter {
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  margin-left: 6px;
  transition: all 0.2s ease;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.remove-filter:hover {
  background: var(--holly-red);
  color: white;
  transform: rotate(90deg);
}

/* Result Count - MOVED inside filter container */
.result-count {
  text-align: center;
  margin-top: 1rem; /* Reduced margin */
  font-size: 1rem; /* Slightly smaller font */
  font-weight: 600;
  color: var(--neon-yellow);
  font-family: 'Orbitron', sans-serif;
  padding: 0.75rem;
  background: rgba(11, 15, 26, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-count .total-found {
  color: var(--neon-green);
}

.result-count .current-page {
  color: var(--neon-blue);
}

/* 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));
}

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

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

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

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

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

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }
}

/* Product Thumbnail Wrapper */
.product-thumbnail-wrapper {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.product-thumbnail-wrapper:hover {
  transform: translateY(-5px);
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: var(--frost-silver);
  font-size: 1.2rem;
  font-family: 'Exo 2', sans-serif;
}

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

/* Pagination Container */
.pagination-container {
  max-width: 1600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: rgba(11, 15, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--snow-white);
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: rgba(32, 57, 92, 0.8);
  border-color: var(--neon-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

.pagination .current-page {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  color: var(--deep-space);
  border: none;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .ellipsis {
  background: transparent;
  border: none;
  min-width: 20px;
  color: var(--frost-silver);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 27, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Advanced Sort Message */
.advanced-sort-message {
  text-align: center;
  color: var(--neon-pink);
  font-size: 1rem;
  margin: 0.5rem auto 1.5rem;
  font-family: 'Exo 2', sans-serif;
  max-width: 1600px;
  padding: 0 1rem;
  font-style: italic;
  text-shadow: 0 0 5px rgba(255, 23, 187, 0.3);
  animation: pulse-pink 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

/* Pulse animation for the message */
@keyframes pulse-pink {
  0% {
    text-shadow: 0 0 5px rgba(255, 23, 187, 0.3);
    opacity: 0.9;
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 23, 187, 0.8), 
                 0 0 20px rgba(255, 23, 187, 0.6),
                 0 0 25px rgba(255, 23, 187, 0.4);
    opacity: 1;
  }
  100% {
    text-shadow: 0 0 5px rgba(255, 23, 187, 0.3);
    opacity: 0.9;
  }
}

/* Add a little sparkle icon before the text */
.advanced-sort-message::before {
  content: "✨";
  font-size: 1.2rem;
  animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
}

/* Responsive Adjustments for Set Header */
@media (max-width: 1200px) {
  .set-header-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .set-logo img {
    max-width: 250px;
    max-height: 150px;
  }
  
  .quick-stats {
    width: 100%;
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .sort-filter-row {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .active-filters {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .clear-filters-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .quick-stats {
    gap: 1rem;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .stat-value {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .latest-cards-bar {
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    margin: 1.5rem auto;
  }
  
  .set-logo img {
    max-width: 200px;
    max-height: 120px;
    padding: 1rem;
  }
  
  .set-info {
    font-size: 1rem;
  }
  
  .quick-stats {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .set-search-input {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .set-search-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  
  .filter-container {
    padding: 1rem;
    margin: 0 auto 0.8rem;
  }
  
  .sort-options select,
  .rarity-dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
  
  .rarity-dropdown-menu {
    max-height: 300px;
  }
  
  .rarity-dropdown-item label {
    font-size: 0.9rem;
  }
  
  .price-input-group input {
    padding: 0.6rem 0.8rem 0.6rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .clear-filters-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .filter-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .result-count {
    font-size: 0.9rem;
    padding: 0.6rem;
    margin-top: 0.8rem;
  }
  
  .advanced-sort-message {
    font-size: 0.9rem;
    margin: 0.5rem auto 1rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .advanced-sort-message::before {
    font-size: 1rem;
  }
  
  .pagination a, .pagination span {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .quick-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 1rem);
    margin-bottom: 0.5rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .filter-actions {
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 480px) {
  .latest-cards-bar {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .set-logo img {
    max-width: 180px;
    max-height: 100px;
    padding: 0.8rem;
  }
  
  .set-info {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  
  .quick-stats {
    padding: 0.8rem;
    gap: 0.5rem;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 0.5rem);
  }
  
  .stat-value {
    font-size: 1.3rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .filter-container {
    padding: 0.75rem;
    margin: 0 auto 0.6rem;
  }
  
  .sort-options label,
  .rarity-filter label,
  .price-range-filter label {
    font-size: 0.9rem;
  }
  
  .sort-options select,
  .rarity-dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
  }
  
  .rarity-dropdown-menu {
    max-height: 250px;
  }
  
  .rarity-dropdown-item {
    padding: 0.5rem 0.75rem;
  }
  
  .rarity-dropdown-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  
  .price-inputs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .price-input-group {
    width: 100%;
  }
  
  .clear-filters-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
    width: 100%;
  }
  
  .active-filters {
    width: 100%;
  }
  
  .result-count {
    font-size: 0.85rem;
    padding: 0.5rem;
    margin-top: 0.7rem;
  }
  
  .advanced-sort-message {
    font-size: 0.85rem;
    margin: 0.5rem auto 0.8rem;
  }
  
  .advanced-sort-message::before {
    font-size: 0.9rem;
  }
  
  .cards-grid {
    gap: 0.75rem;
  }
  
  .pagination {
    gap: 0.25rem;
  }
  
  .pagination a, .pagination span {
    min-width: 30px;
    height: 30px;
    font-size: 0.8rem;
    padding: 0 0.3rem;
  }
}

/* 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;
}