

/* Draggable support */
.draggable {
    cursor: grab;
}
.draggable:active {
    cursor: grabbing;
}

/* Thumbnail bar */
.thumbnail-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  border-radius: 10px;
  max-width: 90%;
  margin: 0 auto;
}

.thumbnail-bar img {
  height: 80px;
  width: auto;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #fff;
}

.thumbnail-bar img.active {
  border-color: #007bff;
}

.garment-thumb {
  position: absolute;
  top: 40px;
  left: 20px;
  width: 25%;
  max-width: 120px;
  /* height: 25%; */
  border-radius: 12px;
  object-fit: contain;
  background-color: #e9ecef;
  box-shadow: 0 5px 15px rgba(0,123,255,0.4);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}


/* Button bar */
.hidden {
  display: none !important;
}

.button-bar {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (orientation: landscape) {
  .button-bar {
    position: absolute;
    left: 50%;                    /* start from center */
    top: 50%;    
    right: auto;                 /* keep vertical center */
    transform: translate(calc(-50% + 270px), -50%);
    /* ↑ move back half its width, then push +240px to the right */
  }
}

.button-bar button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #e9ecef;
    color: #333;
    font-size: 20px;
    transition: all 0.2s ease;
}

.button-bar button:hover {
    /* background: #007bff; */
    background-color: var(--accent);
    color: #fff;
}

.button-bar button:hover img {
  filter: brightness(0) invert(1); /* makes it white */
}

.button-bar .drag-handle {
  text-align: center;
  padding: 6px 0;
  cursor: grab;
  color: #888;
  font-size: 20px;
}
.button-bar .drag-handle:active {
  cursor: grabbing;
}

.thumb-wrapper {
  position: relative;
  display: inline-block; /* keep them inline like thumbnails */
}

.overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 50%;
  pointer-events: none; /* so click goes to image, not icon */
}

.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.icon-pulse {
  animation: iconPulse 1.5s infinite;
  color: #0b132b;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(11, 19, 43, 0.7);
  }
  70% {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(11, 19, 43, 0);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(11, 19, 43, 0);
  }
}
