/**
 * EDM限時搶購 flashSale2025.js v2501.0
 * *******************************************************************
 * v2501.0  jerryshen 2025.08.04 【JS】調整限時搶購iframe改版面

 * *******************************************************************
 */

@media screen and (min-width: 768px) {
  .for_pc {
    display: block!important;
  }
  .for_mb {
    display: none!important;
  }
}
  @media screen and (max-width:767px){
  .for_pc {
    display: none!important;
  }
  .for_mb {
    display: block!important;
  }  
}


.freshSale_container{
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 1220px;
    background: #f1f1f1;
    font-family: "微軟正黑體", "Microsoft JhengHei", Helvetica;
    text-align: center;
    border-radius: 7px;
    overflow: hidden;
}
@media screen and (max-width: 1220px) {
    .freshSale_container{
        width: 100%;
    }
  
}


.freshSale_container .title_bg{
  position: relative;
  display: block;
}

.freshSale_container .title_bg{
  background: linear-gradient(135deg, #bb3ff4 0%,#bb3ff4 30%, #6703b4 100%);
}

.freshSale_container .title_bg img{
  display: block;
}

.freshSale_container .title_bg #js-EndText{
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
}


.freshSale_container .title_bg .time_div span{
  color: #ffffff;
  font-size: 24px;
}

.freshSale_container .title_bg .time_div #js-HOUR,
.freshSale_container .title_bg .time_div #js-MINUTE,
.freshSale_container .title_bg .time_div #js-SECOND{
    font-family: 'Century Gothic';
}

.freshSale_container .title_bg .time_box{
    background: #8a1cd0;
    padding: 2px 6px;
    border-radius: 7px;
}

.freshSale_container .time{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 210px;
  margin: auto;
  display: table;
}
@media screen and (max-width:767px){
  .freshSale_container .title_bg .time_box{
    background: #7400cf;    
  }
  .freshSale_container .title_bg #js-EndText{
    font-size: 3.5vw;
    margin-right: -1vw;    
  }  
  .freshSale_container .title_bg .time_div span{
    font-size: 3.5vw;
  }    
  .freshSale_container .time{
    left: 32vw;
  }    
} 

.freshSale_container .time .time_div{
  display: inline-block;
  margin-right: 2px;
}

.freshSale_container .time .time_div{
  display: inline-block;
  margin-right: 2px;
}

.freshSale_container #js-LEARN_MORE{
    position: absolute;
    top: 0;
    bottom: 0;
    right: 30px;
    color: #fff;
    font-weight: bold;
    background: #ae66e6;
    width: 100px;
    margin: auto;
    display: table;
    text-decoration: none;
    border-radius: 15px;   
    z-index: 10; 
}
.freshSale_container #js-LEARN_MORE p{
  margin: 5px 10px;  
}

@media screen and (max-width:767px){
    .freshSale_container #js-LEARN_MORE{
      width: auto;
      right: 2.5vw;
    }
    .freshSale_container #js-LEARN_MORE p{
      margin: .5vw 2vw;       
      font-size: 3vw;
    }
  }


.freshSale_container .box{
  background: #9926db;
  box-sizing: border-box;
}

.freshSale_container .box .Area_PD_gift_nav{
  padding: 6px 10px;
  padding-bottom: 0;
  box-sizing: border-box;
}
  @media screen and (max-width:767px){
    .freshSale_container .box .Area_PD_gift_nav{
        padding: .75em 0 0 .8em;
    }
  }

.freshSale_container .box .Area_PD_gift_nav .Area_boxstyle_title,
.freshSale_container .box .Area_product .Area_boxstyle_title{
  display: none;  
}  

.freshSale_container .box .Area_product{
    padding: 0 0 10px 10px;
    box-sizing: border-box;
}

/* 倒數組數 */
.freshSale_container .PD_layout .PD_slide .last{
    position: absolute;
    bottom: .3vw;
    left: 2.5px;
    font-size: 1em;
}

/* 搶購與準備開搶 */
.freshSale_container .PD_layout[data-pd-btn] .PD_btn{
    background: none!important;
}
.freshSale_container .PD_layout .PD_slide .PD_btn{
    position: relative;
    bottom: 0!important;
    border-radius: 0;    
}
.freshSale_container .PD_layout .PD_slide .PD_btn img{
  position: absolute;
  bottom: 0;
}



/* Tab 切換相關樣式 */
.freshSale_container .Area_PD_gift_nav ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.freshSale_container .Area_PD_gift_nav .tab-item {
  text-align: center;
  cursor: pointer;
  background: #444444;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  position: relative;
  margin: 0;
  min-width: 70px;  
}

.freshSale_container .Area_PD_gift_nav .tab-item:last-child{
    margin-right: 0.8em;
}

