/* ====================== PRODUCT CARD CAROUSEL ====================== */

/* The proto container on product cards — fixed height, dark bg */
.product-proto {
  position: relative;
  width: 100%;
  height: 220px;           /* fixed height so nothing jumps */
  background: #0e0e0e;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 28px;
}

/* Images inside the card proto */
.product-proto .proto-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;     /* letterbox — no cropping */
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.product-proto .proto-image.active {
  opacity: 1;
}

/* The P01/P02/P03 label sits behind everything */
.product-proto .proto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.06);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 6px;
  pointer-events: none;
  z-index: 0;
}

/* Badge stays on top */
.proto-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
}


/* ====================== MODAL CAROUSEL ====================== */

#modal-proto {
  display: none; /* shown by JS when content is ready */
  width: 100%;
  margin-bottom: 28px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  background: #0e0e0e;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active {
  opacity: 1;
}

/* Placeholder when no images */
.carousel-placeholder {
  width: 100%;
  height: 180px;
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 8px;
}
.carousel-placeholder span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.06);
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--red);
  transform: scale(1.3);
}
