/**
 * ================================================================
 * CATÁLOGO ARTÍSTICO - MOTOPARTES TRICICLO
 * Diseño único para página de productos
 * Armonía total con header y home
 * ================================================================
 */

/* ========== VARIABLES (Sincronizadas) ========== */
:root {
  --color-primary: #FF6B35;
  --color-secondary: #004E89;
  --color-accent: #FFD23F;
  --color-dark: #1A1A2E;
  --color-light: #F7F7F7;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

/* ========== HEADER DE CATÁLOGO ========== */
.bg0 {
  background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
  position: relative;
  overflow: hidden;
}

.bg0::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.05) 0%, 
    rgba(0, 78, 137, 0.05) 100%
  );
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

/* ========== TÍTULO Y FILTROS ========== */
.flex-w.flex-sb-m {
  margin-bottom: 3rem;
  padding-top: 3rem;
}

.flex-w.flex-sb-m h3 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-dark);
  position: relative;
  padding-left: 2rem;
}

.flex-w.flex-sb-m h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 80%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* ========== BOTÓN DE FILTRO ARTÍSTICO ========== */
.js-show-filter {
  background: white !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: 50px !important;
  padding: 0.875rem 2rem !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  cursor: pointer;
}

.js-show-filter:hover {
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  color: white !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3) !important;
}

.js-show-filter i {
  transition: transform 0.3s ease;
}

.js-show-filter:hover i {
  transform: rotate(180deg);
}

/* ========== PANEL DE FILTROS ARTÍSTICO ========== */
.panel-filter {
  margin-bottom: 2rem;
  animation: slideDown 0.4s ease;
}

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

.wrap-filter {
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 2rem !important;
  border: 2px solid rgba(255, 107, 53, 0.1);
}

.mtext-102 {
  font-family: var(--font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--color-dark) !important;
  margin-bottom: 1.5rem !important;
  position: relative;
  padding-bottom: 1rem;
}

.mtext-102::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

/* ========== TAGS DE CATEGORÍAS ARTÍSTICAS ========== */
.stext-107 {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

.size-301 {
  padding: 0.75rem 1.5rem !important;
}

.bor7 {
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 50px !important;
  background: white !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.bor7:hover,
.bor7.active {
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  color: white !important;
  border-color: transparent !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3) !important;
}

.bor7 span {
  font-weight: 700;
  opacity: 0.7;
}

/* ========== GRID DE PRODUCTOS ARTÍSTICO ========== */
.isotope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ========== CARD DE PRODUCTO ARTÍSTICA ========== */
.block2 {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.block2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.block2:hover::before {
  transform: scaleX(1);
}

.block2:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2);
}

/* ========== IMAGEN DEL PRODUCTO ========== */
.block2-pic {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--color-light);
}

.block2-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.block2:hover .block2-pic img {
  transform: scale(1.15) rotate(2deg);
}

/* ========== BOTÓN "VER PRODUCTO" ARTÍSTICO ========== */
.block2-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  padding: 1rem 2.5rem !important;
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  color: white !important;
  border: 3px solid white !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 3;
}

.block2:hover .block2-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.block2-btn:hover {
  transform: translateX(-50%) translateY(-5px) !important;
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5) !important;
  border-color: var(--color-accent) !important;
}

/* ========== INFORMACIÓN DEL PRODUCTO ========== */
.block2-txt {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.block2-txt-child1 {
  flex: 1;
}

.js-name-b2 {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--color-dark) !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  display: block;
  transition: color 0.3s ease;
}

.js-name-b2:hover {
  color: var(--color-primary) !important;
}

.stext-105 {
  font-family: var(--font-body) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
}

/* ========== BOTÓN FAVORITO ARTÍSTICO ========== */
.block2-txt-child2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.js-addwish-b2 {
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid var(--color-primary) !important;
  border-radius: 12px;
  color: var(--color-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.js-addwish-b2:hover {
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  color: white !important;
  transform: rotate(15deg) scale(1.15);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.js-addwish-b2 i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.js-addwish-b2:hover i {
  transform: scale(1.2);
}

/* ========== BOTÓN AGREGAR AL CARRITO (SOLO ICONO) ========== */
.block2-txt-child2 .js-addcart-detail {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a) !important;
  color: white !important;
  border: 2px solid var(--color-primary) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.block2-txt-child2 .js-addcart-detail:hover {
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
  background: linear-gradient(135deg, #ff8c5a, var(--color-primary)) !important;
}

/* Estilo del icono */
.block2-txt-child2 .js-addcart-detail i {
  font-size: 1.25rem !important;
  margin: 0 !important;
  color: white !important;
}

/* ========== BADGE DE STOCK ========== */
.product-badge-stock {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--color-accent), #ffe066);
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 210, 63, 0.3);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge-new {
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a);
  color: white;
}

/* ========== PAGINACIÓN ARTÍSTICA ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.pagination a,
.pagination span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-dark);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination a:hover,
.pagination span.active {
  background: linear-gradient(135deg, var(--color-primary), #ff8c5a);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* ========== MENSAJE SIN PRODUCTOS ========== */
.no-products-message {
  text-align: center;
  padding: 6rem 2rem;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 3rem 0;
}

.no-products-message i {
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: 2rem;
}

.no-products-message h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.no-products-message p {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .isotope-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .flex-w.flex-sb-m h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .flex-w.flex-sb-m {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .flex-w.flex-sb-m h3 {
    font-size: 2rem;
  }
  
  .isotope-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }
  
  .block2-pic {
    height: 250px;
  }
  
  .wrap-filter {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .isotope-grid {
    grid-template-columns: 1fr;
  }
  
  .flex-w.flex-sb-m h3 {
    font-size: 1.75rem;
  }
  
  .block2-pic {
    height: 280px;
  }
  
  .js-show-filter {
    width: 100%;
    justify-content: center;
  }
}

/* ========== ANIMACIONES DE ENTRADA ========== */
.block2 {
  animation: fadeInUp 0.6s ease backwards;
}

.block2:nth-child(1) { animation-delay: 0.1s; }
.block2:nth-child(2) { animation-delay: 0.2s; }
.block2:nth-child(3) { animation-delay: 0.3s; }
.block2:nth-child(4) { animation-delay: 0.4s; }
.block2:nth-child(5) { animation-delay: 0.5s; }
.block2:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
