/**
 * WooCommerce Custom Wishlist Styles
 */

/* Wishlist Button */
.wc-custom-wishlist-btn {
    display: inline-block;
    margin: 10px 0;
}

.wc-custom-wishlist-btn .wishlist-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wc-custom-wishlist-btn .wishlist-btn:hover {
    background: #e9e9e9;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

.wc-custom-wishlist-btn.in-wishlist .wishlist-btn {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.wc-custom-wishlist-btn.in-wishlist .wishlist-btn:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
}

.wc-custom-wishlist-btn .wishlist-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
}

.wc-custom-wishlist-btn .wishlist-icon svg {
    width: 16px;
    height: 16px;
}

.wc-custom-wishlist-btn.loading .wishlist-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* Wishlist Page */
.wc-custom-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}

.wc-custom-wishlist-empty .wishlist-empty-icon {
    margin-bottom: 20px;
    color: #ccc;
}

.wc-custom-wishlist-empty h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.wc-custom-wishlist-empty p {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
}

.wc-custom-wishlist-empty .button {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.wc-custom-wishlist-empty .button:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Wishlist Products */
.wc-custom-wishlist-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.wishlist-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.wishlist-count {
    color: #666;
    font-size: 16px;
}

.wishlist-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.wishlist-product {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.wishlist-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-product .product-image {
    position: relative;
    overflow: hidden;
}

.wishlist-product .product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.wishlist-product:hover .product-image img {
    transform: scale(1.05);
}

.wishlist-product .product-info {
    padding: 20px;
}

.wishlist-product .product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.wishlist-product .product-title a {
    color: #333;
    text-decoration: none;
}

.wishlist-product .product-title a:hover {
    color: #007cba;
}

.wishlist-product .product-price {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
}

.wishlist-product .product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wishlist-product .add-to-cart {
    flex: 1;
    padding: 10px 16px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background 0.3s ease;
}

.wishlist-product .add-to-cart:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.wishlist-product .out-of-stock {
    flex: 1;
    padding: 10px 16px;
    background: #f7f7f7;
    color: #666;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.wishlist-product .remove-from-wishlist {
    padding: 10px 16px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.wishlist-product .remove-from-wishlist:hover {
    background: #ff5252;
}

.wishlist-product .remove-from-wishlist.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Messages */
.wc-custom-wishlist-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    z-index: 9999;
    display: none;
}

.wc-custom-wishlist-message.success {
    background: #4caf50;
}

.wc-custom-wishlist-message.error {
    background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wishlist-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wishlist-product .product-actions {
        flex-direction: column;
    }
    
    .wc-custom-wishlist-message {
        left: 20px;
        right: 20px;
        text-align: center;
    }
} 