/* ============================================
   ASGARD TCG — Estilos Principales
   Diseño gaming, oscuro, moderno, responsive
   Paleta: Negro profundo → Cyan eléctrico
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Colores principales — Paleta AsgardTCG */
  --bg-primary: #030a0a;
  --bg-secondary: #071212;
  --bg-card: #0d1f1f;
  --bg-card-hover: #122b2b;
  --bg-glass: rgba(13, 31, 31, 0.75);
  --bg-input: #0a1a1a;
  --bg-modal: rgba(0, 0, 0, 0.90);

  /* Acentos — Cyan eléctrico como color primario */
  --accent-primary: #00d4d4;
  --accent-secondary: #00a8a8;
  --accent-tertiary: #00ffea;
  --accent-success: #10e8a8;
  --accent-danger: #ef4444;
  --accent-warning: #f59e0b;

  /* Gradientes AsgardTCG */
  --gradient-primary: linear-gradient(135deg, #007777 0%, #00d4d4 50%, #00ffea 100%);
  --gradient-card: linear-gradient(145deg, #04999933 0%, #0f2525 100%);
  --gradient-hero: linear-gradient(135deg, #030a0a 0%, #071a1a 50%, #030a0a 100%);
  --gradient-pokemon: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-magic: linear-gradient(135deg, #007777 0%, #00d4d4 100%);
  --gradient-onepiece: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-brand: linear-gradient(135deg, #030a0a 0%, #00d4d4 100%);

  /* Texto */
  --text-primary: #e0ffff;
  --text-secondary: #80b8b8;
  --text-muted: #ffffff;
  --text-accent: #00d4d4;

  /* Bordes — Cyan semitransparente */
  --border-color: rgba(0, 212, 212, 0.18);
  --border-glow: rgba(0, 212, 212, 0.55);

  /* Tipografía */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Orbitron', sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(0, 212, 212, 0.35);
  --shadow-glow-cyan: 0 0 32px rgba(0, 255, 234, 0.4);

  /* Bordes redondeados */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   Announcement Bar
   ============================================ */
.announcement-bar {
  background: #00ffea;
  color: #000000;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 1001;
  position: relative;
  border-bottom: 1px solid rgba(0, 255, 252, 0.15);
}

.announcement-bar strong {
  font-weight: 800;
  text-decoration: underline;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: #157373fc;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Patrón de fondo con opacidad muy reducida (~10%) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/img/bg-asgard.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  opacity: 0.10;
  filter: brightness(0.6) saturate(0.8);
  pointer-events: none;
  z-index: 0;
}

/* Radial glows encima del patrón */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 5% 50%, rgba(0, 212, 212, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 95% 20%, rgba(0, 255, 234, 0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

body>* {
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #030a0a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(3, 10, 10, 0.97);
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.navbar-brand .brand-icon {
  font-size: 1.8rem;
}

.brand-logo-img {
  width: 80px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(0, 212, 212, 0.7));
  transition: var(--transition-normal);
}

.navbar-brand:hover .brand-logo-img {
  filter: drop-shadow(0 0 14px rgba(0, 255, 234, 0.85));
  transform: scale(1.08);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
  border-radius: 1px;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  background: var(--accent-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -12px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.cart-badge.empty {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 1px;
}

/* ============================================
   Hero Section — Full-screen slider
   ============================================ */
.hero {
  min-height: 65vh;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ===== Slider wrapper ===== */
.hero-slider {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== Track must have explicit height so absolute children render ===== */
.hero-slides-track {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 55vh;
  min-height: 400px;
  overflow: hidden;
  flex: 1;
}

/* ===== Left franchise sidebar inside hero ===== */
.hero-franchise-sidebar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 180px;
  background: #030a0a;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-right: 1px solid rgba(0, 212, 212, 0.18);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 12px;
  gap: 6px;
}

.hero-franchise-sidebar .sidebar-filter-title {
  padding: 0 4px 10px;
  font-size: 0.7rem;
  color: rgba(0, 212, 212, 0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-franchise-sidebar .hero-badge {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: block;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* ===== Each slide — ALWAYS absolute, never relative ===== */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #030a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Inactive: fade out fast so ghost doesn't show */
  opacity: 0;
  z-index: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

/* Active slide: always stays absolute, just z-index + opacity change */
.hero-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  /* Fade IN slowly */
  transition: opacity 0.65s ease;
}

/* Dark overlay on slide */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(3, 10, 10, 0.20) 0%,
      rgba(3, 10, 10, 0.60) 45%,
      rgba(3, 10, 10, 0.60) 55%,
      rgba(3, 10, 10, 0.20) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Slide without image: gradient fallback */
.hero-slide.no-image {
  background: var(--gradient-hero);
}

.hero-slide.no-image::before {
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 212, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(0, 255, 234, 0.06) 0%, transparent 45%);
}

/* ===== Slide content — centered on the full slide width ===== */
.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 220px 60px 220px;   /* left padding accounts for 180px sidebar */
  animation: heroFadeIn 0.65s ease both;
  pointer-events: none;
}

.hero-slide-content > * {
  pointer-events: auto;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text color variants */
.hero-slide-content.text-white .hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #e0ffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slide-content.text-white .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-content.text-black .hero-title {
  background: linear-gradient(135deg, #111111 0%, #333333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slide-content.text-black .hero-subtitle {
  color: rgba(0, 0, 0, 0.75);
}

.hero-slide-content.text-cyan .hero-title {
  background: linear-gradient(135deg, #00ffff 0%, #008080 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slide-content.text-cyan .hero-subtitle {
  color: #e0ffff;
}

.hero-slide-content.text-yellow .hero-title {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slide-content.text-yellow .hero-subtitle {
  color: #fffacd;
}

.hero-slide-content.text-magenta .hero-title {
  background: linear-gradient(135deg, #ff00ff 0%, #8b008b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slide-content.text-magenta .hero-subtitle {
  color: #ffb6c1;
}

.hero-slide-content.text-green .hero-title {
  background: linear-gradient(135deg, #00ff00 0%, #006400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-slide-content.text-green .hero-subtitle {
  color: #98fb98;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 580px;
  line-height: 1.65;
  text-align: center;
}

/* ===== Hero CTA button ===== */
.hero-cta-btn {
  margin-top: 4px;
  font-size: 1rem;
}

/* ===== Carousel Navigation ===== */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(3, 10, 10, 0.55);
  border: 1px solid rgba(0, 212, 212, 0.3);
  color: var(--accent-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
  line-height: 1;
}

.hero-nav:hover {
  background: rgba(0, 212, 212, 0.25);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.hero-nav.prev {
  left: calc(180px + 20px);
}

.hero-nav.next {
  right: 20px;
}

/* Only show nav when multiple slides */
.hero-nav.hidden {
  display: none;
}

/* ===== Carousel Dots ===== */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(0, 212, 212, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero-dot.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 212, 212, 0.6);
  width: 28px;
  border-radius: 5px;
}

/* Hide dots when single slide */
.hero-dots.hidden {
  display: none;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* Sidebar filter badges (vertical, inside catalog sidebar) */
.sidebar-filter-section {
  padding: 16px 0 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.sidebar-filter-title {
  padding: 0 24px 10px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-filter-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 16px;
}

.hero-badge {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
  display: block;
  text-align: left;
  width: 100%;
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero {
    min-height: 55vh;
  }

  .hero-slide.active {
    min-height: 55vh;
  }

  .hero-franchise-sidebar {
    width: 110px;
    padding: 16px 8px;
  }

  .hero-slide-content {
    padding: 40px 130px 40px 130px;  /* 110px sidebar + 20px gap */
  }

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

  .hero-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

.hero-badge.pokemon,
.hero-badge.amarillo {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.hero-badge.magic,
.hero-badge.teal {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.3);
}

.hero-badge.onepiece,
.hero-badge.rojo {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.hero-badge.yugioh {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border-color: rgba(234, 179, 8, 0.35);
}

.hero-badge.dragonball {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
  border-color: rgba(234, 88, 12, 0.35);
}

.hero-badge.lorcana {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.35);
}

.hero-badge.digimon {
  background: rgba(146, 64, 14, 0.15);
  color: #d97706;
  border-color: rgba(146, 64, 14, 0.35);
}

.hero-badge.verde {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-badge.azul {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}

.hero-badge.morado {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

.hero-badge.naranja {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
}

.hero-badge.rosa {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}

.hero-badge.cyan {
  background: rgba(0, 212, 212, 0.15);
  color: #00d4d4;
  border-color: rgba(0, 212, 212, 0.3);
}

.hero-badge.blanco {
  background: rgba(255, 255, 255, 0.08);
  color: #e0ffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Catalog Grid & Sidebar Layout
   ============================================ */
.catalog-section {
  padding: 40px 0 80px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 0 24px;
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 24px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 8px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #00ffff;
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
  display: block;
}

.sidebar-link:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-primary);
  border-left-color: var(--accent-primary);
  font-weight: 600;
}

/* ============================================
   Top Contextual Filters Bar
   ============================================ */
.filters-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px 24px;
  align-items: flex-end;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  font-family: var(--font-heading);
}

.filter-select,
.filter-input {
  appearance: none;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.filter-select:hover {
  border-color: var(--accent-primary);
}

.pos-search {
  grid-column: 1;
  grid-row: 1;
}

.pos-juego {
  grid-column: 2;
  grid-row: 1;
}

.pos-dinamico-1 {
  grid-column: 3;
  grid-row: 1;
}

.pos-estado {
  grid-column: 1;
  grid-row: 2;
}

.pos-orden {
  grid-column: 2;
  grid-row: 2;
}

.pos-rango {
  grid-column: 3;
  grid-row: 2;
}

.pos-reset {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
}

@media (max-width: 1024px) {
  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }

  .pos-search {
    grid-column: span 2;
    grid-row: auto;
  }

  .pos-juego {
    grid-column: 1;
    grid-row: auto;
  }

  .pos-dinamico-1 {
    grid-column: 2;
    grid-row: auto;
  }

  .pos-estado {
    grid-column: 1;
    grid-row: auto;
  }

  .pos-orden {
    grid-column: 2;
    grid-row: auto;
  }

  .pos-rango {
    grid-column: span 2;
    grid-row: auto;
  }

  .pos-reset {
    grid-column: span 2;
    grid-row: auto;
    justify-self: start;
  }
}

.filter-reset {
  align-self: flex-start;
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
  font-weight: 600;
  margin-left: auto;
}

.filter-reset:hover {
  background: var(--accent-danger);
  color: white;
}

/* Responsive Catalog */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: relative;
    top: 0;
  }
}

/* ============================================
   Product Grid
   ============================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.product-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.product-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-slow);
  padding: 16px;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.out-of-stock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  letter-spacing: 2px;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  border: 2px solid rgba(255,255,255,0.2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.out-of-stock-overlay-large {
  font-size: 2.2rem;
  padding: 12px 30px;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  /* Always render above the scaled image */
  z-index: 3;
  pointer-events: none;
}

.badge-pokemon {
  background: var(--gradient-pokemon);
  color: white;
}

.badge-magic {
  background: var(--gradient-magic);
  color: white;
}

.badge-onepiece {
  background: var(--gradient-onepiece);
  color: white;
}

.product-condition {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.65rem;
  font-weight: 600;
  /* Estilo outline/ghost — borde cyan, sin relleno sólido */
  background: rgba(3, 10, 10, 0.70);
  backdrop-filter: blur(10px);
  color: #00d4d4;
  border: 1px solid rgba(0, 212, 212, 0.45);
  z-index: 3;
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-secondary);
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-expansion {
  font-size: 0.8rem;
  color: #1ea3a3;
  margin-bottom: 16px;
}

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

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #f3f4f6;
  /* Blanco/gris muy claro — no compite con el botón cyan */
}

.product-stock {
  font-size: 0.75rem;
  color: var(--accent-success);
  font-weight: 500;
}

.product-stock.low {
  color: var(--accent-warning);
}

.product-stock.out {
  color: var(--accent-danger);
}

.btn-add-cart {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-add-cart:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-add-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   Buttons General
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-danger {
  background: var(--accent-danger);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background: var(--accent-success);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ============================================
   Cart Page
   ============================================ */
.page-section {
  padding: 100px 0 60px;
  min-height: 80vh;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: #ffffff85;
  background-clip: text;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--border-glow);
}

.cart-item-image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #f3f4f6;
  /* Blanco — sin competir con botones cyan */
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-input);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--accent-primary);
}

.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  background: var(--bg-input);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 36px;
  line-height: 36px;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
  padding: 4px;
}

.cart-item-remove:hover {
  color: var(--accent-danger);
}

/* Cart Summary */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 120px;
}

.cart-summary-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid var(--border-color);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-summary-total .total-amount {
  font-family: var(--font-heading);
  color: var(--accent-tertiary);
}

.cart-summary .btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 1rem;
}

.shipping-info-box {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.shipping-info-box.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-success);
  color: var(--accent-success);
}

.shipping-progress-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.shipping-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.cart-empty h2 {
  font-family: var(--font-heading);
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* ============================================
   Checkout Page
   ============================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Checkout Summary */
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 120px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-item-name {
  flex: 1;
  color: var(--text-secondary);
}

.checkout-item-qty {
  color: var(--text-muted);
  margin: 0 12px;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Product Detail
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 60px;
}

.product-detail-image {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 32px;
}

.product-detail-image img {
  max-height: 450px;
  object-fit: contain;
  transition: var(--transition-slow);
}

.product-detail-image:hover img {
  transform: scale(1.05);
}

.product-detail-info {
  padding: 20px 0;
}

.product-detail-game {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.product-detail-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.product-detail-expansion {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-tertiary);
  margin-bottom: 8px;
}

.product-detail-stock {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.product-detail-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.product-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.meta-item {
  background: var(--bg-input);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
}

.product-detail-actions .btn {
  flex: 1;
  padding: 16px;
  font-size: 1rem;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Admin Panel
   ============================================ */
.admin-page {
  padding: 100px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.admin-login-card .brand-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.admin-login-card h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-login-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.admin-login-card .form-group {
  text-align: left;
  margin-bottom: 16px;
}

.admin-login-card .btn {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  color: var(--accent-danger);
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
}

/* Admin Dashboard */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.admin-tab {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.admin-tab.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.admin-tab:hover:not(.active) {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

/* Admin Table */
.admin-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 8px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

.admin-table .product-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-secondary);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pendiente {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-warning);
}

.status-pagado {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-success);
}

.status-enviado {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-secondary);
}

.status-cancelado {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-danger);
}

/* Admin Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-modal);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-danger);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  border-left: 4px solid var(--accent-success);
}

.toast.error {
  border-left-color: var(--accent-danger);
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ============================================
   Empty state
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ============================================
   Loading spinner
   ============================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {

  .cart-container,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
    min-width: unset;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  .product-detail-price {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 90px 16px 30px;
    min-height: 35vh;
  }

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-detail-meta {
    grid-template-columns: 1fr;
  }

  .product-detail-actions {
    flex-direction: column;
  }
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ============================================
   Payment result page
   ============================================ */
.payment-result {
  text-align: center;
  padding: 120px 20px 60px;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.payment-result-icon {
  font-size: 5rem;
  margin-bottom: 24px;
}

.payment-result h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.payment-result p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

/* ============================================
   3D Card Lightbox Viewer
   ============================================ */
.card-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-lightbox.visible {
  display: flex;
}

.card-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.card-lightbox-container {
  position: relative;
  z-index: 1;
  perspective: 1200px;
  cursor: default;
}

.card-lightbox-flipper {
  width: 350px;
  height: 490px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
  animation: cardEntrance 0.5s ease;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: scale(0.7) rotateY(-15deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
  }
}

.card-lightbox-flipper.flipped {
  transform: rotateY(180deg);
}

.card-lightbox-flipper.dragging {
  transition: none;
  cursor: grabbing;
}

.card-lightbox-front,
.card-lightbox-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.2);
}

.card-lightbox-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-card);
}

.card-lightbox-back {
  transform: rotateY(180deg);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
}

.card-back-design {
  width: 100%;
  height: 100%;
  background:
    repeating-conic-gradient(var(--bg-secondary) 0% 25%,
      var(--bg-card) 0% 50%) 50% / 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.card-back-design::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
}

.card-back-logo {
  font-size: 3rem;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}

.card-back-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  z-index: 1;
  letter-spacing: 3px;
}

.card-lightbox-hint {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.card-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.card-lightbox-close:hover {
  background: var(--accent-danger);
  border-color: var(--accent-danger);
}

/* ============================================
   PSA Grade Badge
   ============================================ */
/*.psa-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid;
}

.psa-10 {
  background: rgba(199, 30, 24, 0.15);
  color: #b91010;
  border-color: rgba(16, 185, 129, 0.3);
}

.psa-9 {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.psa-8 {
  background: rgba(212, 6, 6, 0.15);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

.psa-7 {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.psa-low {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}
*/

/* ============================================
   Payment Methods
   ============================================ */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.payment-method {
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.payment-method:hover {
  border-color: var(--accent-primary);
}

.payment-method.selected {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.payment-method input[type="radio"] {
  display: none;
}

.payment-method-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.payment-method.selected .payment-method-radio {
  border-color: var(--accent-primary);
}

.payment-method.selected .payment-method-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.payment-method-info {
  flex: 1;
}

.payment-method-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.payment-method-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.payment-method-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ============================================
   Admin Panel — Fixed visibility (no flicker)
   ============================================ */
.admin-panel {
  display: none !important;
  opacity: 1;
}

.admin-panel.active {
  display: block !important;
  opacity: 1;
  animation: none;
}

@media (max-width: 768px) {
  .card-lightbox-flipper {
    width: 280px;
    height: 392px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .card-lightbox-flipper {
    width: 250px;
    height: 350px;
  }
}

/* ============================================
   Admin Search Bar (Task 3)
   ============================================ */
.admin-search-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  transition: var(--transition-fast);
}

.admin-search-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.admin-search-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  width: 100%;
  padding: 10px 0;
  outline: none;
}

.admin-search-input::placeholder {
  color: var(--text-muted);
}

.admin-search-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-filter-select {
  appearance: none;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  min-width: 140px;
}

.admin-filter-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.admin-filter-select:hover {
  border-color: var(--accent-primary);
}

.admin-search-count {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-weight: 500;
  display: none;
}

/* ============================================
   Hero Editor (Task 4 — Admin)
   ============================================ */
.hero-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-editor-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero-editor-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.hero-dropzone:hover {
  border-color: var(--accent-primary);
  background: rgba(124, 58, 237, 0.08);
}

.hero-dropzone-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Condition Badges (Task: Condition Refactor) */
.condition-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cond-mint {
  background: #10b981;
  color: white;
}

.cond-near-mint {
  background: #34d399;
  color: white;
}

.cond-excellent {
  background: #fbbf24;
  color: black;
}

.cond-good {
  background: #f59e0b;
  color: white;
}

.cond-light-played {
  background: #f97316;
  color: white;
}

.cond-played {
  background: #ef4444;
  color: white;
}

.cond-poor {
  background: #7f1d1d;
  color: white;
}

.hero-editor-preview {
  background: var(--gradient-hero);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  min-height: 250px;
  /* Reduced for compact banner */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-preview-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.hero-preview-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-preview-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-preview-btn {
  margin-top: 4px;
}

/* ============================================
   Hero CTA Button (Task 4 — Public)
   ============================================ */
.hero-cta-btn {
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.3s both;
  font-size: 1rem;
  padding: 14px 36px;
}

/* ============================================
   Enhanced Filter Styles (Task 5)
   ============================================ */
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-price-input {
  width: 80px !important;
  min-width: 80px !important;
  text-align: center;
  font-size: 0.85rem !important;
  padding: 10px 8px !important;
}

.filter-price-sep {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chips:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xl);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  animation: fadeInUp 0.2s ease;
}

.filter-chip-remove {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.filter-chip-remove:hover {
  opacity: 1;
  color: var(--accent-danger);
}

/* ============================================
   Card 3D Tilt Hover Effect (Task 6)
   ============================================ */
.card-hover-3d {
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
  position: relative;
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: soft-light;
}

/* Override the default card hover transform for cards with 3D tilt */
.product-card:has(.card-hover-3d):hover {
  transform: none;
}

.product-card:has(.card-hover-3d):hover .product-card-image img {
  transform: none;
}

/* ============================================
   Simple Lightbox (Task 6 — Non-cards)
   ============================================ */
.simple-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.simple-lightbox.visible {
  display: flex;
}

.simple-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.simple-lightbox-container {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardEntrance 0.4s ease;
}

.simple-lightbox-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.15);
}

.simple-lightbox-name {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================
   Responsive: Hero Editor & Admin Search
   ============================================ */
@media (max-width: 1024px) {
  .hero-editor {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-search-filters {
    flex-direction: column;
  }

  .admin-filter-select {
    width: 100%;
    min-width: unset;
  }

  .filter-price-range {
    flex-wrap: wrap;
  }
}

/* ============================================
   Módulo de Descuentos — Precio Tachado + Badge
   ============================================ */

/* Bloque de precio con descuento activo */
.price-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Precio tachado (precio anterior) */
.product-price-old {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.7);
}

/* Badge de porcentaje de descuento */
.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: white;
  letter-spacing: 0.3px;
  animation: badgePulse 2.5s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.discount-badge-lg {
  font-size: 0.85rem;
  padding: 4px 12px;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 2px 16px rgba(239, 68, 68, 0.7);
  }
}

/* Bloque de precio en vista detalle */
.price-block-detail {
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.price-block-detail .product-price-old {
  font-size: 1.1rem;
}

/* ============================================
   Widget de Total Dinámico en Navbar
   ============================================ */
.cart-total-widget {
  display: none;
  /* se activa via JS cuando hay items */
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  transition: var(--transition-fast);
  animation: fadeInWidget 0.3s ease;
  white-space: nowrap;
  margin-left: 6px;
}

@keyframes fadeInWidget {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cart-total-widget:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-tertiary);
}

/* ============================================
   Sidebar — Separador + Enlace Outlet
   ============================================ */
.sidebar-separator {
  height: 1px;
  background: var(--border-color);
  margin: 8px 24px;
}

.sidebar-link-outlet {
  color: #f59e0b !important;
  font-weight: 600 !important;
}

.sidebar-link-outlet:hover,
.sidebar-link-outlet.active {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-left-color: #f59e0b !important;
}

/* ============================================
   Restock Aviso — Botón + Form inline
   ============================================ */
.restock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(0, 212, 212, 0.4);
  background: rgba(0, 212, 212, 0.08);
  color: var(--accent-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.restock-btn:hover {
  background: rgba(0, 212, 212, 0.18);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(0, 212, 212, 0.25);
}

.restock-form {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  animation: fadeInUp 0.2s ease;
}

.restock-form.open {
  display: flex;
}

.restock-form input[type="email"] {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  width: 100%;
}

.restock-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(0, 212, 212, 0.15);
}

.restock-form-actions {
  display: flex;
  gap: 6px;
}

.restock-submit {
  flex: 1;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--gradient-primary);
  color: #000;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.restock-submit:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.restock-cancel {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.restock-msg {
  font-size: 0.75rem;
  text-align: center;
  padding: 4px 0;
  border-radius: var(--radius-sm);
}

.restock-msg.ok {
  color: var(--accent-success);
}

.restock-msg.err {
  color: var(--accent-danger);
}

/* ============================================
   Card Back — Diseño AsgardTCG
   Fondo #0d0d0d + acentos cyan #00fffc
 .card-back-design {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Transparent - matches the card's own background */
background: transparent;
position: relative;
overflow: hidden;
border-radius: 12px;
}

/* Subtle runic border */
.card-back-design::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 255, 252, 0.20);
  border-radius: 8px;
  pointer-events: none;
}

.card-back-design::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 255, 252, 0.08);
  border-radius: 5px;
  pointer-events: none;
}

/* Logo — large and centered */
.card-back-logo-img {
  width: 330px;
  height: 340px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(0, 255, 252, 0.65)) drop-shadow(0 0 28px rgba(0, 255, 252, 0.30));
  animation: cardBackPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes cardBackPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 255, 252, 0.55)) drop-shadow(0 0 22px rgba(0, 255, 252, 0.22));
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(0, 255, 252, 0.85)) drop-shadow(0 0 42px rgba(0, 255, 252, 0.45));
  }
}

/* Brand text below logo */
.card-back-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00fffc;
  margin-top: 16px;
  text-shadow: 0 0 14px rgba(0, 255, 252, 0.65);
  z-index: 1;
}

/* Glow corners */
.card-back-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(0, 255, 252, 0.45);
  border-style: solid;
}

.card-back-corner.tl {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.card-back-corner.tr {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
}

.card-back-corner.bl {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2px 2px;
}

.card-back-corner.br {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}