/* body {
  font-family: Arial, sans-serif;
  background-image: radial-gradient(
    circle,
    rgb(36, 56, 89) 0%,
    rgb(3, 8, 16) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
} */

.product-rotator {
  position: relative;
  width: 1200px;/*800px;*/
  /*height: 600px;*/
  max-height: 450px;
  overflow: hidden;
  cursor: grab;
  margin-bottom: 10px;
  max-width: 100%;
}

.product-rotator.grabbing {
  /*cursor: grabbing;*/
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

#hotspotContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interfering with drag */
}

.hotspot {
  width: 20px;
  height: 20px;
  border: 2px #fff solid;
  background-color: #f3950c;
  -webkit-box-shadow: 0px 0px 14px 0px rgba(84, 120, 179, 1);
  -moz-box-shadow: 0px 0px 14px 0px rgba(84, 120, 179, 1);
  box-shadow: 0px 0px 14px 0px rgba(84, 120, 179, 1);
  border-radius: 50%;
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  pointer-events: auto; /* Allow clicks */
}

.hotspot:hover {
  transform: scale(1.2);
}
/* Tooltip Styles */
.tooltip {
  position: absolute;
  background-color: rgba(28, 28, 32, 0.95);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10;
  white-space: nowrap;
  max-width: 220px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.tooltip::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: white;
  transform: rotate(45deg);
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Position the arrow based on tooltip position */
.tooltip.top::after {
  bottom: -7px;
  left: calc(50% - 7px);
}

.tooltip.bottom::after {
  top: -7px;
  left: calc(50% - 7px);
}

.tooltip.left::after {
  right: -7px;
  top: calc(50% - 7px);
}

.tooltip.right::after {
  left: -7px;
  top: calc(50% - 7px);
}

#autoRotateBtn {
  /* padding: 5px 10px; */
  background-color: transparent;
  color: #fff;
  border: none;
  font-size: 2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 99;
  position: absolute;
  top: 0;
  width: 50px;
  opacity: 0.8;
  text-align: center;
}

#autoRotateBtn:hover {
  opacity: 1;
}

/* Modal Styles */

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  opacity: 0; /* Start hidden */
  transition: opacity 0.5s ease-in-out; /* Smooth transition for fade */
}

.modal.show {
  display: flex;
  opacity: 1; /* Fade in effect */
}

.modal.hide {
  opacity: 0; /* Fade out effect */
}

.modal-content {
  background-color: #000;
  padding: 30px;
  border-radius: 10px;
  width: 700px; /* Increased width */
  max-width: 90vw;
  text-align: left;
  position: relative;
  z-index: 101;
  color: #fff;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-content.show {
  opacity: 1;
  transform: scale(1);
}

.modal-images {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-images img {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 32px;
  color: #ffffff;
  background: rgb(0 0 0 / 65%);
  z-index: 102;
  transition: color 0.3s ease;
  padding: 5px;
  border-radius: 50%;
}

.close-btn:hover {
  color: #f3950c;
}

.product-rotator-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
}

.product-rotator-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
