/* shopping-video.css - 购物视频轮播组件样式 */
shopping-video-carousel {
  display: block;
}

/* 标题区域 */
.shopping-video__header {
  text-align: center;
  margin-bottom: 24px;
}

/* Swiper 容器 */
.shopping-video__swiper {
  position: relative;
  overflow: hidden;
}

/* Slide 缩放效果 */
.shopping-video__swiper .swiper-slide {
  transform: scale(0.85) !important;
  transition: transform 0.3s ease;
}

.shopping-video__swiper .swiper-slide-active {
  transform: scale(1) !important;
}

/* 非活跃 slide 禁止点击播放 */
.shopping-video__slide:not(.swiper-slide-active) .shopping-video__poster {
  pointer-events: none;
}

/* 卡片容器 */
.shopping-video__card {
  display: flex;
  flex-direction: column;
}

/* 视频区域 - 圆角 */
.shopping-video__video-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* 封面图 */
.shopping-video__poster {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.shopping-video__poster-img,
.shopping-video__poster img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 播放按钮 */
.shopping-video__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shopping-video__play-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.shopping-video__play-btn svg {
  width: 22px;
  height: 22px;
  fill: #000;
  margin-left: 3px;
}

/* 视频元素 */
.shopping-video__video,
.shopping-video__video-container video {
  display: block;
  width: 100%;
  height: auto;
}

.shopping-video__video-container {
  width: 100%;
}

/* 商品卡片 */
.shopping-video__product-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
  background: #FFF0F1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  position: relative;
}

.shopping-video__quick-add {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.shopping-video__quick-add.quick-add .quick-add-icon__opener{
  background: #000;
  color: #fff;
}

.shopping-video__product-card-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.shopping-video__product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  flex: 1;
  gap: 4px;
}

.shopping-video__product-title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.3;
  color: #333;
}

.shopping-video__product-info .price {
  font-size: 13px;
}

/* 占位区域 */
.shopping-video__placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: #f3f3f3;
  border-radius: 8px;
}

/* 分页器 */
.shopping-video__pagination.swiper-pagination {
  position: relative;
  margin-top: 16px;
  bottom: auto;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shopping-video__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  margin: 0 !important;
  border-radius: 50%;
  display: inline-block;
}

.shopping-video__pagination .swiper-pagination-bullet-active {
  background: #000;
}

/* 查看更多 */
.shopping-video .content-bottom {
  text-align: center;
  margin-top: 20px;
}

/* 响应式 */
@media (min-width: 768px) {
  .shopping-video__header {
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .shopping-video__product-info .price__compare {
    display: none;
  }
}
