.tz-product-actions-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Grid View Styles */
.grid-content .tz-product-actions-btn .d-flex.flex-column,
.tz-product-slider .tz-product-actions-btn .d-flex.flex-column,
.tz-related-wrapper .tz-product-actions-btn .d-flex.flex-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-content .tz-wishlist-btn{padding-right: 10px;}

/* List View Styles */
.list-content .tz-product-actions-btn {
    position: static;
}

.list-content .tz-product-search {
    margin-left: 8px;
}

.list-content .d-flex.flex-column {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
}

/* Common Styles for both views and slider */
.tz-wishlist-btn {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Heart Icon Styles */
.tz-wishlist-btn .yith-wcwl-add-button a:before,
.tz-wishlist-btn .yith-wcwl-wishlistaddedbrowse a:before,
.tz-wishlist-btn .yith-wcwl-wishlistexistsbrowse a:before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('../../../wp-content/uploads/2025/04/heart-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tz-wishlist-btn .yith-wcwl-wishlistaddedbrowse a:before,
.tz-wishlist-btn .yith-wcwl-wishlistexistsbrowse a:before {
    background-image: url('../../../wp-content/uploads/2025/04/heart-icon-filled.svg');
}

/* Hide original YITH icon */
.tz-wishlist-btn .fa-heart-o,
.tz-wishlist-btn .fa-heart {
    display: none !important;
}

.tz-wishlist-btn a {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}
.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--anchor svg.yith-wcwl-icon-svg{width: 24px!important;}

.tz-wishlist-btn a:hover {
    background: #f8f8f8 !important;
}

/* Hide the default wishlist icon text */
.tz-wishlist-btn .feedback,
.tz-wishlist-btn .add_to_wishlist span,
.tz-wishlist-btn a span {
    display: none !important;
}

/* Style for when item is in wishlist */
.tz-wishlist-btn .yith-wcwl-wishlistaddedbrowse a,
.tz-wishlist-btn .yith-wcwl-wishlistexistsbrowse a {
    color: #e94444 !important;
}

/* Style the fancybox icon to match wishlist */
.tz-product-search .tz-action-btn-wrapper a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.tz-product-search .tz-action-btn-wrapper a:hover {
    background: #f8f8f8 !important;
}

/* Ensure SVG icon is centered */
.tz-product-search .tz-action-btn-wrapper svg {
    margin: auto;
}

/* List view specific adjustments */
.list-content .tz-product-item {
    position: relative;
}

.list-content .tz-action-btn-wrapper {
    display: flex;
    align-items: center;
}

/* Header Wishlist Icon Styles */
.tz-wishlist-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    text-decoration: none;
}

.tz-wishlist-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

.tz-wishlist-count {
    position: absolute;
    top: 10px;
    right: -8px;
    background-color: #c1102e;
    color: #fff;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0 4px;
}

.tz-wishlist-link:hover {
    text-decoration: none;
}

.tz-wishlist-link:hover .tz-wishlist-icon {
    opacity: 0.8;
}

/* Ensure consistent icon sizing with other header icons */
.tz-icons-wrapper .tz-wishlist-link {
    vertical-align: middle;
}

.tz-icons-wrapper .tz-wishlist-icon {
    width: 24px;
    height: 24px;
    display: block;
} 

.woocommerce .wishlist-title h2{padding-top: 40px;}

.single-product .tz-product-wrapper .yith-add-to-wishlist-button-block {margin-top: 30px;}
.single-product .tz-related-wrapper .open-fancybox-group {box-shadow:none!important;}

/* Common Styles for Product Slider and Related Products */
.tz-product-slider .tz-product-actions-btn .d-flex.flex-column,
.tz-related-wrapper .tz-product-actions-btn .d-flex.flex-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tz-product-slider .tz-product-actions-btn,
.tz-related-wrapper .tz-product-actions-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Wishlist Button Styles */
.tz-product-slider .tz-wishlist-btn,
.tz-related-wrapper .tz-wishlist-btn {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Button Styles */
.tz-product-slider .tz-product-search .tz-action-btn-wrapper,
.tz-related-wrapper .tz-product-search .tz-action-btn-wrapper {
    /*width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.tz-product-slider .tz-product-search .tz-action-btn-wrapper:hover,
.tz-related-wrapper .tz-product-search .tz-action-btn-wrapper:hover {
    background: #f8f8f8;
}

/* Ensure SVG icon is centered */
.tz-product-slider .tz-product-search .tz-action-btn-wrapper svg,
.tz-related-wrapper .tz-product-search .tz-action-btn-wrapper svg {
    margin: auto;
}