/* Dải ảnh cong 3D — C87 Studio tự viết */
.carousel { padding: 18px 0 8px; user-select: none; -webkit-user-select: none; }
.carousel-stage {
  position: relative; height: 340px; perspective: 1100px; overflow: hidden;
  touch-action: pan-y; cursor: grab;
}
.carousel-stage:active { cursor: grabbing; }
.carousel-card {
  position: absolute; left: 50%; top: 20px; width: 200px; height: 250px; margin-left: -100px;
  border-radius: 16px; overflow: hidden; background: #222;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s;
  will-change: transform;
}
.carousel-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.carousel-card.is-active { box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 0 0 2px var(--accent); }
.carousel-caption { text-align: center; min-height: 52px; }
.carousel-caption b { display: block; font-size: 18px; }
.carousel-caption span { color: var(--muted); font-size: 14px; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 6px; }
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 18px; cursor: pointer;
}
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .3s, background .3s; }
.carousel-dots i.on { width: 18px; background: var(--accent); }
@media (min-width: 700px) {
  .carousel-stage { height: 400px; }
  .carousel-card { width: 240px; height: 300px; margin-left: -120px; }
}
@media (prefers-reduced-motion: reduce) { .carousel-card { transition: none; } }
