/* ==========================================================================
   MN Why You Should — Video Cards Section
   ========================================================================== */

.mn-why-you-should {
  padding: 80px 0;
}

.mn-why-you-should .mn-container {
  max-width: 1282px;
}

/* Header
   ========================================================================== */

.mn-why-you-should__header {
  text-align: center;
  margin-bottom: 16px;
}

.mn-why-you-should__title-top {
  font-family: "roc-grotesk-wide", sans-serif !important;
  font-size: 60px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #3e3e3e;
  margin: 0;
  display: block;
}

.mn-why-you-should__title-main {
  font-family: "roc-grotesk-wide", sans-serif !important;
  font-size: 60px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  display: block;
}

.mn-why-you-should__desktop,
.mn-why-you-should__mobile {
  overflow: hidden;
}

.mn-why-you-should__desktop.swiper,
.mn-why-you-should__mobile.swiper {
  cursor: grab;
}

.mn-why-you-should__desktop.swiper {
  position: relative;
}

.mn-why-you-should__desktop.swiper::before,
.mn-why-you-should__desktop.swiper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mn-why-you-should__desktop.swiper::before {
  left: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.45) 65%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.mn-why-you-should__desktop.swiper::after {
  right: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0.45) 65%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.mn-why-you-should__desktop.mn-why--has-prev::before {
  opacity: 1;
}

.mn-why-you-should__desktop.mn-why--has-next::after {
  opacity: 1;
}

.mn-why-you-should__desktop.swiper:active,
.mn-why-you-should__mobile.swiper:active {
  cursor: grabbing;
}

.mn-why-you-should__mobile {
  display: none;
}

/* Card
   ========================================================================== */

.mn-why-vid-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #161618;
  aspect-ratio: 406 / 524;
}

/* Media area (video / poster / play) — covers the full card */

.mn-why-vid-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mn-why-vid-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border: none;
  outline: none;
}

.mn-why-vid-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Fit option: show the whole video, letterboxed on a dark background (poster stays cover) */
.mn-why-vid-card__media--fit {
  background: #131313;
}

.mn-why-vid-card__media--fit .mn-why-vid-card__video {
  object-fit: contain;
}

.mn-why-vid-card__chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.mn-why-vid-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}

.mn-why-vid-card .mn-vid-card__play-container {
  position: absolute;
  left: 24px;
  bottom: 24px;
  top: auto;
  transform: none;
}

.mn-why-vid-card .mn-vid-card__play {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  background: #00000040;
  transition:
    background 0.2s,
    transform 0.2s;
}

.mn-why-vid-card .mn-vid-card__play::after {
  content: "";
  display: block;
  position: absolute;
  top: -1px;
  left: -1px;
  transform: rotate(45deg);
  transform-origin: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transition: 0.3s border cubic-bezier(0.4, 0, 0.2, 1);
}

.mn-why-vid-card .mn-vid-card__play:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mn-why-vid-card .mn-vid-card__play-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

.mn-why-vid-card .mn-vid-card__pause-icon {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 0;
}

.mn-why-vid-card--playing .mn-vid-card__play-icon {
  display: none;
}

.mn-why-vid-card--playing .mn-vid-card__pause-icon {
  display: block;
}

.mn-why-vid-card--playing .mn-why-vid-card__poster {
  opacity: 0;
  pointer-events: none;
}

.mn-why-vid-card--playing .mn-why-vid-card__gradient {
  opacity: 0;
}

.mn-why-vid-card--playing .mn-why-vid-card__video {
  z-index: 1;
}

.mn-why-vid-card--played .mn-why-vid-card__poster {
  z-index: 0;
}

/* Product bar
   ========================================================================== */

.mn-why-vid-card__product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  background: #1a1a1a;
  border-radius: 10px;
  margin-top: 24px;
}

.mn-why-vid-card__product-img {
  width: 80px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3e3e3e;
}

