.video-commerce__stage {
  position: relative;
}

.video-commerce__swiper {
  width: 100%;
  transition: opacity ease .5s;
}

.video-commerce__swiper:not(.swiper-initialized) {
  opacity: 0;
}

.video-commerce--center-highlight .video-commerce__swiper .swiper-slide {
  transition: transform .25s ease;
  z-index: 1;
  transform: translateZ(0) scale(.9);
}

.video-commerce--center-highlight .video-commerce__swiper .swiper-slide-active {
  transform: translateZ(0) scale(1);
  z-index: 2;
}

.video-commerce__swiper:not(.swiper-initialized) .swiper-slide {
  width: calc(100% / var(--video-commerce-slides-mobile) - var(--video-commerce-space-between));
  margin-right: var(--video-commerce-space-between);
}

@media (min-width: 992px) {
  .video-commerce__swiper:not(.swiper-initialized) .swiper-slide {
	width: calc(100% / var(--video-commerce-slides-desktop) - var(--video-commerce-space-between));
  }
}

.video-commerce__item {
  height: 100%;
  position: relative;
}

.video-commerce__media {
  aspect-ratio: 9 / 16;
  background: #111;
  border: 0;
  border-radius: 8px;
  color: inherit;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.video-commerce__media:hover,
.video-commerce__media:focus {
  color: inherit;
  text-decoration: none;
}

.video-commerce--square .video-commerce__media {
  aspect-ratio: 1 / 1;
}

.video-commerce--landscape .video-commerce__media {
  aspect-ratio: 16 / 9;
}

.video-commerce--circle .video-commerce__media {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.video-commerce__media video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
  pointer-events: none;
}

.video-commerce__product {
  align-items: center;
  background: #00000078;
  color: #fff;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-height: 72px;
  padding: 8px;
  text-decoration: none;
}

.video-commerce__product-image {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.video-commerce__product-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-commerce__product-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.video-commerce__product-name {
  display: -webkit-box;
  font-size: 13px;
  line-height: 140%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 38px;
}

.video-commerce__product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 700;
  gap: 6px;
}

.video-commerce__product-price-old {
  font-weight: 400;
  text-decoration: line-through;
  opacity: .7;
  font-size: 11px;
}

.video-commerce__product-link {
  color: #111;
  font-size: 12px;
  font-weight: 600;
  background: #eee;
  padding: 6px 12px;
  border-radius: 4px;
  width: 100%;
  text-align: center;
}

.video-commerce__product-link:hover {
	opacity: .8;
}

.video-commerce__carousel-product {
  bottom: 8px;
  background: #ffffff91; 
  color: #000;
  left: 8px;
  position: absolute;
  right: 8px;
  z-index: 2;
}

.video-commerce__pagination {
  position: absolute;
  display: flex;
  justify-content: center;
  bottom: -20px !important;
}

.video-commerce .swiper-pagination-bullet-active {
  background: var(--primary);
}

.video-commerce-fancybox .fancybox__content {
  background: transparent;
  padding: 0;
}

.video-commerce-lightbox {
  /* display: block;
  max-height: calc(100vh - 64px); */
  width: min(420px, calc(100vw - 32px));
}

.video-commerce-lightbox--square {
  width: min(720px, calc(100vw - 32px));
}

.video-commerce-lightbox--landscape {
  width: min(1040px, calc(100vw - 32px));
}

.video-commerce-lightbox__video-frame {
  align-items: center;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  position: relative;
}

.video-commerce-lightbox__progress {
  display: flex;
  gap: 4px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 5;
}

.video-commerce-lightbox__progress-item {
  border-radius: 999px;
  flex: 1 1 0;
  height: 9px;
  overflow: hidden;
  position: relative;
}

.video-commerce-lightbox__progress-item::before {
  background: rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 3px;
}

.video-commerce-lightbox__progress-fill {
  background: #fff;
  border-radius: inherit;
  display: block;
  height: 3px;
  left: 0;
  position: absolute;
  top: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
  width: 100%;
}

.video-commerce-lightbox--square .video-commerce-lightbox__video-frame {
  aspect-ratio: 1 / 1;
}

.video-commerce-lightbox--landscape .video-commerce-lightbox__video-frame {
  aspect-ratio: 16 / 9;
}

.video-commerce-lightbox__video {
  background: #1a1a1a;
  cursor: pointer;
  display: block;
  height: 100%;
  max-height: calc(100vh - 96px);
  object-fit: cover;
  width: 100%;
}

.video-commerce-lightbox__hit-area {
  background: transparent;
  border: 0;
  bottom: 0;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 0;
  width: 35%;
  z-index: 2;
}

.video-commerce-lightbox__hit-area--prev {
  left: 0;
}

.video-commerce-lightbox__hit-area--next {
  right: 0;
}

.video-commerce-lightbox__hit-area:disabled {
  cursor: default;
  pointer-events: none;
}

.video-commerce-lightbox__sound {
  align-items: center;
  background: none;
  border: 0;
  color: #fff;
  display: flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 4;
}

.video-commerce-lightbox__sound .bi {
  font-size: 30px;
  display: flex;
}

.video-commerce-fancybox .f-button.is-close-btn {
	top: -5px !important;
	right: -34px !important;
	background: none;
	opacity: 1 !important;
}

.video-commerce-fancybox .f-button.is-close-btn svg {
	--f-button-svg-stroke-width: 3px;
}

.video-commerce-lightbox__products {
  bottom: 16px;
  left: 50%;
  padding: 0 14px;
  position: absolute;
  transform: translateX(-50%);
  width: 98%;
  max-width: 600px;
  z-index: 3;
  opacity: 0;
  transition: ease all .5s;
}

.video-commerce-lightbox__products:has(.swiper-initialized) {opacity: 1;}

.video-commerce-lightbox__products-swiper {
  border-radius: 8px;
}

.video-commerce-lightbox__products-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.video-commerce-lightbox__products-swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.video-commerce-lightbox__products-nav {
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #20242b;
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  z-index: 2;
  font-size: 12px;
}

.video-commerce-lightbox__products-nav--prev {
  left: 0;
}

.video-commerce-lightbox__products-nav--next {
  right: 0;
}

.video-commerce-lightbox__products-nav i {
	display: flex;
}

.video-commerce-lightbox__products-nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 991px) {
  .video-commerce__nav {
    display: none;
  }

  .video-commerce-fancybox .fancybox__nav {
	display: none;
  }

  .video-commerce-lightbox__products-nav--prev {
	left: 4px;
  }

  .video-commerce-lightbox__products-nav--next {
	right: 4px;
  }

  .video-commerce-lightbox__sound {
	top: 46px;
	left: 12px;
  }

  .video-commerce-fancybox .f-button.is-close-btn {
	top: 30px !important;
	right: 4px !important;
  }

  .video-commerce-fancybox .f-button.is-close-btn svg {
	--f-button-svg-stroke-width: 5px;
}

  .video-commerce-lightbox {
    max-height: calc(100vh - 24px);
    width: calc(100vw - 20px);
  }

  .video-commerce-lightbox__products {
    bottom: 12px;
    padding: 0;
    width: calc(100% - 24px);
  }

}
