/* Extreme Level CSS Animations */
@keyframes floatEffect {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 25px 35px rgba(103, 58, 183, 0.2);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes shineSweep {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(103, 58, 183, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(103, 58, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(103, 58, 183, 0);
  }
}

.product-detail-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 35px;
  border: 1px solid rgba(103, 58, 183, 0.1);
  transition: all 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

/* Main Image Container with 3D Float & Zoom Effect */
.main-img-container {
  background: linear-gradient(135deg, #fdfdfd 0%, #f1f1f1 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  border: 1px solid #e2e2e2;
  position: relative;
  margin-bottom: 20px;
  animation: floatEffect 5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.main-img-container img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: crosshair;
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.15));
}
.main-img-container:hover img {
  transform: scale(1.4) rotate(2deg);
}

.badge-platform {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #673ab7, #9c27b0);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(103, 58, 183, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulseGlow 2s infinite;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px;
  scroll-behavior: smooth;
}
.thumb-item {
  width: 75px;
  height: 75px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.thumb-item:hover,
.thumb-item.active-thumb {
  border-color: #673ab7;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(103, 58, 183, 0.4);
}
.thumb-item img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.product-title-detail {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #222, #673ab7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.new-price-lg {
  font-size: 30px;
  font-weight: 900;
  color: #e91e63;
  text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
}
.old-price-lg {
  font-size: 18px;
  text-decoration: line-through;
  color: #999;
  font-weight: 600;
}

.stats-detail {
  display: flex;
  gap: 25px;
  font-size: 15px;
  color: #555;
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 2px dashed rgba(103, 58, 183, 0.2);
  border-bottom: 2px dashed rgba(103, 58, 183, 0.2);
  background: rgba(103, 58, 183, 0.03);
  border-radius: 8px;
}
.stats-detail span i {
  font-size: 18px;
  margin-right: 5px;
  transition: transform 0.3s ease;
}
.stats-detail span:hover i {
  transform: scale(1.3);
}

.description-box {
  color: #444;
  line-height: 1.9;
  margin-bottom: 30px;
  font-size: 15px;
}

/* Solid Animated Buy Button */
.btn-buy-now {
  position: relative;
  background: linear-gradient(45deg, #673ab7, #e91e63);
  color: #fff !important;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(103, 58, 183, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: pulseGlow 3s infinite;
}
.btn-buy-now::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shineSweep 3s infinite;
}
.btn-buy-now:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(233, 30, 99, 0.5);
}

/* Video Container Animation */
.video-container {
  margin-top: 30px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
  border: 3px solid #673ab7;
}
.video-container:hover {
  transform: scale(1.02);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Related Products Card - 3D Solid Hover */
.related-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  position: relative;
}
.related-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(45deg, #673ab7, #e91e63);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.related-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 30px rgba(103, 58, 183, 0.15);
  border-color: transparent;
}
.related-card:hover::after {
  transform: scaleX(1);
}
.related-img-box {
  height: 180px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-img-box img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}
.related-card:hover .related-img-box img {
  transform: scale(1.15) rotate(-3deg);
}
.related-body {
  padding: 15px 20px;
}
.related-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.related-card:hover .related-title {
  color: #673ab7;
}
