.fz28 {
  font-size: 28px;
  line-height: 38px;
}
.ProductDetail-additionalInfo {
  display: none !important;
}
.section.problem {
  background-size: cover;
  background-position: right;
  background-image: url(https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/know-more-gentle-resufacing-toner/image/s1-bg.jpg) !important;
}
.desktop-view {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.s5-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.s5-img {
  width: 75% !important;
}
@media (max-width: 768px) {
  .banner {
    background-image: url(https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/trial/images/toner/m_s1-bg-01.jpg);
  }
  .pt80 {
    padding-top: 80%;
  }
  .section.problem {
    background-position: top;
    background-image: url(https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/know-more-gentle-resufacing-toner/image/m_s1-bg.jpg) !important;
  }
  .desktop-view {
    display: none !important;
  }

  .mobile-tabs {
    display: block !important; /* 使用 !important 確保顯示 */
  }

  .nav-item {
    width: 50%;

    text-align: center;
  }

  .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
  }
  .nav-tabs .nav-item {
    border-bottom: #002d18 1px solid;
    background-color: transparent;
  }
  .nav-tabs .nav-item.active {
    border-bottom: #002d18 3px solid !important;
    background-color: transparent !important;
  }

  .tab-content {
    margin-top: 20px;
  }

  .image-container {
    position: relative; /* 讓圖片容器成為相對定位 */
  }

  .tab1-images,
  .tab2-images {
    position: absolute; /* 讓圖片容器絕對定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .tab1-images {
    display: block; /* 預設顯示 tab1 的圖片 */
  }

  .tab2-images {
    display: none; /* 預設隱藏 tab2 的圖片 */
  }

  .tab-content .tab-pane {
    overflow: visible;
  }

  .ttm-container {
    width: 100%;
  }

  .ttm-container img {
    width: 100%;
  }
}

/* 桌機版樣式 */

@media (min-width: 767px) {
  .desktop-view {
    display: block;
  }

  .mobile-tabs {
    display: none !important; /* 使用 !important 確保隱藏 */
  }
}

/* 當 tab2 被選中時 */

.nav-tabs
  .nav-link.active[href="#tab2"]
  ~ .tab-content
  #tab1
  .image-container
  .tab1-images {
  display: none; /* 隱藏 tab1 的圖片 */
}

.nav-tabs
  .nav-link.active[href="#tab2"]
  ~ .tab-content
  #tab1
  .image-container
  .tab2-images {
  display: block; /* 顯示 tab2 的圖片 */
}
.tab-content {
  position: relative;
}
.tab-pane.tab1,
.tab-pane.tab2 {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
  }
  .intro img {
    padding-bottom: 20px;
  }
  .section.before-after .mb60 {
    margin-bottom: 30px;
  }
}

.footer-form-btn-loading {
  background: transparent !important;
  border-top: 4px solid #e6eae8 !important;
  border-right: 4px solid #3b5647 !important;
  border-bottom: 4px solid #3b5647 !important;
  border-left: 4px solid #3b5647 !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  background-color: transparent !important;
}
.tab-pane.tab2.fade.show.active.in {
  z-index: 999;
}

.tab-pane.tab1.fade.show.active.in {
  z-index: 999;
}

.feature {
  background-position: 30%;
  background-repeat: no-repeat;
  background-image: url(https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/know-more-gentle-resufacing-toner/image/s4-bg.jpg);
  min-height: 750px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background-size: cover;
}
.feature .item {
  width: 100%;
  padding-top: 30px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}
