#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}
.progress-container {
  width: 300px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 30px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #00ff99;
  transition: width 0.2s ease-in-out;
}
.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  line-height: 30px;
  font-family: sans-serif;
  color: white;
  font-weight: bold;
}

body {
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
}

/* 📸 Camera Container */
.tryon-container {
    position: relative;
    width: 640px;
    height: 480px;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

/* 🎥 Video Feed */
#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* 🕶️ Glasses Overlay */
#glasses {
    position: absolute;
    display: none;
    width: 20px; /* Default Size */
    transition: all 0.2s ease-in-out;
}

/* 🎠 Carousel (Glasses Selection) */
.carousel {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

.carousel-item {
    width: 60px;
    height: 60px;
    object-fit: contain;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: transform 0.2s;
}

.carousel-item.active {
    border-color: white;
    transform: scale(1.1);
}
