/**
 * Custom CSS for YITH WooCommerce Wishlist Integration
 */

/* Wishlist table styles for better product display */
.woocommerce table.wishlist_table {
    font-size: 100%;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 30px;
}

/* Product image */
.woocommerce table.wishlist_table img {
    width: 80px;
    height: auto;
    border: 1px solid #eee;
    padding: 3px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Remove button styling */
.woocommerce table.wishlist_table .product-remove {
    width: 30px;
    text-align: center;
}

.woocommerce table.wishlist_table .product-remove a.remove {
    font-size: 1.5em;
    height: 1.5em;
    width: 1.5em;
    line-height: 1.3em;
    color: #e74c3c !important;
    font-weight: 700;
    text-align: center;
    border-radius: 100%;
    border: 1px solid #e74c3c;
    display: inline-block;
    vertical-align: middle;
}

.woocommerce table.wishlist_table .product-remove a.remove:hover {
    background-color: #e74c3c;
    color: #ffffff !important;
}

/* Product name styling */
.woocommerce table.wishlist_table td.product-name a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.woocommerce table.wishlist_table td.product-name a:hover {
    color: #0056b3;
}

/* Product price */
.woocommerce table.wishlist_table td.product-price {
    font-weight: 600;
    color: #0056b3;
}

/* Stock status */
.woocommerce table.wishlist_table .stock.in-stock {
    color: #27ae60;
    font-weight: 600;
}

.woocommerce table.wishlist_table .stock.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
}

/* Add to cart button */
.woocommerce table.wishlist_table td.product-add-to-cart a.add_to_cart_button {
    padding: 8px 15px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
}

.woocommerce table.wishlist_table td.product-add-to-cart a.add_to_cart_button:hover {
    background-color: #003d82;
}

/* Improve wishlist button styling */
.yith-wcwl-add-to-wishlist {
    margin-top: 25px;
    display: block;
}

.products .product .yith-wcwl-add-to-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 10;
}

.products .product .yith-wcwl-add-to-wishlist a {
    background-color: rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.products .product .yith-wcwl-add-to-wishlist a:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.products .product .yith-wcwl-add-to-wishlist .yith-wcwl-icon {
    margin: 0;
    font-size: 16px;
}

/* Fix for YITH icon display */
.yith-wcwl-icon {
    display: inline-block;
}

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

/* Fix for additional wishlist plugin styling */
.woocommerce .wishlist-title h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hidden-title-form button {
    padding: 5px 10px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 3px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce table.wishlist_table .product-thumbnail {
        display: none;
    }
    
    .woocommerce table.wishlist_table td {
        padding: 10px 5px;
    }
}
