/* ==========================================================================
   PS Coverflow Slider — Promotional 3D carousel
   ========================================================================== */

.ps-coverflow {
  --ps-cov-accent: #6366f1;
  --ps-cov-bg: #f8f9fa;
  --ps-cov-card-bg: #fff;
  --ps-cov-card-radius: 12px;
  --ps-cov-card-shadow: 0 4px 16px rgba(0,0,0,.08);
  --ps-cov-badge-bg: #CC0000;
  --ps-cov-badge-fg: #fff;
}

.ps-coverflow {
  position: relative;
  width: 100%;
  padding: 32px 0;
  background: var(--ps-cov-bg);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ps-coverflow, .ps-coverflow * { box-sizing: border-box; }

.ps-coverflow .swiper { width: 100%; padding: 20px 0 40px; overflow: visible; }

.ps-coverflow .swiper-slide {
  width: 280px;
  transition: transform 300ms ease, opacity 300ms ease;
}
@media (min-width: 768px) { .ps-coverflow .swiper-slide { width: 320px; } }
@media (min-width: 1200px) { .ps-coverflow .swiper-slide { width: 360px; } }

/* ---- Card ---- */
.ps-cov__card {
  background: var(--ps-cov-card-bg);
  border-radius: var(--ps-cov-card-radius);
  box-shadow: var(--ps-cov-card-shadow);
  overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
}
.ps-cov__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Image */
.ps-cov__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.ps-cov__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge */
.ps-cov__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ps-cov-badge-bg);
  color: var(--ps-cov-badge-fg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

/* Expiration */
.ps-cov__expires {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 2;
}

/* Body */
.ps-cov__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ps-cov__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
  color: #1a1a1a;
}
.ps-cov__desc {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.5;
  flex: 1;
}
.ps-cov__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--ps-cov-accent);
  color: #fff;
  transition: background 200ms;
  align-self: flex-start;
}
.ps-cov__cta:hover { filter: brightness(1.1); }

/* ---- Navigation ---- */
.ps-cov__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: box-shadow 200ms, transform 200ms;
  padding: 0;
}
.ps-cov__nav:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transform: translateY(-50%) scale(1.05);
}
.ps-cov__nav--prev { left: 12px; }
.ps-cov__nav--next { right: 12px; }
.ps-cov__nav svg {
  width: 20px; height: 20px;
  fill: none; stroke: #333;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Pagination bullets */
.ps-cov__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.ps-cov__dots .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(0,0,0,.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  border: none;
}
.ps-cov__dots .swiper-pagination-bullet-active {
  background: var(--ps-cov-accent);
  transform: scale(1.2);
}

/* Pause */
.ps-cov__playpause {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
  border: none; border-radius: 50%;
  cursor: pointer; opacity: 0.7;
  transition: opacity 200ms;
}
.ps-cov__playpause:hover { opacity: 1; }
.ps-cov__playpause svg { width: 12px; height: 12px; fill: #fff; }
.ps-cov__playpause .ps-icon-play  { display: none; }
.ps-cov__playpause .ps-icon-pause { display: block; }
.ps-cov__playpause[aria-pressed="true"] .ps-icon-play  { display: block; }
.ps-cov__playpause[aria-pressed="true"] .ps-icon-pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ps-cov__card { transition: none; }
  .ps-coverflow .swiper-slide { transition: none; }
}
