/*
Theme Name: Plumco Child
Theme URI: http://themeforest.net/user/wpoceans/portfolio/
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans
Description: Plumco - Plumber WordPress Theme
Template:	plumco
Version: 1.0
Text Domain: plumco-child
*/

/* ================================
   自定义产品卡片样式
   ================================ */
/*.archive a:hover {*/
/*   color: #686565 !important;*/
/*}*/

.woocommerce ul.products,
.woocommerce .products,
ul.products,
.products {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  width: 100% !important;
}

/* 响应式网格调整 */
@media (max-width: 1400px) {
  .woocommerce ul.products,
  .woocommerce .products,
  ul.products,
  .products {
    gap: 25px !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products,
  .woocommerce .products,
  ul.products,
  .products {
    gap: 20px !important;
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce .products,
  ul.products,
  .products {
    gap: 15px !important;
    justify-content: center !important;
  }
}

/* 产品卡片外层容器 */
.custom-product-item {
  padding: 16px;
  width: 360px;
  height: 400px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 !important;
  box-sizing: border-box;
}

.custom-product-item {
}

/* 产品卡片内层容器 */
.product-item-inner {
  height: 368px;
  width: 328px;
  border-radius: 32px;
  background: white;
  border: 3px solid #f6f6f6;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.custom-product-item:hover .product-item-inner {
  border: 3px solid #3a71a9;
}

.custom-product-item:hover .product-image-wrapper{
    transform: translateY(-30px);
}
/* 分类标签 */
.product-category-tag {
  background: #e2e2e2;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  border-radius: 28px 0px 48px 0px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 283px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

/* 产品图片区域 */
.product-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.product-image-link {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 180px;
}

.custom-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.custom-product-item:hover .custom-product-image {
  
}

/* 产品信息区域 */
.product-info-wrapper {
  text-align: left;
  margin-bottom: 20px;
  padding-left: 39px;
  transition: transform 0.3s ease;
  margin-top: auto;
}

.custom-product-item:hover .product-info-wrapper {
  transform: translateY(-64px);
}

.custom-product-item:hover .custom-product-item .product-image-link {
  transform: translateY(-34px);
}

.product-code {
    font-weight: 100;
    margin-bottom: 8px;
    letter-spacing: 0px;
    line-height: 26px;
    text-align: left;
    font-size: 16px;
    color: #686565;
    font-family: "Segoe UI", sans-serif;
}

.product-title {
  text-align: left;
  font: normal normal 600 19px/26px Segoe UI;
  letter-spacing: 0px;
  color: #686565;
  font-size: 19px;
  margin: 0;
  line-height: 26px;
  font-family: "Segoe UI", sans-serif;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-product-item:hover .product-title a {
}

/* 底部区域和滑块效果 */
.product-footer {
  position: absolute !important;
  bottom: 16px;
  left: 16px;
  right: 0;
  height: 64px !important;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  width: 328px;
}

/* 蓝色滑块 */
.blue-slider {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100% !important;
  height: 64px !important;
  background: #3a71a9;
  border-radius: 68px 0px 0px 0px;
  transition: left 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0.7;
}

.custom-product-item:hover .blue-slider {
  left: 0;
  border-radius: 0px 0px 32px 32px; 
  opacity: 1;
}

/* Read more 按钮 */
.product-actions {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a71a9;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  padding: 0 20px;
}

.custom-product-item:hover .product-actions {
  display: flex;
}

.custom-product-item:hover .read-more-btn {
  color: white;
}

.btn-text {
  transition: transform 0.3s ease;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.custom-product-item:hover .btn-arrow {
  transform: translateX(4px);
}

/* 去除WooCommerce默认样式 */
.custom-product-item .star-rating,
.custom-product-item .price,
.custom-product-item .add_to_cart_button,
.custom-product-item .added_to_cart {
  display: none !important;
}

/* 确保图片链接覆盖整个卡片 */
.custom-product-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 0;
  cursor: pointer;
}

.custom-product-item > * {
  position: relative;
  z-index: 1;
}

/* 点击区域优化 */
.custom-product-item {
  cursor: pointer;
}

.custom-product-item .product-image-link,
.custom-product-item .product-title a {
  position: static;
}


/* ================================
   响应式设计
   ================================ */

@media (max-width: 1200px) {
  .custom-product-item {
    width: 300px !important;
    height: 340px;
  }

  .product-category-tag {
    width: 260px;
    height: 44px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .custom-product-item {
    width: 48% !important;
    height: 320px;
    padding: 0px;
  }
 
  .product-item-inner{
      width: 100%;
      height: 100%;
  }
  
  .product-category-tag {
        width: 100%;
        height: 46px;
        font-size: 9px;
        border-radius: 0;
        padding: 0px 12px;
  }

  .product-title {
    font-size: 16px;
    line-height: 22px;
  }

  .product-code {
    font-size: 16px;
    line-height: 22px;
  }

  .product-info-wrapper {
    padding-left: 20px;
  }

  .read-more-btn {
    font-size: 14px;
  }

  .product-footer {
    height: 48px !important;
    width: 100%;
    left: 0;
    bottom: 0;
  }

  .blue-slider {
    left: 0;
    border-radius: 0px 0px 32px 32px;
    opacity: 1;  
    height: 48px !important;
  }
  
  .product-actions {
    display: flex;
  }
  
  .custom-product-image{
      width: 100% !important;
      height: 100% !important;
          object-fit: cover;
  }
  
  .product-image-wrapper{
     max-height: 200px;
     margin-bottom: 0px;
  }
  
  .read-more-btn {
    color: white;
  }
  .custom-product-item:hover .product-image-wrapper{
      transform: translateY(0px);
  }
  
  .custom-product-item:hover .product-info-wrapper {
    transform: translateY(0px);
  }
  
  .archive .woocommerce nav.woocommerce-pagination ul li{
      width: 32px;
      height: 32px;
   }
}

@media (max-width: 480px) {
  .custom-product-item {
    
  }

  

  .product-image-wrapper {
    max-height: 140px;
  }

  .product-title {
    font-size: 15px;
    line-height: 20px;
  }

  .product-code {
    font-size: 15px;
    line-height: 20px;
  }

  .product-info-wrapper {
    padding-left: 16px;
    margin: 0;
  }

  .product-footer {
    
  }

  .blue-slider {
    
  }
}



.archive .woocommerce nav.woocommerce-pagination ul li{
    border: 1px solid #dfdfdf;
    background: #FFFFFF;
    border: 1px solid #DFDFDF;
    border-radius: 16px;
    width: 64px;
    height: 64px;
    
}
.archive .woocommerce nav.woocommerce-pagination ul li a {
    background: #FFFFFF;
    width: 100%;
    height: 100%;
    padding: 0;
    line-height: 64px !important;
}
.archive .woocommerce nav.woocommerce-pagination ul li span.current{
    background: #3A71A9;
    width: 100%;
    height: 100%;
    padding: 0;
    line-height: 64px !important;
}
.archive .woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #3A71A9;
    color: #fff;
}

