@charset "UTF-8";
.banner-wrapper {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  position: relative;
  top: 124px;
}

.banner-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.banner-caption {
  position: absolute;
  bottom: 94px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  opacity: 0.7;
  font-size: clamp(12px, 3vw, 20px); /* 隨螢幕縮放字體大小 */
  border: 1px solid #ffffff;
  width: 120px;
  height: 40px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 1439px) {
  .banner-caption {
    bottom: 64px;
  }
}
@media screen and (max-width: 767px) {
  .banner-caption {
    bottom: 52px;
    font-size: 8px;
    width: 52px;
    height: 20px;
    padding: 2px 9px;
    font-weight: 400;
  }
}

.carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: #dddddd !important;
  border-bottom: unset !important;
  border-top: unset !important;
  margin-bottom: 24px !important;
}
@media screen and (max-width: 767px) {
  .carousel-indicators button {
    width: 4px !important;
    height: 4px !important;
    margin-bottom: 13px !important;
  }
}

.carousel-indicators button.active {
  background: #333333 !important;
}

.new-product-arrow {
  padding-right: 40px;
}

.new-product {
  padding: 40px 0 40px 40px;
  position: relative;
  top: 124px;
}

.new-product-img {
  display: grid;
  grid-auto-flow: column;
  overflow: auto;
  scroll-behavior: smooth;
  gap: 24px;
  margin-top: 24px;
  padding-right: 40px;
}

@media (max-width: 1439px) {
  .new-product {
    padding: 24px 0 24px 24px;
  }
  .new-product-img,
  .new-product-arrow {
    padding-right: 24px;
  }
}
@media (max-width: 767px) {
  .new-product {
    padding: 24px 0 24px 16px;
  }
  .new-product-img {
    padding-right: 16px;
  }
  .new-product-arrow {
    padding-right: 16px;
  }
}
.new-product-title {
  font-size: 24px;
  font-weight: 700;
}

.new-product-img img {
  width: 400px;
  height: 502px;
  -o-object-fit: cover;
  object-fit: cover;
}

.new-product-img-item {
  position: relative;
}

.new-product-price {
  font-weight: 700;
}

.product-img-size {
  display: none;
  position: absolute;
  top: 462px;
  height: 40px;
  width: 400px;
  padding: 0 20px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #212121;
  font-family: "Roboto";
  gap: 24px;
  cursor: pointer;
}

