.ht-videocommerce {
  width: 100%;
  margin: 0 auto;
}

.ht-videocommerce__skeleton {
  width: 100%;
}

.ht-videocommerce__skeletonCard {
  width: 100%;
  aspect-ratio: var(--ht-vc-ratio, 9 / 16);
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e7e7e7 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: ht-videocommerce-shimmer 1.2s ease-in-out infinite;
}

@keyframes ht-videocommerce-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.ht-videocommerce__empty {
  padding: 16px;
}

.ht-videocommerce__reels {
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  scrollbar-width: none;
  gap: var(--ht-vc-gap, 12px);
}

.ht-videocommerce__reels::-webkit-scrollbar {
  display: none;
}

.ht-videocommerce__card {
  position: relative;
  aspect-ratio: var(--ht-vc-ratio, 9 / 16);
  min-width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
}

.ht-videocommerce__widget--natural .ht-videocommerce__card {
  aspect-ratio: auto;
}

.ht-videocommerce__widget--natural .ht-videocommerce__media,
.ht-videocommerce__widget--natural .ht-videocommerce__video {
  height: auto;
}

.ht-vc-items-m-2 .ht-videocommerce__card {
  min-width: 50%;
  flex: 0 0 50%;
}

@media (min-width: 992px) {
  .ht-vc-items-d-1 .ht-videocommerce__card {
    min-width: 100%;
    flex: 0 0 100%;
  }
  .ht-vc-items-d-2 .ht-videocommerce__card {
    min-width: 50%;
    flex: 0 0 50%;
  }
  .ht-vc-items-d-3 .ht-videocommerce__card {
    min-width: 33.3334%;
    flex: 0 0 33.3334%;
  }
  .ht-vc-items-d-4 .ht-videocommerce__card {
    min-width: 25%;
    flex: 0 0 25%;
  }
}

.ht-videocommerce__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.ht-videocommerce__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.ht-videocommerce__videoFallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
}

.ht-videocommerce__videoFallbackText {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ht-videocommerce__carousel {
  position: relative;
}

.ht-videocommerce__widget {
  --ht-vc-gap: 12px;
  --ht-vc-bg: #ffffff;
  --ht-vc-width: 1200px;
  --ht-vc-ratio: 9 / 16;
  --ht-vc-font: #ffffff;
  --ht-vc-btn-bg: #ffffff;
  --ht-vc-btn-border: #ffffff;
  --ht-vc-btn-font: #111111;
  --ht-vc-btn-font-size: 14px;
  --ht-vc-title-align: left;
  --ht-vc-content-align: left;
  background: var(--ht-vc-bg);
  padding: 14px 10px;
}

.ht-videocommerce__inner--container {
  max-width: var(--ht-vc-width);
  margin-left: auto;
  margin-right: auto;
}

.ht-videocommerce__sectionTitle {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ht-vc-font, #ffffff);
  text-align: var(--ht-vc-title-align, left);
}

.ht-vc-layout-grid .ht-videocommerce__reels {
  display: grid;
  overflow: visible;
  height: auto;
  scroll-snap-type: none;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.ht-vc-layout-grid .ht-vc-grid-items-m-1 .ht-videocommerce__reels {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.ht-vc-layout-grid .ht-vc-grid-items-m-2 .ht-videocommerce__reels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .ht-vc-layout-grid .ht-vc-grid-items-d-1 .ht-videocommerce__reels {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .ht-vc-layout-grid .ht-vc-grid-items-d-2 .ht-videocommerce__reels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ht-vc-layout-grid .ht-vc-grid-items-d-3 .ht-videocommerce__reels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ht-vc-layout-grid .ht-vc-grid-items-d-4 .ht-videocommerce__reels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ht-vc-layout-grid .ht-videocommerce__card {
  min-width: auto;
  flex: initial;
  aspect-ratio: var(--ht-vc-ratio, 9 / 16);
}

.ht-videocommerce__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.ht-videocommerce__nav--prev {
  left: 8px;
}

.ht-videocommerce__nav--next {
  right: 8px;
}

.ht-videocommerce__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 0.85) 100%);
  color: var(--ht-vc-font, #ffffff);
}

.ht-videocommerce__title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  text-align: var(--ht-vc-content-align, left);
}

.ht-videocommerce__product {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ht-videocommerce__productMeta {
  text-align: var(--ht-vc-content-align, left);
}

.ht-videocommerce__productImage {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.ht-videocommerce__productName {
  color: var(--ht-vc-font, #ffffff);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ht-videocommerce__productPrice {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.9;
  color: var(--ht-vc-font, #ffffff);
}

.ht-videocommerce__addToCart {
  border: 1px solid var(--ht-vc-btn-border, #ffffff);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--ht-vc-btn-bg, #ffffff);
  color: var(--ht-vc-btn-font, #111111);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  font-size: var(--ht-vc-btn-font-size, 14px);
}

.ht-videocommerce__addToCart[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .ht-videocommerce__widget {
    padding: 10px 8px;
  }

  .ht-videocommerce__sectionTitle {
    font-size: 18px;
  }

  .ht-videocommerce__product {
    grid-template-columns: 44px 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .ht-videocommerce__productImage {
    width: 44px;
    height: 44px;
  }

  .ht-videocommerce__addToCart {
    font-size: calc(var(--ht-vc-btn-font-size, 14px) - 1px);
    padding: 8px 10px;
  }
}



