.products-list {
    margin: 0 -10px;
}
.products-list .item {
    width: 25%;
    padding: 0 10px;
}
.products-list .item:nth-child(4n+1) {
    clear: left;
}
.products-list .box {
     max-width: 335px; 
    margin: 0 auto 95px;
    position: relative;
}
.products-list .item a.cover{
    font-size: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index:30;
}
.products-list .box.new:before {
    content: 'NEW';
    display: block;
    background: #2EB2AA;
    width: 56px;
    height: 56px;
    border-radius: 100%;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    left: 16px;
    top: 16px;
    font-family: "Figtree", sans-serif;
}
.products-list .pic-box {
    margin-bottom: 14px;
    position: relative;
}
.products-list .pic-box img{
    width: 100%;
}
.products-list .pic {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid #e2e2e2;
}
.products-list .box:hover .pic {
    
}
.products-list .pic:before {
    content: "";
    background: rgba(0,0,0,0.50);
    display: block;
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.3s;
}
.products-list .box:hover .pic:before {
    opacity: 1;
}
.products-list .name {
    display: inline-block;
    color: #333;
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    box-sizing: border-box;
    transition: all .3s;
}
.products-list .box:hover .name {
    color: #2EB2AA;
}
.products-list .description {
    color: #aaa;
    font-size: 15px;
    line-height: 1.45;
    padding: 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}
.products-intro {
    max-width: 1345px;
    margin: 0 auto 50px;
}
.products-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 105px;
  margin: 0 auto 45px;
}
.products-info .gallery {
  flex: 0 1 650px; /* 不放大，可縮小，初始寬650px */
  width: 50%;
  max-width: 650px;
}
.products-info .gallery.has_border{
    border: 5px solid #f9f9f9;
        border-radius: 40px;
    overflow: hidden;
}
.products-info .gallery > .slick-slider{
    border-radius: 40px;
    overflow: hidden;
}
.products-info .pd-intro {
  flex: 1 1 auto; /* 自動填滿剩下的空間 */
  box-sizing: border-box;
  padding: 0;
  width: 50%;
}
.thumbnails ul {
    margin: 20px 0 0;
    display: flex;
    align-items: center;
}
.thumbnails li {
    padding: 0 4px;
    /*width: calc((100% / 3) - 0.1px);*/
}
.thumbnails li a {
    margin: 0;
    position: relative;
    width: 100%;
    display: inline-block;
}
.thumbnails li a img{
    border-radius: 5px;
}
.thumbnails-list .slick-arrow{
    background: transparent;
    border: none;
    padding: 0;
    width: auto;
}
.thumbnails-list .slick-arrow i{
    display: block;
    background: #e2e2e2;
    position: relative;
    left: 0px;
    width: 25px;
    height: 15px;
    clip-path: polygon(50% 0%, 100% 78%, 100% 91%, 90% 96%, 80% 90%, 50% 40%, 20% 90%, 10% 96%, 0 91%, 0 78%);
    filter: blur(1px);
    transition:all .3s;
    cursor:pointer;
}
.thumbnails-list .slick-arrow:hover i{
    background: #2EB2AA;
}
.thumbnails-list .slick-arrow.slick-prev{
    margin-right:16px;
}
.thumbnails-list .slick-arrow.slick-next{
    margin-left:16px;
}
.thumbnails-list .slick-arrow.slick-prev i{
    transform:rotate(-90deg);
}
.thumbnails-list .slick-arrow.slick-next i{
    transform:rotate(90deg);
}
.pd-name{
    font-size: 28px;
    font-weight: 600;
    color: #4CB8A0;
    padding: 0 0 16px;
    margin: 0 0 16px;
    border-bottom: 1px solid #d3d3d3;
}
.form-group select.form-control{
    height: 26px;
    margin: 0;
    font-weight: normal;
    border-radius: 0;
}
.detail_title{
    color: #333;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.1em;
    box-sizing: border-box;
    padding: 8px 24px;
    margin-bottom: 50px;
    background: #fafafa;
    border-left: 6px solid #4CB8A0;
    font-family: "Figtree", sans-serif;
}
/* buy_from_title */
.buy_from_title{
    margin-bottom: 16px;
    border-bottom: 1px solid #d3d3d3;
}
.buy_from_title span{
    color: #333;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    box-sizing: border-box;
    padding: 0px 14px;
    font-family: "Figtree", sans-serif;
    border-left: 5px solid #4CB8A0;
    margin-bottom: 16px;
    display: block;
}
.buy_from-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px 16px;
    align-items: center;
    justify-items: center;
}
.buy_from-list .item a.cover {
    font-size: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
}
.buy_from-list .box .pic{
    filter: grayscale(100%);
    transition: all .3s;
}
.buy_from-list .box:hover .pic{
    filter: grayscale(0%);
}
.buy_from-list .box:hover .pic img{
    transform: scale(1.0);
}
/* Tab links */
.tabs{
    margin-top:24px;
}
.tab-links{
    box-sizing:border-box;
    padding: 0 ;
    display: flex;
    width: 100%;
    gap: 6px; 
    border-bottom: 1px solid #eee;
}
.tab-link {
    flex: 1 1 0;
    text-align: center;
    padding: 15px 0;
    background-color: #f6f6f6;
    color: #333;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px 8px 0 0;
    font-family: "Figtree", sans-serif;
}
.tab-link.active {
    background-color: #4CB8A1;
    color: #fff;
}
/* Tab content */
.tab-content {
  display: none;
  padding: 24px 0;
  
}

