/* Wishlist Button Styles */

.breakdance-woocommerce div.product form.cart {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: var(--bde-woo-forms__wrappers-small);
    align-items: center;
}

.wishlist-button {
    background: none;
    border: 2px solid #000;
    border-radius: 10%;
    cursor: pointer;
    width: 50px;
    height: 100%;
    padding: 5px;
    margin-left: 0px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}

.wishlist-button:hover {
    transform: scale(1.1);
    border-color: #e74c3c;
}

.wishlist-button.in-wishlist:hover {
    background-color: #c0392b !important; /* Darker red on hover */
}

.wishlist-button .heart-icon-svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.wishlist-button .heart-path {
    fill: none !important;
    stroke: #000;
    stroke-width: 1;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* Heart states */
.wishlist-button.in-wishlist {
    background-color: #e74c3c !important;
    border-color: #e74c3c;
}

.wishlist-button.in-wishlist .heart-path {
    fill: #fff !important;
    stroke: #fff !important;
}

.wishlist-button:hover .heart-path {
    fill: #e74c3c;
    stroke: #000;
}

/* Force fill for wishlisted products - aggressive targeting */
.wishlist-button.in-wishlist .heart-path,
.wishlist-button.in-wishlist path.heart-path,
.wishlist-button.in-wishlist svg path,
.wishlist-button.in-wishlist .heart-icon-svg path {
    fill: #fff !important;
    stroke: #fff !important;
}

/* Override any theme styles that might interfere */
.wishlist-button .heart-path[style*="fill"] {
    fill: none !important;
}

.wishlist-button.in-wishlist .heart-path[style*="fill"] {
    fill: #fff !important;
}

/* Additional force overrides */
.wishlist-button.in-wishlist .heart-path[fill="none"],
.wishlist-button.in-wishlist .heart-path[fill=""] {
    fill: #fff !important;
}

/* Remove from wishlist button - trash icon positioned at the top right of product */
.remove-from-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(244, 67, 54, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-from-wishlist:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.remove-from-wishlist .remove-icon-svg {
    margin: 0;
    display: block;
    fill: white;
    stroke: white;
    stroke-width: 1;
}

/* Position wishlist items relative for absolute positioned remove button */
.products li {
    position: relative;
}

/* Reuse theme's loading spinner and cart icons for buttons */
ul.products .button.add_to_cart_button::before {
    content: "";
    width: 40px;
    height: 40px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    pointer-events: none;
    opacity: 0;
}

ul.products .button.add_to_cart_button.loading::before {
    opacity: 1;
}

ul.products .button.add_to_cart_button::after {
    content: "";
    display: inline-block;
    background-color: currentColor;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7 4h-2l-3 7v2h2l3-7h11l3 7h2v-2l-3-7h-13zM6 20c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2c1.1 0 2-.9 2-2s-.9-2-2-2z"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7 4h-2l-3 7v2h2l3-7h11l3 7h2v-2l-3-7h-13zM6 20c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2c1.1 0 2-.9 2-2s-.9-2-2-2z"/></svg>') center/contain no-repeat;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Style all button types in wishlist to match theme */
.wishlist-grid .breakdance-woocommerce a.button.add_to_cart_button,
.breakdance-woocommerce .wishlist-grid a.button.add_to_cart_button,
.wishlist-grid .breakdance-woocommerce a.product_type_external,
.breakdance-woocommerce .wishlist-grid a.product_type_external,
.wishlist-grid .breakdance-woocommerce a.button.product_type_grouped,
.breakdance-woocommerce .wishlist-grid a.button.product_type_grouped {
    --bde-button-secondary-border-color: transparent;
    --bde-button-secondary-border-color-hover: transparent;
    --bde-button-secondary-text-color: #fff;
    --bde-button-secondary-text-color-hover: #fff;
    --bde-button-secondary-background-color: #000;
    --bde-button-secondary-background-color-hover: #000;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: var(--bde-button-secondary-background-color);
    color: var(--bde-button-secondary-text-color);
    border: 1px solid var(--bde-button-secondary-border-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.wishlist-grid .breakdance-woocommerce a.button.add_to_cart_button:hover,
.breakdance-woocommerce .wishlist-grid a.button.add_to_cart_button:hover,
.wishlist-grid .breakdance-woocommerce a.product_type_external:hover,
.breakdance-woocommerce .wishlist-grid a.product_type_external:hover,
.wishlist-grid .breakdance-woocommerce a.button.product_type_grouped:hover,
.breakdance-woocommerce .wishlist-grid a.button.product_type_grouped:hover {
    background-color: var(--bde-button-secondary-background-color-hover);
    color: var(--bde-button-secondary-text-color-hover);
    border-color: var(--bde-button-secondary-border-color-hover);
}

/* Additional button styling to match theme exactly */
.wishlist-grid .breakdance .bde-wooproductslist-2-135.breakdance-woocommerce a.button.add_to_cart_button,
.wishlist-grid .breakdance .bde-wooproductslist-2-135.breakdance-woocommerce a.product_type_external,
.wishlist-grid .breakdance .bde-wooproductslist-2-135.breakdance-woocommerce a.button.product_type_grouped {
    --bde-button-secondary-border-color: transparent;
    --bde-button-secondary-border-color-hover: transparent;
    --bde-button-secondary-text-color: #fff;
    --bde-button-secondary-text-color-hover: #fff;
    --bde-button-secondary-background-color: #000;
    --bde-button-secondary-background-color-hover: #000;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

/* Product title styling */
.breakdance-woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
}

/* Price styling */
.breakdance-woocommerce .product .price,
.breakdance-woocommerce .product .woocommerce-Price-amount bdi {
    font-size: 15px !important;
}

.breakdance-woocommerce ul.products li.product .price del {

}
