/* ==========================================================================
   POKÉCUSTOMS - ESTILOS OFICIALES V2 (REDISEÑO TOTAL)
   Tema: Carbon & Fiery Orange (Inspirado en el logo oficial con llamas)
   Distribución: Modo Archivador TCG (Binder), Modo Vitrina (Slabs) y Modo Deckbuilder
   ========================================================================== */

:root {
  --bg-dark: #0b0f17;
  --bg-card: #131a26;
  --bg-surface: #1c2638;
  --bg-binder: #0e1520;
  
  --primary: #ff4500;
  --primary-hover: #ff5722;
  --primary-glow: rgba(255, 69, 0, 0.45);
  --accent-gold: #fbbf24;
  --accent-cyan: #38bdf8;
  
  --border-color: #263348;
  --border-card: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(255, 69, 0, 0.5);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.7);
  --shadow-slab: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 69, 0, 0.15);
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 69, 0, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #0b0f17 0%, #070a10 100%);
  background-attachment: fixed;
}

/* ==========================================================================
   TICKER BARRA SUPERIOR DE ANUNCIOS
   ========================================================================== */
.top-ticker {
  background: linear-gradient(90deg, #ff4500, #d97706, #ff4500);
  background-size: 200% auto;
  animation: gradientShift 6s linear infinite;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

/* Badge de Colaboración en el Header junto a PokéCustoms */
.header-collab-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: rgba(19, 26, 38, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 4px 10px 4px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.header-collab-badge:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.25);
}
.collab-tag-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.header-collab-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-collab-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #fbbf24;
  object-fit: cover;
}
.collab-site-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
}
.collab-arrow-small {
  font-size: 0.85rem;
  color: #fbbf24;
  transition: transform 0.2s ease;
}
.header-collab-badge:hover .collab-arrow-small {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .collab-tag-text {
    display: none;
  }
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.6));
  transition: transform 0.25s ease;
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.1) rotate(-4deg);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}
.brand-titles h1 {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 2px;
}
.brand-titles h1 span.custom {
  background: linear-gradient(135deg, #ff7700, #ff4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-titles .subtitle {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  background: rgba(28, 38, 56, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.nav-btn:hover {
  background: rgba(255, 69, 0, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.cart-btn {
  background: linear-gradient(135deg, #ff5722, #d84315);
  border: none;
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
  transition: var(--transition);
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 69, 0, 0.6);
}
.cart-count {
  background: #fff;
  color: #d84315;
  font-size: 0.8rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO BANNER: INTERACTIVO TIPO DECK BUILDER / PACK
   ========================================================================== */
.hero-deck-section {
  max-width: 1440px;
  margin: 1.75rem auto 2.5rem;
  padding: 0 1.5rem;
}

.hero-deck-banner {
  background: linear-gradient(135deg, #131a26 0%, #1a2333 50%, #171d2b 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero-deck-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(255, 69, 0, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-deck-info {
  flex: 1;
  max-width: 650px;
}
.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 69, 0, 0.12);
  border: 1px solid rgba(255, 69, 0, 0.35);
  color: #ff8a65;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-deck-info h2 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #fff;
}
.hero-deck-info h2 span {
  background: linear-gradient(135deg, #fff 20%, #ffcc80 60%, #ff5722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-deck-info p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Pack builder rápido */
.pack-tracker-card {
  background: rgba(11, 15, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pack-progress-info {
  display: flex;
  flex-direction: column;
}
.pack-progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.pack-price-hero {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}
.pack-price-hero span {
  color: var(--accent-gold);
  font-size: 0.95rem;
}
.hero-cta-group {
  display: flex;
  gap: 0.75rem;
}
.hero-open-cart-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(255, 69, 0, 0.4);
  transition: var(--transition);
}
.hero-open-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Visual stack de cartas a la derecha */
.hero-deck-visual {
  position: relative;
  width: 280px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.visual-slab {
  width: 140px;
  height: 196px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: absolute;
  transition: transform 0.3s ease;
}
.visual-slab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visual-slab:nth-child(1) {
  transform: rotate(-12deg) translateX(-45px);
  z-index: 1;
}
.visual-slab:nth-child(2) {
  transform: rotate(0deg) translateY(-10px);
  z-index: 2;
  box-shadow: 0 20px 45px rgba(255, 69, 0, 0.4);
}
.visual-slab:nth-child(3) {
  transform: rotate(12deg) translateX(45px);
  z-index: 1;
}
.hero-deck-banner:hover .visual-slab:nth-child(1) {
  transform: rotate(-18deg) translateX(-65px);
}
.hero-deck-banner:hover .visual-slab:nth-child(3) {
  transform: rotate(18deg) translateX(65px);
}

/* ==========================================================================
   PANEL DE CONTROL: BÚSQUEDA + SELECTOR DE VISTAS (ARCHIVADOR / VITRINA / LISTA)
   ========================================================================== */
.controls-dock {
  max-width: 1440px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.controls-dock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.search-field-modern {
  flex: 1;
  min-width: 280px;
  position: relative;
}
.search-icon-m {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.search-input-m {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.1rem 0.75rem 2.8rem;
  color: #fff;
  font-size: 0.92rem;
  transition: var(--transition);
}
.search-input-m:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}

/* Selector de Modos de Vista */
.view-modes-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-dark);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}
.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.view-mode-btn:hover {
  color: #fff;
}
.view-mode-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

/* Categorías pills horizontales */
.categories-bar {
  max-width: 1440px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories-bar::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
}
.cat-pill:hover {
  background: var(--bg-surface);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.cat-pill.active {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: #fff;
  border-color: #ff5722;
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.4);
}
.cat-pill-count {
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   DISTRIBUCIÓN 1: MODO ARCHIVADOR TCG (BINDER 9-POCKET SLEEVES) - POR DEFECTO
   ========================================================================== */
.catalog-section {
  max-width: 1440px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

/* Cabecera del catálogo */
.catalog-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contenedor del Archivador */
.binder-wrapper {
  background: #080d14;
  border: 2px solid #1c2638;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}
/* Anillas de archivador en el borde izquierdo (estilo carpeta TCG) */
.binder-rings {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: -14px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
}
.binder-ring {
  width: 28px;
  height: 14px;
  background: linear-gradient(180deg, #94a3b8 0%, #334155 50%, #1e293b 100%);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Grid de 4 columnas (Estrictamente 4 cartas por fila en escritorio) */
.cards-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1200px) {
  .cards-layout-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 820px) {
  .cards-layout-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .cards-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DISEÑO DE CADA CARTA: TOP-LOADER TCG SLAB (SIN HOLOGRÁFICO)
   ========================================================================== */
.slab-card {
  background: #0d1420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}
.slab-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 69, 0, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 69, 0, 0.25);
}

/* Pestaña superior del Slab (Nombre y Número de Carta) */
.slab-header-tab {
  background: rgba(28, 38, 56, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slab-number {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-gold);
}
.slab-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.slab-energy {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Marco de la imagen de la carta */
.slab-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1058 / 1487;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.slab-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.slab-card:hover .slab-image {
  transform: scale(1.03);
}

/* Botón flotante de lupa en la esquina */
.slab-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s ease;
  z-index: 5;
}
.slab-card:hover .slab-zoom-btn {
  opacity: 1;
  transform: scale(1);
}
.slab-zoom-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Badge de HP flotante */
.slab-hp-floating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

/* Barra inferior interactiva en el Slab */
.slab-action-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 4px 2px;
}
.slab-price-pill {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.slab-price-pill span {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Botón o controles de cantidad directos en la carta */
.slab-add-btn {
  background: linear-gradient(135deg, #ff4500, #e64a19);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.35);
  transition: var(--transition);
}
.slab-add-btn:hover {
  background: linear-gradient(135deg, #ff5722, #ff4500);
  transform: scale(1.05);
}

/* Stepper interactivo directamente en la carta si ya está en cesta */
.slab-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 69, 0, 0.5);
  border-radius: var(--radius-full);
  padding: 2px 6px;
}
.stepper-btn {
  background: #ff4500;
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.stepper-btn:hover {
  background: #ff5722;
  transform: scale(1.1);
}
.stepper-val {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  min-width: 20px;
  text-align: center;
}

/* ==========================================================================
   DISTRIBUCIÓN 2: MODO VITRINA / ESCAPARATE (SHOWCASE DISPLAY)
   ========================================================================== */
.view-showcase .cards-layout-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem 1.5rem;
}
@media (max-width: 1200px) {
  .view-showcase .cards-layout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .view-showcase .cards-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .view-showcase .cards-layout-grid {
    grid-template-columns: 1fr;
  }
}
.view-showcase .binder-wrapper {
  background: #090e17;
  border-color: #243044;
}
.view-showcase .slab-card {
  background: linear-gradient(180deg, #162030 0%, #0d1420 100%);
  border-width: 2px;
  padding: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}
.view-showcase .slab-card::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 10%;
  right: 10%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(255, 69, 0, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(3px);
}

/* ==========================================================================
   DISTRIBUCIÓN 3: MODO LISTA DECKBUILDER (TABLE LIST)
   ========================================================================== */
.view-list .cards-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.view-list .slab-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
}
.view-list .slab-header-tab {
  margin: 0 1.5rem 0 1rem;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
}
.view-list .slab-image-frame {
  width: 50px;
  height: 70px;
  aspect-ratio: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
.view-list .slab-zoom-btn,
.view-list .slab-hp-floating {
  display: none;
}
.view-list .slab-action-bar {
  margin: 0;
  gap: 1.5rem;
}

/* ==========================================================================
   SECCIÓN COLABORACIÓN CON FANARTSHF.COM (DEBAJO DEL CATÁLOGO)
   ========================================================================== */
.collab-section {
  max-width: 1440px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.collab-card {
  background: linear-gradient(135deg, #111827 0%, #1a2234 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(251, 191, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.collab-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4500, #fbbf24, #38bdf8);
}
.collab-left-side {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.collab-logo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.5);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.collab-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collab-text-block h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.collab-text-block h3 a {
  color: #fbbf24;
  text-decoration: none;
}
.collab-text-block h3 a:hover {
  text-decoration: underline;
}
.collab-text-block p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 600px;
}
.collab-cta-btn {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
  transition: var(--transition);
  flex-shrink: 0;
}
.collab-cta-btn:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.55);
}

/* ==========================================================================
   DRAWER CARRITO Y MODALES
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #0f172a;
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
}
.cart-drawer.open {
  right: 0;
}
.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}
.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}
.close-drawer-btn:hover {
  color: #fff;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}
.cart-item-img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}
.cart-item-price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.qty-btn:hover {
  background: var(--primary);
}
.qty-display {
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}
.remove-item-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}
.remove-item-btn:hover {
  color: #ef4444;
}
.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 23, 0.96);
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.cart-summary-line.total-line {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  margin: 0.75rem 0 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
.cart-summary-line.total-line .amount {
  color: var(--accent-gold);
}
.checkout-btn {
  width: 100%;
  background: #25d366;
  border: none;
  color: #fff;
  padding: 0.95rem;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}
.checkout-btn:hover {
  background: #22c55e;
  transform: translateY(-2px);
}
.drawer-collab-badge {
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.drawer-collab-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #fbbf24;
  object-fit: cover;
}
.drawer-collab-badge a {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: none;
}
.drawer-collab-badge a:hover {
  text-decoration: underline;
}

/* Modal Zoom & Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.95);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  padding: 1.75rem;
  z-index: 2010;
}
.zoom-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 420px;
  max-height: 94vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.zoom-card-image {
  max-height: 65vh;
  max-width: 90vw;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  margin-bottom: 0.75rem;
}
.modal-close-corner {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Footer & Volver arriba */
.footer {
  border-top: 1px solid var(--border-color);
  background: #080d15;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.footer-links button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  margin: 0 0.75rem;
}
.footer-links button:hover {
  color: var(--primary);
}
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .hero-deck-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }
  .hero-deck-visual {
    margin: 0 auto;
  }
  .binder-rings {
    display: none;
  }
  .collab-card {
    flex-direction: column;
    text-align: center;
  }
  .collab-left-side {
    flex-direction: column;
    text-align: center;
  }
}

/* Ocultar cualquier insignia de Netlify inyectada */
netlify-badge,
netlify-feedback,
[class*="netlify"],
[id*="netlify"],
[data-netlify-badge],
iframe[src*="netlify"],
.netlify-badge,
#netlify-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  position: fixed !important;
  bottom: -9999px !important;
  right: -9999px !important;
  z-index: -9999 !important;
}
