/* ============ TIENDA ELEGANTE VICTORIA'S SECRET - COLORES SUAVES ============ */

:root {
  /* Colores Pastel Suaves */
  --rosa-principal: #FFB6D9;
  --rosa-secundario: #FFC9E0;
  --rosa-claro: #FFE8F5;
  --rosa-muy-claro: #FFF5FA;
  --rosa-pastel: #FFD6E8;
  --lila-suave: #E8D5F2;
  --perla: #FFFCFD;
  --blanco-puro: #FFFFFF;
  
  /* Texto */
  --texto-principal: #4A4A4A;
  --texto-secundario: #6B6B6B;
  --texto-suave: #8A8A8A;
  
  /* Gradientes Suaves */
  --gradient-principal: linear-gradient(135deg, #FFB6D9 0%, #FFC9E0 50%, #FFE8F5 100%);
  --gradient-secundario: linear-gradient(135deg, #FFD6E8 0%, #FFE8F5 100%);
  
  /* Sombras Suaves */
  --sombra-suave: 0 4px 20px rgba(255, 182, 217, 0.12);
  --sombra-media: 0 8px 30px rgba(255, 182, 217, 0.15);
  --sombra-hover: 0 12px 40px rgba(255, 182, 217, 0.2);
  
  /* Transiciones */
  --transition-default: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== EFECTOS GLOBALES ===== */
body {
  background-color: var(--blanco-puro);
  color: var(--texto-principal);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--texto-principal);
}

a {
  color: var(--rosa-principal);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--rosa-secundario);
  text-decoration: none;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-default);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-principal);
  color: white !important;
  box-shadow: var(--sombra-suave);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--rosa-principal);
  border: 1px solid white;
}

.btn-secondary:hover {
  background: white;
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--sombra-suave);
}

/* Efecto de onda al hacer clic en botones */
.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Efecto de carga */
.loading-wave {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.loading-bar {
  width: 4px;
  height: 18px;
  background: var(--gradient-principal);
  border-radius: 4px;
  margin: 0 4px;
  animation: loading 1s ease-in-out infinite;
}

@keyframes loading {
  0%, 100% { 
    transform: scaleY(1);
    opacity: 0.5;
  }
  50% { 
    transform: scaleY(2);
    opacity: 1;
  }
}

/* Tarjetas con efecto de elevación */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--sombra-suave);
  transition: var(--transition-default);
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

/* Secciones con borde degradado */
.section-border-top {
  position: relative;
  border-top: 1px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #FFB6D9, #FFC9E0) border-box;
  border-top-width: 2px;
  border-image-slice: 1;
}

/* Efecto de partículas */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 182, 217, 0.3), rgba(255, 201, 224, 0.2));
  animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== CARDS DE PRODUCTOS ELEGANTES ===== */
.card-product {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 24px;
  transition: var(--transition-default);
  border: 1px solid rgba(255, 201, 224, 0.2);
  box-shadow: var(--sombra-suave);
  cursor: pointer;
  transform: translateY(0);
  will-change: transform, box-shadow;
}

.card-product:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--sombra-hover);
  border-color: rgba(255, 182, 217, 0.4);
  z-index: 2;
}

.card-product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-principal);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.card-product:hover::before {
  transform: scaleX(1);
}

/* Ícono de Favorito */
.card-product .favorite-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  color: var(--rosa-principal);
  background: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-suave);
  opacity: 0;
  transition: var(--transition-default);
  cursor: pointer;
  z-index: 10;
  border: 1px solid rgba(255, 201, 224, 0.3);
  transform: scale(0.9);
  will-change: transform, opacity, background, color;
}

.card-product:hover .favorite-icon {
  opacity: 1;
}

.card-product .favorite-icon:hover {
  background: var(--gradient-principal);
  color: white;
  transform: scale(1.15) rotate(10deg);
  box-shadow: var(--sombra-media);
}

.card-product .favorite-icon.active {
  opacity: 1;
  background: var(--gradient-principal);
  color: white;
  transform: scale(1.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 182, 217, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 182, 217, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 182, 217, 0);
  }
}

/* Badge de Descuento Suave */
.badge-discount {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gradient-principal);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: var(--sombra-suave);
}

