body {
  margin: 0;
  background: black;
  font-family: Arial, sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Snow */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  opacity: 0.8;
  animation: fall 8s linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(110vh) translateX(40px);
  }
}

/* Scene & panel */
.scene {
  width: 100%;
  display: flex;
  justify-content: center;
}

.panel {
  width: 85vw;
  max-width: 550px;
  height: 430px;
  padding: 30px;
  background: #111;
  border-radius: 20px;
  color: white;
  text-align: center;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(255,255,255,0.35);
  position: relative;
}

.panel.hide {
  opacity: 0;
  pointer-events: none;
}

.title {
  font-size: 30px;
  font-weight: bold;
}

.image-container {
  padding-top: 52%;
  position: relative;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  border-radius: 15px;
}

.price {
  margin-top: 6px;
  font-size: 22px;
}

.old-price {
  color: #888;
  text-decoration: line-through;
}

.btn-row {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  background: transparent;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  background: white;
  color: black;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0,0,0,0.4);
  color: white;
  cursor: pointer;
}

.arrow.left { left: -25px; }
.arrow.right { right: -25px; }

/* Badge */
.best-deal {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 2px solid white;
  border-radius: 10px;
  font-weight: bold;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-panel {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  max-width: 550px;
  color: white;
  position: relative;
}

.closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  color: red;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Loading overlay */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 16px;
  color: white;
  font-size: 20px;
  letter-spacing: 1px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
