/* Custom Wishlist Styles */

/* Wishlist button states */
.item-addwishlist {
    transition: all 0.3s ease;
    position: relative;
}

.item-addwishlist.added {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
    cursor: default;
}

.item-addwishlist.added:hover {
    background-color: #28a745 !important;
    color: white !important;
    transform: none;
}

/* Wishlist button loading state */
.item-addwishlist.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Wishlist count badge */
.totalWishlistItems {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
}

/* Wishlist table styles */
.wishlist-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wishlist-table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.wishlist-table td {
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

/* Wishlist item actions */
.wishlist-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Add to cart button from wishlist */
.wishlist-add-to-cart {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.wishlist-add-to-cart:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Remove from wishlist button */
.deleteWishlistItem {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.deleteWishlistItem:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
}

/* Empty wishlist state */
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.wishlist-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Wishlist item image */
.wishlist-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* Wishlist item name */
.wishlist-item-name a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.wishlist-item-name a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Price styling */
.item-new-price {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.item-old-price {
    color: #6c757d;
    font-size: 14px;
    text-decoration: line-through;
}

/* Notification styles */
.wishlist-notification {
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .wishlist-table {
        font-size: 14px;
    }
    
    .wishlist-table th,
    .wishlist-table td {
        padding: 8px 4px;
    }
    
    .wishlist-item-image {
        width: 60px;
        height: 60px;
    }
    
    .wishlist-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .wishlist-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