/* Imagen del Producto */
.card-product-image {
  height: 260px;
  background: linear-gradient(135deg, var(--perla), var(--rosa-muy-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.card-product-image img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

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

/* Icono de producto */
.card-product-image i {
  font-size: 5rem;
  color: var(--rosa-principal);
  transition: all 0.5s ease;
}

.card-product:hover .card-product-image i {
  transform: scale(1.1) rotate(5deg);
  color: var(--rosa-secundario);
}

/* Info del Producto */
.card-product-info {
  padding: 1.75rem;
  background: white;
}

.card-product-category {
  color: var(--rosa-principal);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.card-product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--texto-principal);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  box-orient: vertical;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.card-product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-product-price-current {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-product-price-original {
  font-size: 0.95rem;
  color: var(--texto-suave);
  text-decoration: line-through;
}

/* Acciones del Producto */
.card-product-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-add-cart-mini {
  flex: 1;
  background: var(--gradient-principal);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--sombra-suave);
  position: relative;
  overflow: hidden;
}

.btn-add-cart-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.btn-add-cart-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.btn-add-cart-mini:hover::before {
  left: 100%;
}

/* ===== FILTROS ELEGANTES ===== */
.filter-section {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 201, 224, 0.2);
  box-shadow: var(--sombra-suave);
}

.filter-section::-webkit-scrollbar {
  width: 8px;
}

.filter-section::-webkit-scrollbar-track {
  background: var(--rosa-muy-claro);
  border-radius: 10px;
}

.filter-section::-webkit-scrollbar-thumb {
  background: var(--gradient-principal);
  border-radius: 10px;
}

.filter-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--rosa-secundario), var(--rosa-principal));
}

/* Checkboxes personalizados */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 182, 217, 0.4);
  border-radius: 5px;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
  background: var(--gradient-principal);
  border-color: transparent;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Botones de Filtro */
.btn-primary {
  background: var(--gradient-principal);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sombra-suave);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--rosa-principal);
  border: 2px solid var(--rosa-principal);
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--rosa-principal);
  color: white;
  box-shadow: var(--sombra-suave);
}

/* Range Slider Mejorado */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--rosa-claro), var(--rosa-principal));
  outline: none;
  margin: 1.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--rosa-principal);
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--sombra-media);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--rosa-principal);
  cursor: pointer;
  box-shadow: var(--sombra-suave);
}

/* ===== PAGINACIÓN ELEGANTE ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination button,
.pagination-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 201, 224, 0.3);
  background: white;
  color: var(--texto-principal);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:focus-visible,
.pagination-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 182, 217, 0.25);
}

.pagination button:hover:not(.active),
.pagination-btn:hover {
  background: rgba(255, 182, 217, 0.1);
  border-color: var(--rosa-principal);
  transform: translateY(-2px);
}

.pagination button.active,
.pagination-btn.active {
  background: var(--gradient-principal);
  color: white;
  border-color: transparent;
  box-shadow: var(--sombra-suave);
  font-weight: 600;
}

.pagination button:disabled,
.pagination-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== FILTROS MÓVILES ===== */
.mobile-filters {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: white;
  z-index: 1000;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 5px 0 30px rgba(255, 182, 217, 0.15);
  border-right: 2px solid rgba(255, 201, 224, 0.3);
}

.mobile-filters.active {
  left: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 182, 217, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card-product {
    border-radius: 20px;
  }
  
  .card-product-image {
    height: 220px;
    padding: 2rem;
  }
  
  .card-product-info {
    padding: 1.5rem;
  }
  
  .pagination button,
  .pagination-btn {
    padding: 0.75rem 1.25rem;
    min-width: 44px;
    font-size: 0.9rem;
  }
  
  .filter-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .card-product-image {
    height: 200px;
    padding: 1.5rem;
  }
  
  .card-product-info {
    padding: 1.25rem;
  }
  
  .card-product-actions {
    flex-direction: column;
  }
  
  .btn-add-cart-mini {
    width: 100%;
  }
  
  .pagination {
    gap: 0.5rem;
  }
  
  .pagination button,
  .pagination-btn {
    padding: 0.625rem 1rem;
    min-width: 40px;
    font-size: 0.85rem;
  }
}