.freshSale_container .Area_PD_gift_nav .tab-item a {
  display: block;
  padding: 8px 8px 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.freshSale_container .Area_PD_gift_nav .tab-item .time-display {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 2px;
  line-height: 1.2;
  font-family: 'Century Gothic';  
}

.freshSale_container .Area_PD_gift_nav .tab-item .status-text {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.1;
}

/* 不同狀態的樣式 */

.freshSale_container .Area_PD_gift_nav .tab-item.active .time-display,
.freshSale_container .Area_PD_gift_nav .tab-item.active .status-text {
  color: #9926db;
}

.freshSale_container .Area_PD_gift_nav .tab-item.upcoming,
.freshSale_container .Area_PD_gift_nav .tab-item.tomorrow {
  background: #444444;
  border-color: #9926db;
  color: #ffffff;
}

.freshSale_container .Area_PD_gift_nav .tab-item.ended {
  background: #666666;
  border-color: #9926db;
  color: #888888;
  cursor: not-allowed;
}


.freshSale_container .Area_PD_gift_nav .tab-item.active {
  background: #ffffff;
  border-color: #9926db;
}

.freshSale_container .Area_PD_gift_nav .tab-item.active a {
  color: #9926db;
}


.freshSale_container .Area_PD_gift_nav .tab-item.active:hover {
  background: #ffffff;
}

.freshSale_container .Area_PD_gift_nav .tab-item.active .time-display,
.freshSale_container .Area_PD_gift_nav .tab-item.active .status-text {
  color: #3d3d3d;
}

.freshSale_container .Area_PD_gift_nav .tab-item.active p {
  color: #3d3d3d;
  font-weight: bold;
}

/* 內容區塊樣式 */
.freshSale_container .product-tab-content {
  background-color: #ffffff;
  transition: opacity 0.3s ease;
  border-radius: 0 0 0 7px;
}

.freshSale_container .product-tab-content[style*="display: none"] {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.freshSale_container .product-tab-content:not([style*="display: none"]) {
  opacity: 1;
}

.freshSale_container .product-tab-content .Area_swiper_box{
  padding-left: 10px;
  padding-right: 10px;
}

.freshSale_container .PD_layout[data-pd-btn][data-pd-btn-pdgo] .PD_slide{
    padding-bottom: 3.25em;
    border-right: 1px solid #dcdcdc;
    border-radius: 0;
}

.freshSale_container .PD_slide .gdsHref .PD_img{
  /* padding: .35em; */
}


.freshSale_container .PD_layout .swiper-pagination{
      padding: 6px 0;
}

/* 卡片裡面的樣式 */
.freshSale_container .gdsBrand{
  color: #de1e00;
  font-size:18px;
  font-weight: bold;
}
.freshSale_container .gdsName{
  font-size:18px;
  font-weight: bold;  
  max-height: 1.4em!important;  
}

.freshSale_container .gdsBrand, .freshSale_container .gdsName{
  display: -webkit-box!important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.freshSale_container .PD_layout li{
  transition: none;
}

.freshSale_container .PD_layout .PD h3{
  margin: 0;
}

.freshSale_container .PD_layout .PD h4{
  margin: 0;
}

.freshSale_container .PD_layout .PD p{
  color: #de1e00;  
}

.freshSale_container .PD_layout .PD .pPrice{
  line-height: 1.75em;
  height: 1.75em;
}
  @media screen and (max-width:767px){
    .freshSale_container .PD_layout .PD .pPrice{
      line-height: 3.25vw;
      height: 3.25vw;
    }    
  }



/* 調整手機版樣式 */
@media screen and (max-width: 768px) {


.freshSale_container .gdsBrand,.freshSale_container .gdsName{
  font-size: 0.95em;
}

.freshSale_container .PD_layout .PD p .js-PD_priceTxt{
    font-size: 0.7em!important;
}

.freshSale_container .PD_layout .PD p .money{
  
}

.freshSale_container .PD_layout .PD p .js-PD_price{
    font-size: 1.35em!important;  
}

.freshSale_container .PD_layout .PD p .js-PD_del{
    font-size: .75em!important;  
}

.freshSale_container .PD_layout .PD .last{
    bottom: .25em;
    font-size: .75em!important;  
}



  .freshSale_container .Area_PD_gift_nav ul {
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 3px;
    overflow: auto;
  }
  
  .freshSale_container .Area_PD_gift_nav .tab-item a {
    padding: 0.5em 0.5em 0.75em;
    font-size: 14px;
  }
  
  .freshSale_container .Area_PD_gift_nav .tab-item .time-display {
    font-size: 1.35em;
    margin-bottom: 1px;
  }
  
  .freshSale_container .Area_PD_gift_nav .tab-item .status-text {
    font-size: 0.85em;
  }
}



