/* 产品详情页相关样式 */
.woocommerce-breadcrumb{
    margin:0 !important;
    padding:0 0 0 28px !important;
    color:#444 !important ;
    background:url("../images/home_icon1.png") no-repeat left center;
}
.woocommerce-breadcrumb a{
    display:inline-block;
    padding:0 5px;
}
.product-title{
    font-size:36;
    letter-spacing: 0.1px;
    font-weight: 600;
    line-height:1.2;
    margin:0;
    padding:0;
}
.product_num1{
    font-weight: 600;
}
.product_num2{
    color:#0088cd;
    font-weight: 600;
}
.product_button1{
    display:inline-block;
    color:#fff;
    padding:18px 50px;
    background: #0088cd;
    margin:30px 0 0 0;
    line-height: 1;
    border-radius: 5px;
    font-weight:600;
}
.product-excerpt ul {
    list-style: none; /* 去掉默认的列表符号 */
    padding: 8px 0;
    margin: 0;
}

.product-excerpt ul li {
    position: relative; /* 为伪元素定位 */
    padding-left: 28px; /* 给图标留出空间 */
    margin-bottom: 15px; /* 列表项间距 */
    line-height:2;
    color: #333; /* 列表文字颜色 */
}

.product-excerpt ul li::before {
    content:"\2714"; /* 使用勾号作为图标，你也可以换成其他字符或者Font Awesome图标 */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border:#0088cd solid 2px;
    color: #0088cd; /* 图标颜色白色 */
    border-radius: 50%; /* 圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.product_button1:hover{
    background:#222;
    transition: background-color 0.3s ease;
}
.product_label{
    background:url("../images/title_icon2.png") no-repeat left center;
    color:#fff;
    font-size:28px;
    font-weight: 600;
    padding-left:40px;
    line-height:2;
}
/* 产品详细描述 */
.product-description h2
{
background:#040313;
padding:8px 15px;
color:#fff;
font-size:30px;
margin:40px 0 40px 0;
font-weight: 600;
border-radius:5px 5px 0px 0px;
line-height: 1.2;
}
.product-description .pic1, .acf-packing_and_shipping .pic1
{
display:block;
padding:25px 25px;
border:1px solid #e4e4e4;
height:auto;
text-align: center;
margin:15px 0 0 0;
border-radius: 6px;
}
.product-description h3 {padding:10px 0 10px 15px;color:#000;font-size:20px;margin:0 0 10px 0;font-weight: 600;position: relative;line-height:1.5;margin:20px 0 0 0;border:#ececec solid 1px;background:#f5f5f5;}
.product-description h3:before {background:#0088cd;width:4px;height:100%;top:50%;left:0;position: absolute;content:"";transform:translateY(-50%);}
.product-description table
{width:100%;text-align:center;margin:0px auto;border-collapse:collapse;line-height:2;}
.product-description table td {border:#ececec solid 1px; padding:15px 20px;}
.product-description table tr{border-bottom:#ececec solid 1px; padding:15px 20px;background:#f3f5fa;}
.product-description table tr:nth-child(2n){background:#fff;}
@media(max-width:768px){
    .product-title{font-size:24px;line-height:1.2;}
    .product-description h2{font-size:20px;}
    .product_label{font-size:20px;}
}

.columns3_img {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* 防止小屏时溢出 */
  list-style: none;
  padding: 25px;
  margin: 0 auto 20px auto;
  border: 1px solid #e4e4e4; /* 浅灰色边框包围整体 */
  border-radius: 6px;
  max-width: 100%; /* 控制整体宽度，可按需要调整 */
  box-sizing: border-box;
}

.columns3_img li {
  width: calc(33.333% - 10px); /* 3列布局，留出间隙 */
  margin: 8px 0;
}

.columns3_img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ====== 响应式处理（小屏幕变为2列或1列） ====== */
@media (max-width: 1024px) {
  .columns3_img li {
    width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .columns3_img li {
    width: 100%;
  }
}
.columns2_img {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* 防止小屏时溢出 */
  list-style: none;
  padding: 25px;
  margin: 0 auto 20px auto;
  border: 1px solid #e4e4e4; /* 浅灰色边框包围整体 */
  border-radius: 6px;
  max-width: 100%; /* 控制整体宽度，可按需要调整 */
  box-sizing: border-box;
}

.columns2_img li {
  width: calc(50% - 10px); /* 2列布局，留出间隙 */
  margin: 8px 0;
}

.columns2_img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px; /* 可选，略微柔化边角 */
}

/* ====== 响应式处理（小屏幕变为1列） ====== */
@media (max-width: 768px) {
  .columns2_img li {
    width: 100%;
  }
}
.columns4_img {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* 防止小屏时溢出 */
  list-style: none;
  padding: 25px;
  margin: 0 auto 20px auto;
  border: 1px solid #e4e4e4; /* 浅灰色边框包围整体 */
  border-radius: 6px;
  max-width: 100%;
  box-sizing: border-box;
}

.columns4_img li {
  width: calc(25% - 10px); /* 4列布局 */
  margin: 8px 0;
}

.columns4_img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px; /* 可选，柔化边角 */
}

/* ====== 响应式：平板及以下一行两列 ====== */
@media (max-width: 1024px) {
  .columns4_img li {
    width: calc(50% - 10px);
  }
}

/* ====== 手机端一行一列 ====== */
@media (max-width: 768px) {
  .columns4_img li {
    width: 100%;
  }
}
/* ====== 相关产品整体容器 ====== */
.wt-related-products {
    margin: 0;
    padding: 0;
}

/* ====== 产品列表 ====== */
.wt-related-products ul.products {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

/* 强制覆盖 WooCommerce 默认 columns-* 样式 */
.wt-related-products ul.products[class*="columns-"] {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    list-style: none;
}

/* 每个产品项 */
.wt-related-products ul.products li.product {
    float: none;
    clear: none;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 23%;
    max-width: 23%;
    margin: 0 1% 20px 0;
    text-align: center;
}

/* 去掉每行最后一列右间距 */
.wt-related-products ul.products li.product:nth-child(4n) {
    margin-right: 0;
}

/* 产品图片样式 */
.wt-related-products ul.products li.product .product-image-link img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* 图片悬停效果 */
.wt-related-products ul.products li.product .product-image-link:hover img {
    transform: scale(1.05);
}

/* 产品标题样式 */
.wt-related-products ul.products li.product .product-title-link {
    display: block;
    margin-top: 10px;
    color: #333;
    line-height: 1.2;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 鼠标悬停标题变橙色 */
.wt-related-products ul.products li.product .product-title-link:hover {
    color: #0088cd;
}

/* ====== 响应式 ====== */
/* 平板 2列 */
@media (max-width: 1024px) {
    .wt-related-products ul.products li.product {
        flex: 0 0 48%;
        max-width: 48%;
        margin-right: 4%;
        margin-bottom: 15px;
    }
    .wt-related-products ul.products li.product:nth-child(2n) {
        margin-right: 0;
    }
}

/* 移动端 1列 */
@media (max-width: 768px) {
    .wt-related-products ul.products {
        padding: 20px;
    }
    .wt-related-products ul.products li.product {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}



/* 产品详情页gallery图像列表 */
.custom-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-product-main-image {
    position: relative;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    background: #fafafa;
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.current-img, .temp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.6s ease;
}

.fade-out { opacity: 0; }
.fade-in { opacity: 1; }

.custom-product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.custom-product-thumbnails img {
    width: calc((100% - 5*8px)/6);
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    filter: brightness(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.custom-product-thumbnails img.active-thumb,
.custom-product-thumbnails img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

@media(max-width:768px){
    .custom-product-thumbnails img { width: calc((100% - 3*8px)/4); }
}
@media(max-width:480px){
    .custom-product-thumbnails img { width: calc((100% - 2*8px)/3); }
}