/* ==============================================
   ISOLATED CAROUSEL CSS - v1.0
   This file is COMPLETELY ISOLATED from all other styles
   All rules use !important to prevent conflicts
   ============================================== */

/* Container section */
.products-showcase {
  padding: 10px 20px 40px !important;
  background: var(--purple, #7C3AED) !important;
  overflow: visible !important;
  position: relative !important;
  margin-top: 0 !important;
}

.products-label {
  display: block !important;
  text-align: center !important;
  font-family: 'Cormorant SC', serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  color: #E85A4F !important;
  margin-bottom: 0 !important;
}

/* Reduce space above the 3D stage */
.carousel-stage {
  margin-top: -10px !important;
}

/* 3D Stage - The magic happens here */
.carousel-stage {
  position: relative !important;
  width: 100% !important;
  height: 380px !important;
  perspective: 1200px !important;
  perspective-origin: 50% 50% !important;
}

/* Wrapper holds all cards */
.carousel-wrapper {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  transform-style: preserve-3d !important;
  width: 280px !important;
  height: 340px !important;
}

/* Individual card styling */
.carousel-card {
  position: absolute !important;
  width: 280px !important;
  height: 340px !important;
  background: #0a0a10 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  padding: 24px !important;
  text-decoration: none !important;
  color: white !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  backface-visibility: hidden !important;
  transform-style: preserve-3d !important;

  /* Animation for smooth transitions */
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.5s ease,
    z-index 0s !important;

  /* CSS custom properties for 3D positioning */
  --tx: 0px;
  --tz: 0px;
  --ry: 0deg;
  --scale: 1;
  transform: translateX(var(--tx)) translateZ(var(--tz)) rotateY(var(--ry)) scale(var(--scale)) !important;
}

/* Card internal elements */
.carousel-card .card-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  width: fit-content !important;
  margin-bottom: 16px !important;
}

.carousel-card .card-icon {
  font-size: 2.5rem !important;
  margin-bottom: 14px !important;
  animation: premiumFloat 3s ease-in-out infinite !important;
}

.carousel-card .card-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  color: white !important;
}

.carousel-card .card-desc {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  flex-grow: 1 !important;
}

.carousel-card .card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: auto !important;
}

.carousel-card .card-price {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: white !important;
}

.carousel-card .card-cta {
  color: #E85A4F !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

/* Pagination dots */
.carousel-dots {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 30px !important;
}

.carousel-dots .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.3) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
  padding: 0 !important;
}

.carousel-dots .dot.active {
  background: #E85A4F !important;
  transform: scale(1.2) !important;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Premium floating animation for icons */
@keyframes premiumFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Active glow effect behind center card */
.active-glow {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 320px !important;
  height: 380px !important;
  background: radial-gradient(ellipse, rgba(232, 90, 79, 0.15) 0%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Floor reflection */
.floor-reflection {
  position: absolute !important;
  bottom: -40px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 400px !important;
  height: 60px !important;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.1), transparent) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  z-index: 10 !important;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4) !important;
}

.carousel-card-content {
  position: relative !important;
}

/* ========================================
   MOBILE — Same 3D carousel as desktop, scaled down
   ======================================== */
@media (max-width: 768px) {

  /* Section spacing - allow overflow for 3D effect */
  .products-showcase {
    padding: 10px 0 30px 0 !important;
    overflow: visible !important;
  }

  .products-label {
    font-size: 0.7rem !important;
    margin-bottom: 0 !important;
  }

  /* Smaller 3D stage for mobile - must allow overflow */
  .carousel-stage {
    height: 320px !important;
    perspective: 1000px !important;
    overflow: visible !important;
  }

  /* Smaller wrapper - centered with overflow visible */
  .carousel-wrapper {
    width: 220px !important;
    height: 270px !important;
    overflow: visible !important;
  }

  /* Smaller cards with adjusted 3D positions */
  .carousel-card {
    width: 220px !important;
    height: 270px !important;
    padding: 16px !important;
  }

  /* Card elements sizing */
  .carousel-card .card-badge {
    font-size: 0.65rem !important;
    padding: 5px 10px !important;
    margin-bottom: 12px !important;
  }

  .carousel-card .card-icon {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
  }

  .carousel-card .card-title {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }

  .carousel-card .card-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  .carousel-card .card-footer {
    padding-top: 10px !important;
  }

  .carousel-card .card-price {
    font-size: 1.1rem !important;
  }

  .carousel-card .card-cta {
    font-size: 0.75rem !important;
  }

  /* Smaller glow */
  .active-glow {
    width: 280px !important;
    height: 320px !important;
  }

  /* Smaller dots */
  .carousel-dots {
    margin-top: 20px !important;
    gap: 8px !important;
  }

  .carousel-dots .dot {
    width: 8px !important;
    height: 8px !important;
  }

  /* Coming Soon badge mobile */
  .coming-soon-badge {
    font-size: 0.5rem !important;
    padding: 3px 7px !important;
    top: 8px !important;
    right: 8px !important;
  }

  /* Smaller reflection */
  .floor-reflection {
    width: 300px !important;
    height: 40px !important;
    bottom: -30px !important;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .carousel-stage {
    height: 280px !important;
    perspective: 900px !important;
  }

  .carousel-wrapper {
    width: 210px !important;
    height: 260px !important;
  }

  .carousel-card {
    width: 210px !important;
    height: 260px !important;
    padding: 14px !important;
  }

  .carousel-card .card-icon {
    font-size: 1.8rem !important;
  }

  .carousel-card .card-title {
    font-size: 0.95rem !important;
  }

  .carousel-card .card-desc {
    font-size: 0.75rem !important;
  }
}