@media (max-width: 1439px) {
  .new-product-img img {
    width: 300px;
    height: 376px;
  }
  .new-product-img-item img:hover {
    content: url("./assets/image/hover-image.png");
    width: 300px;
    height: 376px;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .new-product-img {
    margin-top: 16px;
  }
  .product-img-size {
    width: 300px;
    top: 336px;
  }
  .new-product-title {
    font-size: 20px;
  }
}
@media (max-width: 767px) {
  .new-product-img img {
    width: 218px;
    height: 273px;
  }
  .new-product-img-item img:hover {
    content: url("./assets/image/hover-image.png");
    width: 218px;
    height: 273px;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .product-img-size {
    width: 218px;
    top: 233px;
  }
  .new-product-title {
    font-size: 20px;
  }
}
.new-product-img::-webkit-scrollbar,
.article-sharing-img::-webkit-scrollbar {
  display: none; /* 隱藏滾動條 */
}

.scroll-progress-bar {
  width: 100%;
  height: 1px;
  background: #dddddd;
  border-radius: 2px;
  margin-top: 39px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1439px) {
  .scroll-progress-bar {
    margin-top: 31px;
  }
}
.scroll-progress-inner,
.article-scroll-progress-inner {
  height: 100%;
  background: #212121;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 2px;
  transition: left 0.2s, width 0.2s;
}

.new-product-img-item-detail {
  padding: 12px 0;
}

.new-product-img-item-detail div:nth-child(2) {
  margin: 4px 0;
}

.product-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
  top: 124px;
}

.product-bg,
.product-wrapper img {
  flex: 1 1 0;
  aspect-ratio: 9/16;
  width: 0;
  min-width: 0;
  height: auto;
  width: 720px;
  height: 810px;
  max-width: 100%;
  max-height: 90vh;
  box-sizing: border-box;
}

.product-bg {
  font-size: 20px;
  color: #ffffff;
  background: #212121;
  flex-direction: column;
  gap: 15px;
}

.product-wrapper .jacket-img {
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.product-wrapper .jacket-img-md {
  -o-object-fit: cover;
  object-fit: cover;
  display: none;
}

.product-add-btn {
  padding: 10px;
  width: 110px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  font-size: 12px;
  color: #ffffff;
  background: #212121;
}

.product-add-btn:hover {
  color: #212121;
  background: #ffffff;
}

/* 預設隱藏 */
.product-bg-sub-title {
  opacity: 0;
  transition: opacity 0.6s ease;
  margin-bottom: 9px;
}

/* 進入螢幕中央時顯示 */
.product-bg-sub-title.show {
  opacity: 1;
}

.product-bg-sub-title {
  font-size: 18px;
}

@media (max-width: 1439px) {
  .product-bg,
  .product-wrapper img {
    width: 384px;
    height: 432px;
  }
  .product-bg {
    gap: 13px;
  }
  .product-wrapper .jacket-img {
    -o-object-fit: cover;
    object-fit: cover;
    display: none;
  }
  .product-wrapper .jacket-img-md {
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
  }
  .product-bg-sub-title {
    font-size: 14px;
    margin-bottom: 3px;
  }
  .product-add-btn {
    width: 95px;
    height: 32px;
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .product-wrapper {
    flex-direction: column-reverse;
  }
  .product-bg,
  .product-wrapper img {
    width: 100%;
    height: 432px;
    aspect-ratio: 16/9;
  }
  .product-bg {
    font-size: 14px;
    gap: 10px;
  }
  .product-bg-sub-title {
    font-size: 12px;
    margin-bottom: unset;
  }
  .product-add-btn {
    width: 72px;
    height: 32px;
    font-size: 10px;
  }
}
.article-sharing {
  padding: 40px;
  position: relative;
  top: 124px;
}

.article-sharing-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.article-sharing-img {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 3);
  overflow: auto;
  scroll-behavior: smooth;
  gap: 24px;
}

.article-sharing-img img {
  width: 100%;
  aspect-ratio: 473/384;
  -o-object-fit: cover;
  object-fit: cover;
  height: auto;
}

@media (max-width: 1439px) {
  .article-sharing {
    padding: 24px;
  }
  .article-sharing-title {
    margin-bottom: 16px;
    font-size: 20px;
  }
  .article-sharing-img {
    grid-auto-columns: calc((100% - 48px) / 2);
  }
  .article-sharing-img img {
    aspect-ratio: 362/298;
    -o-object-fit: cover;
    object-fit: cover;
  }
}
@media (max-width: 767px) {
  .article-sharing {
    padding: 24px 16px;
  }
  .article-sharing-img {
    gap: 16px;
  }
  .article-sharing-img {
    grid-auto-columns: calc((100% - 32.4px) / 1.35);
  }
}
.article-sharing-item {
  flex-direction: column;
}

.article-sharing-item-detail {
  width: 100%;
  padding: 20px 0;
}

.article-sharing-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-sharing-item-content {
  font-size: 12px;
  font-weight: 400;
}

.arrow img {
  height: 44px;
  width: 44px;
}

.arrow img:first-child {
  margin-right: 16px;
}

.header-title-item div,
.arrow img,
.image {
  cursor: pointer;
}

@media (max-width: 1439px) {
  .arrow img:first-child {
    margin-right: 12px;
  }
}
.article-scroll-progress-bar {
  width: 100%;
  height: 1px;
  background: #dddddd;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.product-guarantee {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
}

@media (max-width: 1439px) {
  .product-guarantee {
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .product-guarantee {
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
}
.product-guarantee-item {
  flex-direction: column;
  gap: 24px;
  width: 260px;
  height: 182px;
}

.product-guarantee-item img {
  width: 30px;
  height: 30px;
}

.product-guarantee-title {
  font-size: 20px;
  font-weight: 400;
}

.product-guarantee-content {
  font-size: 12px;
  font-weight: 400;
}

.btn-close {
  background: none !important; /* 先把預設 SVG 清掉 */
  background-image: url("../assets/image/close-big.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  padding: unset !important;
  width: 64px !important;
  height: 64px !important;
  opacity: 1 !important;
  position: absolute !important;
  right: 0px !important;
}

.demo-img {
  display: block;
  height: 455px;
}
@media screen and (max-width: 767px) {
  .demo-img {
    display: none;
  }
}

.modal {
  background-color: rgba(0, 0, 0, 0.25);
}

.modal-dialog.modal-dialog-centered {
  display: flex !important;
  align-items: center; /* 垂直置中整個彈窗 */
  justify-content: center;
  gap: 0; /* 確保中間沒有縫隙 */
  max-width: 600px;
}

.modal-body {
  width: 305px;
  margin-top: 64px;
  padding-left: 32px;
  padding-right: 33px;
  padding-bottom: 40px;
  padding-top: unset;
  gap: 0; /* 明確指定沒有間距 */
}

.modal.show .modal-dialog {
  max-width: 600px;
}

.modal-dialog:focus,
.modal-content:focus {
  outline: none !important;
  box-shadow: none !important;
}

.modal-content {
  width: 305px;
  height: 442px;
  height: 100%; /* 讓高度與圖片一致 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0;
  border: unset;
}

.index-discount {
  width: 160px;
  height: 150px;
}
@media screen and (max-width: 767px) {
  .index-discount {
    width: 120px;
    height: 113px;
  }
}

.index-dialog-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media screen and (max-width: 767px) {
  .index-dialog-wrapper {
    gap: 16px;
  }
}
.index-dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.index-dialog-title {
  font-weight: 900;
  font-size: 20px;
  color: #212121;
}
@media screen and (max-width: 767px) {
  .index-dialog-title {
    font-size: 16px;
  }
}
.index-dialog-title-sub {
  font-weight: 600;
  color: #666;
  font-size: 14px;
}
@media screen and (max-width: 767px) {
  .index-dialog-title-sub {
    font-size: 12px;
  }
}
.index-dialog-code {
  font-weight: 700;
  font-size: 20px;
  color: #212121;
  text-decoration: underline;
}
@media screen and (max-width: 767px) {
  .index-dialog-code {
    font-size: 16px;
  }
}
.index-dialog-btn {
  max-width: 240px;
  width: 100%;
  height: 44px;
  background: #212121;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}