.carousel-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 0 80px;
  overflow: hidden;
}

/* Ambient glow behind carousel */
.carousel-3d-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(232,227,77,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.carousel-3d-track {
  position: relative;
  width: 280px;
  height: 420px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-3d-card {
  position: absolute;
  width: 280px;
  height: 420px;
  left: 0;
  top: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Reflection */
.carousel-3d-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}

/* Active card (front) */
.carousel-3d-card.active {
  border-color: rgba(232,227,77,0.5);
  box-shadow:
    0 0 40px rgba(232,227,77,0.12),
    0 0 80px rgba(232,227,77,0.04),
    0 30px 60px rgba(0,0,0,0.5);
  z-index: 10;
}

.carousel-3d-card .card-img-wrap {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: #111;
}

.carousel-3d-card .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.carousel-3d-card.active .card-img {
  transform: scale(1.05);
}

/* Gradient fade on image */
.carousel-3d-card .card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(transparent, #0f0f0f);
  pointer-events: none;
}

/* Sale badge */
.carousel-3d-card .card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e8e34d;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 2;
  text-transform: uppercase;
}

.carousel-3d-card .card-badge.oos {
  background: #ef4444;
  color: #fff;
}

.carousel-3d-card .card-info {
  padding: 12px 16px 16px;
}

.carousel-3d-card .card-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e8e34d;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.carousel-3d-card .card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.carousel-3d-card .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-3d-card .card-price {
  font-size: 16px;
  font-weight: 800;
  color: #e8e34d;
}

.carousel-3d-card .card-price .old {
  font-size: 11px;
  font-weight: 400;
  color: #555;
  text-decoration: line-through;
  margin-left: 4px;
}

.carousel-3d-card .card-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.carousel-3d-card.active .card-cta {
  opacity: 1;
  transform: translateX(0);
}

/* Navigation Arrows */
.carousel-3d-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.carousel-3d-nav:hover {
  background: #e8e34d;
  color: #000;
  border-color: #e8e34d;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(232,227,77,0.3);
}

.carousel-3d-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-3d-nav.prev { left: calc(50% - 320px); }
.carousel-3d-nav.next { right: calc(50% - 320px); }

/* Dots */
.carousel-3d-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.carousel-3d-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #222;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.carousel-3d-dot:hover {
  background: #444;
}

.carousel-3d-dot.active {
  background: #e8e34d;
  width: 24px;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(232,227,77,0.4);
}

/* Progress bar */
.carousel-3d-progress {
  width: 120px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
  margin: 14px auto 0;
  overflow: hidden;
}

.carousel-3d-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e8e34d, #c4bf3d);
  border-radius: 1px;
  width: 0%;
  transition: width 0.08s linear;
}

/* Counter */
.carousel-3d-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #444;
  letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.carousel-3d-counter .current {
  color: #e8e34d;
  font-size: 12px;
}

/* Desktop — big screen enhancements */
@media(min-width: 1024px) {
  .carousel-3d {
    height: 480px;
  }

  .carousel-3d-track {
    width: 300px;
    height: 440px;
  }

  .carousel-3d-card {
    width: 300px;
    height: 440px;
  }

  .carousel-3d-card .card-img-wrap {
    height: 330px;
  }

  .carousel-3d-card .card-info {
    padding: 14px 18px 18px;
  }

  .carousel-3d-card .card-name {
    font-size: 14px;
  }

  .carousel-3d-card .card-price {
    font-size: 17px;
  }

  .carousel-3d-nav.prev { left: calc(50% - 340px); }
  .carousel-3d-nav.next { right: calc(50% - 340px); }
}

/* Mobile */
@media(max-width: 768px) {
  .carousel-3d { height: 320px; }
  .carousel-3d-track { width: 160px; height: 260px; }
  .carousel-3d-card { width: 160px; height: 260px; }
  .carousel-3d-card .card-img-wrap { height: 180px; }
  .carousel-3d-card .card-info { padding: 8px 10px 10px; }
  .carousel-3d-card .card-name { font-size: 11px; }
  .carousel-3d-card .card-price { font-size: 12px; }
  .carousel-3d-nav { width: 38px; height: 38px; font-size: 14px; }
  .carousel-3d-nav.prev { left: 12px; }
  .carousel-3d-nav.next { right: 12px; }
  .carousel-3d-wrap { padding: 50px 0 70px; }
}

@media(max-width: 480px) {
  .carousel-3d { height: 290px; }
  .carousel-3d-track { width: 140px; height: 230px; }
  .carousel-3d-card { width: 140px; height: 230px; }
  .carousel-3d-card .card-img-wrap { height: 155px; }
  .carousel-3d-card .card-info { padding: 6px 8px 8px; }
  .carousel-3d-nav { width: 32px; height: 32px; font-size: 12px; }
}