.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);
  position: relative;
  overflow: hidden;
}

/* Main Image Viewer Box */
.zoom-view-container {
  background: linear-gradient(135deg, #fdfdfd 0%, #f1f1f1 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  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);
}
.zoom-view-container img {
  max-height: 85%;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.15));
}
.zoom-view-container:hover img {
  transform: scale(1.35) rotate(2deg);
}

/* Amazon Style Zoom Layer Popup */
.zoom-popup-layer {
  position: absolute;
  top: 0;
  left: 104%;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background-repeat: no-repeat;
  display: none;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .zoom-popup-layer {
    display: none !important;
  }
}

/* Platform Badge */
.badge-platform-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #673ab7, #9c27b0);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  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 Animation */
.gallery-thumbs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px;
}

.thumb-box {
  width: 70px;
  height: 70px;
  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-box:hover,
.thumb-box.active-thumb {
  border-color: #673ab7;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(103, 58, 183, 0.4);
}
.thumb-box img {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain;
}

.product-main-title {
  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;
}

.category-badge-pill {
  display: inline-block;
  background: rgba(103, 58, 183, 0.08);
  color: #673ab7;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(103, 58, 183, 0.2);
}

.price-display-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.price-new {
  font-size: 30px;
  font-weight: 900;
  color: #e91e63;
  text-shadow: 2px 2px 4px rgba(233, 30, 99, 0.2);
}

.price-old {
  font-size: 18px;
  text-decoration: line-through;
  color: #999;
  font-weight: 600;
}

/* Solid Animated Buy Button */
.btn-buy-now-custom {
  position: relative;
  background: linear-gradient(45deg, #673ab7, #e91e63) !important;
  color: #fff !important;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(103, 58, 183, 0.4);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: none;
  animation: pulseGlow 3s infinite;
}
.btn-buy-now-custom::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-custom:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(233, 30, 99, 0.5);
  color: #fff !important;
}

.btn-back-custom {
  background: #f1f1f1;
  color: #333 !important;
  padding: 12px 25px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}
.btn-back-custom:hover {
  background: #222;
  color: #fff !important;
  border-color: #222;
}

@keyframes floatEffect {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(103, 58, 183, 0.15);
  }
  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 12px rgba(103, 58, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(103, 58, 183, 0);
  }
}
