/* ═══════════════════════════════════════════════════════════
   ROKSTEP DYNAMIC CAROUSEL — Cinematic Split-Screen
   Adapted from the DevAura carousel for sneaker products.
   ═══════════════════════════════════════════════════════════ */

#rs-scope {
  font-family: inherit;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 90vh;
  min-height: 520px;
  max-height: 860px;
  --red: #d40000;
  --red-l: #e63333;
  --dark: #1A1A1A;
}

/* ── Slides container ── */
.rs-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Single slide ── */
.rs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.rs-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Image pane ── */
.rs-img-pane {
  position: relative;
  flex: 0 0 55%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #FAFAFA;
}

.rs-img-pane img {
  position: relative;
  max-width: 80%;
  max-height: 85%;
  object-fit: contain;
  transform: scale(0.92);
  animation: rs-kenburns 9s ease-in-out forwards;
}

@keyframes rs-kenburns {
  0% {
    transform: scale(0.92) translate(0, 0);
  }
  100% {
    transform: scale(0.97) translate(1%, 0.5%);
  }
}

.rs-img-pane::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.85) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 30%);
}

/* ── Text pane ── */
.rs-text-pane {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px 60px 48px;
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(26, 26, 26, 0.06);
}

.rs-text-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(212, 0, 0, 0.03), transparent 60%);
  pointer-events: none;
}

/* ── Category pill ── */
.rs-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
}

.rs-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: rs-blink 2s ease-in-out infinite;
}

@keyframes rs-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Title ── */
.rs-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Sizes (replaces fragrance notes) ── */
.rs-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px);
}

.rs-size {
  font-size: 11px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.55);
  background: rgba(26, 26, 26, 0.05);
  border: 1px solid rgba(26, 26, 26, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── Separator ── */
.rs-sep {
  width: 48px;
  height: 1.5px;
  background: var(--red);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Description ── */
.rs-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.45);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
}

/* ── Price ── */
.rs-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(14px);
}

/* ── CTA button ── */
.rs-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26, 26, 26, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 1;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(14px);
}

.rs-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212, 0, 0, 0.4);
  background: var(--red);
  color: #ffffff;
}

/* ── Progress bar ── */
.rs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  width: 0%;
  transform-origin: left;
  transition: none;
}

/* ── Controls ── */
.rs-controls {
  position: absolute;
  bottom: 36px;
  right: 52px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.rs-arrow {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(26, 26, 26, 0.15);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.rs-arrow svg {
  stroke: #ffffff;
}

.rs-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.08);
}

/* ── Dots ── */
.rs-dots-row {
  position: absolute;
  bottom: 44px;
  left: 52px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.rs-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.15);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease;
}

.rs-dot.active {
  width: 24px;
  background: var(--red);
}

/* ── Counter ── */
.rs-counter {
  position: absolute;
  top: 32px;
  right: 52px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.3);
  letter-spacing: 1px;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .rs-img-pane {
    flex: 0 0 50%;
  }

  .rs-text-pane {
    flex: 0 0 50%;
    padding: 40px 32px;
  }

  .rs-title {
    font-size: clamp(24px, 4vw, 36px);
  }

  .rs-controls {
    bottom: 24px;
    right: 32px;
  }

  .rs-dots-row {
    bottom: 32px;
    left: 32px;
  }

  .rs-counter {
    top: 24px;
    right: 32px;
  }
}

@media (max-width: 768px) {
  #rs-scope {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .rs-slide {
    flex-direction: column;
    position: absolute;
  }

  .rs-slide.active {
    position: relative;
    display: flex;
  }

  .rs-img-pane {
    flex: none;
    height: 55vw;
    min-height: 250px;
  }

  .rs-img-pane img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .rs-img-pane::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.9) 100%);
  }

  .rs-text-pane {
    flex: none;
    padding: 28px 24px 100px;
    border-left: none;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
  }

  .rs-title {
    font-size: clamp(22px, 5vw, 32px);
  }

  .rs-price {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .rs-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .rs-controls {
    bottom: 20px;
    right: 24px;
    gap: 10px;
  }

  .rs-arrow {
    width: 38px;
    height: 38px;
  }

  .rs-dots-row {
    bottom: 28px;
    left: 24px;
  }

  .rs-counter {
    top: 16px;
    right: 24px;
  }
}