.tab-content.active {
  display: block !important;
}
@media screen and (max-width: 1200px) {
    .products-list .item {
        width: 33.33%;
    }
    .products-list .item:nth-child(4n+1) {
        clear: none;
    }
    .products-list .item:nth-child(3n+1) {
        clear: left;
    }
    /*.gallery {
        width: 49%;
    }
    .pd-intro,
    .thumbnails {
        width: 48%;
    }*/
}
@media screen and (max-width: 1000px) {
    .products-list .item {
        width: 33.33%;
    }
    .products-list .item:nth-child(4n+1) {
        clear: none;
    }
    .products-list .item:nth-child(3n+1) {
        clear: left;
    }
  .products-info {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .products-info .gallery{
    width: 100%;
    flex: 1 1 100%;
  }
  .products-info .pd-intro {
    max-width: 100%;
    flex: 1 1 100%;
    width: 100%;
  }
/*-tab-links*/
    .tab-link{
        font-size: 18px;
    }
/*-//tab-links*/
.pd-name{
    font-size: 22px;
}
}
@media screen and (max-width: 767px) {
    .products-list {
        margin: 0 -7px;
    }
    .products-list .item {
        width: 50%;
        padding: 0 7px;
    }
    .products-list .item:nth-child(3n+1) {
        clear: none;
    }
    .products-list .item:nth-child(2n+1) {
        clear: left;
    }
    .products-list .box {
        margin-bottom: 30px;
    }
    .sort_icon .ibtn.one {
        display: inline-block;
    }
    .sort_icon .ibtn.four {
        display: none;
    }
/*-tab-links*/
    .tab-links{
        flex-direction: column;
    }
    .tab-link{
        font-size: 18px;
    }
/*-//tab-links*/
}
@media screen and (max-width: 484px) {
    .products-list .box.new:before {
        width: 40px;
        height: 40px;
        font-size: 14px;
        left: 5px;
        top: 5px;
    }
}
@media screen and (max-width: 400px) {
    .sort_box .control-box span {
        display: none;
    }
    .sort_box .form-control.sort-pc {
        display: none;
    }
    .sort_box .form-control.sort-mobile {
        display: block;
        width: 80px;
    }
}
/*product_column欄位*/
.products_column_one .item{
    width: 100%;
}
.products_column_two .item{
    width: 50%;
}
.products_column_two .item:nth-child(n){
    clear: inherit;
}
.products_column_two .item:nth-child(2n+1){
    clear: left;
}
/*!product_column欄位*/