/* 修复详情页收藏按钮 - 隐藏原有的::before伪元素 - 最强优先级 */
.details-infor .group-button .yith-wcwl-add-to-wishlist a::before,
.details-infor .group-button .yith-wcwl-add-to-wishlist > a::before,
.details-infor .group-button .yith-wcwl-add-to-wishlist div a::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* gridproducts页面 - 隐藏::before伪元素 */
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button a::before,
.yith-wcwl-add-to-wishlist div a::before,
.product-grid .yith-wcwl-add-to-wishlist a::before {
    display: none !important;
    content: none !important;
}

/* gridproducts页面按钮样式 */
.yith-wcwl-add-to-wishlist a.btn-add-favorite,
.yith-wcwl-add-to-wishlist a.btn-remove-favorite {
    display: inline-block;
    padding: 5px;
    text-decoration: none;
}
.yith-wcwl-add-to-wishlist a.btn-add-favorite i,
.yith-wcwl-add-to-wishlist a.btn-remove-favorite i {
    font-size: 18px;
}

/* 修复产品列表页面抖动问题 */
.product-grid,
.list-products,
.products-list,
#productList {
    min-height: 600px;
    transition: opacity 0.3s ease;
}

/* 产品加载时的平滑过渡 */
.product-item {
    transition: all 0.3s ease;
}

/* 收藏按钮悬停样式 - 已收藏的显示红色 */
.btn-remove-favorite:hover i,
.btn-add-favorite-processed:hover i,
.yith-wcwl-add-to-wishlist .btn-add-favorite-processed:hover i {
    color: #dd3232 !important;
}

/* 已收藏的心形图标默认红色 */
.btn-remove-favorite i {
    color: #dd3232 !important;
}

/* 收藏按钮过渡效果 */
.yith-wcwl-add-to-wishlist a {
    transition: color 0.3s ease;
}

/* 详情页新品按钮样式 */
.details-infor .group-button .yith-wcwl-add-to-wishlist a.btn-add-favorite,
.details-infor .group-button .yith-wcwl-add-to-wishlist a.btn-remove-favorite {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
}
.details-infor .group-button .yith-wcwl-add-to-wishlist a.btn-add-favorite i,
.details-infor .group-button .yith-wcwl-add-to-wishlist a.btn-remove-favorite i {
    font-size: 18px;
}

/* 详情页按钮组布局 */
.details-infor .group-button.product-action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.details-infor .group-button.product-action-buttons .quantity-add-to-cart {
    margin: 0;
}
/* GET A QUOTE 按钮 */
.btn-get-quote {
    background-color: #dd3232 !important;
    color: #fff !important;
    border: 2px solid #dd3232 !important;
    transition: all 0.3s ease;
}
.btn-get-quote:hover {
    background-color: #fff !important;
    color: #dd3232 !important;
}
/* Add to cart 按钮保持原色 */
.btn-add-to-cart {
    transition: all 0.3s ease;
}
