/* ============================================
   AURENWEAR — productos.css
   Página de listado de productos con filtros
   ============================================ */

/* ── BREADCRUMB (reutilizado de producto.css) ── */
.breadcrumb {
  padding: 14px 40px;
  border-bottom: 1px solid #2e2e2e;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumb a            { color: #888; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover      { color: #f5f3ee; }
.breadcrumb span         { color: #444; }
.breadcrumb span:last-child { color: #f5f3ee; }

/* ── HEADER ── */
.productos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid #2e2e2e;
  gap: 16px;
}

.productos-header-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.productos-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #f5f3ee;
}

.productos-count {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.08em;
}

.productos-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ordenar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ordenar-wrap label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.ordenar-wrap select {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  color: #f5f3ee;
  padding: 8px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ordenar-wrap select:focus { border-color: #888; }
.ordenar-wrap select option { background: #1a1a1a; }

/* Link activo en navbar */
.nav-links a.activo { color: #f5f3ee; }

/* ── LAYOUT PRINCIPAL ── */
.productos-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 200px);
}

/* ── SIDEBAR FILTROS ── */
.filtros-sidebar {
  border-right: 1px solid #2e2e2e;
  padding: 0;
  position: sticky;
  top: 69px;
  height: calc(100vh - 69px);
  overflow-y: auto;
}

.filtros-sidebar::-webkit-scrollbar       { width: 3px; }
.filtros-sidebar::-webkit-scrollbar-track { background: #0a0a0a; }
.filtros-sidebar::-webkit-scrollbar-thumb { background: #2e2e2e; }

.filtros-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #2e2e2e;
  position: sticky;
  top: 0;
  background: #0a0a0a;
  z-index: 1;
}

.filtros-header span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5f3ee;
}

.filtros-header button {
  background: none;
  border: none;
  color: #555;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.filtros-header button:hover { color: #f5f3ee; }

/* Grupo de filtro */
.filtro-grupo {
  border-bottom: 1px solid #2e2e2e;
}

.filtro-grupo-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f5f3ee;
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.filtro-grupo-titulo:hover { color: #888; }

.filtro-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}
.filtro-grupo-titulo.cerrado .filtro-arrow {
  transform: rotate(-90deg);
}

.filtro-grupo-body {
  padding: 4px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.filtro-grupo-body.cerrado {
  max-height: 0 !important;
  padding-bottom: 0;
}

/* Checkbox custom */
.filtro-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.filtro-check:hover { opacity: 0.8; }

.filtro-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #444;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.filtro-check input[type="checkbox"]:checked {
  background: #f5f3ee;
  border-color: #f5f3ee;
}
.filtro-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 2px solid #0a0a0a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.filtro-check span {
  font-size: 12px;
  color: #888;
  transition: color 0.15s;
  line-height: 1.3;
}
.filtro-check:has(input:checked) span { color: #f5f3ee; }

/* ── CONTENIDO GRILLA ── */
.productos-contenido {
  padding: 28px 32px;
}

/* Filtros activos (tags) */
.filtros-activos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 0;
}

.filtro-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  padding: 5px 10px 5px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #f5f3ee;
}

.filtro-tag button {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.filtro-tag button:hover { color: #f5f3ee; }

/* Sin resultados */
.sin-resultados {
  text-align: center;
  padding: 80px 20px;
  color: #555;
}
.sin-resultados-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.sin-resultados p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.sin-resultados button {
  background: none;
  border: 1px solid #2e2e2e;
  color: #888;
  padding: 10px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.sin-resultados button:hover { border-color: #888; color: #f5f3ee; }

/* Grilla productos */
.productos-grilla {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2e2e2e;
  border: 1px solid #2e2e2e;
}

/* Card de producto */
.prod-card {
  background: #0a0a0a;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
  position: relative;
}
.prod-card:hover { background: #1a1a1a; }

.prod-card-img {
  aspect-ratio: 1/1;
  background: #d0d0d0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
/* Crossfade front/back on hover */
.prod-img-front,
.prod-img-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 20px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.prod-img-front {
  opacity: 1;
  z-index: 1;
}
.prod-img-back {
  opacity: 0;
  z-index: 2;
}
.prod-card:hover .prod-img-front {
  transform: scale(1.03);
}
.prod-card:has(.prod-img-back):hover .prod-img-front {
  opacity: 0;
}
.prod-card:hover .prod-img-back {
  opacity: 1;
  transform: scale(1.03);
}

.prod-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #22c55e;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.prod-card-nuevo {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #3b82f6;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.prod-card-info {
  padding: 14px 16px;
  border-top: 1px solid #2e2e2e;
}

.prod-card-anime {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 5px;
}

.prod-card-nombre {
  font-size: 15px;
  font-weight: 500;
  color: #f5f3ee;
  margin-bottom: 8px;
  line-height: 1.3;
}

.prod-card-precio {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prod-card-precio s      { color: #444; font-size: 12px; }
.prod-card-precio .now   { color: #f5f3ee; font-weight: 700; }

.prod-card-ver {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #f5f3ee;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s;
}
.prod-card:hover .prod-card-ver {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE BUTTON ── */
.btn-filtros-mobile {
  display: none;
  background: none;
  border: 1px solid #2e2e2e;
  color: #f5f3ee;
  padding: 8px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s;
}
.btn-filtros-mobile:hover { border-color: #888; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .productos-layout {
    grid-template-columns: 1fr;
  }

  .filtros-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 100;
    background: #0a0a0a;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    border-right: 1px solid #2e2e2e;
  }

  .filtros-sidebar.abierto {
    transform: translateX(0);
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .btn-filtros-mobile { display: flex; align-items: center; gap: 8px; }

  .productos-header { padding: 20px; }
  .productos-contenido { padding: 20px; }
  .productos-grilla { grid-template-columns: repeat(2, 1fr); }
  .breadcrumb { padding: 12px 20px; }
}

@media (max-width: 480px) {
  .productos-grilla { grid-template-columns: repeat(2, 1fr); }
  .productos-header-left { flex-direction: column; gap: 4px; }
}