/* === Product Overlay Slider === */
.product-overlay-slider {
  position: relative;
  overflow: hidden;
}

/* 背景图 */
.product-overlay-bg-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-overlay-bg-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.product-overlay-placeholder {
  aspect-ratio: 2 / 1;
}

/* Slide 内容叠加层 */
.product-overlay-slides-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
  transform: translateY(50%);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.is-animated .product-overlay-slides-content {
  transform: translateY(0);
  opacity: 1;
}

/* 内容区域 */

h3.content--heading {
  color: var(--content-color, var(--text-color, #fff));
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.2;
  max-width: 663px;
}

.content--content-part {
  color: var(--content-color, var(--text-color, #fff));
  font-size: 22px;
  line-height: 1.4;
}

/* 按钮 */
a.product-content-btn {
  background: var(--bg-color, #fff);
  color: var(--btn-color, #000);
  width: fit-content;
  padding: 13px;
  line-height: 1.2;
  font-size: 20px;
  min-width: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  border: 1px solid var(--bg-color, #fff);
  transition: color 0.5s, background 0.5s;
}

a.product-content-btn:hover {
  color: var(--bg-color, #fff);
  background: transparent;
}

/* 产品卡片 */
.prod-overlay-image img {
  max-width: 102px;
  display: block;
  width: 100%;
  object-fit: contain;
  background-color: #fff;
}

.prod-overlay-image {
  flex: 0 0 102px;
  max-width: 102px;
}

.overlay-product-list-inner {
  display: flex;
  gap: 20px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(12px);
  border: 1px solid transparent;
  transition: transform 0.4s, border-color 0.4s;
  position: relative;
}

.overlay-product-list-inner:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 1);
}

.overlay-product-list-inner .product-overlay-slider__quick-add-wrapper{
  position: absolute;
  bottom: 4px;
  right: 4px;
  z-index: 1;
}

.overlay-listed-custom-ttl {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-color, #fff);
  text-transform: capitalize;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.overlay-listed-custom-price span {
  color: var(--text-color, #fff);
  font-weight: bold;
  font-size: 18px;
}

.overlay-listed-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
}

.product-slider-wrapper {
  padding: 10px 0 0;
}

/* 内层 Swiper 容器 */
.product-overlay-product-slider {
  max-width: 85%;
  position: relative;
}

/* 内层导航箭头 */
.product-button-next,
.product-button-prev {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  cursor: pointer;
  width: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
}

/* Swiper 自动添加 disabled 时隐藏箭头 */
.product-button-prev.swiper-button-lock,
.product-button-next.swiper-button-lock {
  display: none;
}

.product-button-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-button-arrow--left {
  transform: rotate(180deg);
}

.product-button-next {
  right: -60px;
}

.product-button-prev {
  left: -60px;
}

/* 分页器 */
.overlay-slides-items-custom .swiper-pagination-items {
  display: flex;
  gap: 8px;
  position: absolute;
  top: 80px;
  z-index: 1;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  height: fit-content;
  align-items: flex-end;
}

.overlay-slides-items-custom .swiper-pagination-bullet {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.47);
  opacity: 1;
  position: relative;
  border-radius: 0;
  display: flex;
  flex-direction: column-reverse;
  margin: 0 16px !important;
  cursor: pointer;
}

.overlay-slides-items-custom .swiper-pagination-bullet .progress {
  position: absolute;
  left: 0;
  top: -4px;
  min-height: 6px;
  height: 100%;
  width: 0%;
  background: var(--pagination-color, #fff);
}

.overlay-slides-items-custom .swiper-pagination-bullet-active .progress {
  animation: progressFill var(--autoplay-delay, 5s) linear forwards;
}

.overlay-slides-items-custom .swiper-pagination-bullet em {
  font-style: normal;
  font-size: 20px;
  color: var(--pagination-color, #fff);
  margin-bottom: 14px;
  width: 100%;
  display: block;
  text-align: center;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* === 响应式 === */

/* 1560px 以下：箭头内收 */
@media (max-width: 1560px) {
  .product-button-prev { left: 0; }
  .product-button-next { right: 0; }
}

/* 1360px 以下：内容缩小 */
@media (max-width: 1360px) {
  .product-overlay-slides-content {
    padding-bottom: 65px;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet .progress {
    top: -2px;
    min-height: 3px;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet em {
    font-size: 16px;
    margin-bottom: 7px;
  }
  .content--content-part,
  .overlay-listed-custom-price span {
    font-size: 15px;
  }
  h3.content--heading {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .prod-overlay-image img {
    max-width: 83px;
  }
  .prod-overlay-image {
    flex: 0 0 83px;
    max-width: 83px;
  }
  .overlay-listed-custom-ttl {
    font-size: 17px;
  }
  a.product-content-btn {
    font-size: 16px;
    min-width: 156px;
    margin-top: 16px;
  }
  .overlay-slides-items-custom .swiper-pagination-items {
    top: 60px;
  }
  .product-button-prev {
    left: 48%;
    transform: translateX(-100%);
    top: auto;
    bottom: -50px;
  }
  .product-button-next {
    right: 48%;
    transform: translateX(100%);
    top: auto;
    bottom: -50px;
  }
}

/* 1024px 以下 */
@media (max-width: 1024px) {
  .product-overlay-product-slider {
    max-width: 100%;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet em {
    line-height: 1.2;
  }
  .product-button-next,
  .product-button-prev {
    width: 35px;
    height: 35px;
  }
}

/* 769px 以下：移动端 */
@media (max-width: 769px) {
  .overlay-slides-items-custom .main-feature-image-slider {
    padding: 50px 0 0;
  }
  .overlay-slides-items-custom .swiper-pagination-items {
    bottom: auto;
    top: 40px;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet em {
    font-size: 13px;
    color: #000;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet .progress {
    background: #000;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.47);
  }
  .overlay-slides-items-custom a.product-content-btn {
    font-size: 15px;
    min-width: 136px;
    margin-top: 16px;
    padding: 10px;
  }
}

/* 575px 以下 */
@media (max-width: 575px) {
  h3.content--heading {
    font-size: 28px;
  }
  .overlay-listed-content {
    padding: 0;
  }
  .overlay-slides-items-custom .swiper-pagination-bullet em {
    font-size: 12px;
  }
  .overlay-product-list-inner {
    gap: 10px;
  }
}