/* ══════════════════════════════════════
   COMPARISON CAROUSEL — 3 visíveis
══════════════════════════════════════ */
#cmp-track-wrapper {
  overflow: hidden;
  border-radius: 16px;
}

#cmp-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Cada slide ocupa 1/3 da largura, com gap */
.cmp-slide-item {
  min-width: calc(33.333% - 12px);
  flex-shrink: 0;
  margin-right: 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.cmp-slide-item:last-child { margin-right: 0; }

.comparison-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* retrato — animal inteiro */
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
}

.comparison-slide img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  display: block;
}

.img-after  { z-index: 1; }
.img-before { z-index: 2; clip-path: inset(0 50% 0 0); }

.comparison-divider {
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.comparison-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #5B1F8A;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 4;
  pointer-events: none;
}
.comparison-handle svg { width: 18px; height: 18px; fill: #5B1F8A; }

.cmp-label {
  position: absolute;
  bottom: 10px;
  z-index: 5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.cmp-label-before { left: 10px; background: rgba(91,31,138,.80); color: #fff; }
.cmp-label-after  { right: 10px; background: rgba(245,184,0,.90); color: #5B1F8A; }

.cmp-caption {
  background: #5B1F8A;
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.cmp-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #e5e0f0 25%, #f0eef5 50%, #e5e0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  z-index: 10;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile: 1 slide visível */
@media (max-width: 768px) {
  .cmp-slide-item {
    min-width: 100%;
    margin-right: 0;
  }
}

/* Tablet: 2 slides visíveis */
@media (min-width: 769px) and (max-width: 1024px) {
  .cmp-slide-item {
    min-width: calc(50% - 9px);
    margin-right: 18px;
  }
}
