/* ========================================
   Product Collections — Tesla-style peek carousel
   Full-width, next card peeks from the right
   ======================================== */

.collections {
  padding: 80px 0 60px;
  background: var(--color-bg);
  overflow: hidden;
}

.collections .section-title {
  margin-bottom: 36px;
}

/* ─── Full-width viewport ─── */
.coll-viewport {
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

/* ─── Slide track ─── */
.coll-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Each card: ~56% viewport width ─── */
.coll-card {
  flex: 0 0 calc(57% - 32px);
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.coll-card:hover {
  transform: scale(1.01);
}

/* Gradient overlay */
.coll-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.12) 40%,
      rgba(0, 0, 0, 0.6) 100%
    );
  transition: background 0.4s ease;
}

.coll-card:hover .coll-card-overlay {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.08) 40%,
      rgba(0, 0, 0, 0.5) 100%
    );
}

/* Category tag — top-left */
.coll-card-tag {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  letter-spacing: 0.02em;
}

/* Card body — bottom */
.coll-card-body {
  position: relative;
  z-index: 2;
  padding: 36px;
}

.coll-card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coll-card-body p {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Action buttons */
.coll-card-actions {
  display: flex;
  gap: 12px;
}

.coll-card-actions .btn {
  padding: 12px 28px;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-outline-dark:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* ─── Arrow buttons — overlaying viewport edges ─── */
.coll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.coll-arrow:hover {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.coll-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.coll-arrow-prev {
  left: 16px;
}

.coll-arrow-next {
  right: 16px;
}

/* ─── Dot indicators ─── */
.coll-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 8px;
}

.coll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.coll-dot.active {
  background: var(--color-primary);
  transform: scale(1.25);
}

.coll-dot:hover:not(.active) {
  background: var(--color-text-light);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .collections {
    padding: 48px 0 40px;
  }

  .collections .section-title {
    margin-bottom: 24px;
  }

  .coll-viewport {
    padding: 0 20px;
  }

  .coll-track {
    gap: 16px;
  }

  .coll-card {
    flex: 0 0 calc(85% - 8px);
    min-height: 360px;
  }

  .coll-card-tag {
    top: 18px;
    left: 20px;
    font-size: var(--fs-xs);
  }

  .coll-card-body {
    padding: 24px;
  }

  .coll-card-body h3 {
    font-size: var(--fs-2xl);
  }

  .coll-card-actions .btn {
    padding: 10px 20px;
    font-size: var(--fs-xs);
  }

  .coll-arrow {
    width: 38px;
    height: 38px;
  }

  .coll-arrow-prev { left: 8px; }
  .coll-arrow-next { right: 8px; }

  .coll-dots {
    margin-top: 24px;
  }
}
