/* Wishlist Icon */
.wishlist-icon {
    position: relative;
    margin-left: 15px;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wishlist Modal */
#wishlist-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#wishlist-modal .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    animation: modalFade 0.3s;
}

#wishlist-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#wishlist-modal .close:hover {
    color: black;
}

#wishlist-items {
    margin-top: 20px;
}

.wishlist-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wishlist-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.wishlist-item div {
    flex-grow: 1;
}

.wishlist-item h4 {
    margin: 0;
    font-size: 16px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.wishlist-item-actions .add-to-cart-btn {
    color: #4CAF50;
}

.wishlist-item-actions .remove-btn {
    color: #ff4757;
}

.add-to-cart-btn.small {
    padding: 5px;
    font-size: 14px;
}

/* Notification */
#wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1002;
}

#wishlist-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animation for modal */
@keyframes modalFade {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}