.mn-why-vid-card__product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mn-why-vid-card__product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mn-why-vid-card__product-name {
  font-family: "roc-grotesk", sans-serif !important;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f5f1e8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mn-why-vid-card__product-price {
  font-family: "roc-grotesk", sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #658072;
  margin: 0 0 10px;
}

.mn-why-vid-card__product-price .woocommerce-Price-amount {
  color: #658072;
}

.mn-why-vid-card__buy-now {
  font-family: "roc-grotesk", sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  text-decoration: underline !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.mn-why-vid-card__buy-now:hover {
  color: #fff;
}

.mn-why-vid-card__buy-now svg {
  flex-shrink: 0;
  color: #658072;
}

/* Progress bar (desktop only)
   ========================================================================== */

.mn-why-you-should__progressbar {
  margin-top: 32px;
  width: 100%;
  height: 2px;
  background: rgba(101, 128, 114, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.mn-why-you-should__progressbar-fill {
  height: 100%;
  width: 0;
  background: #658072;
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pagination (dot navigation — mobile only)
   ========================================================================== */

.mn-why-you-should__pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.mn-why-you-should__pagination__viewport {
  width: 88px;
  overflow: hidden;
}

.mn-why-you-should__pagination__track {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.mn-why-you-should__dot {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #658072;
  opacity: 0.2;
  transition:
    opacity 0.25s,
    width 0.25s,
    height 0.25s,
    border-radius 0.25s;
}

.mn-why-you-should__dot.is-active {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  opacity: 1;
}

.mn-why-you-should__dot.is-neighbor {
  opacity: 0.45;
}

.mn-why-you-should__dot:hover {
  opacity: 0.35;
}

.mn-why-you-should__dot.is-active:hover {
  opacity: 1;
}

/* Edge dot fade masks */

.mn-why-you-should__pagination__track .mn-why-you-should__dot:nth-child(3) {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, #000 60%);
}

.mn-why-you-should__pagination__track .mn-why-you-should__dot:nth-child(7) {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 60%);
  mask-image: linear-gradient(to left, transparent 0%, #000 60%);
}

.mn-why-you-should__pagination__track.is-going-next .mn-why-you-should__dot:nth-child(7) {
  -webkit-mask-image: none;
  mask-image: none;
}

.mn-why-you-should__pagination__track.is-going-prev .mn-why-you-should__dot:nth-child(3) {
  -webkit-mask-image: none;
  mask-image: none;
}

/* ==========================================================================
   Responsive — Mobile (max-width: 991px)
   ========================================================================== */

@media (max-width: 991px) {
  .mn-why-you-should {
    padding: 48px 0;
  }

  .mn-why-you-should__header {
    text-align: left;
    padding: 0 16px;
    margin-bottom: 14px;
  }

  .mn-why-you-should__title-top,
  .mn-why-you-should__title-main {
    font-size: 24px;
    line-height: 1;
  }

  .mn-why-you-should__title-top {
    margin-bottom: 12px;
  }

  .mn-why-you-should__desktop {
    display: none;
  }

  .mn-why-you-should__mobile {
    display: block;
    padding-inline: 10px;
  }

  .mn-why-you-should__progressbar {
    display: none;
  }

  .mn-why-you-should__pagination {
    display: flex;
    min-height: 10px;
  }

  .mn-why-vid-card__product {
    margin-top: 16px;
  }
}

/* YouTube/Vimeo embed — cover-fit a 16:9 iframe in the portrait card; controlled via the overlay play button */
.mn-vid-embed.mn-vid-embed { /* doubled class outranks Elementor's `.elementor iframe` reset */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300%; /* landscape fallback; JS sizes to the real video aspect for true cover */
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  z-index: 0;
  pointer-events: none;
}

/* Fit option: contain a 16:9 embed (JS refines Vimeo to its real aspect) */
.mn-vid-embed.mn-vid-embed[data-mn-fit] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 100%;
}
