.swiper {
  width: 100%;
  height: 100%;
}

/* 確保圖片在所有尺寸下都完全覆蓋 */
.swiper-slide img {
  min-width: 100%;
  min-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Swiper 分頁點自訂 */
.custom-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #d9d9d9 !important;
  border-radius: 50% !important;
  margin: 0 2.5px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.custom-bullet-active {
  width: 38px !important;
  background:  var(--color-secondary) !important;
  border-radius: 999px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination {
  position: absolute !important;
  bottom: 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  z-index: 20 !important;
}

/* 響應式調整 */
@media (min-width: 640px) {
  .swiper-pagination {
    bottom: 40px !important;
  }
}

/* Swiper pagination styles */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #D9D9D9;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  width: 38px;
  height: 10px;
  border-radius: 999px;
  background:  var(--color-secondary) !important;
}

/* 商品轮播样式 */
.product-swiper {
  padding-bottom: 50px !important;
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
  color: var(--color-secondary) !important;
}

.product-swiper .swiper-pagination-bullet-active {
  background: var(--color-secondary) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
}

/* 縮圖輪播樣式 */
.thumbs-swiper {
  width: 100% !important;
}

.thumbs-swiper .swiper-slide {
  width: auto !important;
  height: auto !important;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.thumbs-swiper .swiper-slide.thumb-active,
.thumbs-swiper .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid var(--color-secondary);
  border-radius: 4px;
}

.thumbs-swiper .swiper-slide:hover {
  opacity: 1;
}

/* 主圖輪播樣式 */
.main-swiper {
  width: 100% !important;
  height: 100% !important;
}

.main-swiper .swiper-slide {
  width: 100% !important;
  height: 100% !important;
}

.case-pagination{
    position: relative !important;
    bottom: 20px !important;
    display: flex !important;
    justify-content: start !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    z-index: 20 !important;
  
}