.feature .img {
  width: 35%;
  height: auto;
}
.feature .img img {
  width: 200px;
  height: auto;
  border-radius: 100px;
}
.feature .content {
  width: 75%;
  height: auto;
  padding-right: 20px;
}
.s5-content p {
  font-size: 18px;
  line-height: 28px;
}
@media (max-width: 768px) {
  h2,
  h3,
  .fz52 {
    font-size: 28px;
    line-height: 38px;
  }
  .feature {
    min-height: 1700px;
    background-position: bottom;
    background-image: url(https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/know-more-gentle-resufacing-toner/image/m_s4-bg.png);
  }
  .feature h4 {
    text-align: center;
  }
  .feature .item {
    display: none !important;
  }
  .feature .m-item .inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .show-in-mobile.f1 {
    margin-top: -700px;
  }
  #item-fancybox {
    width: 100%;
  }
  .show-in-mobile.content {
    padding-top: 20%;
  }
  .feature .m-item .img-container.p01,
  .feature .m-item .img-container.p02 {
    width: 225px;
    height: 225px;
    position: relative;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
  }
  .feature .m-item .img {
    display: block;
    width: 100%;
    height: 225px;
    border-radius: 50%;
  }
  .feature .m-item .img-container.p01::before {
    content: "歐蓍草萃取"; /* 必須設置內容 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1; /* 初始透明度 */
    pointer-events: none; /* 使偽元素不影響鼠標事件 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
  }
  .feature .m-item .img-container.p01::before {
    content: "歐蓍草萃取"; /* 必須設置內容 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1; /* 初始透明度 */
    pointer-events: none; /* 使偽元素不影響鼠標事件 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
  }
  .feature .m-item .img-container.p02::before {
    content: "杜松莓萃取"; /* 必須設置內容 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 !important;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1; /* 初始透明度 */
    pointer-events: none; /* 使偽元素不影響鼠標事件 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
  }
  .feature .m-item .img-container.p01::after,
  .feature .m-item .img-container.p02::after {
    content: ""; /* 用於顯示小圖標 */
    position: absolute;
    top: 135px; /* 調整圖標的位置 */
    left: 50%; /* 水平置中 */
    transform: translateX(-50%); /* 使其真正置中 */
    width: 35px; /* 圖標的寬度 */
    height: 35px; /* 圖標的高度 */
    background-image: url("https://gvcdn.s3-ap-northeast-1.amazonaws.com/shopline/2021-rebrand/pages/know-more-gentle-resufacing-toner/image/add.png"); /* 替換為你的圖標路徑 */
    background-size: contain; /* 確保圖標大小合適 */
    background-repeat: no-repeat; /* 不重複圖標 */
    opacity: 1; /* 初始透明度 */
    transition: opacity 0.3s ease; /* 透明度過渡效果 */
  }
  .feature .m-item .img-container.p01:hover::before,
  .feature .m-item .img-container.p02:hover::before {
    opacity: 1; /* 初始透明度 */
  }
  .feature .m-item .img-container.p01:hover::after,
  .feature .m-item .img-container.p02:hover::after {
    opacity: 1; /* 滑鼠懸停時顯示圖標 */
  }
  .feature .m-item .link a:hover {
    background-color: transparent !important;
  }
  .btn:not(.btn-success):not(.btn-buy-now):not(
      #mobile-signup-re-send-code-btn
    ):not(.btn-purchase-addon):hover,
  .btn:not(.btn-success):not(.btn-buy-now):not(
      #mobile-signup-re-send-code-btn
    ):not(.btn-purchase-addon):focus,
  .btn:not(.btn-success):not(.btn-buy-now):not(
      #mobile-signup-re-send-code-btn
    ):not(.btn-purchase-addon)
    .focus {
    background-color: transparent !important;
    color: transparent !important;
  }
  .feature.m-item.link a:hover img {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    border-radius: 50%;
    opacity: 1;
  }

  .fz28 {
    font-size: 24px;
    line-height: 34px;
  }
  .s5-content p {
    font-size: 14px;
    line-height: 24px;
  }
  .show-in-mobile .content {
    margin-top: 100%;
    padding-top: 30px;
  }
}
.fancybox__content {
  background-color: #ced5d1 !important;
  color: #0a2d1b;
}
.fancybox__content > .carousel__button.is-close {
  top: 10px !important;
  right: 10px !important;
  color: #0a2d1b !important;
  border: 1px solid #0a2d1b !important;
  border-radius: 50% !important;
}
.morphing-content {
  display: none;
}
@media (max-width: 650px) {
  .feature {
    min-height: 1500px;
  }
  .show-in-mobile.f1 {
    margin-top: -450px;
  }
}
@media (max-width: 650px) {
  .show-in-mobile.content {
    padding-top: 30%;
  }
}
@media (max-width: 430px) {
  .feature {
    min-height: 1200px;
  }
  .show-in-mobile.f1 {
    margin-top: -300px;
  }
}
@media (max-width: 375px) {
  .show-in-mobile .content {
    margin-top: 0;
    padding-top: 0;
  }
}
